KenshiOfficial

Roberto carlos niggers

Dec 16th, 2024
254
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 1 0
  1. -- Create the ScreenGui
  2. local screenGui = Instance.new("ScreenGui")
  3. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  4.  
  5. -- Create the first button
  6. local button1 = Instance.new("TextButton")
  7. button1.Size = UDim2.new(0, 200, 0, 50)
  8. button1.Position = UDim2.new(0.5, -100, 0.5, -75)
  9. button1.Text = "Teleport to First Location"
  10. button1.Parent = screenGui
  11.  
  12. -- Create the second button
  13. local button2 = Instance.new("TextButton")
  14. button2.Size = UDim2.new(0, 200, 0, 50)
  15. button2.Position = UDim2.new(0.5, -100, 0.5, 25)
  16. button2.Text = "Teleport to Second Location"
  17. button2.Parent = screenGui
  18.  
  19. -- Function to teleport the player to the specified coordinates
  20. local function teleportToLocation(position)
  21. game.Players.LocalPlayer.Character:MoveTo(position)
  22. end
  23.  
  24. -- Button 1 click event
  25. button1.MouseButton1Click:Connect(function()
  26. local position1 = Vector3.new(-246.390869140625, 18.79619598388672, -51.302978515625)
  27. teleportToLocation(position1)
  28. end)
  29.  
  30. -- Button 2 click event
  31. button2.MouseButton1Click:Connect(function()
  32. local position2 = Vector3.new(320.1489562988281, 19.332275390625, -50.58977127075195)
  33. teleportToLocation(position2)
  34. end)
Add Comment
Please, Sign In to add comment