Advertisement
DrogbaLeHbb

Untitled

Nov 25th, 2024
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. local TPWalk = Instance.new("ScreenGui")
  2. local main = Instance.new("ImageLabel")
  3. local on = Instance.new("TextButton")
  4. local off = Instance.new("TextButton")
  5. local Destroy = Instance.new("TextButton")
  6.  
  7. TPWalk.Name = "TPWalk"
  8. TPWalk.Parent = game.CoreGui
  9. TPWalk.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  10.  
  11. main.Name = "main"
  12. main.Parent = TPWalk
  13. main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  14. main.Position = UDim2.new(0, 652, 0, 305)
  15. main.Size = UDim2.new(0, 290, 0, 181)
  16. main.Visible = true
  17. main.Active = true
  18. main.Draggable = true
  19. main.Image = "rbxassetid://944145752"
  20.  
  21. on.Name = "on"
  22. on.Parent = main
  23. on.BackgroundColor3 = Color3.fromRGB(149, 255, 180)
  24. on.BorderColor3 = Color3.fromRGB(126, 174, 255)
  25. on.BorderSizePixel = 5
  26. on.Position = UDim2.new(0, 35, 0, 82)
  27. on.Size = UDim2.new(0, 98, 0, 40)
  28. on.Font = Enum.Font.SourceSans
  29. on.Text = "On"
  30. on.TextColor3 = Color3.fromRGB(0, 0, 0)
  31. on.TextSize = 14.000
  32.  
  33. off.Name = "off"
  34. off.Parent = main
  35. off.BackgroundColor3 = Color3.fromRGB(253, 140, 138)
  36. off.BorderColor3 = Color3.fromRGB(126, 174, 255)
  37. off.BorderSizePixel = 5
  38. off.Position = UDim2.new(0, 157, 0, 82)
  39. off.Size = UDim2.new(0, 98, 0, 40)
  40. off.Font = Enum.Font.SourceSans
  41. off.Text = "Off"
  42. off.TextColor3 = Color3.fromRGB(0, 0, 0)
  43. off.TextSize = 14.000
  44.  
  45. Destroy.Name = "Destroy"
  46. Destroy.Parent = main
  47. Destroy.BackgroundColor3 = Color3.fromRGB(252, 76, 71)
  48. Destroy.BorderColor3 = Color3.fromRGB(112, 194, 255)
  49. Destroy.BorderSizePixel = 5
  50. Destroy.Position = UDim2.new(0, 87, 0, 134)
  51. Destroy.Size = UDim2.new(0, 115, 0, 28)
  52. Destroy.Font = Enum.Font.SourceSans
  53. Destroy.Text = "Destroy UI"
  54. Destroy.TextColor3 = Color3.fromRGB(0, 0, 0)
  55. Destroy.TextSize = 14.000
  56.  
  57. on.MouseButton1Click:Connect(function()
  58. _G.CF = true
  59. while _G.CF == true do
  60. task.wait()
  61. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, -0.5)
  62. end
  63. end)
  64.  
  65. off.MouseButton1Click:Connect(function()
  66. _G.CF = false
  67. end)
  68.  
  69. Destroy.MouseButton1Click:Connect(function()
  70. _G.CF = false
  71. TPWalk:Destroy()
  72. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement