Vexeris
|
  |
| Joined: 03 Apr 2014 |
| Total Posts: 468 |
|
|
| 07 Apr 2014 06:26 PM |
how can i make a script in a gui that when i press f3 it opens it ??
|
|
|
| Report Abuse |
|
|
Vexeris
|
  |
| Joined: 03 Apr 2014 |
| Total Posts: 468 |
|
| |
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
|
| 07 Apr 2014 06:29 PM |
Why f3? z = key:lower() == "z" gui = game.Lighting.Gui:clone() game.Players.PlayerAdded:connect(function(p) if p.z then gui.Parent = p.PlayerGui end end) |
|
|
| Report Abuse |
|
|
Vexeris
|
  |
| Joined: 03 Apr 2014 |
| Total Posts: 468 |
|
|
| 07 Apr 2014 06:33 PM |
| well that din't work how about making a gui button that when u press it opens a "imagelabel" |
|
|
| Report Abuse |
|
|
Vexeris
|
  |
| Joined: 03 Apr 2014 |
| Total Posts: 468 |
|
|
| 07 Apr 2014 06:33 PM |
| nvm i did that i just need to know what to put in the localscript |
|
|
| Report Abuse |
|
|
|
| 07 Apr 2014 06:34 PM |
You can't do it with F3. I'll do it with F4.
--local script, inside a frame in a GUI
plr = game.Players.LocalPlayer mouse = plr:GetMouse()
mouse.KeyDown:connect(function(key) if key:byte() == 29 then script.Parent.Visible = not script.Parent.Visible end end)
Try this. If it doesn't work, do this:
plr = game.Players.LocalPlayer mouse = plr:GetMouse() db = false
mouse.KeyDown:connect(function(key) if key:byte() == 29 and db == false then script.Parent.Visible = true elseif key:byte() == 29 and db == true then script.Parent.Visible = false db = false end end)
|
|
|
| Report Abuse |
|
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
|
| 07 Apr 2014 06:35 PM |
From here on out I don't reply to nub posters
mine would work you just copied my whole post xc |
|
|
| Report Abuse |
|
|
|
| 07 Apr 2014 06:36 PM |
db = false
script.Parent.MouseButton1Down:connect(function() if db == false then db = true script.Parent.Parent.ImageLabel.Visible = true elseif db == true then db = false script.Parent.Parent.ImageLabel.Visible = false end end) |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 07 Apr 2014 06:36 PM |
| F3 is a locked key, as it's the trigger to bring you to the wiki in game. So do F4 or F2 (string.byte(29/27)) |
|
|
| Report Abuse |
|
|
|
| 07 Apr 2014 06:37 PM |
@Blade; I don't think your will work.
Looking at it:
It is saying player.KeyDown. If I am correct, you can only use KeyDown with the mouse. So mine would work. |
|
|
| Report Abuse |
|
|
Vexeris
|
  |
| Joined: 03 Apr 2014 |
| Total Posts: 468 |
|
|
| 07 Apr 2014 06:39 PM |
| great but there is still one mistake it is open before even pressing f4 |
|
|
| Report Abuse |
|
|
Vexeris
|
  |
| Joined: 03 Apr 2014 |
| Total Posts: 468 |
|
| |
|
|
| 07 Apr 2014 06:42 PM |
Then you make it not visible. Do this:
View>Explorer Views>Properties
Explorer>StarterGui>ScreenGui>Frame.Visible = false
You just click StarterGui, click the screen Gui, select the frame, and then look on the properties screen. Keep on looking on it, until you find something called 'Visible.' It should have a check box beside it. Click it if it is checked. |
|
|
| Report Abuse |
|
|
| |
|
Vexeris
|
  |
| Joined: 03 Apr 2014 |
| Total Posts: 468 |
|
|
| 07 Apr 2014 06:43 PM |
| Ok make a tshirt and me buy !!!!!!!!111111111111111111111 |
|
|
| Report Abuse |
|
|
|
| 07 Apr 2014 06:43 PM |
| http://www.roblox.com/My/Item.aspx?ID=73993737 |
|
|
| Report Abuse |
|
|
Vexeris
|
  |
| Joined: 03 Apr 2014 |
| Total Posts: 468 |
|
| |
|
| |
|