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 » Scripters
Home Search
 

Re: Percentage chances help please!

Previous Thread :: Next Thread 
TermoBloxer is not online. TermoBloxer
Joined: 03 Jan 2011
Total Posts: 368
22 Nov 2013 11:52 PM
Is there any way of making something true or false in a completely random way?

F.E.

script.Parent.Cancollide = true/false -- 50% chance of getting either
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
22 Nov 2013 11:56 PM
script.Parent.Concollide = math.random(1,2)==1

would work. Also, post in Scripting Helpers next time.

~The alpaca of the acting world.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
23 Nov 2013 12:10 AM
^ Not completely random but yeah
Report Abuse
MettaurSp is not online. MettaurSp
Joined: 20 Mar 2010
Total Posts: 3179
23 Nov 2013 12:32 AM
Put math.randomseed(tick()) at the beginning of the script o3o
Report Abuse
chickenman158 is not online. chickenman158
Joined: 18 Jan 2011
Total Posts: 915
23 Nov 2013 08:17 AM
^ Still not completely random.
Report Abuse
As8D is online. As8D
Joined: 24 Dec 2009
Total Posts: 2907
23 Nov 2013 08:45 AM
Quantum physics.

Still not completely random? Universe!!!!

- As, sorry, you can't simply make "completely random" stuff happen in Roblox.[NS]
Report Abuse
WarrioR2MasteR is not online. WarrioR2MasteR
Joined: 26 Dec 2011
Total Posts: 821
23 Nov 2013 09:40 AM
Since when has anything been 'completely random'?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
23 Nov 2013 10:10 AM
Since Justin Bieber randomly stole a piece of napkin from a restaurant
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
23 Nov 2013 10:36 AM
^

but Justin is a bad boy
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
23 Nov 2013 10:53 AM
but you see, he went n00de for his grandmother, so that must count for some good (in$3$t)
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
23 Nov 2013 12:00 PM
"Since when has anything been 'completely random'?"

As people have pointed out, some quantum happenings can often be totally random from our perspective. It's all quite confusing really.

also 19k posts yayz
Report Abuse
VanillaLight is not online. VanillaLight
Joined: 02 Nov 2013
Total Posts: 834
23 Nov 2013 03:48 PM
Is there a way to check if a number is even?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
23 Nov 2013 03:51 PM
x%2==0
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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