local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local TweenService = game:GetService("TweenService") local player = Players.LocalPlayer local cam = workspace.CurrentCamera local lastDeathPosition = nil local teleportEnabled = false local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Parent = playerGui local notifFrame = Instance.new("Frame") notifFrame.Size = UDim2.new(0, 300, 0, 50) notifFrame.Position = UDim2.new(0.5, -150, 0, 20) notifFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) notifFrame.BackgroundTransparency = 1 notifFrame.BorderSizePixel = 0 notifFrame.Visible = false notifFrame.Parent = screenGui local notifText = Instance.new("TextLabel") notifText.Size = UDim2.new(1, -20, 1, 0) notifText.Position = UDim2.new(0, 10, 0, 0) notifText.BackgroundTransparency = 1 notifText.TextColor3 = Color3.fromRGB(255, 255, 255) notifText.Font = Enum.Font.GothamBold notifText.TextScaled = true notifText.TextTransparency = 1 notifText.Parent = notifFrame local function showNotification(text) notifText.Text = text notifFrame.BackgroundTransparency = 0.3 notifText.TextTransparency = 0 notifFrame.Visible = true local fadeOut = TweenService:Create( notifFrame, TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1} ) local fadeText = TweenService:Create( notifText, TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextTransparency = 1} ) task.delay(1.5, function() fadeOut:Play() fadeText:Play() task.wait(0.5) notifFrame.Visible = false end) end local function setupCharacter(char) local humanoid = char:WaitForChild("Humanoid") local root = char:WaitForChild("HumanoidRootPart") humanoid.Died:Connect(function() lastDeathPosition = root.Position end) end player.CharacterAdded:Connect(setupCharacter) if player.Character then setupCharacter(player.Character) end local function teleportWithoutCameraSnap(position) if not position then return end local savedCFrame = cam.CFrame cam.CameraType = Enum.CameraType.Scriptable cam.CFrame = savedCFrame local char = player.Character if char and char:FindFirstChild("HumanoidRootPart") then char.HumanoidRootPart.CFrame = CFrame.new(position) end task.wait(0.05) cam.CFrame = savedCFrame cam.CameraType = Enum.CameraType.Custom end UserInputService.InputBegan:Connect(function(input, gp) if gp then return end if input.KeyCode == Enum.KeyCode.RightBracket then teleportEnabled = not teleportEnabled if teleportEnabled then print("Teleport: ON") showNotification("Teleport: ON") teleportWithoutCameraSnap(lastDeathPosition) else print("Teleport: OFF") showNotification("Teleport: OFF") end end end) showNotification("Press ] to toggle.")