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 » Scripters
Home Search
 

Re: help

Previous Thread :: Next Thread 
brados123 is not online. brados123
Joined: 24 Nov 2012
Total Posts: 2143
10 Oct 2015 03:39 PM
any help? what it is meant to do is, check that the statement i made is true (which it is)
and then, it executes the code to change the color of a brick.

can someone edit this? thanks:

function onClick(hit)

if game.Workspace.Check.Value == 0.5 then



if game.Workspace.Blue.Transparency == 0.5 then -- this is a true statement.
script.Parent.BrickColor = BrickColor.Blue()



end


end
end

script.Parent.ClickDetector.MouseClick:connect(onClick)




thanks guys
Report Abuse
gangman67 is not online. gangman67
Joined: 04 Jun 2011
Total Posts: 798
10 Oct 2015 03:41 PM
script.Parent.BrickColor = BrickColor.new("Blue")
Report Abuse
gangman67 is not online. gangman67
Joined: 04 Jun 2011
Total Posts: 798
10 Oct 2015 03:44 PM
OH my bad I read that wrong
local BLU = game.Workspace:FindFirstChild("Blue")
function onClick(hit)
if game.Workspace.Check.Value == 0.5 then
if BLU.Transparency == 0.5 then -- this is a true statement.
script.Parent.BrickColor = BrickColor.new(""..BLU.BrickColor)
end
end
end
script.Parent.ClickDetector.MouseClick:connect(onClick)
try that Im not sure if it will work
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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