For some reason, my tween - which involves the rotation of a part - fails to execute when I play in Studio. Conversely, when I’m “running” Studio, the tween plays as expected. I don’t know what the problem is, and I would appreciate any help!
Below are some illustrations of this issue:
Script:
local TweenService = game:GetService("TweenService")
local TI = TweenInfo.new(5, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
local Eye = script.Parent.Eye
local LeftTween = TweenService:Create(Eye, TI, {Orientation = Vector3.new(-1.03, -75.04, -176.14)})
local CentreTween = TweenService:Create(Eye, TI, {Orientation = Vector3.new(0, -90, -176)})
local RightTween = TweenService:Create(Eye, TI, {Orientation = Vector3.new(1.03, -104.96, -176.14)})
while wait() do
LeftTween:Play()
wait(10)
CentreTween:Play()
wait(10)
RightTween:Play()
wait(10)
end
There’s some information needed in order to understand what is happening. There seems to be an issue with replication between server and client. The script should operate as normal.
On the side note, switch out wait() with task.wait() method.
Can someone confirm for me whether the client is potentially overloaded with tasks (other than the script illustrated in my post) that would be better suited for the server?