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: Making a GUI after the server starts?

Previous Thread :: Next Thread 
wackeyhd5cool is not online. wackeyhd5cool
Joined: 24 Nov 2010
Total Posts: 906
29 May 2016 07:57 AM
I noticed if you create a textbutton through a script and make its parent a ScreenGui, it shows that is in the screen gui but the box doesn't show up on my screen. Any idea why and how to fix it?


Report Abuse
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
29 May 2016 08:01 AM
So, StaterGui is the GUI set you are given on spawn, so if you respawn with GUI reset on spawn, you'll see the text box. However, if you want to create a new text button do this:

Button.Parent = game:GetService"Players".WolfgangVonPrinz.PlayerGui


Private Drive - Residents Only
Report Abuse
AxonMega is not online. AxonMega
Joined: 29 Aug 2014
Total Posts: 2403
29 May 2016 08:03 AM
For you to be able to see a text button, it has to be inside a ScreenGui which has to be inside StarterGui.
Report Abuse
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
29 May 2016 08:10 AM
NOT IN STARTERGUI!!!!!


Private Drive - Residents Only
Report Abuse
wackeyhd5cool is not online. wackeyhd5cool
Joined: 24 Nov 2010
Total Posts: 906
29 May 2016 08:37 AM
I don't think that worked. This is my code:

wait(10)

local b = Instance.new("ScreenGui")
b.Parent = game.Players.LocalPlayer.PlayerGui
for i=0,4 do
wait(1)
a = Instance.new("TextButton")
a.Parent = game.Players.LocalPlayer.PlayerGui.ScreenGui
a.Position = UDim2.new(0,0,0,i*50)
end


Report Abuse
wackeyhd5cool is not online. wackeyhd5cool
Joined: 24 Nov 2010
Total Posts: 906
29 May 2016 11:25 AM
Anyone?


Report Abuse
gskw is not online. gskw
Joined: 05 Jan 2013
Total Posts: 1364
29 May 2016 11:31 AM
Make sure that you also give the buttons a size.
Report Abuse
Sub_Dev is not online. Sub_Dev
Joined: 16 Jun 2013
Total Posts: 553
29 May 2016 12:12 PM
Make sure the is in a local script,

wait(10)

local b = Instance.new("ScreenGui")
b.Parent = game.Players.LocalPlayer.PlayerGui
for i=0,4 do
wait(1)
a = Instance.new("TextButton")
a.Parent = game.Players.LocalPlayer.PlayerGui.ScreenGui
a.Position = UDim2.new(0,0,0,i*50)
end


else loclplayer don't work


Report Abuse
wackeyhd5cool is not online. wackeyhd5cool
Joined: 24 Nov 2010
Total Posts: 906
29 May 2016 12:26 PM
@Gs 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