You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
Stop the animations from playing if another anim is also played.
What is the issue? Include screenshots / videos if possible!
Animations overlap.
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried to make a script that would stop any other anim if played, but that went horribly wrong.
Heres are the scripts:
Griddy/Pigeon Button Griddy is a Core priority as it was animated using live animation. Pigeon is an Action1 Priority
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local playing = false
local anim = script:FindFirstChild("Animation")
local button = script.Parent
local lod = char:WaitForChild("Humanoid"):LoadAnimation(anim)
button.MouseButton1Click:Connect(function()
if playing == false then
playing = true
lod:Play()
script.Sound:Play()
char.Humanoid.WalkSpeed = 5
else
script.Sound:Stop()
char.Humanoid.WalkSpeed = 16
playing = false
lod:Stop()
end
end)
Little Brother/Kneeslide Button Little Brother is Action Priority Kneeslide is Movement Priority
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local playing = false
local anim = script:FindFirstChild("Animation")
local button = script.Parent
local lod = char:WaitForChild("Humanoid"):LoadAnimation(anim)
button.MouseButton1Click:Connect(function()
if playing == false then
playing = true
lod:Play()
else
playing = false
lod:Stop()
end
end)
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
basically yeah that’s it. and the _ stands for the index which is the location of the animation in the table but as we don’t need it in our code we use _ instead of using a variable name. Tell me if I’m not clear