Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make player walk to point?

How do I make a player walk to a point with player having no control of his character until I want him to? I've tried this with no luck:

game.Players.PlayerAdded:connect(function(plrname)
plrname.CharacterAdded:connect(function(character)
	if character and character:findFirstChild("Humanoid") then
		while true do
			wait()
			character.Humanoid.WalkToPoint(-124, 1000.6, -128)
		end
		
		
	end
end)
end)

2 answers

✓ Accepted answer

WalkToPoint is a property of Humanoid so you can't use it like a function. Instead you assign the property with a new value.

game.Players.PlayerAdded:Connect(function(plrname)
	plrname.CharacterAdded:Connect(function(character)
	    if character and character:FindFirstChild("Humanoid") then
	        while wait() do	           				
				character.Humanoid.WalkToPoint = Vector3.new(-124, 1000.6, -128)			
	        end		
	    end
	end)
end)

1 comment

1

Thank you!

This discussion is preserved as it was. New answers, comments, and votes are closed.