local Selection = game:GetService("Selection");
local updated = {}
for _,v in Selection:Get() do
if ((v:IsA("Model")) or v:IsA("BasePart")) ~= true then
warn(`VehicleChassisRigWheel -> Skipping "{tostring(v)}" as it is not a model | basepart.`);
continue;
end
local BoundsCF = if v:IsA("Model") then v:GetBoundingBox() else v.CFrame;
local _face = Instance.new("Part");
_face.Name = "WheelMain";
_face.CanCollide = false;
_face.CanQuery = false;
_face.CanTouch = false;
_face.Position = BoundsCF.Position;
_face.Size = Vector3.new(1,1,1);
_face.Parent = v;
table.insert(updated, _face)
if(v:IsA("Model"))then
v.PrimaryPart = v.PrimaryPart or _face;
end
end
Selection:Set(updated);
updated = nil;
Selection = nil;
warn(`\n\nVehicleChassisRigWheel -> CTRL+Z Will NOT Undo recent changes!`);
~~~~~~~~~~ COPY END ~~~~~~~~~~
Command line executables:
FacePart inside a wheel model: