i have been using the roblox dev wiki but their code doesn't work an example of what im working on is this from their page: https://developer.roblox.com/en-us/articles/Moving-NPCs-Between-Points Heres the script

local Piggy = game.Workspace.Piggy local Humanoid = Piggy.Humanoid local PointA = game.Workspace.PointA Humanoid:MoveTo(Piggy.PrimaryPart.Position)

I dont know how to fix this and im bad at scripting.

5 comments

0

Can you give more informations? Is it a script or a local script? Are you doing it on server or client? More infos please

0

You should try to learn to code before attempting recreating a large-scale game.

0

You can't call a method in a variable declaration.

0

CaioAlpaca its in a script

0

Feahren im trying to learn but most of the learning material from the roblox developer hub is soooo old!!!