A bit of a weird question here, but also highly curious. Is there any API for obtaining the size (Vector3) of Workspace?
Workspace doesn’t have a size?
What are you trying to do exactly?
Literally just get the size/dimension of the world automatically, no real reason behind it other then just out of curiosity. I know Terrian has some API for getting its size… just wondered if there’s any for workspace / any user-made methods for it.
No, not really. Workspace is infinite, the only restriction being what floating point values can take before everything becomes an unintelligible mess.
Do you mean, rather, the total extents of a model that contains every part within the workspace?
To test that, you could group everything under one model, then use the :GetExtentsSize() function of that model.
I thought that API had been deprecated?
Nothing about deprecation here
And since Workspace is a Model, you can call that method directly on it, e.g.
local p = Instance.new("Part")
p.Position = Vector3.new(10000000, 2304283423, -234234)
p.Parent = workspace
print(workspace:GetExtentsSize())
--> 10001024, 2.30428339e+09, 235257