I am trying to make a type of GUI Murder Mystery 2 (MM2) Has, but I cannot do it because everything I try doesn't work. I've tried this chunk of code, but it doesn't print he "left of" part, and skips to "All assets loaded!". Is ContentProvider depreciated?
local cp = game:GetService("ContentProvider") local totalassets = cp.RequestQueueSize while cp.RequestQueueSize > 0 do print(cp.RequestQueueSize .. " left of " .. totalassets .. " assets remaining...") wait() end print("All assets loaded!")
So if you want you can do this but it won't really show how much assets there are.
game.ReplicatedFirst:RemoveDefaultLoadingScreen() local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui") PlayerGui:SetTopbarTransparency (0) local GUI = script['Whatever the name of the gui is"]:Clone() GUI.Parent = PlayerGui repeat wait(1) until game:IsLoaded() GUI.Frame:TweenPosition(UDim2.new(0,0,1,0), "InOut","Sine",0.5) wait(0.5) GUI:Destroy()
Hope this helped. (:
Btw Tween position is not really needed it just adds a cool effect before being destroyed.