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
 

Re: Function Lib

Previous Thread :: Next Thread 
yoyoman2 is not online. yoyoman2
Joined: 07 Mar 2009
Total Posts: 2170
09 Aug 2011 06:13 AM
im making a new function library to train my scripting, have any idea for useful functions? but give me something that will help, not a makecarwith2lolhats()

Report Abuse
yoyoman2 is not online. yoyoman2
Joined: 07 Mar 2009
Total Posts: 2170
09 Aug 2011 06:31 AM
bump
Report Abuse
yoyoman2 is not online. yoyoman2
Joined: 07 Mar 2009
Total Posts: 2170
09 Aug 2011 06:38 AM
bumpys
Report Abuse
adark is not online. adark
Joined: 13 Jan 2008
Total Posts: 6412
09 Aug 2011 07:28 AM
What would the point of a function library? No game would ever use every single one of them, and you cna jsut write them into games you make as you need them.

Just try to make a game using functions.
Report Abuse
richjoel is not online. richjoel
Joined: 14 Mar 2010
Total Posts: 273
09 Aug 2011 07:33 AM
function round(number, nearest)

Number would be the number you're rounding, nearest would be to like, the nearest 100 or the nearest 1.

Examples
round(17, 100)
>0

round(3.141592653548, 0.01)
>3.14
Report Abuse
richjoel is not online. richjoel
Joined: 14 Mar 2010
Total Posts: 273
09 Aug 2011 07:38 AM
A true random number generator?
The ROBLOX one's useless. Once it has a number, it seems to like to stick to it for quite a while >_>

for i = 1, 100 do
print(math.random(1, 10))

>
1
8
1
1
1
7
1
10
1
2
Report Abuse
yoyoman2 is not online. yoyoman2
Joined: 07 Mar 2009
Total Posts: 2170
09 Aug 2011 08:36 AM
i made a superrandom function that changes the seed of random and gives really random numbers all the time, check my newest model
Report Abuse
yoyoman2 is not online. yoyoman2
Joined: 07 Mar 2009
Total Posts: 2170
09 Aug 2011 09:37 AM
bumper
Report Abuse
zazw3 is not online. zazw3
Joined: 05 Jul 2008
Total Posts: 1238
09 Aug 2011 09:49 AM
I have a whole one note page full of ideas from ages ago and aother page of the out come and notes on how i was gonna make them...
Report Abuse
yoyoman2 is not online. yoyoman2
Joined: 07 Mar 2009
Total Posts: 2170
09 Aug 2011 09:55 AM
i really need ideas so tell everything that comes to your mind
Report Abuse
zazw3 is not online. zazw3
Joined: 05 Jul 2008
Total Posts: 1238
09 Aug 2011 09:55 AM
Yor looking to make a load of functions right?
Report Abuse
yoyoman2 is not online. yoyoman2
Joined: 07 Mar 2009
Total Posts: 2170
09 Aug 2011 09:57 AM
yes, but only ones that are realy needed
Report Abuse
zazw3 is not online. zazw3
Joined: 05 Jul 2008
Total Posts: 1238
09 Aug 2011 10:00 AM
ur gonna paste them at the top of every script u use?

if soo...

you might wanna try making a function that is like #include in C's oooor require() in something else (i think php) so you dont have to paste them all at the begining of the script you just have to do that one function and use that to call al the otehr ones....No idea if its possible...Is the source property in scripts unlocked now?
Report Abuse
yoyoman2 is not online. yoyoman2
Joined: 07 Mar 2009
Total Posts: 2170
09 Aug 2011 10:02 AM
im actully using a special script that you need to had 1 line of code at the start of the script and it will work
Report Abuse
zazw3 is not online. zazw3
Joined: 05 Jul 2008
Total Posts: 1238
09 Aug 2011 10:16 AM
basicly what i was saying but minus the parrt where you make it...
Report Abuse
yoyoman2 is not online. yoyoman2
Joined: 07 Mar 2009
Total Posts: 2170
09 Aug 2011 10:17 AM
you can find it in my models its my newest model and its called YoYo Lib
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