Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is my GUI Script Not Working? (Please Help!)

Asked by 10 years ago

My GUI Script isn't working, the GUI sits in front of the players face without moving the whole game and then disconnects the player. This is the Custom Loading Screen Script:

script.Parent:RemoveDefaultLoadingScreen()

local screen = Instance.new("ScreenGui") screen.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

local textLabel = Instance.new("TextLabel") textLabel.Parent = screen textLabel.Text = "Loading Game" textLabel.Size = UDim2.new(1,0,1,0) textLabel.FontSize = Enum.FontSize.Size200

local count = 0 while game.ContentProvider.RequestQueueSize > 0 do textLabel.Text = "Loading Game" for i=1,count do textLabel.Text = textLabel.Text .. "." end count = (count + 1) % 4 wait(.3) end

screen.Parent = nil

1
I'm not to sure but I don't think there is a font size called size200 only goes up to 48 DragonSkyye 517 — 10y
0
Yeah, font sizes are Enums set by ROBLOX so you can't use custom values like 200. Spongocardo 1991 — 10y

Answer this question