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