So I have this script, where if I step on the part, an explosion appears in the part. Here's the code:
local part = game.Workspace.Boom
local db = false
function Boom(hit)
local human = hit.Parent:FindFirstChild("Humanoid")
local explosion = Instance.new("Explosion", game.Workspace)
if not db then
if human then
db = true
wait(2)
explosion.Position = part.Position
wait(2)
db = false
end
end
end
part.Touched:connect(Boom)
The problem is, the explosion doesn't appear in the brick. It appears in the baseplate instead. Any suggestions?

1 comment
Thanks!