local HandsUpAnimation = game.Workspace.HandsUp
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local Humanoid = char:WaitForChild("Humanoid")
local animator = Humanoid:WaitForChild("Animator")
local PlayAnimationButton = game.Players.LocalPlayer.PlayerGui:WaitForChild("Annimations").HandsUp
local LoadAnimation = animator:LoadAnimation(HandsUpAnimation)
local Playing = false
PlayAnimationButton.MouseButton1Click:Connect(function()
if not Playing then
LoadAnimation:Play()
else
LoadAnimation:Stop()
end
Playing = not Playing
end)
How could I achieve my second goal? Where the handâs up animation will show the playerâs hands going up and it WONâT reset back to normal playerâs position?
local HandsUpAnimation = game.Workspace.HandsUp
local Humanoid = game.Players.LocalPlayer.Character:WaitForChild("Humanoid")
local PlayAnimationButton = game.Players.LocalPlayer.PlayerGui:WaitForChild("Annimations").HandsUp
local LoadAnimation = Humanoid.Animator:LoadAnimation(HandsUpAnimation)
LoadAnimation.Looped = true
So the animation is looping⌠but going back to itâs original position. Since it goes to the handâs up position then returns back to normal position and repeats the same thing over and over.