✓ Accepted answer
If you want to make a LocalScript to access the ServerStorage and access ModuleScript then
local bindablefunc = Instance.new("RemoteFunction")
bindablefunc.Name = AccessModuleScript
local folder = Instance.new("Folder")
folder.Name = "AccessServer"
folder.Parent = workspace
bindablefunc.Parent = folder
local Func = workspace.AccessServer:WaitForChild("AccessModuleScript")
local playerstats = Func:FireServer()
local func=workspace.AccessServer:WaitForChild("AccessModuleScript")
func.OnServerEvent:connect(function()
local PlayerStatManager = require(game.ServerStorage.PlayerStatManager)
return PlayerStatManager
end
If you have trouble, contact me. How? Idk, also, i haven't tried the script yet
1 comment
Use code blocks.