local Bio = script.Parent:WaitForChild("Bio")
local Button = script.Parent:WaitForChild("Button")
local player = game.Players.LocalPlayer
Bio.Text = "Amount Of Counds Needed For Rebirth: " .. player.leaderstats.Rebirths.Value * 100
player.leaderstats.Coins:GetPropertyChangedSignal("Value"):Connect(function()
Bio.Text = "Amount Of Counds Needed For Rebirth: " .. player.leaderstats.Rebirths.Value * 100
end)
Button.MouseButton1Click:Connect(function()
if player.leaderstats.Coins.Value >= player.leaderstats.Rebirths.Value * 100 then
player.leaderstats.Rebirths.Value = player.leaderstats.Rebirths.Value + 1
player.leaderstats.Coins.Value = 0
else
Button.Text = "Not Enough Coins!"
wait(2)
Button.Text = "Rebirth!"
end
end)
i can rebirth once with paying 0 money but my vaules all say 100 cash and then it adds up 100 why is this bugg inside of this can some one help me?

4 comments
You need to use a remote event to change the leaderstats values, you cant change them directly from the client(a local script)
also, you should get into the habit of using variables more for things you use a lot
rebirth do work but in the begging there is a bug where 1 rebirth is 0 coins witch should not be happening is this due filtering?
That, or Rebirths.Value may have a value of 0. 100 * 0 = 0. 0 >= 0 == true. Make rebirths start off with a value of 1.