Tween not replicating to client

Hello. A tween that rotates part of this model isn’t working for seemingly no reason. It does not error.

https://gyazo.com/e83d0ef451bb98cb6b2a5e6376e4e22f ~ Server Sided & Intended Perspective
https://gyazo.com/08703d16bd0b1b297daaad22b6b2e7a7 ~ Client Sided Perspective

image Model’s Hierarchy (selection is spinning part)

sc (the script that does the rotation)

local TweenService = game:GetService("TweenService")

while true do
	local easuihik5 = math.random(75,325)/100
	local Spin = {}
	Spin.Orientation = 	Vector3.new(math.random(0,720),math.random(0,720),math.random(0,720))
	local SpinIn = TweenInfo.new(easuihik5, Enum.EasingStyle.Linear)
	SpinT = TweenService:Create(script.Parent.Parent.Plates, SpinIn, Spin)
	SpinT:Play()
	wait(easuihik5)
end

The bobbing is not a tween; it’s an animation.
I don’t know of any problems with the script, as there are no warnings or errors.

There are a few bad practices here.

  • Using wait() instead of task.wait()
  • Performing the script that does the rotation on the server in the first place. This should be done on the client.

Most notably, following the 2nd bullet I mentioned is likely to resolve this issue.

1 Like