I am making select player and then you can sync animation with same track of selected player
and if you click on unsync you unsync with that player
there was only 1 error when i click on sync its show error

local Players = game:GetService("Players")
local Player = game.Players.LocalPlayer;
script.Parent.Frame.Unsycn.MouseButton1Click:Connect(function()
game.ReplicatedStorage.SyncDance:InvokeServer(nil)
script.Parent.Enabled = false
print("fire = nil")
end)
script.Parent.Frame.Sycn.MouseButton1Click:connect(function()
local target = script.Parent.Frame.tplr.Text
local victim = game.Players:GetPlayerFromCharacter(target)
if victim then
game.ReplicatedStorage.SyncDance:InvokeServer(victim)
else
print("error")
end
script.Parent.Enabled = false
print("fire = "..target)
end)