This is what i did so far:
if math.random(1,4) == 1 then
moveforward()
end
if math.random(1,4) == 2 then
movebackwards()
end
if math.random(1,4) == 3 then
moveleft()
end
if math.random(1,4) == 4 then
moveright()
end
But yet when i run the code it won't run even if i add a wait() when i added a wait() it worked once but after that it didnt move after i ran the script again, i even tryed making a math random that loops with a wait(2) yet it still wont move or execute its functions, functions are just a cframe for moving it, and a print to know if it executed or no
while true do
mr = math.random(1,4)
wait(2)
end
Heres the code of the math random that loops

1 comment
try using a while wait(2) do instead of just putting wait(2) at the bottom.