My script doesn't show on the output for no reason

Hello! My script does not show on the output, also it doesn’t even work! If it did show an error I would probably fix it by now but it doesn’t show on output.

Script:

local criteriamissing = script.Parent.Parent.criteria_not_filled
local host = script.Parent.Parent.host
local co_host = script.Parent.Parent.co_host

script.Parent.MouseButton1Click:Connect(function()
if host.Text == "Host" then
	criteriamissing.Visible = true
	print("Error: Missing Criteria.")
end
if co_host.Text == "Co Host" then
	criteriamissing.Visible = true
	print("Error: Missing Criteria")
end

end)

Please help!

Is the parent of the script a text button or a textbox? Sometimes it is the little things like this that cause the problem.

Please show a screenshot of the explorer; using multiple instances of .Parent can get complicated.

image

This is an exact image (startashift is the parent of the script)

I imagine the only cause could be that the text in host and co_host is not “Host” or “Co Host” respectively.

Is the output working? Try making a new script and doing print ("Output Working").

Nah, I’ve tried that before and it didn’t work.

The output is working. I’ve made a new script and tested the output. It gave a print when a pushed the button on the GUI.

1 Like