brayden99
|
  |
| Joined: 30 Sep 2007 |
| Total Posts: 1243 |
|
|
| 17 Nov 2011 12:36 PM |
This is part of my script, It should make the Captured visible = false if the BaseA and the player team color is the same but it only makes it true for some reason help please!
local Player = script.Parent.Parent.Parent function Play3() if game.Workspace.BaseA.BrickColor == Player.TeamColor.Color then script.Parent.Frame.BackGround.Base.Class1.BaseButton.Captured.Visible=false else script.Parent.Frame.BackGround.Base.Class1.BaseButton.Captured.Visible=true end end |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 17 Nov 2011 12:37 PM |
local Player = script.Parent.Parent.Parent function Play3() if workspace.BaseA.BrickColor == Player.TeamColor then script.Parent.Frame.BackGround.Base.Class1.BaseButton.Captured.Visible = false else script.Parent.Frame.BackGround.Base.Class1.BaseButton.Captured.Visible = true end end
--you don't call the event here? |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 17 Nov 2011 12:39 PM |
Lol what were I talking about, event?
I ment function :P |
|
|
| Report Abuse |
|
|
brayden99
|
  |
| Joined: 30 Sep 2007 |
| Total Posts: 1243 |
|
|
| 17 Nov 2011 12:40 PM |
Thanks! and I just have a loop
while true do wait() Play3() end |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 17 Nov 2011 12:42 PM |
| Why don't you just replace the function defision with that loop? |
|
|
| Report Abuse |
|
|
brayden99
|
  |
| Joined: 30 Sep 2007 |
| Total Posts: 1243 |
|
|
| 17 Nov 2011 12:42 PM |
| Because I fail and dont know how :P |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 17 Nov 2011 12:44 PM |
local Player = script.Parent.Parent.Parent
while wait() do if workspace.BaseA.BrickColor == Player.TeamColor then script.Parent.Frame.BackGround.Base.Class1.BaseButton.Captured.Visible = false else script.Parent.Frame.BackGround.Base.Class1.BaseButton.Captured.Visible = true end end
--That's all |
|
|
| Report Abuse |
|
|
brayden99
|
  |
| Joined: 30 Sep 2007 |
| Total Posts: 1243 |
|
|
| 17 Nov 2011 12:48 PM |
Ohhh thats what you ment lol well if you didnt noitce the Play3() I have a Play2() and Play1() I just loop them all with one while true do
while true do wait() Play1() Play2() Play3() end |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 17 Nov 2011 12:49 PM |
| Still could be done in one loop =/ |
|
|
| Report Abuse |
|
|
Zlavaz
|
  |
| Joined: 23 Oct 2011 |
| Total Posts: 2722 |
|
|
| 17 Nov 2011 12:50 PM |
| wait you don't know and you made battle of carentan? :P |
|
|
| Report Abuse |
|
|
brayden99
|
  |
| Joined: 30 Sep 2007 |
| Total Posts: 1243 |
|
|
| 17 Nov 2011 12:52 PM |
| My friend flump and I are a team lol He does most of the scripting |
|
|
| Report Abuse |
|
|
Zlavaz
|
  |
| Joined: 23 Oct 2011 |
| Total Posts: 2722 |
|
| |
|