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.
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
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)
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
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)```
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)```
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)```
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()