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

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 answer

✓ Accepted answer

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

That is an example and should help you out.

+1 if helped :P.

5 comments

0

But would it move through a wall if I used it?

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.

0

I tried, and it moves to the top of the brick it is underneath..?

0

Even changing the size?? It goes throw the wall? Clarify this please.

0

nevermind, I just found a loophole to make it work. Thanks for the help

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