script.Parent.Touched:connect(function(hit) if hit.Name == "Left Leg" then script.Parent = Instance.new("Explosion",game.Workspace.Part).ExplosionType == "CratersAndDebris" end end)
So, this is kind of self explanitory, but i'll explain anyway.
I want the part to explode when someone touches it, but.. the Explosion instance spawns in the workspace.. why is that?
Explosions have a Position
property. If you don't set the Position, it uses (0, 0, 0).
local exp = Instance.new("Explosion", workspace.Part) exp.ExplosionType = "CratersAndDebris" -- Set the position: exp.Position = workspace.Part.Position