local secret_pos_y = 1360 local LocalPlayer = game:GetService("Players").LocalPlayer local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait() local UserInputService = game:GetService("UserInputService") local StarterGui = game:GetService("StarterGui") local Loaded = true local LoopEnabled = false local plots = workspace.World.Plots local function notify(title, text) pcall(function() StarterGui:SetCore("SendNotification", { Title = title, Text = text, Duration = 5 }) end) end local function init() notify("Initialisation", "The script is setting up, please wait.") Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait() repeat Character.HumanoidRootPart.CFrame = Character.HumanoidRootPart.CFrame + Vector3.new(0, 10, 0) task.wait() until Character.HumanoidRootPart.Position.Y >= secret_pos_y for _, plot in pairs(plots:GetChildren()) do if plot:GetAttribute("OwnerId") == LocalPlayer.UserId then Character.HumanoidRootPart.CFrame = plot:WaitForChild("SafeTeleport").CFrame end end notify("Script Loaded","Press F to get a brainrot. Press Z to toggle looping.") end local function get_brainrot() Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait() for _, brainrot in pairs(workspace.SpawnedEntities:GetChildren()) do local brainrot_y = brainrot.WorldPivot.Position.Y local diff = math.abs(brainrot_y - secret_pos_y) print(brainrot_y) print(diff) if diff < 50 then Character.HumanoidRootPart.CFrame = CFrame.new(brainrot.WorldPivot.Position) local mesh = brainrot:FindFirstChildOfClass("MeshPart") if mesh then local prompt = mesh:FindFirstChildOfClass("ProximityPrompt") task.wait(0.5) if prompt then prompt.MaxActivationDistance = 80 fireproximityprompt(prompt) end end for _, plot in pairs(plots:GetChildren()) do if plot:GetAttribute("OwnerId") == LocalPlayer.UserId then Character.HumanoidRootPart.CFrame = plot:WaitForChild("SafeTeleport").CFrame end end break end end end task.spawn(function() while Loaded do if LoopEnabled then get_brainrot() end task.wait(1) end end) UserInputService.InputBegan:Connect(function(input, processed) if processed or not Loaded then return end if input.KeyCode == Enum.KeyCode.F then get_brainrot() elseif input.KeyCode == Enum.KeyCode.Z then LoopEnabled = not LoopEnabled notify( "Loop Toggled", "Auto loop is now " .. (LoopEnabled and "ON" or "OFF") ) elseif input.KeyCode == Enum.KeyCode.F4 then Loaded = false LoopEnabled = false notify( "Script Unloaded", "Script has been unloaded." ) end end) init()