Hello, I've been trying to figure out how to do this for a while for my new game. So far I've come up with
script.Parent.ChildAdded:connect(function(instance) print(instance.Name .. " added to the workspace") end) Instance.new("Part", script.Parent) --> Part added to the Workspace
this means when my part experiences body force, it prints "added to the workspace". I just need help on making Cancollide = false. Thank you.
If you wish you want to detect when a part is hit by an explosion, do this:
-- define explosion explosion.Hit:Connect(function(part, distance) -- part is the part that is hit by the explosion, and distance is how far away the part is from the explosion -- code goes here end)
If you wish to simply make any part hit by the explosion disappear, use this:
-- define explosion explosion.BlastPressure = math.huge -- Make it so that the explosion applies an infinite amount of force to any parts caught in the blast radius.