so i'm currently working on a game and i am good at animation but i need to know how to do this properly.
so i got 3 animations Sit(Intro, Not Looped And Pretty Much Sitting Down And Then Plays The Cycle.) Sit(Cycle Or Loop, Then When Player Clicks The Button Again it Plays The 3rd Animation) Sit(Outro, Not Loopeed Getting Up.)
so what i need help with is with a toggable button. pretty much i want a button that plays the intro when clicked and then plays the cycle animation and then when the player clicked it again it plays the outro.
again i suck at scripts all i really know how to do is make doors, proximity prompts that makes the player sit. and other crappy things. so if anyone can PLEASE help me :)
local Intro = "rbxassetid://" local Cycle = "rbxassetid://" local Outro = "rbxassetid://" local cycle = false script.Parent.MouseButton1Click:Connect(function() if cycle == false then cycle = true local Player = game.Players.LocalPlayer local Track = Player.Humanoid:LoadAnimation(Intro) Track:Play() wait(2) local Track2 = Player.Humanoid:LoadAnimation(Cycle) Track2:Play() end