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: 1 Line Scripting Help

Previous Thread :: Next Thread 
Zigar is not online. Zigar
Joined: 25 May 2008
Total Posts: 655
01 Aug 2011 11:25 AM
green = game.Workspace.GreenValue
blue = game.Workspace.BlueValue
red = game.Workspace.RedValue
yellow = game.Workspace.YellowValue
if green => yellow, red, blue then
m = Instance.new("Message")
m.Text = "Green has won"
elseif
--SKIPPING THE REST--

Please help, paying 50 robux to the person who fixes it.
Report Abuse
unknown89089 is not online. unknown89089
Joined: 21 Aug 2008
Total Posts: 2961
01 Aug 2011 11:26 AM
green = game.Workspace.GreenValue.Value
blue = game.Workspace.BlueValue.Value
red = game.Workspace.RedValue.Value
yellow = game.Workspace.YellowValue.Value
if green => yellow, red, blue then
m = Instance.new("Message")
m.Text = "Green has won"
elseif
Report Abuse
DavidBowiesEyes is not online. DavidBowiesEyes
Joined: 15 Nov 2010
Total Posts: 13270
01 Aug 2011 11:26 AM
Are the GreenValue, BlueValue etc. IntValues? If so:
green = game.Workspace.GreenValue.Value
blue = game.Workspace.BlueValue.Value
etc.
Report Abuse
Spectrumz is not online. Spectrumz
Joined: 22 Mar 2011
Total Posts: 4338
01 Aug 2011 11:27 AM
local green = game.Workspace.GreenValue
local blue = game.Workspace.BlueValue
local red = game.Workspace.RedValue
local yellow = game.Workspace.YellowValue
if green.Value => yellow.Value and red.Value and blue.Value then
local m = Instance.new("Message", game.Workspace)
m.Text = "Green has won"
elseif
Report Abuse
Spectrumz is not online. Spectrumz
Joined: 22 Mar 2011
Total Posts: 4338
01 Aug 2011 11:28 AM
nununu

u guyz cant assign properties to variables u know?
Report Abuse
unknown89089 is not online. unknown89089
Joined: 21 Aug 2008
Total Posts: 2961
01 Aug 2011 11:30 AM
We're assigning the number to the variables.
Report Abuse
unknown89089 is not online. unknown89089
Joined: 21 Aug 2008
Total Posts: 2961
01 Aug 2011 11:31 AM
Shoot, I didn't look at the if line.
Report Abuse
Spectrumz is not online. Spectrumz
Joined: 22 Mar 2011
Total Posts: 4338
01 Aug 2011 11:31 AM
Value is a property of the IntValues... or am I getting this mixed up?

Anyway, you guys didn't parent the Message, so I winned :3
Report Abuse
unknown89089 is not online. unknown89089
Joined: 21 Aug 2008
Total Posts: 2961
01 Aug 2011 11:32 AM
I lost anyways D;
Report Abuse
xvgigakid is not online. xvgigakid
Joined: 22 Jun 2008
Total Posts: 4407
01 Aug 2011 11:34 AM
@Spectrumz

variable = game.Workspace.Spectrumz.Name

print(variable)
Output>
Spectrumz
Report Abuse
Spectrumz is not online. Spectrumz
Joined: 22 Mar 2011
Total Posts: 4338
01 Aug 2011 11:34 AM
Lol, I did it for free, anyway.
Report Abuse
Spectrumz is not online. Spectrumz
Joined: 22 Mar 2011
Total Posts: 4338
01 Aug 2011 11:37 AM
@giga

Apparently I had it wrong. Thank you for correcting me.
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