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

Why won't Custom Loading Screen work for me?

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 " .. string.rep(".",count) count = (count + 1) % 4 wait(.3) end

screen.Parent = nil

Is this right or wrong I've used it a lot but its still not working idk what to do, can any of you guy's please help me?

8 comments

1

code block please

0

Could you add Code Block please.

0

^ Please add a code block

0

Well I'm new to scripting and I'm just now learning but, Can you tell me whats a code block?

0

A code block is when you turn your script when you paste it on here to look like lua code. Copy all of your script part then press on the Lua logo when you post to code block.

0

Wouldn't I have to Enable HttpService?

0

@goodfunnygery HttpService has nothing to do with putting your code in the code block. What we mean is to edit your question, highlight your code, click on the blue "Lua" logo on top of the text box, then save it.

0

1 answer

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 " .. string.rep(".",count) count = (count + 1) % 4 wait(.3) end

screen.Parent = nil

This is a code Block. BTW THIS IS NOT AN ANSWER SO PLEASE DO NOT DOWN VOTE ME!

2 comments

0

wait I copied it all and I used it but its still not working here meet me on roblox and ill show u

0

@goodfunnygery attackonkyojin just stated that this is not the answer, but just to show you what the use of the code block feature looks like.

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