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.
01 | Npc = --Humaniod of the npc |
02 | Npcmoved = false |
03 |
04 | Npc.MoveToFinished:Connect( function () |
05 | Npcmoved = true |
06 | end ) |
07 |
08 |
09 | while true do |
10 | Npcmoved = false |
11 |
12 | math.randomseed(tick()) --Makes the Randomness truely random |
13 |
14 |
15 |