xvc200

set tp gui

Dec 20th, 2024 (edited)
17,211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local TextButton = Instance.new("TextButton")
  4. local TextButton1 = Instance.new("TextButton")
  5.  
  6. ScreenGui.Parent = game.CoreGui
  7.  
  8. Frame.Parent = ScreenGui
  9. Frame.BackgroundColor3 = Color3.new(0,0,0)
  10. Frame.BorderColor3 = Color3.new(8,0,0)
  11. Frame.Position = UDim2.new(0.293040276, 0, 0.491666675, 0)
  12. Frame.Size = UDim2.new(0.13,0.2,0.12)
  13. Frame.Active = true
  14. Frame.Draggable = true
  15.  
  16. TextButton.Parent = Frame
  17. TextButton.BackgroundColor3 = Color3.new(8,0,0)
  18. TextButton.BackgroundTransparency = 0
  19. TextButton.Position = UDim2.new(0.08, 0, 0.200333327, 0)
  20. TextButton.TextColor3 = Color3.new(0,0,0)
  21. TextButton.Size = UDim2.new(0.4,0.9,0.45)
  22. TextButton.Font = Enum.Font.SourceSansLight
  23. TextButton.FontSize = Enum.FontSize.Size14
  24. TextButton.Text = "Set"
  25. TextButton.TextScaled = true
  26. TextButton.TextSize = 8
  27. TextButton.TextWrapped = true
  28.  
  29. if not lastpos then
  30. local lastpos
  31. end
  32.  
  33. TextButton.MouseButton1Click:connect(function()
  34. local old = game.Players.LocalPlayer.Character:getChildren()
  35.  
  36. for i=1,#old do
  37. if old[i].Name == "HumanoidRootPart" then
  38. lastPos = old[i].CFrame
  39. end
  40. end
  41. end)
  42.  
  43. TextButton1.Parent = Frame
  44. TextButton1.BackgroundColor3 = Color3.new(8,0,0)
  45. TextButton1.BackgroundTransparency = 0
  46. TextButton1.Position = UDim2.new(0.55,0,0.2)
  47. TextButton1.TextColor3 = Color3.new(0,0,0)
  48. TextButton1.Size = UDim2.new(0.4,0.9,0.45)
  49. TextButton1.Font = Enum.Font.SourceSansLight
  50. TextButton1.FontSize = Enum.FontSize.Size14
  51. TextButton1.Text = "TP"
  52. TextButton1.TextScaled = true
  53. TextButton1.TextSize = 8
  54. TextButton1.TextWrapped = true
  55.  
  56. TextButton1.MouseButton1Click:connect(function()
  57. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = lastPos
  58. end)
Advertisement
Add Comment
Please, Sign In to add comment