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

resizing without being bothered by other parts?

Asked by 9 years ago

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?

0
Re-name it. woodengop 1134 — 9y
0
what? User#8621 0 — 9y
2
just like you should re-name your account OHHHHHhhhhhhh User#11893 186 — 9y
0
waht User#8621 0 — 9y
View all comments (3 more)
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. minikitkat 687 — 9y
0
I understood it perfectly. YellowoTide 1992 — 9y
0
His name was too Sexual, and This is a Child-friendly zone. woodengop 1134 — 9y

1 answer

Log in to vote
3
Answered by 9 years ago

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.

Ad

Answer this question