Soo in ber tweet he said he will no longer working in Miner Haven soo i have the old one but idk how to fix the infinity loading the script is long so i will show the other script in the answer part
local Ids = {}
local BaseUrl = game.ContentProvider.BaseUrl
local Loading
local Gui3D
if game:GetService("UserInputService").VREnabled then
game.ReplicatedStorage:WaitForChild("Bers3DGui")
Gui3D = require(game.ReplicatedStorage.Bers3DGui)
Loading = Gui3D:GuiTo3D(script.LoadGui,5)
Loading.Black.Transparency = 1
else
Loading = script.LoadGui
end
spawn(function()
game.ReplicatedStorage:WaitForChild("NightTime")
local function Ambience()
if game.ReplicatedStorage.NightTime.Value == true then
game.Lighting.Ambient = Color3.new(0,0,0)
game.Lighting.Brightness = 0
game.Lighting.ColorShift_Bottom = Color3.new(100/255,100/255,0)
game.Lighting.ColorShift_Top = Color3.new(45/255,84/255,86/255)
game.Lighting.OutdoorAmbient = Color3.new(70/255,60/255,60/255)
game.Lighting.FogStart = 0
game.Lighting.FogEnd = 400
if game.ReplicatedStorage:FindFirstChild("Mars") then
game.Lighting.FogColor = Color3.new(180/255, 91/255, 50/255)
else
game.Lighting.FogColor = Color3.new(32/255,41/255,72/255)
end
else
game.Lighting.Ambient = Color3.new(100/255,100/255,100/255)
game.Lighting.Brightness = 1
game.Lighting.ColorShift_Bottom = Color3.new(1,1,1)
game.Lighting.ColorShift_Top = Color3.new(45/255,84/255,86/255)
game.Lighting.OutdoorAmbient = Color3.new(160/255,160/255,160/255)
game.Lighting.FogStart = 0
game.Lighting.FogEnd = 2000
if game.ReplicatedStorage:FindFirstChild("Mars") then
game.Lighting.FogColor = Color3.new(0, 0, 0)
else
game.Lighting.FogColor = Color3.new(64/255,255/255,217/255)
end
end
end
Ambience()
end)
game.Players.LocalPlayer:WaitForChild("PlayerGui")
math.random(os.time())
Loading.Parent = game.Players.LocalPlayer.PlayerGui
Loading:WaitForChild("Center")
Loading.Center:WaitForChild("Load")
Loading.Center.Load:WaitForChild("Bar")
Loading.Center.Load.Bar.Visible = true
Loading.Center.Load.Twitter.Visible = true
game:GetService("GuiService").GuiNavigationEnabled = false
game:GetService("GuiService").AutoSelectGuiEnabled = true
Loading:WaitForChild("Black")
Loading.Black.Visible = true
Loading.Animation.Animate.Disabled = false
local CamLib = require(game.ReplicatedStorage.Kaz)
local Blur
game.ReplicatedFirst:RemoveDefaultLoadingScreen()
game.StarterGui:SetCoreGuiEnabled("All",false)
repeat wait(0.1) until workspace.CurrentCamera ~= nil
workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
workspace.CurrentCamera.CoordinateFrame = Loading.CoordFrame.Value + Vector3.new(0,1000,0)
workspace.CurrentCamera.FieldOfView = 5
CamLib.Tween(workspace.CurrentCamera.CFrame, Loading.CoordFrame.Value, Loading.CoordFrame.Value + (Loading.CoordFrame.Value.lookVector * 1000), 7, nil, false, 30)
-- workspace.CurrentCamera:Interpolate(Loading.CoordFrame.Value, Loading.CoordFrame.Value + (Loading.CoordFrame.Value.lookVector * 1000),5)
--[[
if game.VIPServerId == "" then
workspace.CurrentCamera.CoordinateFrame = Loading.CoordFrame.Value
else
workspace.CurrentCamera.CoordinateFrame = Loading.CoordFrameIs.Value
end
]]
if true then
game.ReplicatedStorage:WaitForChild("Blur")
Blur = game.ReplicatedStorage.Blur:Clone()
Blur.Parent = workspace.CurrentCamera
end
local EarlyTarget
game.ReplicatedStorage:WaitForChild("Items")
for i,Item in pairs(game.ReplicatedStorage.Items:GetChildren()) do
table.insert(Ids,"http://roblox.com/asset?Id="..Item.ThumbnailId.Value)
end
function scan(Object)
if Object:IsA("ImageLabel") or Object:IsA("ImageButton") then
table.insert(Ids,Object.Image)
elseif Object:IsA("Sound") then
table.insert(Ids,Object.SoundId)
end
for i,v in pairs(Object:GetChildren()) do
scan(v)
end
end
--Loading.Black.Visible = false
game.ReplicatedStorage:WaitForChild("GUI")
local GUI
local USI = game:GetService("UserInputService")
local IsMobile = USI.TouchEnabled and not(USI.MouseEnabled) and not(USI.KeyboardEnabled)
if game:GetService("UserInputService").VREnabled then
GUI = Gui3D:GuiTo3D(game.ReplicatedStorage.GUI, 10)
elseif game:GetService("GuiService"):IsTenFootInterface() or game:GetService("UserInputService").GamepadEnabled or IsMobile then
GUI = game.ReplicatedStorage.OldGui
else
GUI = game.ReplicatedStorage.GUI
end
scan(GUI)
scan(Loading)
--[[
spawn(function()
repeat wait() until game.Players.LocalPlayer.Character
workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
if Loading ~= nil and Loading:FindFirstChild("CoordFrame") ~= nil then
workspace.CurrentCamera.CoordinateFrame = Loading.CoordFrame.Value
if game.VIPServerId == "" then
workspace.CurrentCamera.CoordinateFrame = Loading.CoordFrame.Value
else
workspace.CurrentCamera.CoordinateFrame = Loading.CoordFrameIs.Value
end
end
end)
]]
if game:GetService("UserInputService").TouchEnabled then
game.Players.LocalPlayer.PlayerGui.TouchGui.TouchControlFrame.Visible = false
end
wait(1)
local Queue = #Ids
local DoneLoading = false
spawn(function()
game:GetService("ContentProvider"):PreloadAsync(Ids)
DoneLoading = true
end)
spawn(function() -- Don't let loading assets take longer than 15 seconds
wait(15)
DoneLoading = true
end)
--[[
for Num,Id in pairs(Ids) do
game.ContentProvider:Preload(Id)
end
]]
spawn(function()
wait(2)
for i=1,30 do
Loading.Black.Transparency = Loading.Black.Transparency + (1/30)
Loading.Black.TextStrokeTransparency = Loading.Black.TextStrokeTransparency + (1/20)
wait(0.08)
end
Loading.Black.Visible = false
end)
local StartTime = tick()
repeat
game:GetService("RunService").Heartbeat:wait()
local Progress = (Queue-game.ContentProvider.RequestQueueSize)/Queue
Loading.Center.Load.Bar.Progress.Size = UDim2.new(Progress,0,0.9,0)
until DoneLoading
Loading.Center.Load.Bar.Progress.Size = UDim2.new(1,0,0.9,0)
wait(1)
Loading.Center.Load.Visible = false
local EndPosition
if workspace.CurrentCamera.ViewportSize.Y < 650 then
Loading.Logo.Size = UDim2.new(0,495,0,450)
EndPosition = UDim2.new(0.5, -235, -0.2, 0)
Loading.Logo.Position = UDim2.new(0.5, -235, 0.5, -400)
Loading.Play.Position = UDim2.new(0.5,-300,0.3,0)
Loading.Solo.Position = UDim2.new(0.5,0,0.3,0)
elseif workspace.CurrentCamera.ViewportSize.Y < 950 then
EndPosition = UDim2.new(0.5, -470, 0.2, -200)
Loading.Logo.Position = UDim2.new(0.5, -470, 0.5, -400)
else
EndPosition = UDim2.new(0.5, -470, 0.3, -300)
Loading.Logo.Position = UDim2.new(0.5, -470, 0.5, -400)
end
Loading.Logo:TweenPosition (
EndPosition,
Enum.EasingDirection.Out,
Enum.EasingStyle.Sine,
1,
true)
spawn(function()
for i=1,25 do
Loading.Logo.ImageTransparency = 1-i/25
wait()
end
end)
wait(0.4)
Loading.FireworkLaunch:Play()
wait(0.4)
Loading.FireworkLeft.Position = UDim2.new(0.5, -470, 0.5, -270)
Loading.FireworkLeft:TweenPosition (
UDim2.new(0.5, -550, 0.3, -260),
Enum.EasingDirection.Out,
Enum.EasingStyle.Sine,
0.6,
true)
spawn(function()
for i=1,50 do
Loading.FireworkLeft.ImageTransparency = 1-i/100
wait(0.05)
end
end)
wait(0.1)
Loading.FireworkRight.Position = UDim2.new(0.5, -470, 0.5, -270)
Loading.FireworkRight:TweenPosition (
UDim2.new(0.5, -400, 0.3, -260),
Enum.EasingDirection.Out,
Enum.EasingStyle.Sine,
0.6,
true)
spawn(function()
for i=1,50 do
Loading.FireworkRight.ImageTransparency = 1-i/100
wait(0.05)
end
end)
wait(0.3)
Loading.FireworkExplode:Play()
wait(1.5)
--[[
spawn(function()
for i=1,50 do
Loading.Logo.Position = UDim2.new(0.5, -470, 0.5, (-250)-i)
Loading.Logo.ImageTransparency = 1 - (i/50)
wait(0.05)
end
end)
wait(0.5)
spawn(function()
for i=1,25 do
Loading.FireworkLeft.Position = UDim2.new(0.5, -470-i, 0.5, (-300)-i)
Loading.FireworkLeft.ImageTransparency = 1 - (i/35)
wait()
end
end)
wait(0.3)
spawn(function()
for i=1,25 do
Loading.FireworkRight.Position = UDim2.new(0.5, -470+i, 0.5, (-300)-i)
Loading.FireworkRight.ImageTransparency = 1 - (i/35)
wait()
end
end)
--]]
Loading.Play.Visible = true
print("VIP ID: "..game.VIPServerId)
if not workspace:FindFirstChild("Private") then
Loading.Solo.Visible = true
else
Loading.Solo.Visible = false
Loading.Play.Position = UDim2.new(0.5,-150,0.74,0)
end

1 comment
We only help people with work that is their own.