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

resizing without being bothered by other parts?

hi all i have tried finding a solution but i cant find one so i will ask question

when i make a "Size = Vector3.new(0, 0, 0)", expect when the parts change size they get bothered or like teleport above other parts they touch while they grow, how do i get past this?

7 comments

0

Re-name it.

0

what?

2

just like you should re-name your account OHHHHHhhhhhhh

0

waht

0

Why is this supposedly a bad post? He didn't break any rules... I understand what he is getting it though. If no one knows what he is trying to say, I think he is trying to tell us that when he resizes something with a script, if it overlaps with another, it will teleport to the top of it.

0

I understood it perfectly.

0

His name was too Sexual, and This is a Child-friendly zone.

1 answer

The way I get around this is copy the CFrame before you resize it. And then set the CFrame to the copied CFrame. CFrame can go through blocks but Position doesn't I really like CFrame better but using Position does have its perks

EXAMPLE CODE:

local oldcframe = part.CFrame
part.Size = Vector3.new(25, 5, 50)
part.CFrame = oldcframe

That will return the brick to its original position after you resize it.

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