of     1   

Fusion_Swarly
#164092121Tuesday, June 09, 2015 11:29 AM GMT

I'm making a script that chooses a random Player and makes them DJ, But It won't work! Can someone please help? local Set = game.Workspace["DJ Set"] local DJName = Set.CurrentDJ local Teleport = Set.Teleport local Players = game.Players:GetPlayers() DJName.Value = "Choosing New DJ" while true do wait(15) local DJ = math.random(1,#Players) DJName.Value = DJ.Name DJ:MoveTo(Teleport.Position + 0,3,0) wait(160) DJName.Value = "Choosing New DJ" end Here's the Output. 06:24:30.872 - ServerScriptService.DJChooser:11: bad argument #2 to 'random' (interval is empty) 06:24:30.875 - Script 'ServerScriptService.DJChooser', Line 10
championbuilder
#164092542Tuesday, June 09, 2015 11:44 AM GMT

idk if this'll work, gotta go to college. count = 1 for _,v in pairs(game.Players:GetChildren()) do if count > 1 then wait(160) count = 1 DJName.Value = "Choosing new DJ" else count = count + 1 wait(15) DJName.Value = v.Name v.Character:MoveTo(Teleport.Position) end end

    of     1