TextLabel is not a valid memeber of ScreenGui

I’ve tried using _G but it still gives me the same error. I am very confused right now.

Sending code: Script

DuckInfo.awardDuck(Player, DuckInfo.Ducks[script.Parent.Name].RealName)

Receiving code: Module Script

duckInfo.awardDuck = function(Player, duckName)
	local DuckGui = game.ServerStorage.DuckGui
	for i,v in pairs(DuckGui:GetChildren()) do
		print(v.Name)
	end
	DuckGui.DuckText = [[You Found the <b><font color="rgb(255, 255, 0)">]]..duckName..[[</font></b>]]
	DuckGui.Parent = Player.PlayerGui
end

Please use DuckGui.DuckText.Text as the .Text property of the TextLabel is used to change the text.

Also, consider not using multiline text. Single line text would be better here. It is created using “” .

2 Likes

what is DuckText, if ducktext is the textlabel then use .Text after it
like so;

DuckGui.DuckText.Text = [[You Found the <b><font color="rgb(255, 255, 0)">]]..duckName..[[</font></b>]]
1 Like

Thank you. School has me a little tired. :slight_smile: