-
What do you want to achieve?
I want the model that will look at players and walk into them -
What is the issue?
The issue is the model just look at them and do not moving like what i wanted it to be
script.Parent.TargetPart.Touched:Connect(function(target)
if target.Parent:FindFirstChild("Humanoid") then
local humanoidRP = target.Parent:FindFirstChild("HumanoidRootPart")
script.Parent.Humanoid:MoveTo(humanoidRP.Position)
script.Parent:SetPrimaryPartCFrame(CFrame.lookAt(script.Parent.PrimaryPart.CFrame.Position, humanoidRP.Position))
else
return
end
end)