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
 

Mouse clicks make the mouse 'reenter' the gui

Previous Thread :: Next Thread 
checkplate is not online. checkplate
Joined: 05 Jan 2016
Total Posts: 1379
15 Jan 2016 09:37 PM
Whats this fix to this? As of right now whenever I click my frame it acts as if the mouse leaves and enters the frame. Code:


local Buttons = script.Parent:GetChildren()

local function TransparencyLerp(Current, Final, Alpha)
return Current + Alpha(Final - Current);
end

for _, Button in next, Buttons do
if Button.Name == "Button" then
Button.InputBegan:connect(function(Input, GPE)
if not GPE then else return end
print'Entered'
end)

Button.InputEnded:connect(function(Input, GPE)
if not GPE then else return end
print'Ended'
end)
end
end

#code decryptme /---./--/..--/..//-.//
Report Abuse
checkplate is not online. checkplate
Joined: 05 Jan 2016
Total Posts: 1379
15 Jan 2016 10:05 PM
++

#code decryptme /---./--/..--/..//-.//
Report Abuse
checkplate is not online. checkplate
Joined: 05 Jan 2016
Total Posts: 1379
15 Jan 2016 11:13 PM
bump

#code decryptme /---./--/..--/..//-.//
Report Abuse
lolb3 is not online. lolb3
Joined: 16 Jan 2010
Total Posts: 2268
15 Jan 2016 11:14 PM
Not entirely sure what you're trying to describe here, but this makes 0 sense


if not GPE then else return end
Why not just do
if GPE then return end
Report Abuse
checkplate is not online. checkplate
Joined: 05 Jan 2016
Total Posts: 1379
15 Jan 2016 11:16 PM
But thats not my issue. Whenever I click the gui the mouse acts like its enters the frame again and when the click is release it acts like it leaves the frame.

#code decryptme /---./--/..--/..//-.//
Report Abuse
lolb3 is not online. lolb3
Joined: 16 Jan 2010
Total Posts: 2268
15 Jan 2016 11:22 PM
How big is your frame?
Report Abuse
checkplate is not online. checkplate
Joined: 05 Jan 2016
Total Posts: 1379
15 Jan 2016 11:26 PM
Thats not the issue either.

#code decryptme /---./--/..--/..//-.//
Report Abuse
lolb3 is not online. lolb3
Joined: 16 Jan 2010
Total Posts: 2268
15 Jan 2016 11:29 PM
My best guess is that the "InputBegan" and "InputEnded" fire when the mouse enter/leave the button, in addition to any mouse clicks and stuff.
Also, I'd check the type of your button instead of checking it's name.
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