I keep getting OnServerInvoke is not a valid member of RemoteEevent
Invoke server script
while true do
wait(60)
mainmod:Appear()
mainmod:Spin(5)
game.Workspace.DataStore.StoreData:InvokeClient(script.Parent.Parent.Parent.Name, script.Parent.Parent.MoneyDisplay.Money.TextLabel.Text)
mainmod:Dissapear()
end
Reciver
script.StoreData.OnServerInvoke(function(player, amount)
MoneyStore:SetAsync("Money_"..player, amount)
end)

4 comments
Is the local script in workspace?!
The local script is in playergui
You have the player name, not the player itself. Also is script.Parent.Parent.Parent etc the character or the player?
I got the name of the player