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)
COMMUNITY QUESTION
When I rebirth it sets my rebirth to 2501 when its suppose add 1 at a time what shoud i do?
1 answer
You need to remove line 22 because it is saying that it is adding 2500 to rebirths.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
You do realise that on line 22, you made it add 2,500 instead of 1? Maybe try that/