Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how would I get the playerlist? because it says argument 3 when calling the table.

Asked by 4 years ago
01```lua
02    elseif Type == "Contract" then
03        local Data = game.ServerScriptService.Data_Handler.DataList:FindFirstChild(Player.UserId)
04 
05        if Data.CurrentContract.Value == "None" then
06            local ChosenPlayer = nil
07            local PlayerList = {}
08 
09            for _, player in pairs(game.Players:GetPlayers()) do
10                if player ~= Player then
11                    PlayerList[#PlayerList + 1] = Player
12                end
13            end
14 
15            if #PlayerList > 0 then
View all 34 lines...

Answer this question