It says bad argument on the variables every time because it is not created saying an error of It supposed to be a table, So I need to know if it good to go.
EDIT 1 Could of Sword I posted the code
[[-----------------------]]
------[[VARIABLES]]--------
[[-----------------------]]
for i, v in pairs(game.Players:GetChildren()) do
local Player = v.Character:findFirstChild('Humanoid')
end
for i, v in pairs(game.Workspace:findFirstChild('Spleef_Plates')) do
local Brick = v:GetChildren{'Plate1',"Plate2","Plate3","Plate4","Plate5","Plate6","Plate7","Plate8","Plate9","Plate10",'Plate11',"Plate12","Plate13","Plate14","Plate15","Plate16","Plate17","Plate18","Plate19","Plate20","Plate21","Plate22","Plate23","Plate24","Plate25","Plate26","Plate27","Plate28","Plate29","Plate30",'Plate31',"Plate32","Plate33","Plate34","Plate35","Plate36","Plate37","Plate38","Plate39","Plate40",'Plate41',"Plate42","Plate43","Plate44","Plate45","Plate46","Plate47","Plate48","Plate49","Plate50"}
end
---------------------------------------------------------------------------------------------------------------------------------------------
function wait_for_people()
h = Instance.new("Hint")
m = Instance.new("Message")
if game.Players.NumPlayers ~= 6 then
h.Parent = game.Workspace
elseif h.Parent == game.Workspace then
h.Text = "There must be 6 Players to Start the Game"
elseif game.Players.NumPlayers == 6 then
m.Parent = game.Workspace
elseif m.Parent == game.Workspace then
m.Text = "The Server is ready, Teleporting to game."
wait(15)
h:Destroy()
wait(15)
m:Destroy()
end
end
function teleport_people()
local point = Vector3.new()
for i,v in pairs(game.Players:GetChildren()) do
if v.Character then
v.Character:MoveTo(point+Vector3.new(math.random(-10, 10)),0,math.random(-10,10))
end
end
end
function tools()
if game.Workspace.SpawnLocation.Touched == v.Character.Touched
then v.Character.Touched = true
elseif game.Lighting:GetChildren() == x
then x:Clone().Parent = StarterPack
end
end
function Map_Time_Limit()
MapTimeLimit = 1200
TotalTime = 1200
if game.Workspace.SpawnLocation.Touched == v.Character.Touched.SpawnLocation then
h = Instance.new("Hint")
h.Parent = game.Workspace
h.Text= "Time Limit".." "..MapTimeLimit
if MapTimeLimit <= TotalTime and MapTimeLimit > 0 then
wait(1)
MapTimeLimit = MapTimeLimit - 1
wait(TotalTime)
h:Destroy()
end
end
end

1 comment
Post the code...