for i, v in pairs(oldChar:GetChildren()) do if v:IsA('BaseScript') then local basescript = v:Clone() basescript.Parent = player.Character print(basescript.Parent) end end
I have the above code that, when you change your character, all scripts that were previously in the player model are transferred to the new one. It works great, but the animations do not play on the server.
https://gyazo.com/ff32255f2d169e1a0af6f7b86b5864f9
The first time in the gyazo I sent above, I used a custom character. The animations loaded on the client(left) but was not seen on the server(right).
Second time is not changing the player model. You can see the animation on both the client(left) and server(right).
I am very sure that the above script is the cause of this, because the animate script that I am using is the default ROBLOX one. And also, the scripts are sent when the new character model is set as the character.
it could be because your script is a local scrip. try either doing some RemoteEvent action