I’ve been trying to play an animation when someone presses G on their keyboard and for some reason, the arms are only going halfway up.
I tried testing the exact same thing but only with the animation and it still did not work.
LocalScript (in StarterCharacterScripts):
local UIS = game:GetService("UserInputService")
local char = script.Parent
local player = game.Players.LocalPlayer
local notUse = false
local Anim = Instance.new("Animation")
Anim.AnimationId = "rbxassetid://9100940156"
local fireAnim = char.Humanoid:LoadAnimation(Anim)
local handR = char.RightHand
local handL = char.LeftHand
local keybind = Enum.KeyCode.G
-- Right Arm's Flame --
flameR = Instance.new("ParticleEmitter")
flameR.Parent = handR
flameR.Enabled = false
flameR.Transparency = NumberSequence.new(0)
flameR.Color = ColorSequence.new(Color3.new(255, 255, 255))
flameR.Size = NumberSequence.new(1.5)
flameR.LightInfluence = 1
flameR.Texture = "rbxassetid://160041569"
flameR.Lifetime = NumberRange.new(1.25, 1.75)
flameR.Rate = 75
flameR.Speed = NumberRange.new(7.5)
flameR.EmissionDirection = ("Front")
flameR.SpreadAngle = Vector2.new(15, 15)
-- Left Arm's Flame --
flameL = Instance.new("ParticleEmitter")
flameL.Parent = handL
flameL.Enabled = false
flameL.Transparency = NumberSequence.new(0)
flameL.Color = ColorSequence.new(Color3.new(255, 255, 255))
flameL.Size = NumberSequence.new(1.5)
flameL.LightInfluence = 1
flameL.Texture = "rbxassetid://160041569"
flameL.Lifetime = NumberRange.new(1.25, 1.75)
flameL.Rate = 75
flameL.Speed = NumberRange.new(7.5)
flameL.EmissionDirection = ("Front")
flameL.SpreadAngle = Vector2.new(15, 15)
-- Flame Sound --
flameSound = Instance.new("Sound")
flameSound.Parent = char.UpperTorso
flameSound.SoundId = "rbxassetid://346067083"
UIS.InputBegan:Connect(function(input,gameprocessed)
if gameprocessed then return end
if input.KeyCode == keybind then
if not notUse then
notUse = true
print(player.Name .. "'s Fire Ability Cooldown Started.")
char.Humanoid.WalkSpeed = 0
char.Humanoid.JumpPower = 0
flameR.Enabled = true
flameL.Enabled = true
fireAnim:Play()
flameSound:Play()
wait(3)
char.Humanoid.WalkSpeed = 16
char.Humanoid.JumpPower = 50
flameR.Enabled = false
flameL.Enabled = false
fireAnim:Stop()
flameSound:Stop()
wait(5)
notUse = false
print(player.Name .. "'s Fire Ability Cooldown Ended.")
end
end
end)
How the animation plays (in-game):
How it should play (in animation editor):
It’s almost as if the legs are fully playing but the arms are only going halfway.