I was thinking about move.random, but I didn't know if that was a thing or not. Please help me.
To Eleborate on lukeb50's explanation, here is a better answer. Just simple changing the position will teleport the Npc randomly, using Move to is a better option.
Npc = --Humaniod of the npc Npcmoved = false Npc.MoveToFinished:Connect(function() Npcmoved = true end) while true do Npcmoved = false math.randomseed(tick()) --Makes the Randomness truely random Npc:MoveTo(math.random(x),math.random(0),math.random(x)) repeat wait(0.1) until Npcmoved = true Npcmoved = false end