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

Confusing error Well i dont get as much someone tell me the errors?

Asked by 1 year ago

local part1, part2 = workspace.part1, workspace.part2 local Red = workspace.Red

while true do Red.Humanoid:MoveTo(part1.position) Red.Humanoid:MoveToFinished:Wait= () wait(3) Red.Humanoid:MoveTo(part2.position) Red.Humanoid:MoveToFinished:Wait= () wait(3)

1 answer

Log in to vote
0
Answered by 1 year ago
Edited 1 year ago

First, it should be Red.Humanoid.MoveToFinished:Wait() not Red.Humanoid:MoveToFinished:Wait= (). Second, you forgot to put an end at the end of your loop.

local part1, part2 = workspace.part1, workspace.part2
local Red = workspace.Red

while true do
    Red.Humanoid:MoveTo(part1.position, part1)
    Red.Humanoid.MoveToFinished:Wait()
    task.wait(3)
    Red.Humanoid:MoveTo(part2.position, part2)
    Red.Humanoid.MoveToFinished:Wait()
    task.wait(3)
end
0
Also that MoveToFinished is an event, not a function. xInfinityBear 1777 — 1y
0
Oh right, I didn't notice it was a colon ???? T3_MasterGamer 2189 — 1y
0
-_-' T3_MasterGamer 2189 — 1y
Ad

Answer this question