local debounce = false
script.Parent.Touched:Connect(function(hit) if hit.Parent and hit.Parent:FindFirstChild("Humanoid") and game.Players:GetPlayerFromCharacter(hit.Parent) and debounce == false then debounce = true local Explosion = Instance.new("Explosion") Explosion.Position = hit.Parent:FindFirstChild("HumanoidRootPart").Position Explosion.Parent = hit.Parent:FindFirstChild("HumanoidRootPart") script.BOOM:Play() wait(3) debounce = false end end)
I want a part to be clicked to activate the explosion and sound thank you if you helped : )

2 comments
Can you please update this question into the code block format? It's stressful to read like this.
I don't know how to do that, could you tell me how?