local open = false local player = game.Players.LocalPlayer script.Parent.RebirthButton.MouseButton1Click:Connect(function() if open == false then script.Parent.Frame.Visible = true script.Parent.Frame.Requirements.Text = "You need "..(player.leaderstats.Rebirths.Value+1*2500).." to rebirth." open = true else script.Parent.Frame.Visible = false open = false end end) script.Parent.Frame.RebirthButton.MouseButton1Click:Connect(function() if player.leaderstats.Cash.Value >= ((player.leaderstats.Rebirths.Value*1)*2500) then game.ReplicatedStorage.RemoteEvents.Rebirth:FireServer() player.leaderstats.Cash.Value = 0 player.leaderstats.Rebirths.Value = player.leaderstats.Rebirths.Value + 1 script.Parent.Frame.RebirthButton.Text = "You have Rebirthed Succesfully" wait(2) player.leaderstats.Rebirths.Value = player.leaderstats.Rebirths.Value + 2500 script.Parent.Frame.Visible = false open = false script.Parent.Frame.RebirthButton.Text = "Rebirth" end end)
You need to remove line 22 because it is saying that it is adding 2500 to rebirths.