--[[ # YAY CONTROLING THE ENTIRE INTRO FROM HERE! # ]]
--
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)

game.ReplicatedStorage.GameTrackIntro:Play()

local settingsFramePos = UDim2.new(0.377,0 , 0.272, 0)

game.Lighting.IntroBlur.Enabled = true

script.IntroGui.Enabled = true

local player = game.Players.LocalPlayer

game.StarterGui["Realism Mod"].Sprint.Enabled = false

local IntroGui = script.IntroGui
local lighting = game.Lighting
IntroGui.ButtonFrame:TweenPosition(UDim2.new(0.4, 0, 0.696, 0), "In", "Sine", 0.5)

IntroGui.ButtonFrame.PlayButton.MouseButton1Click:Connect(function() --[[ PLAY ]]--
	IntroGui.ButtonFrame:TweenPosition(UDim2.new(0, 0, -1, -1), "In", "Sine", 0.5)
	wait(0.5)
	SetValue = true
	game.StarterGui["Realism Mod"].Sprint.Enabled = true
	--[[ THIS PART OF THE SCRIPT USED TO BE A CONTROLLING CAMERA ]]--
	lighting.IntroBlur.Enabled = false
	IntroGui.Enabled = false
	workspace.CurrentCamera.CameraSubject = player.Character.Humanoid
	workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
	workspace.CurrentCamera.CFrame = player.Character.HumanoidRootPart.CFrame
	game.ReplicatedStorage.GameTrackIntro:Stop()
	game.ReplicatedStorage.GameplayAudio:Play()
end)
IntroGui.ButtonFrame.SettingButton.MouseButton1Click:Connect(function() --[[ SETTINGS ]]--
	IntroGui.ButtonFrame:TweenPosition(UDim2.new(0, 0, -1, -1), "InOut", "Sine", 0.5)
	wait(0.5)
	workspace.CurrentCamera.CameraSubject = player.Character.Humanoid
	workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
	workspace.CurrentCamera.CFrame = workspace.IntroCamera2.CFrame
	IntroGui.SettingsFrame:TweenPosition(settingsFramePos, "InOut", "Sine", 0.5)
end)
IntroGui.ButtonFrame.ChangelogButton.MouseButton1Click:Connect(function() --[[ CHANGELOGS ]]--
	IntroGui.ButtonFrame:TweenPosition(UDim2.new(0, 0, -1, -1), "InOut", "Sine", 0.5)
	wait(0.5)
	IntroGui.ChangelogFrame:TweenPosition(settingsFramePos, "InOut", "Sine", 0.5)
	workspace.CurrentCamera.CameraSubject = player.Character.Humanoid
	workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
	workspace.CurrentCamera.CFrame = workspace.IntroCamera3.CFrame
end)
