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)
You can create a multi-line string literal using either double square brackets or the \n (newline) escape sequence.
print([[ Hello World! ]]) print("Hello\nWorld!")
In your case, I would simply use the first option and copy paste the code into the string.
Just put enter in then paste all your code in there. I don't know what else to say.