--BROUGHT TO YOU BY RobloxScripter.com!--
local rebirths = {}
_G.toggle = true
while _G.toggle do wait(.1)
for i,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.mainUI.rebirthBackground.Background.Background:GetChildren()) do
for k,v2 in pairs(v:GetChildren()) do
if v2.Parent.Name == "ScrollingFrame" and v2:IsA("ImageButton") and v2.Name ~= "custom" then
table.insert(rebirths,v2)
end
end
end
function getNumber()
for i,v in pairs(rebirths) do
if i == #rebirths then
return v.Name
end
end
end
local ohNumber1 = tonumber(getNumber())
local ohBoolean2 = false
local ohBoolean3 = false
game:GetService("ReplicatedStorage").Events.Client.requestRebirth:FireServer(ohNumber1, ohBoolean2, ohBoolean3)
end