So I'm trying to make a script that moves a part 10 times in a randomly selected x and z position.
part = script.Parent
local x = math.random(100, -100)
local z = math.random(100, -100)
for i = 1, 10 do
wait(1)
part.Position = Vector3.new(x, 15, z)
end
However when I run it it gives me this error:
Workspace.Part.Script:2: bad argument #2 to 'random' (interval is empty)
I don't know what this means.

2 comments
oh ok thanks, I know there are some other bugs in the code but I'll figure them out by myself, right now all I really needed was the answer to my question
@aileron_roll accept answer?