Pretty self-explanatory.
local part = Instance.new("Part", workspace) part.Position = Vector3.new(math.random(1,100), math.random(-100,60), math.random(-5000, 10000))
math.randomseed(tick()) while true do local part = workspace.Part part.Position = Vector3.new(math.random(2000),2,math.random2000)) wait(1) end
This script will generate a random position part within the coordinates (2000,2,2000) every second. Alas, but usually math.random()
is a Pseudo random number generator, so to fix this we use math.randomseed()