Soo, I have a slide animation that runs if i press [c] but when pressed then i just stands still and runs the animation i want it to be like when i press [c] then i slide forwards
what can i add on this script so it will be like that any tips?
local Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()
Mouse.KeyDown:connect(function(Key)
if(Key:lower() == "c") then -- What button to press
anim = Player.Character.Humanoid:LoadAnimation(script.animTest) -- Loads the animation
anim:Play() -- Plays the animation
end
end)

1 comment
@tacktic2010 and how do i add player velocity to a player and bodypostion to a player when pressing [c]