this script is the server side script for a gui that says what the players cash is. the variable "cash" is set to only one persons cash value and therefore everyone's cash gui shows as how much cash that one person has
local repStorage = game:GetService("ReplicatedStorage")
local remote = repStorage.remote
Players = game:GetService("Players")
while true do
wait(1)
for i, player in pairs(Players:GetPlayers()) do
cash = game.ServerStorage.PlayerMoney[player.Name] --the players cash.Value
cash.Changed:connect(function()
remote:FireClient(player, cash.Value)
end)
end
end
