Money doesnt save problem!

My money wont save after I change it if I change it in play mode then go in server mode and change my money then it will save but if I change it like this, and then the money does change in the leaderstats, but doesnt save please help!?

local script:

local extractMoney = game:GetService("ReplicatedStorage").RemoteEvents.ExtractMoneyRemoteEvent
local player = game.Players.LocalPlayer

extractMoney.OnClientEvent:Connect(function(money)
	print(money)
	player.leaderstats.Money.Value -= money
end)
1 Like

This makes the money change on the client, which means it will not be read by the server. Do not change anything that should replicate to the server from the client.

Solution:
Make this a server script.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.