Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Function to be executed every 0.001 seconds
- local function executeScript()
- -- when you reset make sure to re-execute this or just make this execute in a loop
- for i,v in next, game:GetService("Players").LocalPlayer.Character:GetDescendants() do
- if v:IsA("BasePart") and v.Name ~="HumanoidRootPart" then
- game:GetService("RunService").Heartbeat:connect(function()
- v.Velocity = Vector3.new(-30,0,0)
- end)
- end
- end
- print("Script executed at: " .. tostring(os.clock()))
- end
- -- Loop to execute the script every 0.001 seconds
- while true do
- executeScript()
- wait(0.001) -- Wait for 0.001 seconds
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement