Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Why does a model float when it falls in the clientside?

Asked by 3 years ago

i have a welded model and all the parts are welded to the primarypart, i unanchor the primarypart. it falls, but it also floats. So if i make a model fall clientsided, it does fall but it also floats. But it falls normally when its serversided. Why does it float clientsided?

0
Unexpected behavior wot. minhnormal 15 — 3y
0
Probably because it lagging. DiamondComplex 285 — 3y
0
well it cant be lagging, because when i touch it again, it unfloats and then floats again. and i tested it with multiple people jdm4llfem8 94 — 3y
0
this is expected behavior (in a way) if its the client. Im gonna try and find a way to make it not float DollorLua 235 — 3y

1 answer

Log in to vote
1
Answered by
DollorLua 235 Moderation Voter
3 years ago

Alright I found the issue

This is a problem with the part's Network Ownership Here is a devhub tutorial on it

Basically when a moving part gets far enough a way from a moving object controlled by the client, the network ownership switches from the player to the server. This then causes the parts to freeze.

To prevent this, inside a script you could run BasePart:SetNetworkOwner(player) where player is the player object (the user) you are giving network ownership to (in this case, the client)

If you replace the player parameter with nil or leave it empty network ownership will go to the server.

0
ohmy god thank you so much jdm4llfem8 94 — 3y
Ad

Answer this question