Tweening part also turns parts welded to it on server, but it doesn't work on the client

This kinda hovers between scripting and building support.

I have a script that tweens a door open when a player walks near it, and it works fine on the server, but on the client it doesn’t tween the door!

All the door parts are welded to a hingepart, and the hinge is tweened to make an opening effect.

On the server the welded parts follow the hingepart fine, but on the client the hingepart rotates but the welded parts just stay put.

I need help with this because tweening the door on the client looks a million times better without the delay or the door looking twitchy.

This is the script on the client:

Literally identical script, same model, same welds, same properties, except script is on server:

Could you send the code of the script here?

Without the code, I really have no idea why it’s not working when placed on the client.

This should be in #help-and-feedback:scripting-support I’m pretty sure.

The script works just fine both on the client and the server, and I know the part rotates because it’s selected. The script isn’t the issue, the problem is the welds won’t work on the client.

I managed to make a fix where I simply removed the welds and manually adjusted the cframes of all the parts to the hingepart in a renderstepped call.

for i,part in pairs(door.Weld:GetChildren()) do
	part.CFrame = hingepart.CFrame:ToWorldSpace(original[tonumber(part.Name)])
end

Hacky but it works :confused:

1 Like