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
![image](http://devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/4X/b/f/f/bff325b8290dc42a6995c0bb82360d9dd2ab7d6e.png)
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)