Features:
Script:
- Auto Farm
Script:
local items = game:GetService("Workspace").Itemslocal hum = game.Players.LocalPlayer.Character.HumanoidRootPartlocal 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.Textlocal rebirthevent = game:GetService("ReplicatedStorage").RebirthRequestgetgenv().active = truelocal doit = truelocal function getGem()for _, v in ipairs(items:GetChildren()) doif not v then return endif not v:FindFirstChild('Part') then return endif(v.Part.Position.X < 325) thenreturn v.Partendendendlocal function gotoGem()local gem = getGem()if not gem then return endlocal goal = {}goal.CFrame = gem.CFramelocal tweenInfo = TweenInfo.new(0.01)local tween = tweenserv:Create(game.Players.LocalPlayer.Character.HumanoidRootPart, tweenInfo, goal)tween:Play()wait(0.1)if(gem.Parent) thengem.Parent:Destroy()endendlocal function canRebirth()local split1 = string.split(rebirthtext.Text, " ")local split2 = string.split(split1[2], "/")local returnval = tonumber(split2[1]) >= tonumber(split2[2])return returnvalendif(deletethis) thendeletethis:Destroy()endif(canRebirth()) thenrebirthevent:InvokeServer()endlocal rebirthconnect = rebirthtext:GetPropertyChangedSignal("Text"):Connect(function()if(canRebirth()) thenprint('rebirthing')doit = falserebirthevent:InvokeServer()wait(3)if(game.Players.LocalPlayer.Character.HumanoidRootPart.StarterWorm.Head:FindFirstChild("FaceCenterAttachment")) thengame.Players.LocalPlayer.Character.HumanoidRootPart.StarterWorm.Head:FindFirstChild("FaceCenterAttachment"):Destroy()enddoit = trueendend)local stopconnect = game.Players.LocalPlayer.Chatted:Connect(function(msg)if(msg == "/e stop") thengetgenv().active = falserebirthconnect:Disconnect()endend)while getgenv().active doif doit thengotoGem()endwait()end
Post a Comment (0)