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

how would i make a part go back to its original size if it reaches x size?

how would i make a part go back to its original size if it reaches x size?for example

local part = game.workspace.part
if part.Size == vector3(10,10,10) then
part.Size = vector3.new(5,5,5)

1 answer

In line 2 you are missing a .new after Vector3

3 comments

0

I put it like this: 'if lava == Vector3.new(18,40.2,290) then -> lava.Size = Vector3.new(18,40,1)' but still not working

0

It could be because you need to use CFrame instead, it’s written the exact same way but you replace Vector3 with CFrame

0

Also make sure you have “end” at the end of the code piece

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