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

My animation works, but it's not moving the NPC. Error in the script?

There are no errors and I'm trying to make it so the character follows a player after they have said something. This is where in the script I'm talking about. (Btw I'm making a roblox story game but you are the main character.. yk? ones on tt?)

CONTEXT:

chat = ChatService MaleSlender = NPC hr = Player's HumanoidRootPart

chat:Chat(MaleSlender.Head,"Wait, I will be right back.","White")
		
wait(2.5)
		
MaleSlender.Humanoid:MoveTo(hr.Position)
IdleTrack:Stop()
RunTrack:Play()
MaleSlender.Humanoid.MoveToFinished:Wait()
RunTrack:Stop()
IdleTrack:Play()

THE MAIN ERROR:

The character is not moving, But the animation works.

Can anybody please help?

2 comments

0

Also I checked the HumanoidRootPart Properties.

0

wait do you mean that the animation incudes the character moving in it?e thats wierd,maybe u should check if there is any weld connected to that character but not inside it or if any parts in that slender dude is anchored.And u should use some other test animation that move the player,AND maybe the animation is core animation,if that then change it to action

1 answer

is the npc anchored, or any part of it is anchored?

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