Can you help me please? i inserted it into the starter pack on a serverside script with a animation inside of it
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = "50"
local playr = game.Players.LocalPlayer
local mouse = playr:GetMouse()
local animation = script:WaitForChild("Animation")
function run(key)
if key == "q" then
local animationTrack = playr.Character.Humanoid:LoadAnimation(animation)
animationTrack:Play()
script.Fwoosh:Play()
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = "250"
end
end
game.Players.LocalPlayer:GetMouse().KeyDown:connect(run)
function dont(key)
if key == "q" then
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = "50" --how fast you will walk
end
end
game.Players.LocalPlayer:GetMouse().KeyUp:connect(dont)
wait(1)
local animationTrack = playr.Character.Humanoid:LoadAnimation(animation)
animationTrack:Pause()
pls help

2 comments
LocalPlayer returns nil when called from the server.
Change the script to a LocalScript. It does not change any non-local things in-game, so it will not be annihilated by FE. Let me write an answer: