script.Parent.Transparency = 1
local function GiveCash(plr)
plr.Cash.Value = plr.Cash.Value + 10
end
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
script.Parent.CanTouch = false
script.Parent.Collect:Play()
script.Parent.Pop:Play()
script.Parent.BillboardGui.Enabled = false
local Player = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent)
GiveCash(Player)
wait(5)
script.Parent.BillboardGui.Enabled = true
script.Parent.CanTouch = true
end
end)