local player = game.Players.LocalPlayer
local phrp = player.Character:WaitForChild("HumanoidRootPart")
function BringMobs(enemy)
if not enemy then return end
for _, mob in pairs(workspace.Enemies:GetChildren()) do
if mob.Name == enemy.Name then
local hrp = mob:FindFirstChild("HumanoidRootPart")
if hrp then
local bv = Instance.new("BodyVelocity")
bv.Velocity = Vector3.new(0,0,0)
bv.MaxForce = Vector3.new(1e5, 1e5, 1e5)
bv.Parent = hrp
hrp.CFrame = phrp.CFrame
game.Debris:AddItem(bv, 0.5)
end
end
end
end
To embed this project on your website, copy the following code and paste it into your website's HTML: