Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why does Server & Client Model Position Does not Match After WeldConstraint?

So here's what I'm doing... I'm dragging a model or two around my world using physics and thinking I'm making great progress on an awesome game when I realize that after I do a WeldConstraint on a crate (model of a crate) to the back of a pickup truck, the crate position is completely out of sync with the server. I admit I was doing the constraint and dragging from a local script (BAD.... but it was working fine for dragging and positioning, so why does it have to break now... :( )

I'm setting up an event to do the weld from a ServerScript, to see if that solves all the problems...But is this a typical issue? Why did dragging work and all was fine until I did the WeldConstraint? Life would be so easy for me if things stayed in sync..

Thanks in advance for your help....

-Jason

1 answer

Okay, nevermind, I figured it out. I had to call a server event to remove the WeldConstraint, and make sure that the Weld was taking place from a server script (which it was ). So at the moment, its working perfectly.

I guess I'll leave this question here in case it helps someone else. This problem has driven me nuts, and I finally fixed it after a bit of sleep, and readdressing the issue.

This discussion is preserved as it was. New answers, comments, and votes are closed.