0

# Can someone help me with size? [Solved]

I thought I knew how to make a brick change size, based off of CFrame, but I guess not.

(Like it can re-size through a wall or something)

Here is what I tried:

(Note all variables are defined earlier in the script)

for i=1,25 do
wait()
door1.Size=door1.Size-CFrame.new(.1,0,0)
door2.Size=door2.Size-CFrame.new(.1,0,0)

end


Thanks!

-Tempestatem

1
HexC3D 830
8 years ago

Try Vector3, it would help alot.

This is what Vector3 is( I believe you know it)

Vector3.new(x,y,z) -- Coordinate's of Roblox Game Engine since it is 3D, z was added.


So this how it would look in the script

for i = 1,1 do
wait()
door1.Size = door1.Size - Vector3.new(0.1,0,0)
end


+1 if helped :P.

0
But would it move through a wall if I used it? Tempestatem 884 — 8y
0
Umm, yeah but measure even using CFrame would make it go through. But then again it's size and where subtracting so it wouldn't. HexC3D 830 — 8y
0
I tried, and it moves to the top of the brick it is underneath..? Tempestatem 884 — 8y
0
Even changing the size?? It goes throw the wall? Clarify this please. HexC3D 830 — 8y
0
nevermind, I just found a loophole to make it work. Thanks for the help Tempestatem 884 — 8y