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

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

Asked by 10 years ago

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

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. FearMeIAmLag 1161 — 10y

Closed as Not Constructive by FearMeIAmLag, Spongocardo, and TheeDeathCaster

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

3 answers

Log in to vote
1
Answered by 10 years ago

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.

0
IT IS IN LUA DAVIDmindcraft 0 — 10y
0
He means put it in a code block. And stop with your shouting. Perci1 4988 — 10y
Ad
Log in to vote
1
Answered by
Uroxus 350 Moderation Voter
10 years ago

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.

Log in to vote
0
Answered by 10 years ago

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)