Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 7 years ago

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?
0
1. I'm not to sure bud. MusicalDeveloper 0 — 7y

2 answers

Log in to vote
0
Answered by 7 years ago

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

0
Where do I put the animation? SwagnLag -2 — 7y
0
Keep it in the script, it makes things easier saSlol2436 716 — 7y
0
in the script?? you mean make the animation the scripts Child??? SwagnLag -2 — 7y
Ad
Log in to vote
0
Answered by 7 years ago
  1. Not to sure, but I think it is.
  2. StarterPlayer -> StarterPlayerScripts
  3. A normal script.
0
Where do I put the animation? do I make it the scripts Child? SwagnLag -2 — 7y
0
Mhm Prestory 1395 — 7y
0
oki SwagnLag -2 — 7y
0
its not working SwagnLag -2 — 7y

Answer this question