the code that creates the text label is
function module.createTextLabel(text,parent)
local text = assets.Text:Clone()
text.Text = text
text.Parent = parent
return text
end
local gui = players.LocalPlayer.PlayerGui.ScreenGui
button.MouseButton1Down:Connect(function()
local frame = uiLib.createFrame("Test",gui.BkgFrame)
local text = uiLib.createTextLabel("This is an example of a custom frame",frame)
end)
not sure why it wont work
21:13:02.983 Unable to assign property Text. string expected, got Instance - Client - UIModule:26
21:13:02.985 Stack Begin - Studio
21:13:02.985 Script 'ReplicatedStorage.Modules.UIModule', Line 26 - function createTextLabel - Studio - UIModule:26
21:13:02.986 Script 'Players.Techononux3.PlayerGui.ScreenGui.BkgFrame.MainFrame.TextButton.LocalScript', Line 14 - Studio - LocalScript:14
21:13:02.986 Stack End - Studio