How do I make a player vanish from leaderboard?

Im trying to make a player disappear from the default roblox leaderboard. I kinda have something that could work but I can’t test and Im not sure how to.
this is a local script inside starterplayer:


vanishPlayer = “Its4Realzies”
local function lookForPlayer()
for _,plr in ipairs(game.Players:GetChildren()) do
local plrCharacter = plr.Character
if plr.Name == vanishPlayer then
return “HERE”
else
return nil
end
end
end

if lookForPlayer() ~= nil then
if game.Players:FindFirstChild(vanishPlayer) and script.Parent.Parent.Name ~= vanishPlayer then
game.Players[vanishPlayer]:Destroy()
end
end


This won’t work. Your essentially removing the player’s ability to do anything in the game. The best way that I can think of would maybe to make your own custom leaderboard. But your idea won’t work.

2 Likes

You could reset their stats to their default values.