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: What did I do wrong here?

Previous Thread :: Next Thread 
Seenay is not online. Seenay
Joined: 24 Jul 2014
Total Posts: 56
29 Jul 2014 04:14 PM
I am probably entirely wrong q_q, sorry if that's the case.

local button = script.Parent
local button2 = button.MouseEnter:connect(function(x, y)

if button2 == true then
button.BorderColor3 = Color3.new(215,005,122)
end
end)
Report Abuse
Krypticon is not online. Krypticon
Joined: 12 Feb 2014
Total Posts: 680
29 Jul 2014 04:22 PM
You're missing a closing bracket in line 2. It should be like:

local button2 = button.MouseEnter:connect(function(x, y))

:)
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
29 Jul 2014 04:24 PM
local button = script.Parent

button.MouseEnter:connect(function()
button.BorderColor3 = Color3.new(215,005,122)
end)
Report Abuse
Seenay is not online. Seenay
Joined: 24 Jul 2014
Total Posts: 56
29 Jul 2014 04:27 PM
Ahh, thanks :).

I changed the script and I think this should work!

Button = script.Parent

Button.MouseEnter:connect(function()
Button.BorderColor3 = Color3.new(0, 0, 0)
end)

Button.MouseLeave:connect(function()
Button.BorderColor3 = Color3.new(255, 255, 255)
end)


Button.MouseEnter(MouseEnter)
Button.MouseLeave(MouseLeave)

Thanks anyway though :P, xD.
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