When my Load hits 0, it starts my intro, I think my load is hitting 0 more than once, heres my script.

local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Camera = game.Workspace.CurrentCamera
game.Lighting.Blur.Size = 15

local PlayButton = script.Parent.PLAY

repeat wait()
    Camera.CameraType = Enum.CameraType.Scriptable
until Camera.CameraType == Enum.CameraType.Scriptable
Camera.CameraType = Enum.CameraType.Scriptable

local StarterGui = game:GetService("StarterGui")
StarterGui:SetCore("TopbarEnabled",false)

repeat wait() until script.Parent.Parent == game.Players.LocalPlayer:WaitForChild("PlayerGui")

while wait() do
	local Load = game:GetService("ContentProvider").RequestQueueSize
	print('Loading game ('..Load..')')
	if Load == 0 then
		wait(3)
		print("Game Loaded")
script.Soundsx:Play()
script.Parent.Seralee.ImageTransparency = 0
game:GetService("RunService").RenderStepped:connect(function()
	workspace.Camera.FieldOfView = 70 + script.Soundsx.PlaybackLoudness * 0.01
	game.Lighting.Blur.Size = script.Soundsx.PlaybackLoudness * 0.0185
	end)
	wait (21.8)
	script.Parent.PLAY.Active = true
	script.Parent.PLAY.Visible = true
	script.Parent.Seralee.ImageTransparency = 1
	
	script.Parent.ImageLabel.ImageTransparency = 0.9
	wait ()
	script.Parent.ImageLabel.ImageTransparency = 0.8
	wait ()
	script.Parent.ImageLabel.ImageTransparency = 0.7
	wait ()
	script.Parent.ImageLabel.ImageTransparency = 0.6
	wait ()
	script.Parent.ImageLabel.ImageTransparency = 0.5
	wait ()
	script.Parent.ImageLabel.ImageTransparency = 0.4
	wait ()
	script.Parent.ImageLabel.ImageTransparency = 0.3
	wait ()
	script.Parent.ImageLabel.ImageTransparency = 0.2
	wait ()
	script.Parent.ImageLabel.ImageTransparency = 0.1
	wait ()
	script.Parent.ImageLabel.ImageTransparency = 0

PlayButton.MouseButton1Click:Connect(function()
	Camera.CameraType = Enum.CameraType.Custom
	script.Parent.ImageLabel.ImageTransparency = 1
	script.Parent.ImageLabel.Visible = false
	script.Parent.ImageLabel.Active = false
	game.Lighting.Blur.Size = 15
	wait ()
	game.Lighting.Blur.Size = 12
	wait ()
	game.Lighting.Blur.Size = 9
	wait ()
	game.Lighting.Blur.Size = 6
	wait ()
	game.Lighting.Blur.Size = 5.5
	wait ()
	game.Lighting.Blur.Size = 5
    script.Soundsx:Stop()
	PlayButton:Destroy()
end)
	end
	end`

1 comment

0

for lines 35 - 53 you should use a for loop or tweening