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
 

[ Content Deleted ]

Previous Thread :: Next Thread 
ibracadabra is not online. ibracadabra
Joined: 03 Nov 2010
Total Posts: 1860
13 May 2012 04:54 AM
[ Content Deleted ]
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
13 May 2012 04:57 AM
[ Content Deleted ]
Report Abuse
ibracadabra is not online. ibracadabra
Joined: 03 Nov 2010
Total Posts: 1860
13 May 2012 04:58 AM
[ Content Deleted ]
Report Abuse
ibracadabra is not online. ibracadabra
Joined: 03 Nov 2010
Total Posts: 1860
13 May 2012 05:08 AM
[ Content Deleted ]
Report Abuse
breuning is not online. 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
rangersmash is not online. rangersmash
Joined: 18 Nov 2009
Total Posts: 2891
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
99Nickster is not online. 99Nickster
Joined: 27 Jan 2012
Total Posts: 289
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
ibracadabra is not online. ibracadabra
Joined: 03 Nov 2010
Total Posts: 1860
13 May 2012 12:06 PM
[ Content Deleted ]
Report Abuse
ibracadabra is not online. ibracadabra
Joined: 03 Nov 2010
Total Posts: 1860
13 May 2012 12:20 PM
[ Content Deleted ]
Report Abuse
99Nickster is not online. 99Nickster
Joined: 27 Jan 2012
Total Posts: 289
14 May 2012 05:12 PM
Welcome :D and don't use ==

== is for math
Report Abuse
rangersmash is not online. rangersmash
Joined: 18 Nov 2009
Total Posts: 2891
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 is not online. 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 is not online. 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 is not online. 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
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