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: The last script I'm having trouble with

Previous Thread :: Next Thread 
Undoomed is not online. Undoomed
Joined: 19 Oct 2010
Total Posts: 1662
25 Feb 2014 05:30 PM
My game is almost perfected but I don't really know how to use math random using variables. Pretty much I want it to be like

a = game.Workspace.bluespawn1
b = game.Workspace.bluespawn2
c = game.Workspace.bluespawn3
d = game.Workspace.redspawn1
e = game.Workspace.redspawn2
f = game.Workspace.redspawn3

And then

If you're on team red - Random out of a,b,c for where you tp to (onclick)
If you're on team blue - Random out of d,e,f for where you tp to (onclick)

this would all be in one button so it would have If and Else, etc. For colors. So is there a way?
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
25 Feb 2014 05:43 PM
solution:

lrn2scriptnstopFMs
Report Abuse
TH3D3m0n is not online. TH3D3m0n
Joined: 24 Apr 2009
Total Posts: 705
25 Feb 2014 05:54 PM
I don't know a solution but you can have it where when you click the button, it finds a random math and if it equals 1 you go to a... 2 you go to b... 3 you go to c....


local a = random.math(1,3)

if a == 1 then
Bla bla bla
end

if a == 2 then
Bla bla bla
end

if a == 3 then
Bla bla bla
end

Function Onclick <--(Don't put that, I just didn't want to write a funtion)
Report Abuse
TH3D3m0n is not online. TH3D3m0n
Joined: 24 Apr 2009
Total Posts: 705
25 Feb 2014 05:56 PM
I don't know a solution but you can have it where when you click the button, it finds a random math and if it equals 1 you go to a... 2 you go to b... 3 you go to c....


local a = random.math(1,3)

if a == 1 then
Teleporter 1 Blue
end

if a == 2 then
Teleport 2 Blue
end

if a == 3 then
Teleport 3 Blue
end

local b = random.math(1,3)
if b == 1 then
Teleporter 1 Red
end

if b == 2 then
Teleport 2 Red
end

if b == 3 then
Teleport 3 Red
end


Function Onclick <--(Don't put that, I just didn't want to write a funtion)
Report Abuse
TH3D3m0n is not online. TH3D3m0n
Joined: 24 Apr 2009
Total Posts: 705
25 Feb 2014 05:57 PM
By the way, you put if they were on the red team that they will spawn in a blue spawn. xD
Report Abuse
Undoomed is not online. Undoomed
Joined: 19 Oct 2010
Total Posts: 1662
25 Feb 2014 06:00 PM
@the I should've thought of that. Thanks and I'll remember your name for the credits (and maybe admin)

And @troll I'll remember you for ban list for being disrespectful
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
26 Feb 2014 02:34 PM
"And @troll I'll remember you for ban list for being disrespectful"

I wasn't trolling, I was serious, stop stealing scripts.
Also, I don't play trash games sorry.
Report Abuse
Undoomed is not online. Undoomed
Joined: 19 Oct 2010
Total Posts: 1662
26 Feb 2014 02:36 PM
If a man hands a homeless man in the street 25 cents, the homeless man stole it?

You're a new type of genius.
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
26 Feb 2014 02:40 PM
You yourself claimed that they were free models.

(I don't see any credits anywhere)

Even past homeless people credit the people that gave them a quarter.
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
26 Feb 2014 02:40 PM
Also, yes I am a genius in my own kind of way.
Report Abuse
Undoomed is not online. Undoomed
Joined: 19 Oct 2010
Total Posts: 1662
26 Feb 2014 02:42 PM
Maybe you should look harder

I put the credits on 17 hours ago


"Beta Developers: wazap, Usering, TH3D3M0N, GummieYummies"

http://www.roblox.com/Beta-1-0-Fallenfront-place?id=141164572

You either forgot your glasses or you're just that stupid.
Report Abuse
ObsessedwithMario is not online. ObsessedwithMario
Joined: 03 Mar 2012
Total Posts: 268
26 Feb 2014 02:44 PM
function destroyThisEntireConversation()
script.Parent.Destroy
end
destroyThisEntireConversation()
:P
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
26 Feb 2014 02:44 PM
"You either forgot your glasses or you're just that stupid."

sry mr. 100 free modeled games,
I am not as stupid as to look through each and every one of your games to
find the names.
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
26 Feb 2014 02:46 PM
@Obsessed, Destroy is a method. It needs parenthesis.

#nerdsunited
Report Abuse
Undoomed is not online. Undoomed
Joined: 19 Oct 2010
Total Posts: 1662
26 Feb 2014 02:47 PM
"mr. 100 free model games"

Your grammar and theories are genius. Considering I have less than 10 active slots used and less than 50 games, all of which containing 0 models owned by someone other than myself, your theories are also incorrect in addition to genius.

Try again - With something facutal. Or leave and realize you're never getting read of me and I'm never getting read of you.
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
26 Feb 2014 02:50 PM
"Your grammar and theories are genius."

"Try again - With something facutal. Or leave and realize you're never getting *read* of me and I'm never getting *read* of you."

LOL, you are such a hypocrite, seeing that you've typed "read" two times instead of "rid" proves that it's not a typo and that you're an idiot.
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
26 Feb 2014 02:50 PM
What about that chat voice game on your profile..?

#nerdsunited
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
26 Feb 2014 02:50 PM
http://www.roblox.com/Chat-Voice-Unlimited-Underwater-Tours-place?id=88881120

#nerdsunited
Report Abuse
ObsessedwithMario is not online. ObsessedwithMario
Joined: 03 Mar 2012
Total Posts: 268
26 Feb 2014 02:51 PM
@Verified
I'm smart :P
Report Abuse
Undoomed is not online. Undoomed
Joined: 19 Oct 2010
Total Posts: 1662
26 Feb 2014 02:51 PM
@Duel and how could it not be a typo still? I once accidently typed my friend "Michael"'s name "Micheal" 5 times in a message before I had to go back and change them all. A habit once you make the first typo to move your hands that way, it's called "Muscle memory" Look it up.

Try again.
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
26 Feb 2014 02:52 PM
Nope, you loss idiot, admit it.
Stop using free models, and reported.
Report Abuse
Undoomed is not online. Undoomed
Joined: 19 Oct 2010
Total Posts: 1662
26 Feb 2014 02:53 PM
@Verified

Right back 'atcha with "Obby for admin commands"

You scripted your own admin commands?
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
26 Feb 2014 02:53 PM
I'll say it again incase you ignored it.
You say NONE of your games have free models in them.
Your FIRST game is a chat voice game.

Checkmate.

#nerdsunited
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
26 Feb 2014 02:53 PM
Ah, I never claimed my games were completely built by me, though.

#nerdsunited
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
26 Feb 2014 02:54 PM
why do people argue over useless things?
someone makes an FMed game
their problem,noones gonna play it
u don't need to argue about it..
#GetALife
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