-- Decompiled with the Synapse X Luau decompiler.


local v1 = {
	Name = "edit", 
	Aliases = {}, 
	Description = "Edit text in a TextBox", 
	Group = "DefaultUtil", 
	Args = { {
			Type = "string", 
			Name = "Input text", 
			Description = "The text you wish to edit", 
			Default = ""
		}, {
			Type = "string", 
			Name = "Delimiter", 
			Description = "The character that separates each line", 
			Default = ","
		} }
};
local u1 = nil;
local u2 = {
	AnchorPoint = Vector2.new(0.5, 0.5), 
	BackgroundColor3 = Color3.fromRGB(17, 17, 17), 
	BackgroundTransparency = 0.05, 
	BorderColor3 = Color3.fromRGB(17, 17, 17), 
	BorderSizePixel = 20, 
	ClearTextOnFocus = false, 
	MultiLine = true, 
	Position = UDim2.new(0.5, 0, 0.5, 0), 
	Size = UDim2.new(0.5, 0, 0.4, 0), 
	Font = Enum.Font.Code, 
	TextColor3 = Color3.fromRGB(241, 241, 241), 
	TextWrapped = true, 
	TextSize = 18, 
	TextXAlignment = "Left", 
	TextYAlignment = "Top", 
	AutoLocalize = false, 
	PlaceholderText = "Right click to exit"
};
local l__Players__3 = game:GetService("Players");
function v1.ClientRun(p1, p2, p3)
	u1 = u1 or p1.Cmdr.Util.Mutex();
	local v2 = u1();
	p1:Reply("Right-click on the text area to exit.", Color3.fromRGB(158, 158, 158));
	local v3 = Instance.new("ScreenGui");
	v3.Name = "CmdrEditBox";
	v3.ResetOnSpawn = false;
	local v4 = Instance.new("TextBox");
	for v5, v6 in pairs(u2) do
		v4[v5] = v6;
	end;
	v4.Text = p2:gsub(p3, "\n");
	v4.Parent = v3;
	v3.Parent = l__Players__3.LocalPlayer:WaitForChild("PlayerGui");
	local u4 = coroutine.running();
	v4.InputBegan:Connect(function(p4)
		if p4.UserInputType == Enum.UserInputType.MouseButton2 then
			coroutine.resume(u4, v4.Text:gsub("\n", p3));
			v3:Destroy();
			v2();
		end;
	end);
	return coroutine.yield();
end;
return v1;
