I’m almost done making a saving system for a plugin using DataStoreService. The problem is when I run the plugin on a baseplate it gives me a Http Forbidden error because I don’t have API services enabled. How would I save data if the player’s game doesn’t have API services enabled?
local StudioService = game:GetService("StudioService")
local UserId = StudioService:GetUserId()
local PLAYER = "Player_"..UserId
local Selection = game:GetService("Selection")
local DataStoreService = game:GetService("DataStoreService")
local DataTexture = DataStoreService:GetDataStore("Textures")
local DataSurface = DataStoreService:GetDataStore("SurfaceAppearance")
local TextureValue = DataTexture:GetAsync(PLAYER)
local SurfaceValue = DataSurface:GetAsync(PLAYER)