There is a ModuleScript that will have a function called Name4(). Basically, Name4() returns a string value. Sometimes, the module WILL have Name4, and other times, it WON'T have Name4, because each player has their own version of the module parented to their Characters.
if module.Name4() ~= nil then
local name = module.Name4() -- Gets name of attack from module
script.Parent.Text = name
script.Parent.Visible = true
end
I want lines 2-4 to take place if the ModuleScript DOES have Name4(). But I'm unable to use this if statement to check if whether the module has Name4 or not. Any thoughts?

1 comment
Maybe switch module.Name4() ~= nil with module.Name4() ~= ""