Attempt to call a nil value

The title say it.



1 Like

Help please. I will be checking answers tommorow.

could you send a screenshot of the problem rather then on lightshot?

Ban doesn’t exist in the GBan module. And if you’re requiring from a LocalScript, it won’t work because clients don’t have access to ServerScriptStorage.

1 Like

It’s do. I got a function on here named Ban. I am not requiring from a LocalScript but a Script.

Use the :WaitForChild like this:

local GBan = require(game:GetService("ServerScriptService"):WaitForChild("GBanModule")