Universal Script 📌
14.1k Views
1.4k Executions

Rejoin Button

Universal Script 📌
Icy_HD
Icy_HDPublished 10
3 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Auto execute highly recommended

Updates

  1. Script edited: Create script

View Raw
--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

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Script hub
280.0k
188.7k
Bumped 8 minutes ago
Key System
Script hub
294
313
Bumped 1 hour ago

Script hub

Blythe

Script hub
8.9k
55.1k
Bumped 2 hours ago
Key System
Script hub
506
6.4k
Bumped 6 hours ago
Key System
Universal Script 📌
7.2k
104.7k
Bumped 7 hours ago
Script hub
519
2.1k
Bumped 8 hours ago
Key System