Issue with slider values and getting them from serverstorage

Hello, i have a gui slider that I have set custom values to. My data is saved in the server storage but my script is a local script. I am wondering how I can get the data from the serverstorage.

function for updating the Value

local itemsmodule = require(game.ReplicatedStorage.ItemsModule)
local MaxVal

module.itemAmmountValue = function(player, itemname, MaxDropVal)
	local item = game.ServerStorage.Inventory:FindFirstChild(player.Name):WaitForChild("Data"):WaitForChild("Items")[itemname]
	MaxVal = itemsmodule[item.Name]["Amount"]
end

How can i do this?

I just had this issue with are game recently, the solution we came to was to use send a remote function to the server that process’s the data then sends us back that query back to the local script.

Yeah, since the client can’t access ServerStorage, you would have to send a remote function to the server, grab the data and return it.

Im new to using remote functions and im having issues using them.
code in serverscript service:

local itemModule = require(ReplicatedStorage:WaitForChild("ItemsModule"))
local RequestItemAmount = ReplicatedStorage:WaitForChild("Request")

local function ItemAmount(player, itemname, MaxDropVal)
	local item = game.ServerStorage.Inventory:FindFirstChild(player.Name):WaitForChild("Data"):WaitForChild("Items")[itemname]
	MaxDropVal = itemModule[item.Name]["Amount"]
end

RequestItemAmount.OnServerInvoke = ItemAmount

I want to use the information above to update a variable on the client. how do i do that?