RenderStepped and all events from runservice won't work

When I call Heartbeat, or any derivative event of run service, it errors with attempt to call nil value

Show us the script or portion of the script you used; We can’t help you if you don’t show the code

Whoops, fixed it. It’s a stupid solution.

game:GetService(“RunService”).Heartbeat:connect(function()
antiskids()
end)

Before it was: game:GetService(“RunService”).Heartbeat:connect(antiskids())

and it just errored.

Its because you’re :Connecting to the result of the function, not the function itself.

It should be this instead:

game:GetService("RunService").Heartbeat:Connect(antiskids)