When you touch this brick, it will clone this local script into the players Gui. However, it doesn't work whenever I press h...
local Mouse = game.Players.LocalPlayer:GetMouse()
local chr = game.Players.LocalPlayer.Character
function onKeyDown(key)
key = key:lower()
if key == "h" then
local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/Asset?ID=1567452314"
wait()
local trackanimation = chr.Humanoid:LoadAnimation(animation)
trackanimation:Play()
end
end
Mouse.KeyDown:connect(onKeyDown)
