Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My scripts wont replicate when cloned for some reason?

Asked by 4 years ago

So I have made a GUI that has a couple of buttons in it. Let's say there are 3 buttons in it. Each button you press, you will spawn with a script that whenever you press 'Z' an animations will play. So for example if I pressed button1, it will give me a wave anim when I press Z, if I press button2, it will give me a jump anim when I press Z, etc. It works fine when I just put the anim script on StarterCharacterScripts. But when I put it on replicatedstorage, then cloning it to the player once the a button is pressed, and when I press Z, the animation will only play client-sided, when it was server-sided before?

1
Player animations should all be done in a local script as the player will replicate the change. User#5423 17 — 4y
0
^^, this also reduces lag and is more efficient I believe. You should also use BodyMovers for a player like a BodyGyro or BodyPosition on the client instead of the server ScrubSadmir 200 — 4y
0
^^, this also reduces lag and is more efficient I believe. You should also use BodyMovers for a player like a BodyGyro or BodyPosition on the client instead of the server ScrubSadmir 200 — 4y
0
The functionality of BodyMovers is deferred to the physics engine, and thus they're always applied by whatever the NetworkOwner of the object is. It doesn't matter where it's instantiated. It also doesn't matter if it's replicated if it still exists on the NetworkOwner. Travington 0 — 4y
0
I know. It’s just that because the animations wont replicate server sided shanelaw12 64 — 4y

Answer this question