script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
script.Parent:Destroy() -- Удаление монеты при касании
end
end)
local upgrades = {
speed = {level = 1, cost = 100},
capacity = {level = 1, cost = 150}
}
button.MouseButton1Click:Connect(function()
if playerBalance >= upgradeCost then
playerBalance -= upgradeCost
upgradeLevel += 1
end
end)