I'm new to scripting and this script only works in Roblox studio why is that
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
local head = char:WaitForChild('Head')
while wait(4/10) do
local speed = head.Velocity.Magnitude
if speed >=4 then
workspace.Events.addStep:FireServer()
elseif speed <= 1 then
end
end
end)
end)

2 comments
Is this a Local or Server Script?
it is a Server Script