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

How do I resize a part without the part going on top of the object it is inside of?

Asked by 7 years ago

I am making a sphere get bigger but when it collides with something it goes on top of it.

0
You would use CFrame for that purpose; it's an absolute position (I guess..?), while with Position, it calculates if there's an object, then set the position to be above the object. (CFrame stands for Coordinate Frame.) Here's the WIKI document in case I didn't explain clear enough. (I recommending looking it up anyway, as my information may be incorrect.) TheeDeathCaster 2368 — 7y
0
I assume you're using a loop to make the sphere become larger in size. Once you've familiarized yourself with CFrame, using the link TheeDeathCaster provided, you can then simply set the sphere's CFrame to remain constant as the size increases with each loop. SteamDemand 312 — 7y

Answer this question