I have a remoteevent in replicatedstorage that gives you money everytime you click. I want to make a debug (admin) gui to give the localplayer that is whitelisted money, but when i type the script
script.Parent.MouseButton1Down:Connect(function()
game.Players.LocalPlayer:WaitForChild("leaderstats").Money.Value = 100000
end)
it doesnt work and only displays it temporarily. how can i fix this?

3 comments
What do you mean by displays it temporarily? Also this is really broad.
okay since this is in a local script you can't edit the leaderstats for the whole server to see its only you that can see it so by temporarily i assume you mean after you click it resets to its normal value? if that is correct u need to send a signal trough a remote event to a serverscript that will change it for you
I see what you mean. Yeah by temporarily I meant that. I apologize for the broad statement. How do I sent that through the remote event to give myself some money?