|
| 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
|
  |
| Joined: 23 Nov 2008 |
| Total Posts: 5094 |
|
|
| 03 Feb 2016 08:46 PM |
| Do you have it in starter GUI? |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 23 Nov 2008 |
| Total Posts: 5094 |
|
|
| 04 Feb 2016 06:39 AM |
| What position is it set to |
|
|
| Report Abuse |
|
|
|
| 05 Feb 2016 09:23 AM |
| mainGui.Position = UDim2.new(1, 0, 0, 80) |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 05 Feb 2016 09:57 AM |
| Make sure you enable "Archivable" |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 07 Feb 2016 10:51 PM |
| Make sure it's a local script? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 08 Feb 2016 03:29 PM |
| YES! Thank you, Kiwi! So no I'll just put every Gui in a LocalScript, xD. |
|
|
| Report Abuse |
|
|