How would you go about doing this? (If it's possible)

You can’t tween it taht way, you need to use TweenService form what I know

Just set the AutomaticCanvasSize property to Y inside your ScrollingFrame.

it worked at first but now i just can’t scroll at all??

Fixed it. Nevermind. i set a different value

1 Like

Okay, so i know the message types but what about where they came from? For example

Random Error - Studio
another error - game.startergui.coollocalscript

I tried looking at some other parameters but can’t find any

Heres the function I used to display messages.

local messageTemplates = {
	["MessageInfo"] = resources:WaitForChild("Info"),
	["MessageOutput"] = resources:WaitForChild("Standard"),
	["MessageWarning"] = resources:WaitForChild("Warning"),
	["MessageError"] = resources:WaitForChild("Error")
}

function displayMessage(message, messageType)
	if messageType == Enum.MessageType.MessageInfo then
		local text = messageTemplates["MessageInfo"]:Clone()
		text.Text = message
		text.Visible = true
		text.Parent = list
	elseif messageType == Enum.MessageType.MessageOutput then
		local text = messageTemplates["MessageOutput"]:Clone()
		text.Text = message
		text.Visible = true
		text.Parent = list
	elseif messageType == Enum.MessageType.MessageWarning then
		local text = messageTemplates["MessageWarning"]:Clone()
		text.Text = message
		text.Visible = true
		text.Parent = list
	elseif messageType == Enum.MessageType.MessageError then
		local text = messageTemplates["MessageError"]:Clone()
		text.Text = message
		text.Visible = true
		text.Parent = list
	end
end

And it also displays the location of the error:

image


it already displays it.

1 Like

New problem:
I’m trying to make a button that on click it clears the output.

code:

script.Parent.MouseButton1Click:Connect(function()
	for _, scr in pairs(script.Parent.Parent.Parent.Main:GetDescendants()) do
		if scr.ClassName ~= "TextLabel" then
			scr:Destroy()
		end



	end
end)

Judging based on the context of your post, wouldn’t you want to use:

if scr.ClassName == "TextLabel" then

wow. That worked. Thanks :slight_smile:

I would give solution but this topic is about multiple questions surrounding this

Then you should create a new topic

true so ill close this one now

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.