a player uploading their points (cash) to a display board, then their points are reset to 0
textbox = game.Workspace.displayscreen.SurfaceGui.Frame.TextBox.Text.Value
script.Parent.Touched:connect (function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
local playervalue = game.Players.LocalPlayer.leaderstats.Cash.Value
textbox = playervalue + tonumber(textbox)
game.Players.LocalPlayer.leaderstats.Cash.Value = 0
wait()
end
end)
