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 » Scripting Helpers
Home Search
 

I know as a fact I'm doing this right, but what's wrong?

Previous Thread :: Next Thread 
SirTerrenceHood is not online. SirTerrenceHood
Joined: 23 Nov 2011
Total Posts: 5903
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 is not online. 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
SirTerrenceHood is not online. SirTerrenceHood
Joined: 23 Nov 2011
Total Posts: 5903
31 Oct 2013 10:03 PM
ahghagha
my mind is melted from repeating this 10000 times.
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
31 Oct 2013 10:04 PM
What key is 13?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
31 Oct 2013 10:05 PM
return
Report Abuse
SirTerrenceHood is not online. SirTerrenceHood
Joined: 23 Nov 2011
Total Posts: 5903
31 Oct 2013 10:05 PM
Enter key
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
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 is not online. Absurdism
Joined: 18 Jul 2013
Total Posts: 2568
31 Oct 2013 10:07 PM
wait for the player's data
Report Abuse
SirTerrenceHood is not online. SirTerrenceHood
Joined: 23 Nov 2011
Total Posts: 5903
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
SirTerrenceHood is not online. SirTerrenceHood
Joined: 23 Nov 2011
Total Posts: 5903
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
SirTerrenceHood is not online. SirTerrenceHood
Joined: 23 Nov 2011
Total Posts: 5903
31 Oct 2013 10:23 PM
Found a fix;
Have a script outside of the GUI.
heh
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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