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

which word PART is the variable in this script?

Asked by
Prioxis 673 Moderation Voter
10 years ago

I'm trying to make a npc move from position to position but I can't figure out how to do so

Heres my script

while true do
    script.Parent.Humanoid:MoveTo(part.Position, part)
    wait(5)
    script.Parent.Humanoid:MoveTo(part.Position, part)
    end

which word **Part* is the variable?

1 answer

Log in to vote
0
Answered by 10 years ago

Well that could be any variable, its better to change the part's name or do something like this

local Part1 = game.Workspace.Part

0
i already got that i'm making a npc move from pos to pos 2 then to pos 3 but I can't because the area with (part.Positon, Part) doesn't really help me I got this script off of a roblox tutorial and they didn't explain anything about it Prioxis 673 — 10y
Ad

Answer this question