Locky2013
|
  |
| Joined: 14 Feb 2012 |
| Total Posts: 2401 |
|
|
| 16 Nov 2012 02:50 PM |
I am trying to make a GUI popup that when Captute Progress Value is 1,000 and when the OwningTeam value is Really Red.
if CaptureProgress.Value == 1000 if OwniningTeam.Vale == Really Red then gui.Frame.Visible = true end
|
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 16 Nov 2012 02:52 PM |
| You're missing then on line 1, and another end on the last line. |
|
|
| Report Abuse |
|
|
Locky2013
|
  |
| Joined: 14 Feb 2012 |
| Total Posts: 2401 |
|
| |
|
Locky2013
|
  |
| Joined: 14 Feb 2012 |
| Total Posts: 2401 |
|
|
| 16 Nov 2012 02:53 PM |
| so this would do the trick Eh? |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 16 Nov 2012 02:55 PM |
Not unless it's surrounded by other code (for what you want). I figured you had pasted the part of code that was broken. |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 16 Nov 2012 02:55 PM |
Oh, and on line 2 you need to surround Really Red in quotes.
print("Flood checks:",1) |
|
|
| Report Abuse |
|
|
Locky2013
|
  |
| Joined: 14 Feb 2012 |
| Total Posts: 2401 |
|
|
| 16 Nov 2012 02:56 PM |
if Game.Workspace.CapturePoint1.CaptureProgress.Value == 1000 then if Game.Workspace.CapturePoint1.OwniningTeam.Value == Really Red then gui.Frame.Visible = true end end |
|
|
| Report Abuse |
|
|
Locky2013
|
  |
| Joined: 14 Feb 2012 |
| Total Posts: 2401 |
|
|
| 16 Nov 2012 02:57 PM |
kai liek this?
if Game.Workspace.CapturePoint1.CaptureProgress.Value == 1000 then if Game.Workspace.CapturePoint1.OwniningTeam.Value == ("Really Red") then gui.Frame.Visible = true end end |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 16 Nov 2012 03:00 PM |
if Game.Workspace.CapturePoint1.CaptureProgress.Value == 1000 then if Game.Workspace.CapturePoint1.OwniningTeam.Value == "Really Red" then gui.Frame.Visible = true end end
OwningTeam is a StringValue or BrickColorValue? |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 16 Nov 2012 03:00 PM |
if Game.Workspace.CapturePoint1.CaptureProgress.Value == 1000 then if Game.Workspace.CapturePoint1.OwniningTeam.Value == "Really Red" then gui.Frame.Visible = true end end
OwningTeam is a StringValue or BrickColorValue? |
|
|
| Report Abuse |
|
|
Locky2013
|
  |
| Joined: 14 Feb 2012 |
| Total Posts: 2401 |
|
| |
|
|
| 16 Nov 2012 03:15 PM |
Then use ("Really red")
Also its Really red not Really Red |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 16 Nov 2012 03:16 PM |
No no, BrickColorValue you do
.Value.Name=="Really red"
Since BrickColor has a Name property. |
|
|
| Report Abuse |
|
|
Locky2013
|
  |
| Joined: 14 Feb 2012 |
| Total Posts: 2401 |
|
| |
|
Locky2013
|
  |
| Joined: 14 Feb 2012 |
| Total Posts: 2401 |
|
|
| 16 Nov 2012 03:18 PM |
if Game.Workspace.CapturePoint1.CaptureProgress.Value == 1000 then if Game.Workspace.CapturePoint1.OwniningTeam.Value == "Really red" then gui.Frame.Visible = true end end
so this? |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 16 Nov 2012 03:20 PM |
if Game.Workspace.CapturePoint1.CaptureProgress.Value == 1000 then if Game.Workspace.CapturePoint1.OwniningTeam.Value.Name == "Really red" then gui.Frame.Visible = true end end
|
|
|
| Report Abuse |
|
|
Locky2013
|
  |
| Joined: 14 Feb 2012 |
| Total Posts: 2401 |
|
|
| 16 Nov 2012 03:22 PM |
| Its name is OwningTeam, Its value has to be Really red. |
|
|
| Report Abuse |
|
|
Locky2013
|
  |
| Joined: 14 Feb 2012 |
| Total Posts: 2401 |
|
| |
|
|
| 16 Nov 2012 03:53 PM |
if Game.Workspace.CapturePoint1.CaptureProgress.Value == 1000 and if Game.Workspace.CapturePoint1.OwniningTeam.Value == "Really Red" then gui.Frame.Visible = true end end
|
|
|
| Report Abuse |
|
|
Locky2013
|
  |
| Joined: 14 Feb 2012 |
| Total Posts: 2401 |
|
|
| 16 Nov 2012 05:15 PM |
| Where do I insert et? Inside the model of the Values? |
|
|
| Report Abuse |
|
|
Fredfishy
|
  |
| Joined: 21 Mar 2009 |
| Total Posts: 4197 |
|
|
| 16 Nov 2012 05:20 PM |
Assuming the coloury thing is a BrickColorValue, you need to use BrickColorValue.Value = BrickColor.new("Really red") |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2012 05:22 PM |
if Game.Workspace.CapturePoint1.CaptureProgress.Value == 1000 then if Game.Workspace.CapturePoint1.OwniningTeam.Value == BrickColor.new("Really Red") then gui.Frame.Visible = true end end
~ thedeathmaster01 ~ |
|
|
| Report Abuse |
|
|
Locky2013
|
  |
| Joined: 14 Feb 2012 |
| Total Posts: 2401 |
|
|
| 16 Nov 2012 05:30 PM |
| I am seriously getting sick of this script. I've tried everyones script this place is just so stubburn that I cant seem to make it work. Anyone Else help me? |
|
|
| Report Abuse |
|
|
Fredfishy
|
  |
| Joined: 21 Mar 2009 |
| Total Posts: 4197 |
|
| |
|
Locky2013
|
  |
| Joined: 14 Feb 2012 |
| Total Posts: 2401 |
|
| |
|