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

How to fix animations not playing on the server?

Asked by 4 years ago
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.

1 answer

Log in to vote
0
Answered by 4 years ago

it could be because your script is a local scrip. try either doing some RemoteEvent action

Ad

Answer this question