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: Why isn't this color changing script working?

Previous Thread :: Next Thread 
TheCommanderGuest is not online. TheCommanderGuest
Joined: 03 Jun 2012
Total Posts: 11861
24 Jul 2014 07:02 PM
It's supposed to change the other part's color when you touch one of the parts.

Nothing happens.

local B1 = game.workspace:FindFirstChild("Part1")
local B2 = game.workspace:FindFirstChild("Part2")

function Coloring (hit)
if hit.Parent:findFirstChild("Humanoid") then
B2.BrickColor = BrickColor.new("Really Red")
wait(1)
B2.BrickColor = BrickColor.new("Deep Blue")

end
end
B1.Touched:Connect(Coloring)
B2.Touched:Connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") then
B1.BrickColor = BrickColor.new("Really Red")
wait(1)
B1.BrickColor = BrickColor.new("Deep Blue")

end
end)
Report Abuse
TheCommanderGuest is not online. TheCommanderGuest
Joined: 03 Jun 2012
Total Posts: 11861
24 Jul 2014 07:03 PM
1
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
24 Jul 2014 07:03 PM
"B1.Touched:Connect(Coloring)
B2.Touched:Connect(function(hit)"

connect not Connect

Report Abuse
TheCommanderGuest is not online. TheCommanderGuest
Joined: 03 Jun 2012
Total Posts: 11861
24 Jul 2014 07:03 PM
2
Report Abuse
TheCommanderGuest is not online. TheCommanderGuest
Joined: 03 Jun 2012
Total Posts: 11861
24 Jul 2014 07:04 PM
LOL CAPITALS MATTER?
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
24 Jul 2014 07:04 PM
YES.


AND YOU BUMPED TWICE IN ONE MINUTE.


Report Abuse
TheCommanderGuest is not online. TheCommanderGuest
Joined: 03 Jun 2012
Total Posts: 11861
24 Jul 2014 07:09 PM
doesn mattr if i bump
Report Abuse
speeddemon44 is not online. speeddemon44
Joined: 04 Dec 2010
Total Posts: 2
24 Jul 2014 07:11 PM
It's connect not Connect.
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