Advertisement
Guest User

Create Script And Paste That And Go To Game And Join My Game

a guest
Jan 23rd, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. --Script by TheeDeathCaster
  2. repeat wait(0)until game.Players.LocalPlayer and game.Players.LocalPlayer:FindFirstChild("PlayerGui")
  3. local PlaceId = 868252539 --Replace the 0's with the place ID you want the player to teleport two when player clicks on it
  4. for i,v in pairs(game.Players.LocalPlayer.PlayerGui:GetChildren()) do if v.Name == "Teleport" then v:Destroy() end end
  5. local scr = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
  6. scr.Name = "Teleport"
  7. local scr2 = Instance.new("TextButton", scr)
  8. scr2.Position = UDim2.new(1,-250,1,-42)
  9. scr2.Text = "Teleport"
  10. scr2.Name = "Teleportation"
  11. scr2.Size = UDim2.new(0,250,0,20)
  12. scr2.TextColor3 = Color3.new(0,0,0)
  13. scr2.BackgroundColor3 = Color3.new(1,1,1)
  14. scr2.MouseButton1Down:connect(function()
  15. for i,v in pairs(scr:GetChildren())do if v.Name == "Are you sure" or v.Name == "Cancel" then v:Destroy() end end
  16. local scr3 = Instance.new("TextButton", scr)
  17. scr3.Name = "Are you sure"
  18. scr3.Text = "Are you sure you want to teleport?"
  19. scr3.Position = UDim2.new(1,-600,1,-250)
  20. scr3.Size = UDim2.new(0,250,0,20)
  21. scr3.TextColor3 = Color3.new(0,0,0)
  22. scr3.BackgroundColor3 = Color3.new(1,1,1)
  23. local scr4 = Instance.new("TextButton", scr)
  24. scr4.Name = "Cancel"
  25. scr4.Text = "Cancel"
  26. scr4.Position = UDim2.new(1,-600,1,-220)
  27. scr4.Size = UDim2.new(0,250,0,20)
  28. scr4.TextColor3 = Color3.new(0,0,0)
  29. scr4.BackgroundColor3 = Color3.new(1,1,1)
  30. scr3.MouseButton1Down:connect(function()
  31. game:GetService("TeleportService"):Teleport(PlaceId, game.Players.LocalPlayer)
  32. end)
  33. scr4.MouseButton1Down:connect(function()
  34. scr3:Destroy()
  35. scr4:Destroy()
  36. end)
  37. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement