|
| 31 Oct 2013 09:57 PM |
local Mouse = game.Players.LocalPlayer:GetMouse() Mouse.KeyDown:connect(function(key) if string.byte(key) == 13 then FirstStage.Visible = false end end) |
|
|
| Report Abuse |
|
|
Absurdism
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 2568 |
|
|
| 31 Oct 2013 10:01 PM |
| You know you're right, but you're wrong? |
|
|
| Report Abuse |
|
|
|
| 31 Oct 2013 10:03 PM |
ahghagha my mind is melted from repeating this 10000 times.
|
|
|
| Report Abuse |
|
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
| |
|
|
| 31 Oct 2013 10:07 PM |
IIRC, key events don't fire if you're typing into a textboxes. Are you doing that, maybe?
I can't think of any other reason why this wouldn't work. |
|
|
| Report Abuse |
|
|
Absurdism
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 2568 |
|
|
| 31 Oct 2013 10:07 PM |
| wait for the player's data |
|
|
| Report Abuse |
|
|
|
| 31 Oct 2013 10:08 PM |
No i'm not typing in a text box. You can see what I'm trying to do at Ship yards(in my places) |
|
|
| Report Abuse |
|
|
|
| 31 Oct 2013 10:10 PM |
Okay, maybe there's something wrong, really really wrong in my script. script.Parent:WaitForChild("FirstStage") --//LOCAL VARIABLES --//LOADUP
local EnterScreen = true --//FirstStage local FirstStage = script.Parent.FirstStage local EnterKey = FirstStage.ENTERKEY
--//Interactions --//First Stage Screen Children = FirstStage.ENTERKEY:GetChildren()
for i = 1,#Children do while EnterScreen do if Children[i].Name ~= "Logo" then wait(.1) Children[i].BackgroundTransparency = 1 Children[i].TextTransparency = 1 EnterKey.BackgroundTransparency = Children[i].BackgroundTransparency EnterKey.TextTransparency = Children[i].TextTransparency wait(.2) Children[i].BackgroundTransparency = .8 Children[i].TextTransparency = .8 EnterKey.BackgroundTransparency = Children[i].BackgroundTransparency EnterKey.TextTransparency = Children[i].TextTransparency wait(.2) Children[i].BackgroundTransparency = .6 Children[i].TextTransparency = .6 EnterKey.BackgroundTransparency = Children[i].BackgroundTransparency EnterKey.TextTransparency = Children[i].TextTransparency wait(.2) Children[i].BackgroundTransparency = .4 Children[i].TextTransparency = .4 EnterKey.BackgroundTransparency = Children[i].BackgroundTransparency EnterKey.TextTransparency = Children[i].TextTransparency wait(.2) Children[i].BackgroundTransparency = .2 Children[i].TextTransparency = .2 EnterKey.BackgroundTransparency = Children[i].BackgroundTransparency EnterKey.TextTransparency = Children[i].TextTransparency wait(.2) Children[i].BackgroundTransparency = 0 Children[i].TextTransparency = 0 EnterKey.BackgroundTransparency = Children[i].BackgroundTransparency EnterKey.TextTransparency = Children[i].TextTransparency wait(.2) Children[i].BackgroundTransparency = .2 Children[i].TextTransparency = .2 EnterKey.BackgroundTransparency = Children[i].BackgroundTransparency EnterKey.TextTransparency = Children[i].TextTransparency wait(.2) Children[i].BackgroundTransparency = .4 Children[i].TextTransparency = .4 EnterKey.BackgroundTransparency = Children[i].BackgroundTransparency EnterKey.TextTransparency = Children[i].TextTransparency wait(.2) Children[i].BackgroundTransparency = .6 Children[i].TextTransparency = .6 EnterKey.BackgroundTransparency = Children[i].BackgroundTransparency EnterKey.TextTransparency = Children[i].TextTransparency wait(.2) Children[i].BackgroundTransparency = .8 Children[i].TextTransparency = .8 EnterKey.BackgroundTransparency = Children[i].BackgroundTransparency EnterKey.TextTransparency = Children[i].TextTransparency wait(.2) Children[i].BackgroundTransparency = 1 Children[i].TextTransparency = 1 EnterKey.BackgroundTransparency = Children[i].BackgroundTransparency EnterKey.TextTransparency = Children[i].TextTransparency elseif EnterScreen ~= true then Children[i].Visible = false end end end Mouse = game.Players.LocalPlayer:GetMouse() Mouse.KeyDown:connect(function(key) if key:byte() == 13 then script.Parent.FirstStage.Visible = false EnterScreen = false end end) Although I don't see what it is. |
|
|
| Report Abuse |
|
|
|
| 31 Oct 2013 10:23 PM |
Found a fix; Have a script outside of the GUI. heh |
|
|
| Report Abuse |
|
|