--//Variables
local Player = game.Players.LocalPlayer
local Play = script.Parent.Intro.Container.Play
local Loadout = script.Parent.Intro.Container.Loadout
local Settings = script.Parent.Intro.Container.Settings
repeat wait() until Player.Character
--// Fade Functions
function FadePlay()
for i = 1,.5,-.05 do
Play.BackgroundTransparency = i
wait(.001)
end
end
function FadeLoadout()
for i = 1,.5,-.05 do
Loadout.BackgroundTransparency = i
wait(.001)
end
end
function FadeSettings()
for i = 1,.5,-.05 do
Settings.BackgroundTransparency = i
wait(.001)
end
end
function UnFadePlay()
for i = .5,1,.05 do
Play.BackgroundTransparency = i
wait(.001)
end
end
function UnFadeLoadout()
for i = .5,1,.05 do
Loadout.BackgroundTransparency = i
wait(.001)
end
end
function UnFadeSettings()
for i = .5,1,.05 do
Settings.BackgroundTransparency = i
wait(.001)
end
end
--// Mouse Enter
Play.MouseEnter:connect(function()
FadePlay()
end)
Play.MouseLeave:connect(function()
UnFadePlay()
end)
Loadout.MouseEnter:connect(function()
FadeLoadout()
end)
Loadout.MouseLeave:connect(function()
UnFadeLoadout()
end)
Settings.MouseEnter:connect(function()
FadeSettings()
end)
Settings.MouseLeave:connect(function()
UnFadeSettings()
end)