It didnt work.
Team 1 color is Lime green and teams 2 color is Really red.
Map 1 is designed like this
Map1
--Part
--GoodSpawn
--EvilSpawn
Heres my script so far.
--Wfge7s tournament script.
---------------------------Games messages------------
wait(10)
M=Instance.new("Message")
M.Name="Games Messages"
M.Text=""
M.Parent=game.Workspace
-------------------------------Games Hints-------------
H=Instance.new("Hint")
H.Name="Games Hints"
H.Text=""
H.Parent=game.Workspace
--------------------------Tagging-------------------------
MapAmount=1
MapChooser=math.random(1,MapAmount)
print(MapChooser)
if MapChooser ==1
then
Map=game.Lighting.Map1:Clone()
Map.Parent=game.Workspace
print("Map1 Loaded")
M.Text="Map Chosen"
H.Text="Chosen Map is 'Test Map'"
wait(3)
M.Text=""
H.Text=""
end
TeamColor1 = BrickColor.new("Lime green") -- Change to the teamcolor of team 1.
TeamColor2 = BrickColor.new("Really red") -- Change to the teamcolor of team 2.
Teleportpad1 = Map.EvilSpawn -- Change it to the plate team 1 must be teleported to.
Teleportpad2 = Map.GoodSpawn
function SplitTeleport()
for Index, Player in pairs(Game:GetService("Players"):GetChildren()) do
if Player:IsA("Player") then
Character = Player.Character
if Character then
if Player.TeamColor == TeamColor1 then
Character:MoveTo(Teleportpad1)
elseif Player.TeamColor == TeamColor2 then
Character:MoveTo(Teleportpad2)
end
end
end
end
end--Use for the teleporting bit.
|