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)
- Is this script correct?
- where do I put this script and the animation?
- is this a Script or a Local Script?

1 comment