im making a plugin, and it should make a script but i dont know how it would make multiple lines, my current code
local toolbar = plugin:CreateToolbar("Create Part")
local CHS = game:GetService("ChangeHistoryService")
local button = toolbar:CreateButton("Add leaderstats", "Creates quicker", "rbxassetid://4370186570")
button.Click:Connect(function()
local leaderstats = Instance.new("Script")
leaderstats.Parent = game.Workspace
leaderstats.Source = "-- i need help here lol"
end)

1 comment
actually, now that I think about it, it might be wrong syntax. Try it either way.