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/MouseLeave not working ingame?

Previous Thread :: Next Thread 
Thel_Vadam is not online. Thel_Vadam
Joined: 23 Dec 2014
Total Posts: 2649
25 Feb 2017 02:31 PM
function enter()
script.Parent.ImageColor3 = Color3.new(1,1,1)
end

function leave()
script.Parent.ImageColor3 = Color3.new(100/255,100/255,100/255)
end

script.Parent.MouseLeave:connect(leave)
script.Parent.MouseEnter:connect(enter)



Report Abuse
Violicx is not online. Violicx
Joined: 02 Feb 2017
Total Posts: 18
25 Feb 2017 02:32 PM
function enter()
script.Parent.ImageColor3 = Color3.new(1/255,1/255,1/255)
end



Report Abuse
Wrathsong is online. Wrathsong
Joined: 05 Jul 2012
Total Posts: 22393
25 Feb 2017 02:33 PM
is it a localscript?

@viol
no, his code was fine


Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow me on twitch: twitch.tv/austinrblx
Report Abuse
Thel_Vadam is not online. Thel_Vadam
Joined: 23 Dec 2014
Total Posts: 2649
25 Feb 2017 02:33 PM
its a regular script


Report Abuse
Wrathsong is online. Wrathsong
Joined: 05 Jul 2012
Total Posts: 22393
25 Feb 2017 02:36 PM
It needs to be a local script. All scripts inside StarterGui should be local scripts.


Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow me on twitch: twitch.tv/austinrblx
Report Abuse
Thel_Vadam is not online. Thel_Vadam
Joined: 23 Dec 2014
Total Posts: 2649
25 Feb 2017 02:37 PM
huh, never knew that

thanks for the tip


Report Abuse
Wrathsong is online. Wrathsong
Joined: 05 Jul 2012
Total Posts: 22393
25 Feb 2017 02:39 PM
np, that should fix it btw


Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow me on twitch: twitch.tv/austinrblx
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
25 Feb 2017 03:27 PM
--local script

local gui = script.Parent

gui.MouseEnter:connect(function()
gui.ImageColor3 = Color3.new(1,1,1)
end)

gui.MouseLeave:connect(function()
gui.ImageColor3 = Color3.fromRGB(100,100,100)
end)


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