Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 1 year ago

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?

0
Also I checked the HumanoidRootPart Properties. poppyloverb 20 — 1y
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 lamgogo 56 — 1y

1 answer

Log in to vote
0
Answered by
D00M1N 4
1 year ago

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

Ad

Answer this question