Tweening ain't working for client

I’ve been trying to make a tweening (a part) on a server script, however when I try it, it can only be visible to server side, but not on the client side, the thing I’m tweening is on workspace and I have no idea how to make it visible to client sided as well so that all the players can see it.

my script:

for i,v in pairs(doors) do
		if v.Name == "DoorLeft" then
			local TweenService = game:GetService("TweenService")

			local part = v

			local tweenInfo = TweenInfo.new(
				2, -- Time
				Enum.EasingStyle.Linear, -- EasingStyle
				Enum.EasingDirection.Out, -- EasingDirection
				0, -- RepeatCount (when less than zero the tween will loop indefinitely)
				false, -- Reverses (tween will reverse once reaching it's goal)
				0 -- DelayTime
			)

			local tween = TweenService:Create(part, tweenInfo, {Position = v.Position - Vector3.new(2.59,0,0)})
			tween:Play()
			
		elseif v.Name == "DoorRight" then
			local TweenService = game:GetService("TweenService")

			local part = v

			local tweenInfo = TweenInfo.new(
				2, -- Time
				Enum.EasingStyle.Linear, -- EasingStyle
				Enum.EasingDirection.Out, -- EasingDirection
				0, -- RepeatCount (when less than zero the tween will loop indefinitely)
				false, -- Reverses (tween will reverse once reaching it's goal)
				0 -- DelayTime
			)

			local tween = TweenService:Create(part, tweenInfo, {Position = v.Position + Vector3.new(2.59,0,0)})
			tween:Play()
		end
	end

help is appreciated! thank you so much for stopping in on this post :smiley:

just use remote events and fire it to all clients

Tried it but it didn’t quite work, I’ll try it again later on

Here this might work

--\\Services//--
local TweenService = game:GetService("TweenService")

--\\Variables//--
local DoorTween = TweenInfo.new(
	2, 
	Enum.EasingStyle.Linear,
	Enum.EasingDirection.Out,
	0,
	false,
	0
)

for _,Part in pairs(doors) do
	if Part.Name == "DoorLeft" then
		local FirstDoorTween = TweenService:Create(Part, DoorTween, {Position = Part.Position - Vector3.new(2.59,0,0)})

		FirstDoorTween:Play()

		FirstDoorTween.Completed:Connect(function()
			FirstDoorTween:Cancel()
		end)
	elseif Part.Name == "DoorRight" then
		local SecondDoorTween = TweenService:Create(Part, DoorTween, {Position = Part.Position + Vector3.new(2.59,0,0)})

		SecondDoorTween:Play()

		SecondDoorTween.Completed:Connect(function()
			SecondDoorTween:Cancel()
		end)
	end
end

Didn’t work unfortunately, it only played at the server side, but not at client even though the part is in workspace.

I have tested it out and it worked fine on client.