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: Why does my GUI not appear?

Previous Thread :: Next Thread 
SpecialVirusTasker is not online. SpecialVirusTasker
Joined: 04 Oct 2014
Total Posts: 72
03 Feb 2016 08:42 PM
When I make a GUI, it appears in the test. But when I publish it in Roblox, then I play. It doesn't appear.. Any ideas why? Please help.


Thank you!
Report Abuse
ferano is not online. ferano
Joined: 23 Nov 2008
Total Posts: 5094
03 Feb 2016 08:46 PM
Do you have it in starter GUI?
Report Abuse
SpecialVirusTasker is not online. SpecialVirusTasker
Joined: 04 Oct 2014
Total Posts: 72
04 Feb 2016 06:29 AM
Yeah, it's in starter GUI in a ScreenGui folder (My Gui is a screen Gui).
Report Abuse
ferano is not online. ferano
Joined: 23 Nov 2008
Total Posts: 5094
04 Feb 2016 06:39 AM
What position is it set to
Report Abuse
SpecialVirusTasker is not online. SpecialVirusTasker
Joined: 04 Oct 2014
Total Posts: 72
05 Feb 2016 09:23 AM
mainGui.Position = UDim2.new(1, 0, 0, 80)
Report Abuse
SpecialVirusTasker is not online. SpecialVirusTasker
Joined: 04 Oct 2014
Total Posts: 72
05 Feb 2016 09:37 AM
No, it's
mainGui.Position = UDim2.new(0, 150, 0, 25)

When I test this, it appears. But when I publish it, it doesn't appear.
Report Abuse
KiwiTronik is not online. KiwiTronik
Joined: 18 Feb 2010
Total Posts: 3221
05 Feb 2016 09:57 AM
Make sure you enable "Archivable"
Report Abuse
SpecialVirusTasker is not online. SpecialVirusTasker
Joined: 04 Oct 2014
Total Posts: 72
05 Feb 2016 07:59 PM
And how do I do that?
Report Abuse
SpecialVirusTasker is not online. SpecialVirusTasker
Joined: 04 Oct 2014
Total Posts: 72
05 Feb 2016 08:01 PM
Oh, it's the Archivable in the properties of the script, right? It's enabled. Still doesn't work.
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
05 Feb 2016 08:05 PM
it's not going to appear unless you change the the gui in the player gui


#Code print("Narwhals are our future")
Report Abuse
SpecialVirusTasker is not online. SpecialVirusTasker
Joined: 04 Oct 2014
Total Posts: 72
05 Feb 2016 08:20 PM
What does that mean?
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
05 Feb 2016 08:22 PM
you have to do it like this

local gui = game.Players.LocalPlayer.PlayerGui

gui.MainGui.Position = UDimblahblahblah


#Code print("Narwhals are our future")
Report Abuse
SpecialVirusTasker is not online. SpecialVirusTasker
Joined: 04 Oct 2014
Total Posts: 72
05 Feb 2016 08:44 PM
I did that
You know what? Here's my script:

local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Parent = Game.Players.LocalPlayer.PlayerGui
local specificPlayer = Game.Players.LocalPlayer.Name
local screenGui = Instance.new("screenGui")
screenGui.Parent = ScreenGui

if specificPlayer == "SpecialVirusTasker" then
screenGui.Text = "Hi! :)"
screenGui.Size = UDim2.new(0, 150, 0 , 25)
screenGui.BackgroundColor3 = BrickColor.Blue().Color



else
screenGui.Size = UDim2.new(0, 420, 0 , 25)
screenGui.Text = "This should give a different text in the ScreenGui"
screenGui.BackgroundColor3 = BrickColor.Blue().Color
end



local xPosition = 0
local totalSpeed = 0.025

while true do
xPosition = xPosition + totalSpeed


screenGui.Position = UDim2.new(xPosition, 0, 0, 100)



if xPosition > 1 then
xPosition = 0

end
wait()

end

Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
05 Feb 2016 08:46 PM
"local screenGui = Instance.new("screenGui"

lowercase s on the instance is probably messing it up


#Code print("Narwhals are our future")
Report Abuse
SpecialVirusTasker is not online. SpecialVirusTasker
Joined: 04 Oct 2014
Total Posts: 72
07 Feb 2016 01:57 PM
Nope, doesn't work.

I even tried the wiki's version:

local screenGui = Instance.new("ScreenGui")
screenGui.Parent = Game.Players.LocalPlayer.PlayerGui
local textLabel = Instance.new("TextLabel")
textLabel.Parent = screenGui
textLabel.Text = "Hello " .. Game.Players.LocalPlayer.Name
textLabel.Size = UDim2.new(0, 100, 0, 30)

local xPosition = 1
local speed = 0.0025
while true do
xPosition = xPosition - speed
textLabel.Position = UDim2.new(xPosition, 0, 0, 0)
if xPosition < -0.1 then
xPosition = 1
end
wait()
end





Is it a problem with my account? Or is this script old?
Report Abuse
KiwiTronik is not online. KiwiTronik
Joined: 18 Feb 2010
Total Posts: 3221
07 Feb 2016 10:51 PM
Make sure it's a local script?
Report Abuse
KiwiTronik is not online. KiwiTronik
Joined: 18 Feb 2010
Total Posts: 3221
07 Feb 2016 10:55 PM
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Parent = Game.Players.LocalPlayer.PlayerGui
local specificPlayer = Game.Players.LocalPlayer.Name
local label = Instance.new("TextLabel")
label.Parent = ScreenGui

if specificPlayer == "SpecialVirusTasker" then
label.Text = "Hi! :)"
label.Size = UDim2.new(0, 150, 0 , 25)
label.BackgroundColor3 = BrickColor.Blue().Color



else
label.Size = UDim2.new(0, 420, 0 , 25)
label.Text = "This should give a different text in the ScreenGui"
label.BackgroundColor3 = BrickColor.Blue().Color
end



local xPosition = 0
local totalSpeed = 0.025

while true do
xPosition = xPosition + totalSpeed


label.Position = UDim2.new(xPosition, 0, 0, 100)



if xPosition > 1 then
xPosition = 0

end
wait()

end
Report Abuse
SpecialVirusTasker is not online. SpecialVirusTasker
Joined: 04 Oct 2014
Total Posts: 72
08 Feb 2016 03:29 PM
YES! Thank you, Kiwi! So no I'll just put every Gui in a LocalScript, xD.
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