Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I Dosen't really know why i just stands still and not moving forwards any help?

Asked by
DevingDev 346 Moderation Voter
7 years ago
Edited 7 years ago

soo yea i am making a slide animation and he wants the player to run the animation and when the animation runs the player slides forwards without touching the keyboard this is what i have so far but should i like every time someones press the [z] button then a conveyor belt under or something?

local Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()

Mouse.KeyDown:connect(function(Key)
    if(Key:lower() == "z") then
        anim = Player.Character.Humanoid:LoadAnimation(script.animTest)
        anim:Play()
    end
end)

Answer this question