.Touched event argument help?
So I've been trying to make a nuke that breaks the joints of whatever it touches
01 | function destroy(brick) |
06 | script.Parent.Touched:connect(destroy) |
07 | script.Parent.Size = script.Parent.Size + Vector 3. new( 1 , 1 , 1 ) |
08 | script.Parent.CFrame = game.Workspace.NukeModel.Nuke.CFrame |
When I run it, it breaks the joints of my character, but does not break the joints of whatever bricks it touches. What's going on there?
EDIT: So, it seems that the function is not being called because I am CFraming the script's parent. Without CFraming it in this way, though, it would teleport above parts it came in contact with, never allowing another object to be inside of it... Work arounds to this?