Using "MoveTo" with changed speed

Can I change speed of a character that uses “MoveTo” to move to certain points?

local function MoveCharacter(target)
	move = true
	character.Humanoid:MoveTo(target.Position)
	character.Humanoid.MoveToFinished:Connect(function()
		move = false		
	end)
end

I’ve tried altering the walkspeed of that character’s humanoid but that didn’t affect the speed of the character

local function HandleCharacterSpeed()
	character.Humanoid.WalkSpeed += 1
end
1 Like

Are you doing this with a player character? If not with what are you doing it?

Kinda, I have a clone of my own character and doing this on it

Are you changing the speed before the MoveTo part?

Can’t you just set the speed in the humanoid yourself?
Or does that go against the purpose?

I’m changing it during MoveTo, once player clicks. sorry for not providing full details

local function HandleCharacterSpeed()
	character.Humanoid.WalkSpeed += 1
end

uts.InputBegan:Connect(function(input, process)
	
	if process then
		return
	end
	
	if input.UserInputType == Enum.UserInputType.MouseButton1 then
		coroutine.wrap(ToggleTextVisibility)()
		HandleCharacterSpeed()
		updateClicksEvent:FireServer()
	end
	
end)

I tried, the “Walkspeed” value changes but it does not affect the character at all, so you see it moving at the same default speed

Try instead of this:

This:

repeat
character.Humanoid:MoveTo(target.Position)
until character.Humanoid.MoveToFinished:Wait()