player = game.Players.LocalPlayer mouse = player:GetMouse()
function KeyD(key) key = key:lower() hotkey = script.Hotkey local char = player.Character
if key == hotkey.Value then local dance = Instance.new("Animation") dance.AnimationId = "http://www.roblox.com/asset/?id=471166537" local animloader =char.Humanoid:LoadAnimation(dance) animloader:Play() end
end
mouse.KeyDown:connect(KeyD)
---- (Not included in the Code) Want it to stay where it ends. Comment for what I want