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

no…
thats the same script just replace it

1 Like

ooooh so wait, let me combine them and show you.

1 Like

The skipbutton part has a Orange Underline…

1 Like

you need to define it

local skipbutton = location of the button
1 Like

oh ok

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")

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

define gui too
same way as skipbutton but local gui =

1 Like

oh ok

local skipped = false

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

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

no you dont use startgui for gui scripts

where is your local script parented to?

1 Like

In the Gui (character limit ehehehehehehehe)

1 Like

where in the gui??
fhdhdhdhdhd

1 Like

In StarterGui? egweagersthe4qtefv

1 Like

no…

the picture you sent a while up it shows the script is inside the surfacegui

so gui is equal to script.Parent.MainFrame
and skipbutton is equal to gui.SkipButton

1 Like

ooooh wait

local skipped = false

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

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

yes that should work, try running it

1 Like

I tried running it, It shows me an error saying "gui is not a valid member of LocalScript "Players.CalypsoGames.PlayerGui.Introduction.LocalScript"

1 Like

not script.gui

just gui and place it below local gui =

1 Like

what do you mean by that? (character limit)

1 Like

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

1 Like

ooooh ok thanks! Let me try to run it

It works tho, But it doesn’t seem like the SkipButton Do.