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

Animation only taking effect in me?

Asked by
Nep_Ryker 131
5 years ago

So I'm making a game, yes. I made this script that makes you dance at a specific time (but that's a whole other thing), my problem here is that it works, BUT it only works on me. I had me and my friends join in the same server, first we tried that I would join first, then he would join. Found out that it's only affecting me, so I thought it would be that maybe the script only affects to the person who joins first. I checked the code, it couldn't possibly be so. Then, I had my friend join in first, then I joined. AND IT STILL AFFECTED ME ONLY.

I looked into the code further, and I'm just so blurred out. Here is the code:

local humanoid = script.Parent:WaitForChild("Humanoid")
local dancer = humanoid:LoadAnimation(script.dance)

dancer:Play()
wait(10)
dancer:Stop()

The Script is a LocalScript to be specific, every time a player joins, a normal script in Workspace will clone it and put it inside the player.

0
Right I see your point. Why don't you put it in the starter player scripts and see if the same thing happens? Alexander_Ashford 231 — 5y
0
it may be in your cloning script Fad99 286 — 5y
0
I think the cloning script is fine, because the script that makes the player dance also does some other things, like making the camera zoom in and out, and my friend said it was zooming in and out, he just didn't dance like how I did. Nep_Ryker 131 — 5y

Answer this question