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
 

Re: How to make GUIs appear in a certain amount of time

Previous Thread :: Next Thread 
lsaacTheAwesome is not online. lsaacTheAwesome
Joined: 19 Mar 2011
Total Posts: 1685
05 Aug 2014 01:53 PM
I want a GUi button to appear in 110 seconds

but how?

i tried this:

local screenGui = Instance.new("ScreenGui")
screenGui.Parent = script.Parent

-- Create TextButton
local textButton = Instance.new("Button")
textButton.BackgroundTransparency = 1
wait(110)
textButton.BackgroundTransparency = 0


-- Bind function to button click
textButton.MouseButton1Down:connect(function()
textButton.Text = "I've been clicked!"
end)
Report Abuse
lsaacTheAwesome is not online. lsaacTheAwesome
Joined: 19 Mar 2011
Total Posts: 1685
05 Aug 2014 01:55 PM
please help me
Report Abuse
lsaacTheAwesome is not online. lsaacTheAwesome
Joined: 19 Mar 2011
Total Posts: 1685
05 Aug 2014 01:56 PM
Oh wait here:


function onPlayerEntered(player)

local screenGui = Instance.new("ScreenGui")
screenGui.Parent = script.Parent

local textButton = Instance.new("Button")
textButton.BackgroundTransparency = 1
wait(110)
textButton.BackgroundTransparency = 0
end
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
05 Aug 2014 01:56 PM
local textButton = Instance.new("Button")

Should be

local textButton = Instance.new("TextButton")

and you forgot

textButton.Parent = script.Parent

also make sure

script.Parent = game.StarterGui
Report Abuse
lsaacTheAwesome is not online. lsaacTheAwesome
Joined: 19 Mar 2011
Total Posts: 1685
05 Aug 2014 01:59 PM
like this?


function onPlayerEntered(player)

local textButton = Instance.new("TextButton")
textButton.Parent=script.Parent

script.Parent=game.StarterGui

textButton.BackgroundTransparency = 1
wait(110)
textButton.BackgroundTransparency = 0
end



And this is a localscript, should it just be a normal script?
And the script is inside of the screenGui not in the button, should it be somewhere else?
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