How To Stop Script During Intermission?

Hello, as you can see im a noob scripter.
Well I have 2 issues:
1. How can i stop this Script during the intermission?

local noobieWeapon = game.ServerStorage.ClassicSword

local plrs = game.Players

local hiders = {}

while wait(160) do

local chosen = plrs:GetChildren()[math.random(1, #plrs:GetChildren())]	
		
chosen.PlayerGui.Picker.Background.RoleGiven.Text = "Noobie"
chosen.PlayerGui.Picker.Background.RoleGiven.TextColor3 = Color3.fromRGB(255, 0, 0)
				
chosen.PlayerGui.Picker.Background.Visible = true

noobieWeapon:Clone().Parent = chosen.Backpack

		
for i, plr in pairs(plrs:GetChildren()) do
	
	if plr ~= chosen then
		
		table.insert(hiders, plr)

		plr.PlayerGui.Picker.Background.RoleGiven.Text = "Hider"
		plr.PlayerGui.Picker.Background.RoleGiven.TextColor3 = Color3.fromRGB(0, 255, 0)
		
		plr.PlayerGui.Picker.Background.Visible = true
		
	end	
end	

end

2. How can I destroy the sword after a round?

Thx to everyone!
Yoshi :slight_smile:

2 Likes
  1. while not intermission do
    wait(160)
  2. Just destroy the copy, ur tool is just a clone so do: noobieweapon:Destroy()
1 Like

Try to disable the script then re enable?

As in the script disable at a time