Attempt to concatenate string with Instance

I have no clue why my script doesn’t seem to want to work, the error says "attempt to concatenate the string with Instance " and I can’t spot an error with the script, can anyone help me?

local SLT = script.Parent.SLT

SLT.Y7.Rounded.Enter.MouseButton1Click:Connect(function()
	script.Parent.Main.TT7.P1.Text = "Period 1: "..SLT.Y7.Rounded.P1E
end)

Can you give us more information about what “P1E” is?
If it’s a text element, try adding .Text at the end.

Oh yes, sorry thats probaly what it is, my brains not working today for some reason, its a Text box.

1 Like