What's new
Heapleak - Scripthub

Get the most out of HeapLeak by creating a free account! Once signed in, you’ll gain full access to restricted content, be able to share your own scripts, and participate in our member-only discussions.

Tp npc Deadly Delivery no key

Version / Update: v1.0.0
Download / Script Link
-- h
local TARGET_FOLDER_NAME = "NPCModels"

local Workspace = game:GetService("Workspace")
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer

-- (&&& Workspace.NPCModels)
local function FindDeepFolder(root, name)
if root.Name == name and (root:IsA("Folder") or root:IsA("Model")) then
return root
end
for _, child in pairs(root:GetChildren()) do
if child:IsA("Model") or child:IsA("Folder") then
local res = FindDeepFolder(child, name)
if res then return res end
end
end
return nil
end

-- tp
if not LocalPlayer.Character or not LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
warn("❌ npc no!.")
else
local npcFolder = FindDeepFolder(Workspace, TARGET_FOLDER_NAME)

if npcFolder then

из папки
local npcs = npcFolder:GetChildren()


local validNpcs = {}
for _, obj in pairs(npcs) do
if obj:IsA("Model") and obj.PrimaryPart then
table.insert(validNpcs, obj)
end
end

if #validNpcs > 0 then

local targetNPC = validNpcs[math.random(1, #validNpcs)]

local targetPart = targetNPC.PrimaryPart
local characterRoot = LocalPlayer.Character.HumanoidRootPart


local newPosition = targetPart.CFrame + Vector3.new(0, 5, 0)

characterRoot.CFrame = newPosition

else

end

else


end
end
[ View More ]
d1704589-2249-46fc-9fde-2ab5e6475c62.webp


The new best so far tp npc And not only
 
Works on mobile
  1. Yes
Back
Top