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

Does anybody here know how to make a Introduction Gui like Pet Simulator X & Southwest Florida Beta?

i’m Surprising my Friend CalypsoGames he’s own Introduction for he’s own Studio. I want him to have the Best, He did everything to help me. He’s the reason why i know about studio

Features:

  • Waiting for 5 Seconds for the Skip button to appear (Popup tween)
  • Waiting for 1 Minute for the Gui to fade and continue playing
  • Fades instead of Tweening Gui

Last Notes:

Thank you for the help, I really appreciate it. I hope my Friend CalypsoGames will be happy about this.

3 Likes

These introduction screens actually load assets to make sure the player sees everything as it’s supposed to be.

If you just want to make a gui that appears for a certain amount of time then put a ScreenGui in game.StarterGui.

Then customize it however you want.

In a LocalScript do this:

game.StarterGui.ScreenGui.Enabled = true
task.wait(60)
game.StarterGui.ScreenGui.Enabled = false

If I was on PC i would probably show you how to make it exactly how you want, but currently im on Phone

2 Likes

So how do i make it fade once it reaches 1 minute?

1 Like

use tweens

local TweenService = game:GetService("TweenService")

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

if you want everything in the gui to fade out then loop through the children and do the same thing without waiting for the tween to complete, and setting its data (the stuff inside {}) to the correct property

2 Likes

Oh ok thank you, How about make the Skip Button appear in 5 seconds in the loading screen? (Like psx)

1 Like

change task.wait(60) to task.wait(5) then make the skip button show

then add a variable that is set to true if you press the skip button

then after you connect the skip button’s mousebutton1click do this

local t = 0
repeat
    task.wait(1)
    t += 1
until NAME OF YOUR VARIABLE or t >= 55
-- tween code here without the task.wait(60)
1 Like

So this one

local t = 0
repeat
task.wait(1)
t += 1
until NAME OF YOUR VARIABLE or t >= 55
local TweenService = game:GetService(“TweenService”)

task.wait(60)
local t = TweenService:Create(gui, TweenInfo.new(0.5), { BackgroundTransparency = 1 })
t:Play()
t.Completed:Wait()
gui:Destroy()
– tween code here without the task.wait(60)

1 Like

Sorry for the bad format. I’m on mobile

1 Like

remove the task.wait(60) and make a variable that you set it true when you press the skip button that appears after a task.wait(5)

do not replace the script with this, place it above it

task.wait(5)
local skipped = false

skipbutton.Visible = true
skipbutton.MouseButton1Click:Connect(function()
     skipped = true
end)
-- the rest of the code
1 Like

Oooh so this

local skipped = false

skipbutton.Visible = true
skipbutton.MouseButton1Click:Connect(function()
     skipped = true
end)
local TweenService = game:GetService("TweenService")

task.wait(60)
local t = TweenService:Create(gui, TweenInfo.new(0.5), { BackgroundTransparency = 1 })
t:Play()
t.Completed:Wait()
gui:Destroy()
local t = 0
repeat
    task.wait(1)
    t += 1
until NAME OF YOUR VARIABLE or t >= 55
-- tween code here without the task.wait(60)```
1 Like

Oooooh, I got alot of red and orange lines…

1 Like

Here is the Items i used for the Gui

Main

1 Like

remove the first task.wait(60)
and change NAME OF YOUR VARIABLE to skipped

1 Like

oh ok thanks! (character limit ehehe)

1 Like

That means this code here is correct?

local skipped = false

skipbutton.Visible = true
skipbutton.MouseButton1Click:Connect(function()
     skipped = true
end)
local TweenService = game:GetService("TweenService")

task.wait(60)
local t = TweenService:Create(gui, TweenInfo.new(0.5), { BackgroundTransparency = 1 })
t:Play()
t.Completed:Wait()
gui:Destroy()
local t = 0
repeat
    task.wait(1)
    t += 1
until NAME OF YOUR VARIABLE or t >= 55
-- tween code here without the task.wait(60)```
1 Like

I did some edits, The skipbutton has errors

Edited Code

local skipped = false

local SkipButton = game.StarterGui.Introduction.MainFrame.SkipButton

SkipButton.Visible = true
SkipButton.MouseButton1Click:Connect(function()
	skipped = true
end)
local TweenService = game:GetService("TweenService")

task.wait(60)
local t = TweenService:Create(gui, TweenInfo.new(0.5), { BackgroundTransparency = 1 })
t:Play()
t.Completed:Wait()
gui:Destroy()
local t = 0
repeat
	task.wait(1)
	t += 1
until skipped or t >= 55
-- tween code here without the task.wait(60)```
1 Like

no

you need to define gui too, i dont know where you are storing it

local skipped = false

skipbutton.Visible = true
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()
1 Like

where do i put that part? (character limit)

1 Like

what part?
thats the entire script just define gui and skipbutton

1 Like

Ohh so that script will be in a different localscript parented to SkipButton?

1 Like