Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local CanCatch = ReplicatedStorage:WaitForChild("CanCatch")
- local args = {
- [1] = true
- }
- local RunService = game:GetService("RunService")
- local lastTime = tick()
- RunService.Heartbeat:Connect(function()
- local currentTime = tick()
- if currentTime - lastTime >= 0.001 then -- 1 millisecond
- CanCatch:FireServer(unpack(args))
- lastTime = currentTime
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement