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: The one line of code to life!

Previous Thread :: Next Thread 
alxspiker is not online. alxspiker
Joined: 27 May 2010
Total Posts: 518
25 Jun 2014 11:26 AM
Well, I believe you get a random death date LOL...
So I made this quick code for fun.

Code:
deathdate=math.random(1,100) print("You will die at age "..deathdate)


I got:
You will die at age 32

Yikes!
Report Abuse
xSIXx is not online. xSIXx
Joined: 06 Aug 2010
Total Posts: 9202
25 Jun 2014 11:33 AM
ok
Report Abuse
bohdan77 is not online. bohdan77
Joined: 10 Aug 2008
Total Posts: 7944
25 Jun 2014 11:35 AM
> deathdate=math.random(1,100) print("You will die at age "..deathdate)
You will die at age 1


oh
Report Abuse
alxspiker is not online. alxspiker
Joined: 27 May 2010
Total Posts: 518
25 Jun 2014 11:37 AM
Maybe the code should be

Code:
YourAge=17 --Put your age here!
deathdate=math.random(YourAge,100)
print("You will die at age "..deathdate)
Report Abuse
tanlord173 is not online. tanlord173
Joined: 25 Nov 2009
Total Posts: 3916
25 Jun 2014 11:39 AM
I will die at -2
Seems legit.
Report Abuse
alxspiker is not online. alxspiker
Joined: 27 May 2010
Total Posts: 518
25 Jun 2014 11:45 AM
Tan, there is no way in heck you could get -2, get a life and stop lying LOL.

If you ran the first code, it checks for a random number between 1 and 100, and -2 is not in between, also the second code, if you entered your correct age, which could not be negative, you would still get a positive number between your current age and 100.
Report Abuse
Desisting is not online. Desisting
Joined: 06 Feb 2010
Total Posts: 931
25 Jun 2014 11:47 AM
You will die at age 99

#boss
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
25 Jun 2014 12:03 PM
plot twist:
desisting is 98

http://puu.sh/9JEcR/70611f43fd.png
wow
i thot i wud liv 2 be over 100 :(
Report Abuse
129K is not online. 129K
Joined: 23 Aug 2011
Total Posts: 19010
25 Jun 2014 12:49 PM
fail troll is fail
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
25 Jun 2014 01:08 PM
37

plenty of time
Report Abuse
tyridge77 is not online. tyridge77
Joined: 21 Dec 2009
Total Posts: 179
25 Jun 2014 01:30 PM
I'm immortal this is a lie
Report Abuse
xXBestPieXx is not online. xXBestPieXx
Joined: 08 Nov 2012
Total Posts: 1271
25 Jun 2014 01:42 PM
100! :O

I tried like 5 times to get that!
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
25 Jun 2014 02:00 PM
math.huge

kthxbai
Report Abuse
littleroc192 is not online. littleroc192
Joined: 28 Jan 2014
Total Posts: 469
25 Jun 2014 02:19 PM
Think that's funny?
Report Abuse
xSIXx is not online. xSIXx
Joined: 06 Aug 2010
Total Posts: 9202
25 Jun 2014 02:19 PM
yes
Report Abuse
CoolioTree is not online. CoolioTree
Joined: 26 Dec 2012
Total Posts: 2509
25 Jun 2014 02:35 PM
IM SO FUNY LOLOOLOL XD
Report Abuse
COOLDUDE11OO is not online. COOLDUDE11OO
Joined: 21 Aug 2011
Total Posts: 5115
25 Jun 2014 03:32 PM
local immortal_chance=4.5

local get_deathage=function(age)
if age<=0 then return end
local immortality_chance=math.random(age+1,120)
if immortality_chance/10==4.5 then
print'You are immortal.'
else
print'You will die at age'..immortality_chance..'.'
end
end

get_deathage(12)
Report Abuse
CoolioTree is not online. CoolioTree
Joined: 26 Dec 2012
Total Posts: 2509
25 Jun 2014 03:34 PM
^ Ahh, if it weren't for chaos theory, that function wouldn't have to be billions of lines long to get an accurate prediction...
Report Abuse
COOLDUDE11OO is not online. COOLDUDE11OO
Joined: 21 Aug 2011
Total Posts: 5115
25 Jun 2014 03:36 PM
fak idc
Report Abuse
tanlord173 is not online. tanlord173
Joined: 25 Nov 2009
Total Posts: 3916
25 Jun 2014 05:12 PM
sorry i'm a few hours late, i'm-
>get a life
you know what forget it
Report Abuse
RaidenJPN is not online. RaidenJPN
Joined: 22 May 2013
Total Posts: 6920
25 Jun 2014 07:02 PM
23,

well...

damn.

7 years left.
Report Abuse
Fluffmiceter is not online. Fluffmiceter
Joined: 28 Jan 2012
Total Posts: 6931
25 Jun 2014 07:53 PM
deathdate=math.random(1,100) print("You will die at age "..deathdate^deathdate)

>You will die at age 2.978642e+185

life hax
Report Abuse
littleroc192 is not online. littleroc192
Joined: 28 Jan 2014
Total Posts: 469
25 Jun 2014 08:12 PM
Think that's funny?
Report Abuse
Firewarrior321 is not online. Firewarrior321
Joined: 09 Dec 2011
Total Posts: 3443
25 Jun 2014 09:25 PM
Hm...you need to exclude the age the target person is already at.
-----

Age = [Insert Age Here]
enabled = true

repeat
m = math.random(1,100)

if m > Age then
print("Your Death-date:".. m.."")
enabled = false
end
wait()

until enabled == false
Report Abuse
Firewarrior321 is not online. Firewarrior321
Joined: 09 Dec 2011
Total Posts: 3443
25 Jun 2014 09:27 PM
Well, to make it more simplistic, you could write:

m = math.random(Age, 100)

and exclude a few unnecessary lines.

>I will rip out your duodenum
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