local Bomb = script.Parent
Bomb.Anchored = true
local function explode()
local explosion = Instance.new(‘Explosion’)
explosion.Parent = game.Workspace
explosion.Position = Bomb.Position
end
Part.Touched:Connect(explode)
local Bomb = script.Parent
Bomb.Anchored = true
local function explode()
local explosion = Instance.new(‘Explosion’)
explosion.Parent = game.Workspace
explosion.Position = Bomb.Position
end
Part.Touched:Connect(explode)
local Bomb = script.Parent
Bomb.Anchored = true
local function explode()
local explosion = Instance.new("Explosion")
explosion.Parent = game.Workspace
explosion.Position = Bomb.Position
end
Bomb.Touched:Connect(explode)
See if this works and this is my own version:
local part = script.Parent
part.Anchored = true
part.Touched:Connect(function(player)
if player.Parent:FindFirstChild("Humanoid") then
local explosion = Instance.new("Explosion")
explosion.Parent = game.Workspace
explosion.Position = part.Position
end
end)
should be “explode” not ‘explode’ pretty sure.
Still should work regardless? It might also because of the way you’re ordering your explosion properties but I’m not sure
It might be because you didn’t define Part. With that, you should be parenting the explosion after setting all its properties.
local Part = script.Parent; Part.Anchored = true
Part.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local Explosion = Instance.new("Explosion", Part);Explosion.Position = Part.Position
end
end)
This should work, let me know if theres any errors.
I think explosions only work when parented to workspace
I just Updated my previous Comment, I also tested it just now and it works. Also because the parent of the part is the workspace, that’s why it works.
Thanks, it works
thanks it works