
Key RequiredUniversal

-- LocalScript : StarterPlayerScripts
-- Plays a one-time join cutscene with a flash and logo text
local Players = game:GetService("Players")
local player = Players.LocalPlayer
-- Create ScreenGui
local gui = Instance.new("ScreenGui")
gui.Name = "IntroCutscene"
gui.ResetOnSpawn = false
gui.IgnoreGuiInset = true
gui.Parent = player:WaitForChild("PlayerGui")
-- Flash effect
local flash = Instance.new("Frame")
flash.Size = UDim2.new(1, 0, 1, 0)
flash.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
flash.BackgroundTransparency = 1
flash.Parent = gui
-- Title text
local title = Instance.new("TextLabel")
title.Size = UDim2.new(1, 0, 1, 0)
title.BackgroundTransparency = 1
title.Text = "Your Game Title" -- change this text!
title.TextColor3 = Color3.fromRGB(255, 255, 255)
title.Font = Enum.Font.GothamBlack
title.TextScaled = true
title.TextTransparency = 1
title.Parent = gui
-- Flash sequence
flash.BackgroundTransparency = 1
for i = 1, 10 do
flash.BackgroundTransparency = flash.BackgroundTransparency - 0.1
task.wait(0.02)
end
task.wait(0.05)
for i = 1, 10 do
flash.BackgroundTransparency = flash.BackgroundTransparency + 0.1
task.wait(0.05)
end
-- Fade in logo text
for i = 1, 20 do
title.TextTransparency = title.TextTransparency - 0.05
task.wait(0.05)
end
-- Hold for 3 seconds
task.wait(3)
-- Fade out text
for i = 1, 20 do
title.TextTransparency = title.TextTransparency + 0.05
task.wait(0.05)
end
-- Remove GUI
gui:Destroy()No comments yet for this script.



