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

How do I call the size property of a part to change it in the script?

Asked by 9 years ago

I'm trying to create a drawbridge-type thingy, and t``he way I want it to work I know that I need to change the length property of the part, how would I call that property in the script? I know what the script should look like, I just don't know how I would call that specific property of the part from the part.

The mapping to the part is Game.Workspace.Model.drawBridgeArm

2
drawBridgeArm.Size = putYourSizeHere or you can use drawBridgeArm:Resize(size,direction) DragonODeath 50 — 9y
0
Oh sweet. Thanks for the help areiydenfan00 115 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago
local part = Game.Workspace.Model.drawBridgeArm
part.Size = Vector3.new(5,1,1) --Put the size you want the arm to go to
Ad

Answer this question