Hello! I have a script that makes my NPC move to a specified point, however it isn’t doing anything, nor is it animating.
It’s a very simple script. It is in a player’s GUI as a ViewportFrame, not really sure where to go from here. Would replicating it from the client into the player’s GUI work?
For the moving NPC would be this script using MoveTo instead of WalkToPoint.
wait(1)
script.Parent[""].Humanoid:MoveTo(game.Workspace.Part.Position) -- Location here
script.Parent[""].Humanoid.MoveToFinished:Wait()
The animating NPC would be the animation track thing.
local NPC = script.Parent[""]
local Animation = script.Parent.Animation --- Any animation would work.
local animationtrack = npc.Humanoid:LoadAnimation(animation)
animationtrack:play()