-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRejoin.lua
More file actions
44 lines (35 loc) · 2.4 KB
/
Rejoin.lua
File metadata and controls
44 lines (35 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
game.CoreGui.RobloxPromptGui.promptOverlay:WaitForChild("ErrorPrompt").Size = UDim2.new(0, 400, 0, 230)
game.CoreGui.RobloxPromptGui.promptOverlay:WaitForChild("ErrorPrompt").MessageArea.MessageAreaPadding.PaddingTop = UDim.new(0,-20)
game.CoreGui.RobloxPromptGui.promptOverlay:WaitForChild("ErrorPrompt").MessageArea.ErrorFrame.ErrorFrameLayout.Padding = UDim.new(0, 5)
game.CoreGui.RobloxPromptGui.promptOverlay:WaitForChild("ErrorPrompt").MessageArea.ErrorFrame.ButtonArea.ButtonLayout.CellPadding = UDim2.new(0, 0, 0, 5)
rejoin = game.CoreGui.RobloxPromptGui.promptOverlay:WaitForChild("ErrorPrompt").MessageArea.ErrorFrame.ButtonArea.LeaveButton:Clone()
rejoin.Parent = game.CoreGui.RobloxPromptGui.promptOverlay:WaitForChild("ErrorPrompt").MessageArea.ErrorFrame.ButtonArea.LeaveButton.Parent
rejoin.ButtonText.Text = "Rejoin"
ClearError = game.CoreGui.RobloxPromptGui.promptOverlay:WaitForChild("ErrorPrompt").MessageArea.ErrorFrame.ButtonArea.LeaveButton:Clone()
ClearError.Parent = game.CoreGui.RobloxPromptGui.promptOverlay:WaitForChild("ErrorPrompt").MessageArea.ErrorFrame.ButtonArea.LeaveButton.Parent
ClearError.ButtonText.Text = "Clear Kick"
ClearLoad = game.CoreGui.RobloxPromptGui.promptOverlay:WaitForChild("ErrorPrompt").MessageArea.ErrorFrame.ButtonArea.LeaveButton:Clone()
ClearLoad.Parent = game.CoreGui.RobloxPromptGui.promptOverlay:WaitForChild("ErrorPrompt").MessageArea.ErrorFrame.ButtonArea.LeaveButton.Parent
ClearLoad.ButtonText.Text = "Clear Load Roblox"
ClearAll = game.CoreGui.RobloxPromptGui.promptOverlay:WaitForChild("ErrorPrompt").MessageArea.ErrorFrame.ButtonArea.LeaveButton:Clone()
ClearAll.Parent = game.CoreGui.RobloxPromptGui.promptOverlay:WaitForChild("ErrorPrompt").MessageArea.ErrorFrame.ButtonArea.LeaveButton.Parent
ClearAll.ButtonText.Text = "Clear All"
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)
ClearError.MouseButton1Up:Connect(function()
game:GetService("GuiService"):ClearError()
end)
ClearLoad.MouseButton1Up:Connect(function()
game.CoreGui.RobloxLoadingGUI:Destroy()
end)
ClearAll.MouseButton1Up:Connect(function()
game:GetService("GuiService"):ClearError()
game.CoreGui.RobloxLoadingGUI:Destroy()
end)