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
 

MouseEnter Question

Previous Thread :: Next Thread 
Dralian is not online. Dralian
Joined: 21 Mar 2013
Total Posts: 7624
03 Aug 2015 09:23 PM

local player = game.Players.LocalPlayer

function enter()
script.Parent.TextColor3 = Color3.new(163, 166, 7)
end

script.Parent.MouseEnter:connect(enter)

function leave()
script.Parent.TextColor3 = Color3.new(0,0,0)
end

script.Parent.MouseLeave:connect(leave)

When I put that into a LocalScript in a TextButton, the text just turns white, not yellow.

Please help.
Report Abuse
swagboy1727 is not online. swagboy1727
Joined: 21 Jan 2013
Total Posts: 54
03 Aug 2015 09:28 PM
First of all you did it wrong here copy this


function MouseEnter:connect(MouseEnter)
script.Parent.TextColor3 = Color3.new(163, 166, 7)
end

script.Parent.MouseEnter:connect(enter)

function leave()
script.Parent.TextColor3 = Color3.new(0,0,0)
end

script.Parent.MouseLeave:connect(leave)
Report Abuse
swagboy1727 is not online. swagboy1727
Joined: 21 Jan 2013
Total Posts: 54
03 Aug 2015 09:28 PM
Sorry forgot to change some stuff


function MouseEnter:connect(MouseEnter)
script.Parent.TextColor3 = Color3.new(163, 166, 7)
end

script.Parent.MouseEnter:connect(MouseEnter)

function leave()
script.Parent.TextColor3 = Color3.new(0,0,0)
end

script.Parent.MouseLeave:connect(MouseLeave)



Report Abuse
Dralian is not online. Dralian
Joined: 21 Mar 2013
Total Posts: 7624
03 Aug 2015 09:31 PM
Thanks, but that doesn't work by the way.

It completely broke actually.
Report Abuse
swagboy1727 is not online. swagboy1727
Joined: 21 Jan 2013
Total Posts: 54
03 Aug 2015 09:32 PM
Then I don't know.
Sorry
Report Abuse
Vyxium is not online. Vyxium
Joined: 31 Aug 2010
Total Posts: 1020
03 Aug 2015 09:33 PM
its because your colors are wrong. every color value has to be divided by 255 so make the color:

Color3.new(163/255, 166/255, 7/255)
Report Abuse
izzatnasruna is not online. izzatnasruna
Joined: 09 Jun 2009
Total Posts: 1927
03 Aug 2015 09:34 PM
Color3.new value is only valid between 0-1 . Including the decimals
Report Abuse
Dralian is not online. Dralian
Joined: 21 Mar 2013
Total Posts: 7624
03 Aug 2015 09:36 PM
All good.

Thanks, I never knew that about Color3.
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