Help, my murderer choosing script doesnt work:
local Players = game:GetService("Players") local timer = script.Parent.Current local Max = script.Parent.Max local sound = game.Workspace.RoundStart local chosenJack = game.ServerStorage.ChosenJack local amountOfPlayers local Message = Instance.new("Message") Message.Parent = workspace local weapon = game.ServerStorage.PumpkinAxe while true do wait(1) updateplayeramount() wait(2) if amountOfPlayers == 1 or 2 then script.Parent.Text = "You need atleast 3 people to start the round." else script.Parent.Text = "Game starting in 5" wait(1) script.Parent.Text = "Game starting in 4" wait(0.1) script.Parent.Text = "the one piece is real" wait(0.1) script.Parent.Text = "Game starting in 4" wait(0.8) script.Parent.Text = "Game starting in 3" wait(1) script.Parent.Text = "Game starting in 2" wait(1) script.Parent.Text = "Game starting in 1" wait(1) sound:Play() script.Parent.Text = "Game starting...." wait(3) local isChosen = Players:GetChildren()[math.random(1,#Players:GetChildren())] local clone = weapon:Clone() clone.Parent = isChosen end end function updateplayeramount() amountOfPlayers = #Players:GetChildren() end