|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 29 May 2016 08:10 AM |
NOT IN STARTERGUI!!!!!
Private Drive - Residents Only |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
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
|
  |
| 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 |
|
|
| |
|