So my goal is that of all the stats displayed below, only the player names will be left and also the teams will be hidden. I have tried using CoreGuiType.Playerlist,false but then it doesnt show the names anymore
So my question is it possible to only display the names of the players in the game and nothing else?
If you don’t want to use the normal leaderstats and team system then couldn’t you store your stat values in a folder in the player not named “leaderstats” and for the teams you can just use a table?
Instead of a custom player list it’d be easier to do the following.
local Game = game
local Players = Game:GetService("Players")
local function OnPlayerAdded(Player)
local Stats = Instance.new("Folder")
Stats.Name = "Stats" --By not naming this 'leaderstats', stats won't appear on the default player list.
local Kills = Instance.new("IntValue")
Kills.Name = "Kills"
Kills.Parent = Stats
local Deaths = Instance.new("IntValue")
Deaths.Name = "Deaths"
Deaths.Parent = Stats
--By not using 'Team' instances teams will not be displayed on the default player list.
local Team = Instance.new("StringValue") --Team could be a string value inside the player's 'Stats' folder.
Team.Name = "Team"
Team.Value = "Red" --'Red' is the default team.
Team.Parent = Stats
Stats.Parent = Player
end
Players.PlayerAdded:Connect(OnPlayerAdded)