I am trying to figure out a way to move my fish object in a specific area randomly. Is there an easy way to do so? If you have any ideas please share. Thanks, I also tried this script, but it gives me this error: attempt to call global 'Vector3' (a table value)
Script here:
fish = script.Parent
X = math.Random(10)
Y = math.Random(10)
Z = math.Random(10)
while wait(0.5) do
fish.CFrame = fish.CFrame + Vector3(X, Y, Z)
end

3 comments
You'd have to use Vector3.new() to create a new Vector3. I'd use a bodyposition tho.
Thanks!
I also have another question, How do I make the numbers generated by math.random change everytime?