of     1   

wfge7
#34953841Tuesday, October 05, 2010 6:03 PM GMT

I need help creating a script.If someone could help me by either post a way of doing it or give a link or two to wiki pages that might help. Basically I need help creating a script which reacts differently to two different teams but I don't know how to design it that 1 team teleports to one area while another teams teleports to a diffrerent area(a battle ground).Don't say spawns because they are going to be for teleporting the player back to the waiting room. Any help would be appreciated.Thanks.
wfge7
#34955325Tuesday, October 05, 2010 6:52 PM GMT

Anyone?
ss1122
#34955558Tuesday, October 05, 2010 6:59 PM GMT

[ Content Deleted ]
wfge7
#34957542Tuesday, October 05, 2010 7:47 PM GMT

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.
wfge7
#34992875Wednesday, October 06, 2010 1:21 PM GMT

Anyone know whats wrong with the above script?
ss1122
#35047463Thursday, October 07, 2010 7:28 PM GMT

[ Content Deleted ]
abx1
#35047721Thursday, October 07, 2010 7:34 PM GMT

tc1=BrickColor.new("Lime green"),tc2=BrickColor.new("Really red") tp1=Map.EvilSpawn.Position,tp2=Map.GoodSpawn.Position g=game.Players:GetChildren() for i=1,#g do if workspace:findFirstChild(g[i].Name) ~= nil then if g[i].TeamColor==tc1 then workspace[g[i].Name]:MoveTo(tp1) end if g[i].TeamColor==tc2 then workspace[g[i].Name]:MoveTo(tp2) end end end
wfge7
#35104362Friday, October 08, 2010 9:57 PM GMT

Thanks abx1 it worked. Sorry ss1122 but I only learned about declaring scripts an hour ago. Still thanks for your help. If the mods want to close this due to my question being answered go ahead.
bloob827
#35208323Sunday, October 10, 2010 12:37 PM GMT

woryer755
#35211407Sunday, October 10, 2010 1:56 PM GMT

im trying to make a black screen when killed how do i do it?
wfge7
#35212348Sunday, October 10, 2010 2:14 PM GMT

@bloob was it really neccassary to link to a forum on the forum it links to. Also can someone help me here http://www.roblox.com/Forum/ShowPost.aspx?PostID=34954184
Robert00001
#35213829Sunday, October 10, 2010 2:40 PM GMT

Try this script But sure to make the Parent of the script a SceenGui in StarterGui and Make a Black Sceen with a frame and the Black Sceen's Visibility is false: while true do if script.Parent.Parent.Parent.Character.Humanoid.Heath == 0 then script.Parent.BlackScreen.Visible = true end wait() end
Robert00001
#35214246Sunday, October 10, 2010 2:47 PM GMT

Sorry i meant Health

    of     1