Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

MY LOADING GUI DOESN'T WORK AND I PUT IT IN A LOCAL SCRIPT IN REPLICATED FIRST?

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" textLabel.Size = UDim2.new(1,0,1,0) textLabel.FontSize = Enum.FontSize.Size14

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

screen.Parent = nil

1 comment

0

You cannot ask questions like this. You are pretty much saying "here is my code, now fix it for me" rather than "I am having an issue, would you mind helping me out?". Do not post questions in all capitals either, it won't help you get your question answered.

3 answers

Please put your code in lua. If you do not know how to, simply click the blue bubble and add your code in the lines.

2 comments

0

IT IS IN LUA

0

He means put it in a code block. And stop with your shouting.

When asking a question, you dont tend to put the entire question in the title and your script in the bottom. Nor do you post the title and comments In capitals. Its highly annoying, which just reduces the chance you're going to get an answer.

Also please put your code in code block, all you have to do is click the lua button and put your code in that, making it easier to read.

Scripts dont work in ReplicatedFirst. Change it rather to PlayerGui and heres the new code:

game:service('ReplicatedFirst'):RemoveDefaultLoadingScreen()

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

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

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

screen.Parent = nil

Hope this helps! If not tell output! ~marcoantoniosantos3 (Remember to make this correct answer)

This discussion is preserved as it was. New answers, comments, and votes are closed.