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

Using the new CSG API to cut parts into 2?

Hello, I have used the CSG API before but from my experience it isn't possible to create 2 parts using just the CSG API and I was wondering how did this person do this and how would I be able to replicate it? Gyazo

Simply using SubtractAsync will not do it, cos that just creates a union, the person said that he did it using CSG but I am sure there are more steps to this that I do not know of, so how would I go around making 2 parts out of the union that's been cut?

3 comments

0

I didn't even know you could CSG with scripts, so I am a total caveman in this situation, so I'll think within my knowledge, but outside the box. So, shouldn't you have 4 parts, 2 to make the one sliced union?

0

e.g. once a part gets targeted for a slash, make 2 copies. Then use the first part & the first copy to make one union

0

Forgot I couldn't indent -- as I was saying, then utilize the last copy by doing this: get a copy of the first slashed union then union it with the last copy to make one final union

1 answer

First clone the part you're subtracting from. Then do the subtraction. Then subtract the new part you've made from the clone. You'll have two parts that, together, make the shape of the original part.

1 comment

0

Yo, this thing is 6 months old and I already figured it out a while ago but I appreciate you answering.

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