Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make this make no craters in the terrain?

Here's the scripts to the pellets.

wait(3) --Code 1
                g = Instance.new("Explosion") 
                g.Parent = game.Workspace 
                g.Position = script.Parent.Position 
                g.BlastRadius = 5
                g.BlastPressure = 100000	


script.Parent:remove()
--Code 2

pellet = script.Parent


function onTouched(hit)
	humanoid = hit.Parent:findFirstChild("Humanoid")
	if humanoid~=nil then
		g = Instance.new("Explosion") 
                g.Parent = game.Workspace 
                g.Position = script.Parent.Position 
                g.BlastRadius = 5
                g.BlastPressure = 1000
                pellet:remove()
	       else
                script.Parent.PelletScript2.Disabled = false
                script.Parent.PelletScript:remove()	
	end
end



connection = pellet.Touched:connect(onTouched)


1 answer

✓ Accepted answer

Include this amongst the "g." code that sets up the explosion:

g.ExplosionType = Enum.ExplosionType.NoCraters

1 comment

0

Alright, thanks! :D

This discussion is preserved as it was. New answers, comments, and votes are closed.