it says attempt to compare two userdata values
** if game.Workspace.Baseplate.Size >= Vector3.new(251,20,251) then** x = math.random(-255, 255) y = math.random(6, 30) z = math.random (-255, 255) end
The if - then is where the error occurs
You can't compare Vector3's to see if they're less than or more than. Instead, compare their components.
function compare(x, y) if x.X >= y.X and x.Y >= y.Y and x.Z >= y.Z then return true end return false end if compare(workspace.Basplate.Size, Vector3.new(251, 20, 251)) then x, y, z = math.random(-255, 255), math.random(6, 30), math.random(-255, 255) end