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

In depth explanation of the new In game CSG API?

Asked by 5 years ago

I just discovered the In game CSG API just a few days a go, I immedietely had a idea to make use of it with the creation of see htrough bullet holes here is a snippet of the script

Local subtractPart = Instance.New("Part",game.workspace)
Local NewUnion = Part:SubtractAsync({subtractpart})
NewUnion.Parent = Part.Parent
subtractPart:Destroy()
Part:Destroy()

The subtractPart is cancollide off, unanchored ,transperancy set to 1 and is a block, the Part is anchored cancollide on , transperancy set to 0 and is a block. this is how my script is suppose to work: the ray returns the surface vector3 it hits with a value of one ex: (0,0,1) i then use that value and add it to my subtractpart so it moves to the surface where the ray hit (tested, it works) and then i offset the subpart by half of it lenth so it is ubmerged in the Part, then i execute the subtract asnyc function as of above. but the script won't seem to work and i followed the directions on the dev page on roblox, It might be because i did not have full access to the page and the other api pages, when I try to go on the website it redirects me to a page with a noob saying "Opps!". so if any of you knows alot about the API or knows the solution please reply with a complete explanation on how to use the In game CSG API or the solution. (sorry if this is abit poorly qwriten but im in a hurry ty)

0
Oop s forgot to add it gave no errors in the output when run XXDLOLXDDILMOA 55 — 5y
0
Is it possible that the subtract happened inside "Part" sheepposu 561 — 5y
0
What do you mean by that? XXDLOLXDDILMOA 55 — 5y

Answer this question