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

Script isn't playing animations, what's wrong?

Asked by 9 years ago

So this is the script;

User = game.Players.LocalPlayer
UserMouse = User:GetMouse()

Animation = Instance.new("Animation")
Animation.AnimationId = "http://www.roblox.com/Asset?ID=190972547"
Animation.Name = "BackFlip"
animTrack = User.Character.Humanoid:LoadAnimation(Animation)

UserMouse.KeyDown:connect(function(key) -- keydown function
    if key == "q" then 
    animTrack:Play()
    end
end)

I'm confused what's the problem?....

0
Is it a local script? EzraNehemiah_TF2 3552 — 9y
0
Yes, it's in a local script. TheReapersComing 0 — 9y

Answer this question