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: Script isn't doing what it's told to do; instead it does the complete opposite

Previous Thread :: Next Thread 
tiger33333321 is not online. tiger33333321
Joined: 28 Mar 2010
Total Posts: 2115
28 Sep 2011 06:47 PM
Headline Story: A mischevious script by the name of:
script.Parent.Selected:connect(function(mouse)
mouse.KeyDown:connect(function(key)
if key == "q" then
local light = game.Workspace.Hover.light
light.BrickColor = BrickColor.new("CGA Brown")
wait(.5)
light.BrickColor = BrickColor.new("Black")
end
end)
end)


does not obey orders; instead it decided to turn MEDIUM STONE GRAY. This is rather odd- anyone who can fix this bad boy up is welcome to do so.


so yea, it's turning medium stone gray. wtf?
Report Abuse
DihydrogenOxide is not online. DihydrogenOxide
Joined: 20 Feb 2011
Total Posts: 642
28 Sep 2011 06:47 PM
script.Parent.Selected:connect(function(mouse)
mouse.KeyDown:connect(function(key)
if key == "q" then
local light = game.Workspace.Hover.light
light.BrickColor = BrickColor.new("CGA brown")
wait(.5)
light.BrickColor = BrickColor.new("Black")
end
end)
end)

-[::ƧѡÎḾḠΰῩ::]-
-[::Maker of stuff and breaker of combos::]-
Report Abuse
PompeyTheGreat is not online. PompeyTheGreat
Joined: 10 Apr 2011
Total Posts: 5615
28 Sep 2011 06:49 PM
Make sure your colors are actual colors. If they are not, the script will default the brick's color to grey if it doesn't recognize what you put.
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