Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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 comments

2

drawBridgeArm.Size = putYourSizeHere or you can use drawBridgeArm:Resize(size,direction)

0

Oh sweet. Thanks for the help

1 answer

✓ Accepted answer
local part = Game.Workspace.Model.drawBridgeArm
part.Size = Vector3.new(5,1,1) --Put the size you want the arm to go to

This discussion is preserved as it was. New answers, comments, and votes are closed.