This should work, if you don't want players spamming the rebirth button you need to use debounce
Change local timedelay = 2 to whatever number you want (in seconds)
Also use while true do because while wait() do is bad practice
Link to debounce
I have not tested this yet so it maaaay not work but chances of that are slim
local plr = game.Players.LocalPlayer
local debounce = true
local timedelay = 2
while true do
if debounce == true then
debounce = false
if (plr.leaderstats.Rebirths.Value * 350) + 350 <= plr.leaderstats.Points.Value then
script.Parent.Terrain = "Click to Rebirth"
else
script.Parent.Terrain = "Rebirth in " ..(plr.leaderstats.Rebirths.Value * 350) + 350 - plr.leaderstats.Points.Value
end
wait(timedelay)
debounce = true
end
end
2 comments
paste the script in the question
You're going about this the wrong way. You should be using a changed event instead of an infinite loop. Roblox has provided some extremely efficient (or at least more efficient than what you are doing) and easy to use methods for its developers. Don't waste them.