
14.1k Views
1.4k Executions
Rejoin Button
Universal Script 📌
Icy_HDPublished 10
3 years ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Auto execute highly recommended
--Auto execute highly recommended (use it)
gui = game.CoreGui.RobloxPromptGui.promptOverlay:WaitForChild("ErrorPrompt")
gui.Size = UDim2.new(0, 400, 0, 230)
leave = gui.MessageArea.ErrorFrame.ButtonArea.LeaveButton
gui.MessageArea.MessageAreaPadding.PaddingTop = UDim.new(0,-20)
gui.MessageArea.ErrorFrame.ErrorFrameLayout.Padding = UDim.new(0, 5)
gui.MessageArea.ErrorFrame.ButtonArea.ButtonLayout.CellPadding = UDim2.new(0, 0, 0, 5)
rejoin = leave:Clone()
rejoin.Parent = leave.Parent
rejoin.ButtonText.Text = "Rejoin"
Players = game:GetService("Players")
TeleportService = game:GetService("TeleportService")
rejoin.MouseButton1Up:Connect(function()
if #Players:GetPlayers() <= 1 then
TeleportService:Teleport(game.PlaceId, Players.LocalPlayer)
else
TeleportService:TeleportToPlaceInstance(game.PlaceId, game.JobId, Players.LocalPlayer)
end
end)
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!






