The only thing that does not work is that the text of the TextBox is not being updated.
wait(2)
for _,v in pairs(workspace:GetChildren()) do
if v:IsA('BasePart') and not v.Name == "Terrain" then
v.Touched:connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player ~= nil then
local cash = game.ServerStorage.PlayerMoney:FindFirstChild(player.Name)
game.Workspace.Display.GUI.Amount.Text = "$ "..cash.Value
end
end)
end
end

1 comment
This question was posted over a year ago.... xD I know how to do it now.