Function reading a string inside a table as nil?

So im making a simple notification module for my game, and im running into a strange error, its reading a simple string as nil?

Heres my code

function NotificationModule:SendNotification(Settings)
NotificationFrame.Title.Text = Settings.Title
NotificationFrame.Subtitle.Text = Settings.Subtitle
--// Rest of the code...
end

NotificationModule:SendNotification({
	Title = "test",
	Subtitle = "also an test",
})

Edit: I just realised every function that i put the function reads as nil, it doenst matter if its in a table or not

Did you mean ConfigTable instead of Settings in your function?

Oh yeah i typed it wrong when typing it here, but on the script its Settings too so i dont know why that happens

I just realised every function that i put the function reads as nil, it doenst matter if its in a table or not

I guess i was typing the function wrong, i switched it to NotificationModule:SendNotification = function(Settings) and it worked

1 Like

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