
basically how do i press this button via a script in a model
Could you clarify what are you exactly trying to do?
You could use Model:ScaleTo()
Looking for an answer for this too. I made a bunch of animations on a scaled model and they just WONT play properly, no matter what I do, unless I reset the scale to 1 using this little button while running the game.
How to replicate exactly what this button is doing through code? There doesn’t seem to be a method for it. And no, Model:ScaleTo() is NOT the solution because this method will resize the model.
there is no method to do this, scaleto() or .scale are your only options
I mean, cant you just (since u want It via script) create a secondary model and then move all children into that new model? After that you can just destroy the old model object once the descendants are moved
local model =
local newModel = Instance.new("Model")
newModel.Parent = model.Parent
for _, child in pairs(model:GetChildren()) do
child.Parent = newModel
end
model:Destroy()
If im not wrong that should not change the sizes of the elements inside the previous model, letting you have scale 1 on a model that previously had the scale you wanted (might be seriously incorrect, but it IS worth the try)
I was going to say try this.. It works manually so, worth a shot.
(also love the outside the box thinking)