I'm getting this error. What am I doing wrong?
20:59:14 -- ServerScriptService is not a valid member of DataModel
Stack Begin
Script 'Players.Exadide.Backpack.Handucuffs.Handcuffs', Line 5
Stack End|
The line in error is
local databaseModule = require(game.ServerScriptService.DatabaseModule)

4 comments
Use game:GetService("service name here"). Because sometime, some services maybe not loaded. https://developer.roblox.com/api-reference/function/ServiceProvider/GetService
Should it be local databaseModule = game:GetService("ServerScriptService").DatabaseModule ?
You do it right :D
Oh wait, if you try to require the module, wrap the link like this: local databaseModule = require(game:GetService("ServerScriptService").DatabaseModule)