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