I am trying to script two objects colliding together and causing a huge explosion. I currently have the objects tweened and they meet however, I can’t seem to figure out how I would write the code for the objects to collide. Should I use a remote event? My thought process through this collision is that:
local part1 = script.Parent.Part1
local part2 = script.Parent.Part2
if(part1.Touched == part2) then
--make an explosion happen and the parts disappear
How would I make this happen because I know that the touched statement doesn’t work in the fashion that the code that I wrote above does.