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

This script isn't doing what it's told to? [closed]

Asked by 10 years ago

So basically this script is supposed to load animations on keydown, but it's not doing so. Here's the script, I tried local script, I tried starterpack, I don't know what else to try.. Help?

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)
0
Do not repost your questions just because they do not get an answer. MrNicNac 855 — 10y

Locked by MrNicNac

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?