1. What do you want to achieve? Keep it simple and clear!
I want to achieve a working animation replicated on all clients.
2. What is the issue? Include screenshots / videos if possible!
Currently, when the driver of my tram presses ‘‘open doors’’, the animation will only replicate if you’re sitting inside the tram. And it does appear in the server to work too.
3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I looked up countless of topics, and as a result I made changes such as the priority of the animation and making the animation group-owned, they definitely made the animation work on the server, though I can’t seem to find what’s wrong on the client.
local animation = script:WaitForChild('Animation')
local humanoid = script.Parent:WaitForChild('AnimationController')
local AnimationTrack = humanoid:LoadAnimation(animation)
while wait(1) do
if script.Parent.Parent.Driver.Doors.Value == true then
AnimationTrack:Play()
wait(3)
AnimationTrack:AdjustSpeed(0)
repeat wait(1)
until script.Parent.Parent.Driver.Doors.Value == false
AnimationTrack:AdjustSpeed(1)
wait(3)
AnimationTrack:Stop()
end
end
Thank you in advance!