Hey there, LUA noob here.
been trying to make a timer that increases player speed gradually but am stuck on an error - bad argument #4 to ‘Create’ <function expected, got nil>
anyway here is my code, please help me with what ever you can and tell me where I went wrong? =)
timer.Create("Weightloss", 30, 0, Weightloss, ply ) function Weightloss( ply ) PrintMessage( HUD_PRINTCENTER, "Fatboy has lost some weight, He's speeding up!" ) if ply:Team()== 1 then ply:SetWalkSpeed(ply:GetWalkSpeed() + 15) end end