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)
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)
In line 2 you are missing a .new after Vector3
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
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
It could be because you need to use CFrame instead, it’s written the exact same way but you replace Vector3 with CFrame
Also make sure you have “end” at the end of the code piece