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

Why won't Custom Loading Screen work for me?

Asked by 9 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 " .. 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?

1
code block please SurVur 86 — 9y
0
Could you add Code Block please. woodengop 1134 — 9y
0
^ Please add a code block Anciteify 70 — 9y
0
Well I'm new to scripting and I'm just now learning but, Can you tell me whats a code block? goodfunnygery 0 — 9y
View all comments (4 more)
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. attackonkyojin 135 — 9y
0
Wouldn't I have to Enable HttpService? goodfunnygery 0 — 9y
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. Redbullusa 1580 — 9y
0
@goodfunnygery http://i.imgur.com/Acsz0hV.png Redbullusa 1580 — 9y

1 answer

Log in to vote
0
Answered by 9 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 " .. 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!

0
wait I copied it all and I used it but its still not working here meet me on roblox and ill show u goodfunnygery 0 — 9y
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. Redbullusa 1580 — 9y
Ad

Answer this question