Hi Dudes and Girls! So! i want to make the players hand move 90 degrees on the press of the key E and I made this script. I asked and it is correct but I dont know where to put it. I also got the animation. Here's the script:
local UIS = game:GetService("UserInputService") local Player = game.Players.LocalPlayer repeat wait() until Player.Character.Humanoid local Animation = script.Animation local Track = Player.Character.Humanoid:LoadAnimation(Animation) UIS.InputBegan:connect(function(key) if key.KeyCode == Enum.KeyCode.E then Track:Play() end end)
Put the Script Either Inside the Player in Players. Or In the character with StarterCharacter Scripts