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

I'm having trouble with my animation not playing when the keybind is pressed. What's wrong?

Asked by 5 years ago
Edited 5 years ago
elseif key:lower() == "e" and not meleeing and not reloading then
   if aiming == false then                      Player.Character.Humanoid:LoadAnimation(aim):Play()
        aiming = true tool.GripForward = Vector3.new(-0.1, 0, -0.9)
        tool.GripRight = Vector3.new(0.9, 0, -0.1)
  elseif aiming == true then
        aiming = false  
        Player.Character.Humanoid:LoadAnimation(aim):Play()         Player.Character.Humanoid:LoadAnimation(hold):Play()
        tool.GripForward = Vector3.new(0, 0, -1)
        tool.GripRight = Vector3.new(1, 0, 0) 
        end 
        end
        end)

I don't understand why it doesn't work. From what I understand it should.

Answer this question