Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to Hand move on E key? (Script Check)

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

1 comment

0
  1. I'm not to sure bud.

2 answers

Put the Script Either Inside the Player in Players. Or In the character with StarterCharacter Scripts

3 comments

0

Where do I put the animation?

0

Keep it in the script, it makes things easier

0

in the script?? you mean make the animation the scripts Child???

  1. Not to sure, but I think it is.
  2. StarterPlayer -> StarterPlayerScripts
  3. A normal script.

4 comments

0

Where do I put the animation? do I make it the scripts Child?

0

Mhm

0

oki

0

its not working

This discussion is preserved as it was. New answers, comments, and votes are closed.