--BROUGHT TO YOU BY RobloxScripter.com!--
local items = game:GetService("Workspace").Items
local hum = game.Players.LocalPlayer.Character.HumanoidRootPart
local tweenserv = game:GetService('TweenService')
local deletethis = game.Players.LocalPlayer.Character.HumanoidRootPart.StarterWorm.Head:FindFirstChild("FaceCenterAttachment")
local rebirthtext = game:GetService("Players").LocalPlayer.PlayerGui.RebirthGui.Button.ProgressBar.Background.Text
local rebirthevent = game:GetService("ReplicatedStorage").RebirthRequest
getgenv().active = true
local doit = true
local function getGem()
for _, v in ipairs(items:GetChildren()) do
if not v then return end
if not v:FindFirstChild('Part') then return end
if(v.Part.Position.X = tonumber(split2[2])
return returnval
end
if(deletethis) then
deletethis:Destroy()
end
if(canRebirth()) then
rebirthevent:InvokeServer()
end
local rebirthconnect = rebirthtext:GetPropertyChangedSignal("Text"):Connect(function()
if(canRebirth()) then
print('rebirthing')
doit = false
rebirthevent:InvokeServer()
wait(3)
if(game.Players.LocalPlayer.Character.HumanoidRootPart.StarterWorm.Head:FindFirstChild("FaceCenterAttachment")) then
game.Players.LocalPlayer.Character.HumanoidRootPart.StarterWorm.Head:FindFirstChild("FaceCenterAttachment"):Destroy()
end
doit = true
end
end)
local stopconnect = game.Players.LocalPlayer.Chatted:Connect(function(msg)
if(msg == "/e stop") then
getgenv().active = false
rebirthconnect:Disconnect()
end
end)
while getgenv().active do
if doit then
gotoGem()
end
wait()
end