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: What does math have to do with scripting

Previous Thread :: Next Thread 
ryannewman4life is not online. ryannewman4life
Joined: 09 Feb 2010
Total Posts: 158
26 Dec 2011 09:54 PM
Yes , I am new to scripting and if put this thread in the wrong section, I'm sorry. But what does math have to do with scripting I am only asking this because I have just started reading the scripting wiki.
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
26 Dec 2011 09:55 PM
There are math functions, and many values having to do with numbers.
Report Abuse
ryannewman4life is not online. ryannewman4life
Joined: 09 Feb 2010
Total Posts: 158
26 Dec 2011 10:07 PM
would a string be one of them
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
26 Dec 2011 10:26 PM
You can use MATH functions for A LOT OF THINGS!

But before I tell you what they can do I need to know are you in

math
pre algebra
algebra
geometry
--etc

Which one? Because there are some basic things and some really advanced math functions.
Report Abuse
ryannewman4life is not online. ryannewman4life
Joined: 09 Feb 2010
Total Posts: 158
27 Dec 2011 10:02 AM
im in algabra 2
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
27 Dec 2011 11:02 AM
Hmmm..Well, honestly, I'm not sure all the math functions you know. Because I'm in pre algebra. But I'll give you a simple example.

math.random()

This is a math function. What it does is well, it put something random :l

I think of it as a fraction, for this simple example

while true do
wait(1)
game.Workspace.Brick.Color = Color3.new(math.random(),math.random(),math.random())
end

Every second, the color will change to a random color. So think of it this way

There is maybe 80 colors. Idk how much but lets just say that.

For every second it changes ar random, so think of it lik

1
---
80

It randomly chooses one brick out of 80. Make sense?
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
27 Dec 2011 12:44 PM
alg2 is 11 grade, correct? Kewl, so you should know all of them except maybe:
fmod
modf
frexp
ldexp
log
log10
cosh
sinh
tanh
deg
rad
random
randomseed
exp
huge

All of which are relatively easy to learn.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
27 Dec 2011 03:41 PM
@bunny

Pretty sure he knows random and huge :P
Report Abuse
adark is not online. adark
Joined: 13 Jan 2008
Total Posts: 6412
27 Dec 2011 04:00 PM
Not all schools teach math the same. My school's standard is Algebra 2 Freshman year in highschool, and I'm taking Geometry as a Freshman.

A string is not related to math at all, actually, its simple a string of characters. Characters being letters, numbers, and special symbols such as '%' and '^'.
Report Abuse
LEG0builder is not online. LEG0builder
Joined: 06 Jun 2008
Total Posts: 3188
27 Dec 2011 04:15 PM
Most of the scripting you'll do won't have to do with math unless you want to make a script to systematically generate geometric shapes like circles, ellipses, spheres....

Though math.ceil and math.floor are good to know. The first one rounds any number up, and the second rounds any number down, except when the number is an integer (then, it stays the same).
Report Abuse
adark is not online. adark
Joined: 13 Jan 2008
Total Posts: 6412
27 Dec 2011 04:16 PM
More than just generating shapes, math is good for. In fact, Kiseki uses loads of math, and all it does is run a game.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
27 Dec 2011 05:31 PM
Yeah, dark is true though

You start in math
go to prealgebra, algebra, gemometry, I think algebra 2 and so on...

Report Abuse
adark is not online. adark
Joined: 13 Jan 2008
Total Posts: 6412
27 Dec 2011 05:42 PM
My school is Pre-Alg, Alg1, Alg2, Geo, Pre-Calc, Calc.

Of course, since Alg1 is supposed to be for Freshmen, most people that take Pre-Alg at all end up taking Business Math instead of Pre-Calc.
Report Abuse
pwnedu46 is not online. pwnedu46
Joined: 23 May 2009
Total Posts: 7534
27 Dec 2011 05:43 PM
The amount of math involved varies with the application, however it's usually more logic than anything.


----------
    ~ pwnedu46, the unicorn ~
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
27 Dec 2011 06:01 PM
@miz
I think he may not be familiar with the names math.huge and math.random, but once he gets told what they do and how to use them he will.
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
27 Dec 2011 06:03 PM
But yeah we go pre-alg, alg1, geometry, alg2/trig, pre-calculus, calculus AB or BC, and then the math geniouses might do differential equations.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
27 Dec 2011 09:32 PM
@Bunny

-_-

Learning math.huge isn't hard...You just have to know what infinity means...

Mine is everyone starts off with math, if you passed math you go into pre algebra. Since I'm in 7thgrade tht's as high as you can go :P

Unless you are in discovery.
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
27 Dec 2011 10:10 PM
Math has alot to do with Scripting.

http://www.roblox.com/Part-Generator-Plugin-V3-item?id=68342522
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
27 Dec 2011 10:19 PM
"This is a math function. What it does is well, it put something random :l"
Worst description evar.

­<'+1 Post. Ujelly?'>
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
27 Dec 2011 10:57 PM
@nate

Do you hear what else I said about it?
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
27 Dec 2011 10:59 PM
really most of the scripting i do i don't really use to much math if any (aside from basic adding subtracting, things a 1st grader could do). Its mostly logic.

~I've been to nil and back.
Report Abuse
Merlin11188 is not online. Merlin11188
Joined: 20 Dec 2007
Total Posts: 4158
27 Dec 2011 11:03 PM
Math isn't commonly used until you start playing around with CFrame and Vectors.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
27 Dec 2011 11:36 PM
@merlin

That is not 100% correct.
Report Abuse
bl5eebryce is not online. bl5eebryce
Joined: 03 Aug 2009
Total Posts: 387
28 Dec 2011 12:47 AM
Math has the world to do with scripting buddy boy. Scripting simply is not possible without math just think about it
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
28 Dec 2011 12:55 AM
@bl55

It depends, what math function you wanna use. But yeah, you need math. It's very important.
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