[Roblox Studio] How to Make ''play an animation while pressing a keyboard button {KeyBind Script}

Аватар автора
Игровые Виртуозы
Hey Guys, today i will show the simpliest way of how to play an animation you made for your game while pressing a keyboard button &or what ever the script called KeyBind. Song: Script: local player = game.Players.LocalPlayer repeat wait() until player.Character.Humanoid local humanoid = player.Character.Humanoid local mouse = player:GetMouse() local anim = Instance.new("Animation") mouse.KeyDown:connect(function(key) if key == "z" then local playAnim = humanoid:LoadAnimation(anim) playAnim:Play() end end)

0/0


0/0

0/0

0/0