So, I've implemented an API from someone and so I'm trying to include the API in my scripts.
The API is located in ServerScriptService and is a MODULESCRIPT.
Below is the code in the STARTERGUI. IT IS ALSO IN A ** LOCALSCRIPT**.
ap = require(game.ServerScriptService.API)
The error message is :
ServerScriptService is not a valid member of DataModel
I'm not sure whether it's because the API is placed in ServerScriptService. I've also tried putting the startergui localscript to be a normal script but that did not help.
ALSO, THE SCRIPT WORKS ON STUDIO, BUT NOT ON THE REAL GAME.
PS: Here's the structure https://gyazo.com/13ef2eeb06153611fc9c7f002ee72fdb.
Thanks! Nathan.

3 comments
Okay, I've already done that. Now it's saying API is not a valid member of ServerScriptService.
Oh, i forgot! Locals can't access ServerScriptService! Put API into ReplicatedStorage instead!
Thanks.