I'm trying to make a part that will follow the mouse, this part works, however an NPC is meant to follow the part that follows the mouse. The only problem is that it goes to the original position of the part, instead of following it. (By the way theres a keybind that activates the movement, and it moves the part into the workspace so it's not longer in the replicated storage) Here's the script:
local GoHere = game.ReplicatedStorage.GoHere
while wait() do
script.Parent.Humanoid:MoveTo(GoHere.Position)
end

1 comment
Odds are that the while loop runs before the event fires, so the Humanoid is literally going nowhere because the Part is not in the physical environment of the Workspace.