Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make this make no craters in the terrain?

Asked by 10 years ago

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

Log in to vote
1
Answered by
um3k 10
10 years ago

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

g.ExplosionType = Enum.ExplosionType.NoCraters

0
Alright, thanks! :D TheRings0fSaturn 28 — 10y
Ad

Answer this question