so i’m making bossfight AI but when i try moving it it doesn’t move as all.
script: `function MovePos()
if Resting == true then
return
end
local RandomPos = math.random(0,2)
local MoveGoal = {}
if RandomPos == 0 then
CanPickAction = true
end
if RandomPos == 1 then
MoveGoal.CFrame = Pos1.CFrame
end
if RandomPos == 2 then
MoveGoal.CFrame = Pos2.CFrame
end
I don’t see what’s wrong with your script so maybe try moving it to an empty place, maybe it’s another part/script that’s messing with this script. If that doesn’t work I have no idea