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: How do I make a gui appear when the mouse is on it?

Previous Thread :: Next Thread 
JohnElijah is not online. JohnElijah
Joined: 06 May 2009
Total Posts: 1629
02 Sep 2013 04:58 AM
For example : I move my house over a certain brick and an info message appears.

How would I do that? Sorry still learning the tips and tricks. Need professional help.
Report Abuse
Soundcrusher is not online. Soundcrusher
Joined: 25 Aug 2011
Total Posts: 559
02 Sep 2013 05:41 AM
script.Parent.MouseEnter:connect(function()
script.Parent.Visible = false
end)

script.Parent.MouseLeave:connect(function()
script.Parent.Visible = true
end)

something like this.
Report Abuse
JohnElijah is not online. JohnElijah
Joined: 06 May 2009
Total Posts: 1629
02 Sep 2013 05:57 AM
Doesn't quite work for a brick. It works for a gui though.
Report Abuse
Soundcrusher is not online. Soundcrusher
Joined: 25 Aug 2011
Total Posts: 559
02 Sep 2013 06:42 AM
Oh sorry, read it wrong. Lol,

You could do something like this:

local players = game.Players:GetChildren()

while wait() do
for i =1,#players do
local mouse = players[i]:GetMouse()
if players[i].mouse.Target ~=nil then
if players[i].mouse.Target == script.Parent then
-- Yay do stuff you want to do
end
end
end
end
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