Ad
Log in to vote
0

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

Asked by 23 days 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 23 days ago
Edited 23 days 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 1691 — 23d
0
Oh right, I didn't notice it was a colon ???? T3_MasterGamer 1701 — 23d
0
-_-' T3_MasterGamer 1701 — 23d
Ad

Answer this question