How would I go about making a player sprint faster? I want it to be able to toggle between the normal sprint and the new one, because it's being used in an entity that can be detached. I have it so when the player is holding sprint, is on the ground, and has the entity attached ply.FanSprint = true I tried using ply:SetVelocity(), but that doesn't work while the player is on the ground.
This is what I have.
[lua]local function FanThink()
for _,ply in pairs(player.GetAll()) do
if ply.FanSprint then
ply:SetVelocity(ply:GetForward()*10)
end
end
end
hook.Add("Think","FanThink",FanThink)[/lua]