So I am editing an old SW plane of mine to make some of the door features more prettier.
I am tweening doors on the server and the function executes and prints but the doors dont move, they arent anchored or anything. can someone help?
VE.doors.OnServerEvent:Connect(function(player, holder1,name1,safe, holder2,name2, bool)
local Mover = player.Character.LAAT[holder1]:FindFirstChild(name1)
local goBack = player.Character.LAAT[holder1]:FindFirstChild(safe)
local ToPart =player.Character.LAAT[holder2]:FindFirstChild(name2)
if bool == true then
tweenservice:Create(Mover, TweenInfo.new(), {CFrame = ToPart.CFrame}):Play()
print("doneopened")
end
if bool == false then
tweenservice:Create(Mover, TweenInfo.new(), {CFrame = goBack.CFrame}):Play()
print("doneclosed")
end
end)