#any help with explosions?
1 messages · Page 1 of 1 (latest)
** You are now Level 1! **
Well yeah
What do you not understand
Like what do u need help with
.touched?
for _, part in oven:getdescendants() do if not part:isa("part") then continue end part.anchored = false
local explosion = Instance.new("Explosion")
explosion.BlastRadius = 60
explosion.ExplosionType = Enum.ExplosionType.Craters -- damages terrain
explosion.Position = part.Position
explosion.Parent = workspace
end
^
??
look at the message above
i want every part in the model i have (named StoveOven) to unanchor itself when touched.
for _, part in oven:getdescendants() do if not part:isa("part") then continue end part.anchored = false
part.touched:connect(function()
local explosion = Instance.new("Explosion")
explosion.BlastRadius = 60
explosion.ExplosionType = Enum.ExplosionType.Craters -- damages terrain
explosion.Position = part.Position
explosion.Parent = workspace
end
end)