Making a Introduction Gui like Pet Simulator X & Southwest Florida Beta

Please, NEVER make a useless loading screen. That just irritates everyone trying to play.
Here is a very bare bones method to make it, with no skip button.

Make sure the ScreenGui has the property ResetOnSpawn set to false.

local ContentProvider = game:GetService("ContentProvider")
local LoadingUI = YourLoadingUIObject

LoadingUI.Enabled = true
ContentProvider:PreloadAsync(workspace:GetDescendants()) -- Will load everything in workspace

for i,v in pairs(LoadingUI:GetDescendants()) do
   if v:IsA("GuiObject") then
      local Info = TweenInfo.new(1,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut,0,false,0)
      local Tween = TweenService:Create(v,Info,{BackgroundTransparency = 1})
   end
end

ContentProvider:PreloadAsync() yields the current thread until all SPECIFIED objects have been loaded.
I hope this is what you’re going for.

Note that the Tweening portion will only fade out gui frames at the moment, some modifications are needed for your case.

For the skip button, you could try making a seperate script for that one to Tween out the loading screen. Just an idea, may not be the best method.

Where do I add it in this localscript?


local gui = script.Parent.MainFrame
local skipbutton = gui.SkipButton

task.wait(10)
sizebutton.Visible = true
sizebutton.Size = Udim2.new(0, 0, 0, 0)
sizebutton:TweenSize(Udim2.new(end size))
sizebutton.MouseButton1Click:Connect(function()
	skipped = true
end)
local TweenService = game:GetService("TweenService")

local t = 0
repeat
	task.wait(1)
	t += 1
until skipped or t >= 55

local t = TweenService:Create(gui, TweenInfo.new(0.5), { BackgroundTransparency = 1 })
t:Play()
t.Completed:Wait()
gui:Destroy()```

With your current system, which is complete bogus, I don’t know.

Your current system isn’t actually loading anything…
You could make a new thread for the skip button that gets rid of the loading screen and just leave the other thread yielding until it is all loaded, but at that point it wouldn’t matter because the loading screen was already gone.

So where do I put the script you provided me for?

I’ll put a script together in a bit using the one you already provided, expect a result in an hour or so, I’m busy right now.

1 Like

Oh, Oh alright so of your done here is the code

local skipbutton = gui.SkipButton

task.wait(10)
sizebutton.Visible = true
sizebutton.Size = Udim2.new(0, 0, 0, 0)
sizebutton:TweenSize(Udim2.new(end size))
sizebutton.MouseButton1Click:Connect(function()
	skipped = true
end)
local TweenService = game:GetService("TweenService")

local t = 0
repeat
	task.wait(1)
	t += 1
until skipped or t >= 55

local t = TweenService:Create(gui, TweenInfo.new(0.5), { BackgroundTransparency = 1 })
t:Play()
t.Completed:Wait()
gui:Destroy()```

Btw, Once I added this part, the Skip button doesn’t appear


sizebutton.Visible = true
sizebutton.Size = Udim2.new(0, 0, 0, 0)
sizebutton:TweenSize(Udim2.new(end size))
1 Like

It would really help, But i was looking for something like Pet Simulator X Loading screen.

YAY!!! It worked!

local gui = script.Parent.MainFrame
local skipbutton = gui.SkipButton

task.wait(20)
skipbutton.Visible = true
skipbutton.Size = UDim2.new(0, 0, 0, 0)
skipbutton:TweenSize(UDim2.new(0, 200,0, 20))
skipbutton.MouseButton1Click:Connect(function()
	skipped = true
end)
local TweenService = game:GetService("TweenService")

local t = 0
repeat
	task.wait(1)
	t += 1
until skipped or t >= 55

local t = TweenService:Create(gui, TweenInfo.new(0.5), { BackgroundTransparency = 1 })
t:Play()
t.Completed:Wait()
gui:Destroy()

I replaced sizebutton to skipbutton.

Now, How do i add a Music to it? And fade away once the Gui Starts to fade away?

It works! Does anybody know how to add sounds?

Could you send your place because what you did could be little bad you should place your Menu inside ReplicatedFirst if its inside ReplicatedFirst and you write another Code inside it it will appear faster because its removing Roblox Default Loading Screen. I could also insert a Sound what u can change easy via Script. If u dont want to send then i can tell you from here what to do

here…By the way, It’s a group game owned by MagicalGames the owner of it will be my Friend CalypsoGames and RollingDxwn

It is named (Surprise) (Surprise) - Roblox

Just tell me if you found it and maybe i can tell my friend CalypsoGames to add you.

Yeah i found it but could you send the Gui and script or i mean not the Game i mean the Game inside the Studio so i can make the Gui better

So you’re a UI Designer guy? (character limit)

and Script


Oooooooh, Ok. So where are you going to make the UI and Scripts?