Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- 🚀 Roblox Server Join Script Generator
- Automatically gets current server's JobId,
- copies a ready-to-use join script to your clipboard,
- and notifies you.
- ]]
- local StarterGui = game:GetService("StarterGui")
- local placeId = game.PlaceId
- local jobId = game.JobId
- -- Create the full join script as a string
- local joinScript = [[
- -- Roblox Server Join Script
- local TeleportService = game:GetService("TeleportService")
- local Players = game:GetService("Players")
- local jobId = "]] .. jobId .. [[" -- Target server's JobId
- local placeId = ]] .. placeId .. [[ -- Current game's PlaceId
- TeleportService:TeleportToPlaceInstance(placeId, jobId, Players.LocalPlayer)
- ]]
- -- Copy to clipboard (works in Roblox Studio or executors that support it)
- if setclipboard then
- setclipboard(joinScript)
- else
- StarterGui:SetCore("SendNotification", {
- Title = "Clipboard Error",
- Text = "setclipboard not supported in this environment",
- Duration = 5
- })
- return
- end
- -- Notify the player that the script was copied
- StarterGui:SetCore("SendNotification", {
- Title = "Script Copied!",
- Text = "Join script copied to clipboard ✅",
- Duration = 5
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement