| |
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
| |
|
| |
|
breuning
|
  |
| Joined: 30 Oct 2008 |
| Total Posts: 4268 |
|
|
| 13 May 2012 05:08 AM |
@Triobro
That's what I wanted to say, bro. |
|
|
| Report Abuse |
|
|
|
| 13 May 2012 05:13 AM |
if game.Workspace.Water.CanCollide then game.Workspace.Water.BrickColor = BrickColor.new(194) end
-[ ɥsɐɯsɹǝƃuɐɹ ]- |
|
|
| Report Abuse |
|
|
|
| 13 May 2012 05:23 AM |
Put this script into the water
local Water = script.Parent if Water.CanCollide then Water.BrickColor = BrickColor.new(194) end
Beter then the game.Workspace function, it could cause lag |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 14 May 2012 05:12 PM |
Welcome :D and don't use ==
== is for math |
|
|
| Report Abuse |
|
|
|
| 15 May 2012 01:29 AM |
^ Wrong bro, == is used when comparing to things not always maths:
if game.Workspace.Part.Material == game.Workspace.Ice.Material then -[ ɥsɐɯsɹǝƃuɐɹ ]- |
|
|
| Report Abuse |
|
|
Zargling
|
  |
| Joined: 08 May 2012 |
| Total Posts: 995 |
|
|
| 15 May 2012 04:38 AM |
#include < iostream > #include < math.h > using namespace std; int main() { int input; cout << "Enter a value in cm:\n" << ":"; cin >> input; int diff = rand() % 2 + 1; if (diff == 1) { int diffr = rand() % 10 + 1; int cm = input + diffr; system("cls"); cout << cm << "\n"; cout << "0." << cm / 10 << "m\n"; cout << cm * 10 << "mm\n"; system("pause>nul"); main(); } else { int diffr = rand() % 10 + 1; int cm = input - diffr; system("cls"); cout << cm << "\n"; cout << "0." << cm / 10 << "mm\n"; cout << cm * 10 << "mm\n"; system("pause>nul"); main(); } } |
|
|
| Report Abuse |
|
|
TINISH0TZ
|
  |
| Joined: 20 Nov 2009 |
| Total Posts: 2549 |
|
|
| 15 May 2012 10:39 AM |
| Use "BrickColor.new" to simply summon a new color. |
|
|
| Report Abuse |
|
|
TINISH0TZ
|
  |
| Joined: 20 Nov 2009 |
| Total Posts: 2549 |
|
|
| 15 May 2012 10:43 AM |
Also, try and not use figures for brick colors.
Bricks have a certain color, that's what the phrase is for.
BrickColor.new = ("Bright blue") |
|
|
| Report Abuse |
|
|