Roblox Plugin [ NEED HELP ]

How to make so plugin produce leaderstats (String Value) like this?

And produce script like
local newScript =“Script”)
newScript.Parent = game:GetService(“ServerScriptService”)
newScript.Name = “Stats”
newScript.Source = the stats that we make on the picture u see how many amounts and the name of them

And the result gonna be like this
local leaderstats =‘Folder’, player)
leaderstats.Name = ‘leaderstats’

local Rank ='StringValue', leaderstats)
Rank.Name = 'Rank'

local Regiment ='StringValue', leaderstats)
Regiment.Name = 'Regiment'

local Level ='StringValue', leaderstats)
Level.Name = 'Level'


Same like in the plugin GUI Textbox, 3 amounts, and in that three Rank, Regiment and Level, Well I already made until Write Amount next and there’s “amount” textboxes and write the string, but what I want is to produce it into Script Source like the one I want above

1 Like