Advertisement
linkedwher

Speed Script (works on all games)

Aug 14th, 2023 (edited)
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.13 KB | Gaming | 0 0
  1. --JOIN https://discord.gg/uTYtSawU4F--
  2.  
  3. local s_rs = game:GetService("RunService")
  4. local l_plr = game:GetService("Players").LocalPlayer
  5.  
  6.  
  7.  
  8. local l_humrp = l_plr.Character and l_plr.Character:FindFirstChild("HumanoidRootPart")
  9. local l_hum = l_plr.Character and l_plr.Character:FindFirstChild("Humanoid")
  10.  
  11. local resp_con = l_plr.CharacterAdded:Connect(function(c)
  12.     l_humrp = c:WaitForChild("HumanoidRootPart",3)
  13.     l_hum = c:WaitForChild("Humanoid",3)
  14. end)
  15.  
  16. local function dnec(signal)
  17.     local s = {}
  18.     for _, con in ipairs(getconnections(signal)) do
  19.         local func = con.Function
  20.         if (func and islclosure(func)) then
  21.             if (not is_synapse_function(func)) then
  22.                 s[#s+1] = con
  23.                 con:Disable()
  24.             end
  25.         end
  26.     end
  27.     return s
  28. end
  29.  
  30.  
  31. local speed_amnt = 5
  32.  
  33. local ui = loadstring(game:HttpGet('https://raw.githubusercontent.com/topitbopit/rblx/main/ui-stuff/jeff_2.lua'))()
  34. ui:SetColors('streamline')
  35.  
  36.  
  37.  
  38. local w = ui:NewWindow('speed',250,200)
  39.  
  40. local m = w:NewMenu('speed')
  41. local t = m:NewToggle('toggle speed')
  42. local s = m:NewSlider('speed amount',1,50,5)
  43.  
  44. t:SetTooltip("toggles speedhacks")
  45. s:SetTooltip("speedhack speed")
  46.  
  47. m:NewLabel()
  48. m:NewLabel('made by topit')
  49.  
  50. s.OnValueChanged:Connect(function(v)
  51.     speed_amnt = v
  52. end)
  53.  
  54. do
  55.     local a,b
  56.     t.OnToggle:Connect(function(t)
  57.         if (t) then
  58.             a = dnec(l_humrp.Changed)
  59.             b = dnec(l_humrp:GetPropertyChangedSignal("CFrame"))
  60.            
  61.             s_rs:BindToRenderStep("speed",2000,function(dt)
  62.                 l_humrp.CFrame += l_hum.MoveDirection*dt*5*speed_amnt
  63.             end)
  64.         else
  65.             s_rs:UnbindFromRenderStep("speed")
  66.            
  67.             for i,v in ipairs(a) do
  68.                 v:Enable()
  69.             end
  70.             for i,v in ipairs(b) do
  71.                 v:Enable()
  72.             end
  73.         end
  74.     end)
  75. end
  76.  
  77. ui.Exiting:Connect(function()
  78.     for i,v in ipairs(ui:GetAllToggles()) do
  79.         if (v:IsEnabled()) then
  80.             v:Disable()
  81.         end
  82.     end
  83.     resp_con:Disconnect()
  84. end)
  85.  
  86. ui:Ready()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement