You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
i want to make the door move smoothly -
What is the issue? Include screenshots / videos if possible!
the door doesnt move smoothly -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
so basically if i open the door, the script will run the door tween(on server script), but its not moving smooth, if i tween it on local script, it moves smoothly, so i think i need to use set network owner, but i cant, because its a model, theres some anchored parts and welded parts.
This is the tween script.
if not FridgeDoorDebounce then
if target.Parent.IsClosed.Value == false then
target.Parent.IsClosed.Value = true
local a = game:GetService("TweenService")
local b = target.Parent.PrimaryPart
local c = TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
local d = a:Create(b,c, {
CFrame = b.CFrame * CFrame.Angles(0,math.rad(-90),0)
})
FridgeDoorDebounce = true
d:Play()
target.Parent.FridgeSound:Play()
for _,d in pairs(target.Parent:GetDescendants()) do
if d:IsA('BasePart') then
d:SetNetworkOwner(game.Players.LocalPlayer)
end
end
wait(0.3)
FridgeDoorDebounce = false
for _,d in pairs(target.Parent:GetDescendants()) do
if d:IsA('BasePart') then
d:SetNetworkOwner(nil)
end
end
end
end
Note: the target is the mouse target(i use mouse target to tween)