Leaderboard to UI

Hello, I need help with making a a minute overhead UI, example

Roblox Vibe NYC, the “Level:” rank is the same thing as minute.

I am seeking to make a overhead ui that matches the minutes on the players leaderboard.

I understand that you would also have to include the script in the overhead UI that I have.

sorry if this is confusing to understand I am currently writing this on my phone, will re-edit soon

Here is the script not owned by me

	local Lead = Instance.new("IntValue",Player)
	Lead.Name = "leaderstats"
	local Cash = Instance.new("IntValue",Lead)
	Cash.Name = "Minutes Played"
	Cash.Value = 0
	 
	DataStore = game:GetService("DataStoreService"):GetDataStore("MinutesPlayed")
	local Key = Player.userId
	local Data = DataStore:GetAsync(Key)
	
	if Data then
		Cash.Value = Data
	end
end)

game.Players.ChildRemoved:connect(function(Player)
	local Key = Player.userId
	DataStore:SetAsync(Key,Player.leaderstats.Cash.Value)
end)

while wait(60) do
minutes = minutes + 1
end````

Thanks so much for your help! i’ll test it asap, and tell you if it works or not.

1 Like

Wait, that would be a local script inside of the GUI, or the rank GUI?