of     1   

cazboy10
#223905405Saturday, August 19, 2017 4:32 AM GMT

I can't seem to figure out how to change the size of a model through a script. Any help would be great.
SoFlashyy
#223905628Saturday, August 19, 2017 4:37 AM GMT

i could help . pay?
Ozzzey
#223905824Saturday, August 19, 2017 4:41 AM GMT

Why would you ask for pay? He just wants some help. I will do it for free :) So, you have to make a function. ex) function(Touched() then, you will have to make it so that the script finds the brick/part. ex) script.Parent.Brick.workspace then, you will have to make a connecting function. ex) script.Parent.Parent.Touched.connect:(Touched) finally, you will have to make it so that the size is smaller/bigger. I hope this was helpful! That one dank dude ecks dee
Iceladen
#223905890Saturday, August 19, 2017 4:43 AM GMT

what does a touched event have to do with anything
SoFlashyy
#223905907Saturday, August 19, 2017 4:43 AM GMT

or that
cazboy10
#223906071Saturday, August 19, 2017 4:48 AM GMT

So, I already know how to change a part size with a script, if that's what you're explaining. The problem I'm running into is changing the size of an entire Model, with a script.
yin_yang
#223906113Saturday, August 19, 2017 4:49 AM GMT

> "finally, you will have to make it so that the size is smaller/bigger." lol
romanaisawesome
#223906697Saturday, August 19, 2017 5:06 AM GMT

local increase = 2 -- 1 will do nothing for i,v in pairs(Model:GetChildren()) do if v:IsA('Part') then v.Size = Vector3.new(v.Size * increase) end end This siggy is classified | R$1,672
PotatoSocietyGaming
#223907000Saturday, August 19, 2017 5:15 AM GMT

Yo, smurf guy. Scripting doesn't mean what it actually means. The script says some stuff The stuff happens It sounds creepy like "children" but it doesn't mean that at all. At least, that's how I understand it.
romanaisawesome
#223907091Saturday, August 19, 2017 5:17 AM GMT

Children is an object inside an object xd .Touched is an event script.Parent.Touched:connect(function(Hit) end) This siggy is classified | R$1,672
Spathi
#223909172Saturday, August 19, 2017 6:25 AM GMT

This thread is so bad Talented builder, and scripter
cazboy10
#223928788Saturday, August 19, 2017 5:40 PM GMT

I have: wait(5) local increase = 2 for i,v in pairs(game.Workspace.Test:GetChildren()) do if v:IsA('Part') then v.Size = Vector3.new(v.Size * increase) end end But, it just makes every part in the model extremely small. I've tried changing how much it increases, but still does this.
Vxrtual
#223934719Saturday, August 19, 2017 7:33 PM GMT

Maybe try doing this: Ungroup your model, and instead make it a union. (Might have some side effects, I've never tried) Put this script in your union. function (whatever you want) () for i = 1(or another number), 0.1, 0.01 do script.Parent.Size = Vector3.new (i, i, i) end end script.Parent.(event that activates the function such as .Touched):connect(Function Name) This might work, but I've never tried it.
Vxrtual
#223936420Saturday, August 19, 2017 8:01 PM GMT

Sorry but made a small error you need to add something to this line: script.Parent.Size = Vector3.new(i, i, i) You need to make it like this instead: script.Parent.Size = Vector3.new(i, i, i) wait(0.01) This will make it so it doesn't grow instantly
Quasiduck
#223936486Saturday, August 19, 2017 8:03 PM GMT

Why not just use an already existing model resize script? Or do you want to figure it out for yourself?
Vxrtual
#223936849Saturday, August 19, 2017 8:09 PM GMT

if you want it to change instantly, then use the first way I mentioned. If not then change that part to the updated one.
Quasiduck
#223947573Saturday, August 19, 2017 11:41 PM GMT

origin = script.Parent.PrimaryPart.Position Scale = 0.1 for _,v in pairs (script.Parent:GetChildren()) do if v:IsA("BasePart") then saveVec = v.Position - origin saveCf = v.CFrame v.Size = v.Size*Scale v.CFrame = saveCf - saveCf .p + origin + saveVec*Scale end end

    of     1