I'm making a plugin that allows you to easily create a leaderboard but I need to be able to change the stats in the table to the text of the textboxes and if their empty then skid that oen\
here's my script so far :
while wait(0.3) do local stats = (script.Parent.Stat1.Text and script.Parent.Stat2.Text and script.Parent.Stat3.Text and script.Parent.Stat4.Text) end game.Players.PlayerAdded:connect(function(player) local leaderstats = Instance.new("Model", player) leaderstats.Name = "leaderstats" for _, stat in pairs(stats) do Instance.new("IntValue", leaderstats).Name = stat end end)