i want to change a value from the server side for a specific player when the player clicks the button this is the main script for it (not the script for button it is main script)
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function(click)
if player.leaderstats.Money.Value >= 70 then
player.leaderstats.Money.Value = player.leaderstats.Money.Value - 70
game.Workspace.Backpack.Capacity.Value = 20
end
end)
this does change the value but not from the server side and i tried it by going on the server side myself then i changed the value and it worked but it changed the value for everyone please help me
