Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Which Vector3 setting to use when trying to cover the entire map with a baseplate?

Asked by 6 years ago
Edited 6 years ago

Hello, I am attempting to change my baseplate size after an action but it needs to cover the entire map. Is this possible?

I have tried the following:

 v.Size = Vector3.new(2048,9,2048) 

But this doesn't cover the entire map. And I can't seem to go above 2048. Is there a better way to accomplish this?

Thanks for the help in advance!

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

Unfortunately, there is a limit to the max X, Y and Z scale: 2048 studs. It seems you have reached this limit. However, what you can do is reference or create another part, size it to the rest of the map, and position it accordingly. Here is one example:

local restofmap = Instance.new("Part")
for i,v in pairs(workspace.SpecialParts:GetChildren()) do
    if v:IsA("BasePart") then
        v.Size = Vector3.new(10,10,10) 
    v.Position = Vector3.new(X,Y,Z)
    restofmap.Size = Vector3.new(X,Y,Z)  -- Size of the rest of the map
    restofmap.Position = Vector3.new(X,Y,Z) -- Position of the rest of the map
    restofmap.Parent = workspace.SpecialParts -- Placing the new part into "SpecialParts"
    end
end

You can do this in other ways, but in most cases, this is the most effective. If there are any errors or something is wrong with my script, be sure to let me know :)

0
Perfect workaround, thanks a ton! PieBoots 16 — 6y
Ad

Answer this question