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: Hows this look. Is it fixed yet?

Previous Thread :: Next Thread 
nirvanadude is not online. nirvanadude
Joined: 28 Jan 2011
Total Posts: 3244
24 Apr 2013 09:26 AM
tomato = game.Workspace.CapturePoint1.Flag.BrickColor
potato = game.Workspace.Camel.Pole.Handles.Color

if tomato = BrickColor.new("Medium stone grey") then
potato = Color3.new("Medium stone grey")
elseif tomato = BrickColor.new("Institutional white") then
potato = Color3.new("Institutional white")
elseif tomato = BrickColor.new("Black") then
potato = Color3.new("Black")
elseif tomato = BrickColor.new("Bright violet") then
potato = Color3.new("Bright violet")
end

cmon cmon
Report Abuse
nirvanadude is not online. nirvanadude
Joined: 28 Jan 2011
Total Posts: 3244
24 Apr 2013 09:28 AM
tomato = game.Workspace.CapturePoint1.Flag.BrickColor
potato = game.Workspace.Camel.Pole.Handles.Color

if tomato = BrickColor.new("Medium stone grey") then
potato = Color.new("Medium stone grey")
elseif tomato = BrickColor.new("Institutional white") then
potato = Color.new("Institutional white")
elseif tomato = BrickColor.new("Black") then
potato = Color.new("Black")
elseif tomato = BrickColor.new("Bright violet") then
potato = Color.new("Bright violet")
end

this?
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
24 Apr 2013 09:33 AM
all ifs and elseifs should have "==" instead of "="

if tomato == BrickColor.new("Black") then
Report Abuse
nirvanadude is not online. nirvanadude
Joined: 28 Jan 2011
Total Posts: 3244
24 Apr 2013 09:34 AM
Well, what command do I use the change the color of Handles. Its not a brick so it isnt brick color. When I look at its properties it just says color. What do I do about that.
Report Abuse
nirvanadude is not online. nirvanadude
Joined: 28 Jan 2011
Total Posts: 3244
24 Apr 2013 09:35 AM
Also, like this?

tomato = game.Workspace.CapturePoint1.Flag.BrickColor
potato = game.Workspace.Camel.Pole.Handles.Color

if tomato==BrickColor.new("Medium stone grey") then
potato=Color.new("Medium stone grey")
elseif tomato==BrickColor.new("Institutional white") then
potato=Color.new("Institutional white")
elseif tomato==BrickColor.new("Black") then
potato=Color.new("Black")
elseif tomato==BrickColor.new("Bright violet") then
potato=Color.new("Bright violet")
end
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
24 Apr 2013 09:39 AM
To set the colour of the handles you use 'BrickColor.new()'.
Report Abuse
nirvanadude is not online. nirvanadude
Joined: 28 Jan 2011
Total Posts: 3244
24 Apr 2013 09:41 AM
Okay

Current script:
tomato = game.Workspace.CapturePoint1.Flag.BrickColor
potato = game.Workspace.Camel.Pole.Handles.Color

if tomato==BrickColor.new("Medium stone grey") then
potato=BrickColor.new("Medium stone grey")
elseif tomato==BrickColor.new("Institutional white") then
potato=BrickColor.new("Institutional white")
elseif tomato==BrickColor.new("Black") then
potato=BrickColor.new("Black")
elseif tomato==BrickColor.new("Bright violet") then
potato=BrickColor.new("Bright violet")
end
Report Abuse
nirvanadude is not online. nirvanadude
Joined: 28 Jan 2011
Total Posts: 3244
24 Apr 2013 09:51 AM
The output says no errors but there must be still something wrong because it wont work.
Report Abuse
nirvanadude is not online. nirvanadude
Joined: 28 Jan 2011
Total Posts: 3244
24 Apr 2013 10:01 AM
tomato = game.Workspace.CapturePoint1.Flag.BrickColor
potato = game.Workspace.Camel.Pole.Handles.Color

if tomato==BrickColor.new("Medium stone grey") then
potato=("Medium stone grey")
elseif tomato==BrickColor.new("Institutional white") then
potato=("Institutional white")
elseif tomato==BrickColor.new("Black") then
potato=("Black")
elseif tomato==BrickColor.new("Bright violet") then
potato=("Bright violet")
end
Report Abuse
nirvanadude is not online. nirvanadude
Joined: 28 Jan 2011
Total Posts: 3244
24 Apr 2013 10:15 AM
bump.
It would be really nice if someone could just take the script and fix all of the problems in it. Then post it.
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
24 Apr 2013 10:30 AM
e.e

tomato = game.Workspace.CapturePoint1.Flag
potato = game.Workspace.Camel.Pole.Handles

if tomato.BrickColor == BrickColor.new("Medium stone grey") then
potato.Color = BrickColor.new("Medium stone grey")
elseif tomato.BrickColor == BrickColor.new("Institutional white") then
potato.Color = BrickColor.new("Institutional white")
elseif tomato.BrickColor == BrickColor.new("Black") then
potato.Color = BrickColor.new("Black")
elseif tomato.BrickColor == BrickColor.new("Bright violet") then
potato.Color = BrickColor.new("Bright violet")
end

Happy?
Report Abuse
alliancer is not online. alliancer
Joined: 18 Mar 2013
Total Posts: 1016
24 Apr 2013 10:34 AM
just remember this;

Part.BrickColor = BrickColor.new("Bright red")

anything but alterations of that will give you an error
Report Abuse
As8D is not online. As8D
Joined: 24 Dec 2009
Total Posts: 2907
24 Apr 2013 10:38 AM
What if the .Color property of... whatever he's using is a BrickColor-property?

Let's see...

http://wiki.roblox.com/index.php/Color_(Property)


- As, woops, I have to say #tag.
Report Abuse
nirvanadude is not online. nirvanadude
Joined: 28 Jan 2011
Total Posts: 3244
24 Apr 2013 10:44 AM
I am getting no errors in output, but it still won't work. Maybe it will be better if I completely explained what I was trying to do.

There are different flags scattered across the map. The handles hover above them. If a certain team captures the flag(which is also a spawn point) the handle above it will change to the color of the team that captured it. so players from far away can identify where certain enemies/team mates are coming from. Since the flags and the handles are not linked I cant do the teamcolor=BrickColor.new or whatever. So I made this raunchy script so if the flag changed colors the handle would also change. The script is meant to continue to work if another tam captured it. So like

Red team gets flag, flag turns red, script causes handle to turn red
Black team captures flag from red team, flag turns black, script causes handle to turn black.

The flag is already fully functioning and editing it now would be a waste of time so can anyone please figure this out.
Report Abuse
KeyUp is not online. KeyUp
Joined: 17 Mar 2013
Total Posts: 457
24 Apr 2013 10:59 AM
[ Content Deleted ]
Report Abuse
nirvanadude is not online. nirvanadude
Joined: 28 Jan 2011
Total Posts: 3244
24 Apr 2013 11:00 AM
So i would need an entirely new script?
Report Abuse
KeyUp is not online. KeyUp
Joined: 17 Mar 2013
Total Posts: 457
24 Apr 2013 11:10 AM
[ Content Deleted ]
Report Abuse
nirvanadude is not online. nirvanadude
Joined: 28 Jan 2011
Total Posts: 3244
24 Apr 2013 11:12 AM
Here is the flag model I am using.

http://www.roblox.com/Capture-Point-item?id=56760640


If anyone can come up with their own script to make a handle change color every time the flag changes color that would be terrific. Plus I am not asking for free labor as I would be learning from this for future purposes so I won't have to come back here and ask questions, and instead I can help. So ya can someone pleas figure out how to make the handle change every time the flag changes color.

Report Abuse
nirvanadude is not online. nirvanadude
Joined: 28 Jan 2011
Total Posts: 3244
24 Apr 2013 11:12 AM
And yes I realize handles are GUIs.
Report Abuse
KeyUp is not online. KeyUp
Joined: 17 Mar 2013
Total Posts: 457
24 Apr 2013 11:21 AM
[ Content Deleted ]
Report Abuse
nirvanadude is not online. nirvanadude
Joined: 28 Jan 2011
Total Posts: 3244
24 Apr 2013 11:28 AM
Yes. The handle is there, it is visible and everything. The only problem is that it wont change color.
Report Abuse
KeyUp is not online. KeyUp
Joined: 17 Mar 2013
Total Posts: 457
24 Apr 2013 11:46 AM
[ Content Deleted ]
Report Abuse
nirvanadude is not online. nirvanadude
Joined: 28 Jan 2011
Total Posts: 3244
24 Apr 2013 11:59 AM
Did not work. Did you remember to tell it to find the child of Camel? Because its Camel>Part>Handels
Report Abuse
KeyUp is not online. KeyUp
Joined: 17 Mar 2013
Total Posts: 457
24 Apr 2013 12:21 PM
[ Content Deleted ]
Report Abuse
nirvanadude is not online. nirvanadude
Joined: 28 Jan 2011
Total Posts: 3244
24 Apr 2013 12:25 PM
yes
the adornee inside of the handles's script says :

script.Parent.Adornee = script.Parent.Parent

The adornee is in the handle, the handle is inside of "Pole", Pole is inside of "Camel".
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