Advertisement
Zynee

Tpwalk

Jan 22nd, 2025 (edited)
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.60 KB | None | 0 0
  1. local Noti = loadstring(game:HttpGet("https://raw.githubusercontent.com/Jxereas/UI-Libraries/main/notification_gui_library.lua", true))()
  2. Noti.new("success", "Welcome To Celvyn!", "Thank you for using our script.", true, 5)
  3.  
  4. local A = game:GetService("RunService")
  5. local B = game:GetService("UserInputService")
  6. local C = game.Players.LocalPlayer
  7. local D = false
  8. local E = 1
  9.  
  10. local F = Instance.new("ScreenGui")
  11. F.Parent = C.PlayerGui
  12.  
  13. local G = Instance.new("Frame")
  14. G.Size = UDim2.new(0, 250, 0, 170)
  15. G.Position = UDim2.new(0, 50, 0, 50)
  16. G.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  17. G.BackgroundTransparency = 0.1
  18. G.BorderSizePixel = 0
  19. G.Visible = true
  20. G.Parent = F
  21.  
  22. local H = Instance.new("UICorner")
  23. H.CornerRadius = UDim.new(0, 10)
  24. H.Parent = G
  25.  
  26. local I = Instance.new("TextButton")
  27. I.Size = UDim2.new(0, 200, 0, 50)
  28. I.Position = UDim2.new(0, 25, 0, 80)
  29. I.Text = "Enable Tpwalk"
  30. I.Font = Enum.Font.SourceSans
  31. I.TextSize = 24
  32. I.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
  33. I.TextColor3 = Color3.fromRGB(255, 255, 255)
  34. I.Parent = G
  35.  
  36. local J = Instance.new("UICorner")
  37. J.CornerRadius = UDim.new(0, 10)
  38. J.Parent = I
  39.  
  40. local K = Instance.new("TextBox")
  41. K.Size = UDim2.new(0, 200, 0, 50)
  42. K.Position = UDim2.new(0, 25, 0, 15)
  43. K.PlaceholderText = "Speed"
  44. K.Text = ""
  45. K.Font = Enum.Font.SourceSans
  46. K.TextSize = 24
  47. K.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  48. K.TextColor3 = Color3.fromRGB(0, 0, 0)
  49. K.Parent = G
  50.  
  51. local L = Instance.new("UICorner")
  52. L.CornerRadius = UDim.new(0, 10)
  53. L.Parent = K
  54.  
  55. local M = Instance.new("TextButton")
  56. M.Size = UDim2.new(0, 25, 0, 25)
  57. M.Position = UDim2.new(1, -25, 0, 5)
  58. M.Text = "X"
  59. M.Font = Enum.Font.SourceSans
  60. M.TextSize = 24
  61. M.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  62. M.TextColor3 = Color3.fromRGB(255, 255, 255)
  63. M.Parent = G
  64.  
  65. local N = Instance.new("UICorner")
  66. N.CornerRadius = UDim.new(0,6)
  67. N.Parent = M
  68.  
  69. local O = Instance.new("ImageButton")
  70. O.Size = UDim2.new(0, 50, 0, 50)
  71. O.Position = UDim2.new(0, 10, 0, 10)
  72. O.Image = "rbxassetid://119663846201777"
  73. O.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  74. O.Parent = F
  75.  
  76. local P = Instance.new("UICorner")
  77. P.CornerRadius = UDim.new(0, 25)
  78. P.Parent = O
  79.  
  80. local Q = Instance.new("TextLabel")
  81. Q.Size = UDim2.new(1, 0, 0, 30)
  82. Q.Position = UDim2.new(0, 0, 1, -30)
  83. Q.Text = "Made by: Celvyn Hub"
  84. Q.Font = Enum.Font.SourceSansBold
  85. Q.TextSize = 18
  86. Q.BackgroundTransparency = 1
  87. Q.TextStrokeTransparency = 0
  88. Q.TextColor3 = Color3.fromRGB(255, 255, 255)
  89. Q.Parent = G
  90.  
  91. local R = coroutine.create(function()
  92.     while true do
  93.         for S = 0, 1, 0.01 do
  94.             Q.TextColor3 = Color3.fromHSV(S, 1, 1)
  95.             wait(0.01)
  96.         end
  97.     end
  98. end)
  99. coroutine.resume(R)
  100.  
  101. O.MouseButton1Click:Connect(function()
  102.     G.Visible = true
  103.     O.Visible = false
  104. end)
  105.  
  106. M.MouseButton1Click:Connect(function()
  107.     G.Visible = false
  108.     O.Visible = true
  109. end)
  110.  
  111. I.MouseButton1Click:Connect(function()
  112.     D = not D
  113.     I.Text = D and "Disable Tpwalk" or "Enable Tpwalk"
  114. end)
  115.  
  116. K.FocusLost:Connect(function(S)
  117.     if S then
  118.         local T = tonumber(K.Text)
  119.         if T then
  120.             E = T
  121.         else
  122.             E = 1
  123.             K.Text = ""
  124.             K.PlaceholderText = "Invalid input, defaulted to 1"
  125.         end
  126.     end
  127. end)
  128.  
  129. local function U()
  130.     local V = C.Character
  131.     local W = V and V:FindFirstChildWhichIsA("Humanoid")
  132.  
  133.     A.Heartbeat:Connect(function(X)
  134.         if D and V and W and W.Parent then
  135.             local Y = W.MoveDirection
  136.             if Y.Magnitude > 0 then
  137.                 V:SetPrimaryPartCFrame(V.PrimaryPart.CFrame + Y * X * E * 10)
  138.             end
  139.         end
  140.     end)
  141. end
  142. U()
  143.  
  144. local function Z(a)
  145.     local b = false
  146.     local c, d, e
  147.  
  148.     local function f(g)
  149.         local h = g.Position - d
  150.         a.Position = UDim2.new(e.X.Scale, e.X.Offset + h.X, e.Y.Scale, e.Y.Offset + h.Y)
  151.     end
  152.  
  153.     a.InputBegan:Connect(function(g)
  154.         if g.UserInputType == Enum.UserInputType.MouseButton1 or g.UserInputType == Enum.UserInputType.Touch then
  155.             b = true
  156.             d = g.Position
  157.             e = a.Position
  158.  
  159.             g.Changed:Connect(function()
  160.                 if g.UserInputState == Enum.UserInputState.End then
  161.                     b = false
  162.                 end
  163.             end)
  164.         end
  165.     end)
  166.  
  167.     a.InputChanged:Connect(function(g)
  168.         if g.UserInputType == Enum.UserInputType.MouseMovement or g.UserInputType == Enum.UserInputType.Touch then
  169.             c = g
  170.         end
  171.     end)
  172.  
  173.     B.InputChanged:Connect(function(g)
  174.         if g == c and b then
  175.             f(g)
  176.         end
  177.     end)
  178. end
  179.  
  180. Z(G)
  181. Z(O)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement