Can someone help me with Remotefunctions in modulescript? Here is my scripts
Local:
local RetrieveData = game:GetService("ReplicatedStorage").RetrieveData
local Data = RetrieveData:InvokeServer()
print(Data)
Module:
local RS = game:GetService("ReplicatedStorage")
local RetrieveData = RS.RetrieveData
local DataModule = {}
local function SendData(plr)
return "Success"
end
RetrieveData.OnClientInvoke = SendData
return DataModule
It Dosent return how can i fix this?