of     471   
chevron_rightchevron_rightchevron_right

totti
#22646Saturday, April 14, 2007 12:58 AM GMT

I have a partial script but I think that I need more to it. Any help would be appriciated greatly. If u need me to post the script I have I will. Thanx Totti
Rombom
Top 100 Poster
#22666Saturday, April 14, 2007 3:06 AM GMT

Post it.
totti
#22692Saturday, April 14, 2007 11:22 AM GMT

k
totti
#22693Saturday, April 14, 2007 11:25 AM GMT

print("Totti's CTF Game!") redflag=script.Parent.RedFlag blueflag=script.Parent.BlueFlag rfpole=redflag.Pole bfpole=blueflag.Pole rfpos=rfpole.Position bfpos=bfpole.Position red_score=game.Workspace.RedScore blue_score=game.Workspace.BlueScore hasred=game.Workspace.HasRed hasblue=game.Workspace.HasBlue hold_red=false hold_blue=false --CAPTURE FLAG function onTouchedRed(part) if(hold_red==false) then local h = part.Parent:findFirstChild("Humanoid") local has = game.Workspace.HasRed if (h~=nil and has.Value=="") then local team = h:findFirstChild("CTFTag") if (team~=nil ) then hold_red=true local msgtext = "" local showmsg = false if (team.Value==0) then --THIS IS RED local flagtag = h:findFirstChild("FlagHolder") if (flagtag~=nil) then showmsg = true red_score.Value = red_score.Value + 1 flagtag:remove() hasblue.Value="" bfpole.CanCollide=true bfpole.Transparency = 0 blueflag.Cloth.CanCollide=true blueflag.Cloth.Transparency = 0 msgtext = "RED SCORED! RED: "..red_score.Value.." to Blue: "..blue_score.Value end end if (team.Value==1) then --THIS IS BLUE local flagtag=Instance.new("IntValue") flagtag.Name = "FlagHolder" flagtag.Value = 1 flagtag.Parent = h hasred.Value = h.Parent.Name rfpole.CanCollide=false rfpole.Transparency = 0.5 redflag.Cloth.CanCollide=false redflag.Cloth.Transparency = 0.5 --TODO: Show that they own it msgtext = h.Parent.Name.." CAPTURED RED FLAG!" showmsg=true end if (showmsg==true) then message = Instance.new("Message") message.Text = msgtext message.Parent = game.Workspace wait(1) message.Parent = nil end wait(1) hold_red=false end end end end function onTouchedBlue(part) local has = game.Workspace.HasBlue if(hold_blue==false and has.Value=="") then local h = part.Parent:findFirstChild("Humanoid") if (h~=nil) then local team = h:findFirstChild("CTFTag") if (team~=nil) then hold_blue=true local msgtext = "" local showmsg = false if (team.Value==1) then --THIS IS BLUE local flagtag = h:findFirstChild("FlagHolder") if (flagtag~=nil) then showmsg = true blue_score.Value = blue_score.Value + 1 flagtag:remove() hasred.Value = "" rfpole.CanCollide=true rfpole.Transparency = 0.0 redflag.Cloth.CanCollide=true redflag.Cloth.Transparency = 0.0 msgtext = "BLUE SCORED! RED: "..red_score.Value.." to Blue: "..blue_score.Value end end if (team.Value==0) then --THIS IS RED local flagtag=Instance.new("IntValue") flagtag.Name = "FlagHolder" flagtag.Value = 1 flagtag.Parent = h hasblue.Value = h.Parent.Name bfpole.CanCollide=false bfpole.Transparency = 0.5 blueflag.Cloth.CanCollide=false blueflag.Cloth.Transparency = 0.5 --TODO: Show that they own it msgtext = h.Parent.Name.." CAPTURED BLUE FLAG!" showmsg=true end if (showmsg==true) then message = Instance.new("Message") message.Text = msgtext message.Parent = game.Workspace wait(1) message.Parent = nil end wait(1) hold_blue=false end end end end rfpole.Touched:connect(onTouchedRed) bfpole.Touched:connect(onTouchedBlue)
totti
#22694Saturday, April 14, 2007 11:26 AM GMT

It doesn't wwork by itself u need teams and flag scripts and other stuff I think...
koopa
#22695Saturday, April 14, 2007 11:58 AM GMT

Yes, i belive you need his other scripts to go with that. Maybe not, but thats what i think. Koopa
totti
#22788Saturday, April 14, 2007 9:52 PM GMT

yah unfortunately i don't have his other scripts
koopa
#22804Sunday, April 15, 2007 12:11 AM GMT

I could possibly give them to you. Koopa
totti
#22810Sunday, April 15, 2007 1:13 AM GMT

that would possibly be cool but message me them please if u could possibly give them to me lol
Dark501
#22885Sunday, April 15, 2007 5:11 PM GMT

just copy paste the reed flag script on the red flag and the blue on the script
totti
#22908Sunday, April 15, 2007 6:49 PM GMT

I dunno if i have all those scripts
jcs810
#102101232Friday, June 21, 2013 4:02 PM GMT

11 lol still a long time secret forum JOIN MY PRIMARY PEOPLE NOWW
jcs810
#102101296Friday, June 21, 2013 4:03 PM GMT

12 lol still a long time secret forum JOIN MY PRIMARY PEOPLE NOWW
jcs810
#102101339Friday, June 21, 2013 4:03 PM GMT

13 lol still a long time secret forum JOIN MY PRIMARY PEOPLE NOWW
jcs810
#102101456Friday, June 21, 2013 4:05 PM GMT

15 lol still a long time secret forum JOIN MY PRIMARY PEOPLE NOWW
jcs810
#102101516Friday, June 21, 2013 4:05 PM GMT

16 lol still a long time secret forum JOIN MY PRIMARY PEOPLE NOWW
jcs810
#102101584Friday, June 21, 2013 4:06 PM GMT

17 lol still a long time secret forum JOIN MY PRIMARY PEOPLE NOWW
jcs810
#102101635Friday, June 21, 2013 4:06 PM GMT

18 lol still a long time secret forum JOIN MY PRIMARY PEOPLE NOWW
jcs810
#102101700Friday, June 21, 2013 4:07 PM GMT

19 lol still a long time secret forum JOIN MY PRIMARY PEOPLE NOWW
jcs810
#102101772Friday, June 21, 2013 4:08 PM GMT

20 lol still a long time secret forum JOIN MY PRIMARY PEOPLE NOWW
jcs810
#102101832Friday, June 21, 2013 4:08 PM GMT

21 lol still a long time secret forum JOIN MY PRIMARY PEOPLE NOWW
jcs810
#102101889Friday, June 21, 2013 4:09 PM GMT

22 lol still a long time secret forum JOIN MY PRIMARY PEOPLE NOWW
jcs810
#102101955Friday, June 21, 2013 4:09 PM GMT

23 lol still a long time secret forum JOIN MY PRIMARY PEOPLE NOWW
jcs810
#102102021Friday, June 21, 2013 4:10 PM GMT

24 lol still a long time secret forum JOIN MY PRIMARY PEOPLE NOWW
jcs810
#102102085Friday, June 21, 2013 4:10 PM GMT

25 lol still a long time secret forum JOIN MY PRIMARY PEOPLE NOWW

    of     471   
chevron_rightchevron_rightchevron_right