I have this script that when the load of the Content is 0, so its fully loaded, my intro plays, but for some reason it repeats because it hit 0 again, any way to fix this? Heres my script.
–// Client
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Camera = game.Workspace.CurrentCamera
game.Lighting.Blur.Size = 15
–// GUIs
local PlayButton = script.Parent.PLAY
–// Main
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