I Current working on a part that when you stand in exploding in a part, heres the script

script.Parent.Touched:Connect(function(hit)
	local hrp = hit.Parent:FindFirstChild("HumanoidRootPart")
	local h = hit.Parent:FindFirstChild("Humanoid")
	if h ~= nil then
		for i = 0, 5, 1 do
		wait(0.55)
			local ee = Instance.new("Explosion")
			ee.Position = CFrame.new(Vector3.new(math.random(-21.982, 2.185), math.random(1.044, 7.344), math.random(-34.384, -69.316)))
		 ee.Parent = hrp
		ee.ExplosionType = Enum.ExplosionType.Craters
			ee.BlastPressure = 50
	   end
	end
end)

I don't know why it dosen't work for me. i hope i get some help!

2 comments

0

Godzilla just tried to read your description, had a stroke & died.

0

I have to report you?