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

Problems with MeshPart.Position not moving it ontop of other parts when it collides?

Asked by
blowup999 659 Moderation Voter
5 years ago

I have started in ROBLOX Lua for the first time in about a year.

I'm trying to run workspace.MeshPart.Position = workspace.Part.Position

However, it used to work such that the MeshPart would automatically move on top of the part.

Now, the MeshPart is halfway inside the part.

Has ROBLOX been updated so that Position works the same as CFrame? How do I fix this without adding both parts sizes to the Position?

0
Do you have collisions turned on? MegaManSam1 207 — 5y
0
Yes, it doesn't work in studio or in game. blowup999 659 — 5y
0
I don't use MeshParts but is the selection box smaller than the actual part? MegaManSam1 207 — 5y
0
I used the CollisionFidelity property of MeshPart to make it so the selection box is the same as a normal box all the way around the largest distance in each axis blowup999 659 — 5y
View all comments (2 more)
0
Those are the only things I could think of, sorry I couldn't be more help. MegaManSam1 207 — 5y
0
then you have to manually set the meshpart's CFrame above the part based on the sizes hellmatic 1523 — 5y

Answer this question