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

Spawn button doesnt spawn anything to the spawner whats wrong?

Asked by 2 years ago
script.Parent.Touched:Connect(function(hit)
          if hit ~= game.Workspace.Spawner then   -- the ~= means "Does not equal"
                        local EX = Instance.new("Explosion")
                           EX.DestroyJointRadiusPercent = 1
                                EX.Position = script.Parent.Position
                                EX.BlastPressure = 10
                            EX.BlastRadius = 40
                                        EX.Parent = script.Parent
wait(0.2)
script.Parent:Remove()
                                end
                     end)

And the spawner is not the spawn button just saying

1 answer

Log in to vote
0
Answered by 2 years ago

check if your Bomb is in ServerStorage first

Ad

Answer this question