I am trying to take money away from player when they press a button but when I do it in local script it only takes the money away from them and others cant see that his/her money is gone and I can't turn it into normal script cuz stuff goes wrong can someone tell me what to do?
local player = game.Players.LocalPlayer local UserInputService = game:GetService("UserInputService")
script.Parent.MouseButton1Click:Connect(function(Clicked) if player.leaderstats.Coins.Value >= 5 then player.leaderstats.Coins.Value = player.leaderstats.Coins.Value -5
script.Parent.Parent.TextLabel3.Visible = true
script.Parent.Parent.TextButton.Visible = false
script.Parent.Parent.TextButton13.Visible = true
(as I said I cant turn this script into normal script cuz of the stuff that is written below)

1 comment
thnks