Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game.PlaceId ~= 15506075243 then
- local ScreenGui1 = Instance.new("ScreenGui")
- local QuestionFrame = Instance.new("Frame")
- local QuestionLabel = Instance.new("TextLabel")
- local QuestionLabelUICorner = Instance.new("UICorner")
- local QuestionFrameUICorner = Instance.new("UICorner")
- local TextLabel = Instance.new("TextLabel")
- local TextLabelUICorner = Instance.new("UICorner")
- local YesButton = Instance.new("TextButton")
- local YesButtonUICorner = Instance.new("UICorner")
- local NoButton = Instance.new("TextButton")
- local NoButtonUICorner = Instance.new("UICorner")
- local Blur = Instance.new("BlurEffect")
- Blur.Parent = game:GetService("Lighting")
- Blur.Size = 100
- ScreenGui1.Parent = game.CoreGui
- QuestionFrame.Parent = ScreenGui1
- QuestionFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- QuestionFrame.Position = UDim2.new(0.3, 0, 0.2, 0)
- QuestionFrame.Size = UDim2.new(0, 400, 0, 250)
- QuestionLabel.Name = "QuestionLabel"
- QuestionLabel.Parent = QuestionFrame
- QuestionLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- QuestionLabel.Size = UDim2.new(0, 400, 0, 25)
- QuestionLabel.Font = Enum.Font.IndieFlower
- QuestionLabel.Text = "Teleport?"
- QuestionLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
- QuestionLabel.TextSize = 30
- QuestionFrameUICorner.Parent = QuestionFrame
- QuestionLabelUICorner.Parent = QuestionLabel
- TextLabel.Name = "TextLabel"
- TextLabel.Parent = QuestionFrame
- TextLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.Position = UDim2.new(0.05, 0, 0.1, 0)
- TextLabel.Size = UDim2.new(0, 350, 0, 150)
- TextLabel.Font = Enum.Font.IndieFlower
- TextLabel.Text = "When you click on the 'Yes' button, you will be teleported to the game 'For Visual Scripts'. After teleporting into the game, restart the script."
- TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.TextSize = 30
- TextLabel.TextWrapped = true
- TextLabel.TextScaled = true
- TextLabelUICorner.Parent = TextLabel
- NoButton.Name = "NoButton"
- NoButton.Parent = QuestionFrame
- NoButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- NoButton.Position = UDim2.new(0.07, 0, 0.7, 0)
- NoButton.Size = UDim2.new(0, 125, 0, 50)
- NoButton.Font = Enum.Font.IndieFlower
- NoButton.Text = "No"
- NoButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- NoButton.TextScaled = true
- NoButton.TextSize = 14.000
- NoButton.TextWrapped = true
- NoButton.MouseButton1Down:connect(function()
- ScreenGui1:Destroy()
- Blur.Size = 0
- end)
- NoButtonUICorner.Parent = NoButton
- YesButton.Name = "YesButton"
- YesButton.Parent = QuestionFrame
- YesButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
- YesButton.Position = UDim2.new(0.6, 0, 0.7, 0)
- YesButton.Size = UDim2.new(0, 125, 0, 50)
- YesButton.Font = Enum.Font.IndieFlower
- YesButton.Text = "Yes"
- YesButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- YesButton.TextScaled = true
- YesButton.TextSize = 14.000
- YesButton.TextWrapped = true
- YesButton.MouseButton1Down:connect(function()
- local TeleportService = game:GetService("TeleportService")
- local PId = 15506075243
- game.Players.LocalPlayer:Kick("Joining")
- local Join = coroutine.create(function()
- local Success, ErrorMessage = pcall(function()
- TeleportService:Teleport(PId, game.Players.LocalPlayer)
- end)
- if ErrorMessage and not Success then
- warn(ErrorMessage)
- end
- end)
- coroutine.resume(Join)
- end)
- YesButtonUICorner.Parent = YesButton
- else
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement