I try to do it but it only apply it to one person heres my code:
local T = false
local S = script:WaitForChild("Sound")
local A = script.Parent.Humanoid:LoadAnimation(game.Players.LocalPlayer.PlayerGui.AnimationsNew.Frame.TextButton.Animation)
game.Players.LocalPlayer.PlayerGui.AnimationsNew.Frame.TextButton.MouseButton1Click:Connect(function()
local Humanoid = game.Players.LocalPlayer.Character.Humanoid
local ActiveTracks = Humanoid:GetPlayingAnimationTracks()
for _,v in pairs(ActiveTracks) do
v:Stop()
end
if(T == false)then
A:Play()
S:FireServer()
T = true
elseif(T == true)then
A:Stop()
S:FireServer()
T = false
end
end)
