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

Spawn button doesnt spawn anything to the spawner whats wrong?

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

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