Hello. I want to edit the leaderboard that opens when you press tab. I know how to add extra int values but what I want to do is to add small images. Basically like this:
Think of the Roblox leaderboard as a digital scoreboard that shows player information. Now, if you want to add small images to this scoreboard when players press Tab, you’ll need to do a bit of coding.
Imagine you’re a game designer, and you want to welcome players with a personalized touch. Here’s a simplified way to do it:
Create a Warm Welcome Script: Place a script in the game that runs when a player joins. This script will create a special leaderboard with images for each player.
-- Put this script in ServerScriptService or ServerStorage
local function welcomePlayer(player)
-- Create a custom leaderboard
local leaderboard = Instance.new("PlayerGui")
leaderboard.Name = "Leaderboard"
leaderboard.Parent = player
-- Create a frame to hold the images
local frame = Instance.new("Frame")
frame.Size = UDim2.new(1, 0, 1, 0)
frame.BackgroundTransparency = 1
frame.Parent = leaderboard
-- Add welcoming images to the frame (replace these ImageLabels with your images)
local image1 = Instance.new("ImageLabel")
image1.Size = UDim2.new(0, 50, 0, 50)
image1.Position = UDim2.new(0, 10, 0, 10)
image1.Image = "rbxassetid://123456789" -- Replace with the asset ID of your image
image1.Parent = frame
local image2 = Instance.new("ImageLabel")
image2.Size = UDim2.new(0, 50, 0, 50)
image2.Position = UDim2.new(0, 70, 0, 10)
image2.Image = "rbxassetid://987654321" -- Replace with the asset ID of your image
image2.Parent = frame
-- You can add more images to make it even more welcoming
-- Connect this custom leaderboard to the player's screen
player.PlayerGui:SetTopbarTransparency(0)
end
-- Connect the function to the PlayerAdded event
game.Players.PlayerAdded:Connect(welcomePlayer)
Customize the Welcome Images: Replace the rbxassetid://123456789 and rbxassetid://987654321 with the actual asset IDs of your welcoming images. You can find the asset ID by going to the image on the Roblox website and looking at the URL.
Put the Script in the Right Place: Make sure to place this script in either ServerScriptService or ServerStorage so that it runs on the server side.
By using this script, you’re essentially giving your game a warm touch by displaying custom images for each player when they join. It’s like welcoming them with a visual greeting card on the digital scoreboard!