Roblox Plugin [ NEED HELP ]

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



And produce script like
local newScript = Instance.new(“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
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new(‘Folder’, player)
leaderstats.Name = ‘leaderstats’

local Rank = Instance.new('StringValue', leaderstats)
Rank.Name = 'Rank'

local Regiment = Instance.new('StringValue', leaderstats)
Regiment.Name = 'Regiment'

local Level = Instance.new('StringValue', leaderstats)
Level.Name = 'Level'

end)

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