generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Need help with a script I'm making

Previous Thread :: Next Thread 
Noobegai is not online. 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 is not online. 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 is not online. Noobegai
Joined: 09 Jul 2011
Total Posts: 1536
12 Sep 2014 03:05 PM
now the whole thing doesn't work.
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
12 Sep 2014 03:05 PM
.Visible = true
Report Abuse
Noobegai is not online. 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 is not online. 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 is not online. 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 is not online. Noobegai
Joined: 09 Jul 2011
Total Posts: 1536
12 Sep 2014 03:16 PM
that is what it is supposed to do.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image