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: Scripting Question

Previous Thread :: Next Thread 
KingTwisted is not online. KingTwisted
Joined: 09 Jul 2013
Total Posts: 783
13 Mar 2016 09:54 PM
I've been working on an inventory for my upcoming Post-apocalyptic project, mainly the GUI side of it though, as Im not the greatest with scripting. My question is, how would I write a script that makes a text box appear when hovering over an ImageLabel?
Report Abuse
myactivetestplace is not online. myactivetestplace
Joined: 11 Jul 2015
Total Posts: 3733
13 Mar 2016 09:57 PM
http://wiki.roblox.com/index.php?title=API:Class/GuiObject/MouseEnter
http://wiki.roblox.com/index.php?title=API:Class/GuiObject/MouseLeave
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
13 Mar 2016 09:59 PM
oh great another apoc game...so unoriginal.


Report Abuse
KingTwisted is not online. KingTwisted
Joined: 09 Jul 2013
Total Posts: 783
13 Mar 2016 10:15 PM
@Timetricks, take a look at the creations in my place. And also, do you think Apoc is original? No, do you think deadmist is original? Everything is based off another game, with its own personal twists.
Report Abuse
myactivetestplace is not online. myactivetestplace
Joined: 11 Jul 2015
Total Posts: 3733
13 Mar 2016 10:19 PM
Those maps look nice
Report Abuse
KingTwisted is not online. KingTwisted
Joined: 09 Jul 2013
Total Posts: 783
13 Mar 2016 10:30 PM
I appreciate it, I'm excited to see what I can do with the 3rd map Im working on. Most of the structures are done in my "Development Center" place, working on the terrain now.
Report Abuse
KingTwisted is not online. KingTwisted
Joined: 09 Jul 2013
Total Posts: 783
14 Mar 2016 07:52 AM
Also @myactive, thanks for the links but, that still didnt entirely answer what to do. Haha
Report Abuse
Dev_Ryan is online. Dev_Ryan
Joined: 10 Mar 2013
Total Posts: 243
14 Mar 2016 08:16 AM
Something like this:

local gui = script.Parent
local imglabel = gui:WaitForchild("ImageLabel")
local textbox = gui:WaitForChild("TextBox")
imglabel.MouseEnter:connect(function(x,y)
textbox.Visible = true
end)
imglabel.MouseLeave:connect(function(x,y)
textbox.Visible = false
end)


Report Abuse
KingTwisted is not online. KingTwisted
Joined: 09 Jul 2013
Total Posts: 783
14 Mar 2016 10:54 AM
Now I would put this as a script inside the ImageLabel that I want it to open upon being hovered over?
Report Abuse
KingTwisted is not online. KingTwisted
Joined: 09 Jul 2013
Total Posts: 783
14 Mar 2016 03:01 PM
B
Report Abuse
KingTwisted is not online. KingTwisted
Joined: 09 Jul 2013
Total Posts: 783
14 Mar 2016 06:38 PM
@Dev_Ryan. I appreciate your help but, how would I make a GUI frame with a textlabel, appear when hoving over a certain frame, from where the mouses position is?
Report Abuse
os_time is not online. os_time
Joined: 15 Feb 2014
Total Posts: 2247
14 Mar 2016 06:40 PM
"Everything is based off another game"
Are you an idiot or do you not know what everything means. [Doesn't matter if you're referring to all games or everything]


#code "Lua ~ PHP ~ CSS ~ HTML for me at least."
Report Abuse
KingTwisted is not online. KingTwisted
Joined: 09 Jul 2013
Total Posts: 783
14 Mar 2016 06:45 PM
Still. Is AR original? No, is Deadmist Original? No, they're all based off other games. That's the point. Period.
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
14 Mar 2016 07:01 PM
Obviously they are not original. There are too many similar games.


Report Abuse
ExtremeBuilder15 is not online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
14 Mar 2016 07:05 PM
Put the script in the GUI, King.
Report Abuse
KingTwisted is not online. KingTwisted
Joined: 09 Jul 2013
Total Posts: 783
14 Mar 2016 07:13 PM
In the GUI, or in the certain frame that I want to hover over in order for the script to create a frame with a textlabel?
Report Abuse
os_time is not online. os_time
Joined: 15 Feb 2014
Total Posts: 2247
14 Mar 2016 07:15 PM
Kek I'll prove you wrong at least one thing is always original as if it follows your statement it is derived from it which means the top "ancestor" is original which means not everything is original.


#code "Lua ~ PHP ~ CSS ~ HTML for me at least."
Report Abuse
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
14 Mar 2016 07:16 PM
" Everything is based off another game, with its own personal twists."

~AnotherExcuseToSayImOriginal



http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$89 Tx2,943 (づ ゚ ³ ゚)づ
Report Abuse
os_time is not online. os_time
Joined: 15 Feb 2014
Total Posts: 2247
14 Mar 2016 07:17 PM
More like an excuse to help boost self-esteem ;)


#code "Lua ~ PHP ~ CSS ~ HTML for me at least."
Report Abuse
Dev_Ryan is online. Dev_Ryan
Joined: 10 Mar 2013
Total Posts: 243
14 Mar 2016 07:36 PM
Guys, you are going off topic. KingTwisted is asking for help and you guys are just bickering. Take it to a private chat or a forum that allows bickering...

Anyways, @KingTwisted:

My script I posted above was to be put inside the gui itself, not any frames or image labels. If you want this to change, you need to edit the first 3 lines:

local gui = script.Parent -- <-- Change this to be the location of the script's parent.
local imglabel = gui:WaitForchild("ImageLabel") -- Don't forget to edit the name.
local textbox = gui:WaitForChild("TextBox") -- Same with this one!
imglabel.MouseEnter:connect(function(x,y)
textbox.Visible = true
end)
imglabel.MouseLeave:connect(function(x,y)
textbox.Visible = false
end)

And that's all you have to do! :D


Report Abuse
KingTwisted is not online. KingTwisted
Joined: 09 Jul 2013
Total Posts: 783
14 Mar 2016 09:34 PM
Appreciate it! Got it working.
Report Abuse
KingTwisted is not online. KingTwisted
Joined: 09 Jul 2013
Total Posts: 783
14 Mar 2016 09:38 PM
Right now its pretty much the design, all the guis frames, etc. Not much scripting, but would love opinions on how it is so far for a first try.

Press G to open/close.
http://www.roblox.com/games/122500524/GUI-Designing
Report Abuse
KingTwisted is not online. KingTwisted
Joined: 09 Jul 2013
Total Posts: 783
15 Mar 2016 10:20 AM
How would I add to that, in order to make a textbox not inside any of the frames that has the script/textbox, go non-visible when hovering over the frame that gives makes the textbox inside, turn visible?
Report Abuse
KingTwisted is not online. KingTwisted
Joined: 09 Jul 2013
Total Posts: 783
15 Mar 2016 12:20 PM
Also @The two people getting free posts to act ignorant and "be cool, Oh im so cool" lmao. Do you even have any places that are popular, or original? I didn't think so..

Therefor why criticize and comment when nothing useful is being said? I'm here for help, just like other are.

Thanks.
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