Noobegai
|
  |
| Joined: 09 Jul 2011 |
| Total Posts: 1536 |
|
|
| 12 Sep 2014 02:52 PM |
Ok, I'm making it so that after 10 seconds, a gui appears that says "You Are:" and below it is another gui that either says murderer, partygoer, or secret agent. So far the murderer, partygoer, and secret agent part is not showing up in the script:
local partygoer = script.Parent.Partygoer.Visible == true local murderer = script.Parent.Murderer.Visible == true local secretagent = script.Parent.SecretAgent.Visible == true while true do wait(10) script.Parent.Visible = true math.random(partygoer, murderer, secretagent) wait(5) script.Parent.Visible = false wait(60) end |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 12 Sep 2014 02:55 PM |
local partygoer = script.Parent.Partygoer partygoer.Visible == true
You get what you did wrong?
You can't have a syntax such as a = b = c |
|
|
| Report Abuse |
|
|
Noobegai
|
  |
| Joined: 09 Jul 2011 |
| Total Posts: 1536 |
|
|
| 12 Sep 2014 03:05 PM |
| now the whole thing doesn't work. |
|
|
| Report Abuse |
|
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
| |
|
Noobegai
|
  |
| Joined: 09 Jul 2011 |
| Total Posts: 1536 |
|
|
| 12 Sep 2014 03:08 PM |
| How do I make it so that one of them is randomly selected to be true though? All I know is that it somehow invlolves math.random |
|
|
| Report Abuse |
|
|
Nyxis
|
  |
| Joined: 15 Nov 2012 |
| Total Posts: 3374 |
|
|
| 12 Sep 2014 03:09 PM |
math.randomseed(tick())
if math.random(1, 2) == 1 then x = true else x = false end |
|
|
| Report Abuse |
|
|
Noobegai
|
  |
| Joined: 09 Jul 2011 |
| Total Posts: 1536 |
|
|
| 12 Sep 2014 03:15 PM |
| still doesn't work. It randomly picks one of them to be visible, and sets their visibility to true |
|
|
| Report Abuse |
|
|
Noobegai
|
  |
| Joined: 09 Jul 2011 |
| Total Posts: 1536 |
|
|
| 12 Sep 2014 03:16 PM |
| that is what it is supposed to do. |
|
|
| Report Abuse |
|
|