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

Mad Bloxxer Script Help ?

Asked by 9 years ago

Mad Bloxxer Script Help its says that

contestants = ()  -- expected identifier got ')'
-- Made By Dscpcheatsis10123



local roundTime = 60 * 5
local intermissionTime = 20 
local serverstorage = game:GetService("ServerStorage")  
local replicatedstorage = game:GetService("ReplicatedStorage")  
local debris = game:GetService("Debris")
local remoteEvent = replicatedstorage:WaitForChild("RemoteEvent")
local maps = serverstorage:WaitForChild("Maps")
local mapHolder = game.Workspace:WaitForChild("MapHolder")


while true do 
    -- Map Chooser
    mapHolder:ClearAllChilderen()
    wait(2)
    local allMaps = maps:GetChildren()
    local newMap = allMaps[math.random(1, #allMaps)]
    newMap.Parent = game.Workspace
    wait(2)
    -- wait for contestants
    while true do 
        wait(5)
        contestants = ()
        for _, player in pairs (game.Players:GetPlayers()) do
            if player and player.Character then
                local humanoid = player.Character.WaitForChild("Humanoid")
                if humanoid and humanoid.Health > 0 then
                    table.insert(contestants, player)

                end
            end     
        end
    end
    if #contestants >= 3  then
        break
        else
    end
    -- Chose Bloxxer
    bloxxer = contestants[math.Random(1, #contestants)]
    --Choose Sherif
    sherif =











    end

1 answer

Log in to vote
0
Answered by
Emg14 10
9 years ago

A hint gave it away: Identifier Look at this sample snippet code:

local identifier = value

Now I think what he's trying to do is to make a table like this:

local tableidentifiername =  {}

So the whole code will be:

contestants = {}
view source
01  -- Made By Dscpcheatsis10123
02   
03   
04   
05  local roundTime = 60 * 5
06  local intermissionTime = 20
07  local serverstorage = game:GetService("ServerStorage") 
08  local replicatedstorage = game:GetService("ReplicatedStorage") 
09  local debris = game:GetService("Debris")
10  local remoteEvent = replicatedstorage:WaitForChild("RemoteEvent")
11  local maps = serverstorage:WaitForChild("Maps")
12  local mapHolder = game.Workspace:WaitForChild("MapHolder")
13   
14   
15  while true do
16      -- Map Chooser
17      mapHolder:ClearAllChilderen()
18      wait(2)
19      local allMaps = maps:GetChildren()
20      local newMap = allMaps[math.random(1, #allMaps)]
21      newMap.Parent = game.Workspace
22      wait(2)
23      -- wait for contestants
24      while true do
25          wait(5)
27          for _, player in pairs (game.Players:GetPlayers()) do
28              if player and player.Character then
29                  local humanoid = player.Character.WaitForChild("Humanoid")
30                  if humanoid and humanoid.Health > 0 then
31                      table.insert(contestants, player)
32   
33                  end
34              end    
35          end
36      end
37      if #contestants >= 3  then
            break
            else
        end
        -- Chose Bloxxer
        bloxxer = contestants[math.Random(1, #contestants)]
        --Choose Sherif
        sherif = --Figutre this by yourself or create a new thread pls!
        end
0
Oooops i made i mistake see the line with: contestans = ()? Change that to contestants = {} Emg14 10 — 9y
0
I got the same thing again :/ local spawn[spawnIndex] dscpcheatsis10123 0 — 9y
0
I edited it, it should now work! Emg14 10 — 9y
Ad

Answer this question