so i have a cat game called "Eaten By Cats!" by SethPaw, and I want there to be a mechanic where if you are already a poop and you get eaten again, the cat's mouth explodes. the mechanic i am done with is the poo mechanic, where you turn into poo when digested by the cat. but I cant quite get the explosion mechanic working. what happens is... nothing. i can get eaten and become a poo, but sadly the explosion thing doesn't do anything, poo mesh or not.
function onHit(hit) if (hit.Parent.Head.Balloon:FindFirstChild("Mesh")~=nil) then local exp = Instance.new("Explosion") exp.Position = script.Parent.Position end end
script.Parent.Touched:connect(onHit)
What's the problem!!?? link to the unfinished game: https://www.roblox.com/games/735444651/Eaten-By-Cats

1 comment
Setting parent then properties slows down game time - set properties then parent. Also put it directly into workspace.