local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "NPCGui" ScreenGui.Parent = game:GetService("CoreGui") local Button = Instance.new("TextButton") Button.Size = UDim2.new(0, 200, 0, 50) Button.Position = UDim2.new(0.5, -100, 0.8, 0) Button.BackgroundColor3 = Color3.fromRGB(50, 50, 50) Button.TextColor3 = Color3.fromRGB(255, 255, 255) Button.Font = Enum.Font.SourceSansBold Button.TextSize = 18 Button.Text = "Teleport NPCs" Button.Parent = ScreenGui local function teleportNPCs() local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local hrp = character:FindFirstChild("HumanoidRootPart") if hrp then local npcsFolder = game:GetService("Workspace"):FindFirstChild("NPCs") if npcsFolder then for _, npcFolder in pairs(npcsFolder:GetChildren()) do for _, npc in pairs(npcFolder:GetChildren()) do local npcHRP = npc:FindFirstChild("HumanoidRootPart") if npcHRP then npcHRP.CFrame = hrp.CFrame * CFrame.new(0, 0, -5) for _, part in pairs(npc:GetDescendants()) do if part:IsA("BasePart") then part.CanCollide = false end end end end end end end end Button.MouseButton1Click:Connect(teleportNPCs)