It just sets the money value to 25 idk whats wrong with it.
local remoteEvent = script.Parent:FindFirstChild("Bought")
local player = game.Players.LocalPlayer
local money = player:WaitForChild("leaderstats"):WaitForChild("Money")
remoteEvent.OnClientEvent:Connect(function()
print("Event Fired")
money.Value = -25
end)
local remoteEvent = script.Parent:FindFirstChild("Bought")
local player = game.Players.LocalPlayer
local money = player:WaitForChild("leaderstats"):WaitForChild("Money")
remoteEvent.OnClientEvent:Connect(function()
print("Event Fired")
money.Value -= 25
end)