I am trying to make a game but nothing but this gives me error so that confuses me and i dont know how to fix it
Heres the script:
local Tycoons = ("")
local Teams = game:GetService("Teams")
local Settings = require("script.Parent.Settings")
local BC = BrickColor
local storage = Instance.new("Folder",game.ReplicatedStorage)
storage.Name = "PlayerMoney"
Instance.new("Model", workspace).Name = "PartStorage"
function returnColorTaken(color)
for i,v in pairs(Teams:GetChildren()) do
if v:IsA("Team") then
if v.Teamcolor == color then
return true
end
end
end
return false
end
if not Settings("AutoAssignTeam") then
local TeamHire = Instance.new("Team", Teams)
TeamHire.TeamColor = BC.new("White")
TeamHire.Name = "For Hire!"
end
for i,v in pairs (script.Parent:WaitForChild("Tycoons"):GetChildren()) do
Tycoons(v.Name) = v.Clone()
if returnColorTaken(v.TeamColor) then
local newColor:
repeat
wait()
newColor = BC.Random()
until returnColorTaken(newColor) == false
v.TeamColor.Value = newcColor
end
end
end
Got any ideas???

2 comments
Maybe where you have "newColor:". I'm not sure if roblox lua supports colons.
Not in that case, no.