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
 

Re: efficient

Previous Thread :: Next Thread 
GreedTaka is not online. GreedTaka
Joined: 12 Dec 2014
Total Posts: 1503
18 Dec 2016 08:39 PM
any way to make this less glichy?

for i,btn in pairs(player.PlayerGui.MainGui.Main:GetChildren()) do
if btn:IsA'ImageButton' then

btn.MouseEnter:connect(function()
textLabel.Text =btn.Name
end)
btn.MouseLeave:connect(function()
textLabel.Text =''
end)end end
Report Abuse
GreedTaka is not online. GreedTaka
Joined: 12 Dec 2014
Total Posts: 1503
18 Dec 2016 08:40 PM
or actually can you select a gui with mouse.Move:connect(function() instead? of hover
Report Abuse
Captain_PeachFuzz is not online. Captain_PeachFuzz
Joined: 08 Apr 2009
Total Posts: 223
18 Dec 2016 08:43 PM
Yea, you can get the Mouse's x and y, then determine if they are over the Position of Gui, and under Position+Size of gui.


~Who's awesome? You're awesome!
Report Abuse
GreedTaka is not online. GreedTaka
Joined: 12 Dec 2014
Total Posts: 1503
18 Dec 2016 08:44 PM
how do i do that
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
18 Dec 2016 08:47 PM
put the frame inside of another frame

if the mouse is moved off of a gui then it can be a bit glitchy
Report Abuse
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
18 Dec 2016 08:49 PM
inside = false

btn.MouseEnter:connect(function()
if not inside then return end
inside = true
print('inside')
end)

btn.MouseLeave:connect(function()
if inside the return end
inside = false
print('outside')
end)


I like cake.
Report Abuse
GreedTaka is not online. GreedTaka
Joined: 12 Dec 2014
Total Posts: 1503
18 Dec 2016 08:56 PM
how do i do what captain said
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
18 Dec 2016 08:57 PM
that would require some sort of loop so not 'efficient'
Report Abuse
GreedTaka is not online. GreedTaka
Joined: 12 Dec 2014
Total Posts: 1503
18 Dec 2016 09:04 PM
already have it so it would save space lol
Report Abuse
GreedTaka is not online. GreedTaka
Joined: 12 Dec 2014
Total Posts: 1503
18 Dec 2016 09:34 PM
b
Report Abuse
GreedTaka is not online. GreedTaka
Joined: 12 Dec 2014
Total Posts: 1503
18 Dec 2016 10:42 PM
b
Report Abuse
GreedTaka is not online. GreedTaka
Joined: 12 Dec 2014
Total Posts: 1503
18 Dec 2016 11:48 PM
b
Report Abuse
GreedTaka is not online. GreedTaka
Joined: 12 Dec 2014
Total Posts: 1503
19 Dec 2016 12:22 AM
b
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