Advertisement
KenshiOfficial

Football duels auto catch

Sep 3rd, 2024
840
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  2. local CanCatch = ReplicatedStorage:WaitForChild("CanCatch")
  3.  
  4. local args = {
  5. [1] = true
  6. }
  7.  
  8. local RunService = game:GetService("RunService")
  9. local lastTime = tick()
  10.  
  11. RunService.Heartbeat:Connect(function()
  12. local currentTime = tick()
  13. if currentTime - lastTime >= 0.001 then -- 1 millisecond
  14. CanCatch:FireServer(unpack(args))
  15. lastTime = currentTime
  16. end
  17. end)
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement