local player = game.Players.LocalPlayer local button = player.PlayerGui:WaitForChild("ScreenGui").Center.PetInventory.Upg rade local napis = button.Parent.DamageLabel local oldBackground = button.BackgroundColor3 button.MouseButton1Click:Connect(function () local damage = player.Values.Damage.Value local cost = 10*(2^(damage-1)) if player.leaderstats.Shards.Value >= cost then damage +=1 game.ReplicatedStorage.Remotes.Upgrade:FireServer(cost, damage) button.Text = "Purchased!" button.BackgroundColor3=Color3.new(0.0352941, 0.52549, 0.00392157) napis.Text = "Your dmg multiplier: x" .. damage wait(2) cost = 10*(2^(damage-1)) button.Text = "Upgrade for " .. cost .. " Shards" button.BackgroundColor3=oldBackground else button.Text = "Not enough Shards!" button.BackgroundColor3=Color3.new(0.52549, 0.0156863, 0.0862745) wait(2) button.Text = "Upgrade for " .. cost .. " Shards" button.BackgroundColor3=oldBackground end end)