--Hello :D local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local player = Players.LocalPlayer local enabled = false local CHECK_DISTANCE = 8 local TELEPORT_DISTANCE = 10 UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.U then enabled = not enabled print("Teleport Avoidance:", enabled and "ON" or "OFF") end end) RunService.Heartbeat:Connect(function() if not enabled then return end local character = player.Character if not character then return end local root = character:FindFirstChild("HumanoidRootPart") if not root then return end for _, otherPlayer in ipairs(Players:GetPlayers()) do if otherPlayer ~= player then local otherChar = otherPlayer.Character if otherChar then local otherRoot = otherChar:FindFirstChild("HumanoidRootPart") if otherRoot then local distance = (root.Position - otherRoot.Position).Magnitude if distance <= CHECK_DISTANCE then local direction = (root.Position - otherRoot.Position).Unit local newPosition = root.Position + direction * TELEPORT_DISTANCE root.CFrame = CFrame.new(newPosition) break end end end end end end)