Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can someone help me with size? [Solved]

Asked by 10 years ago

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

Log in to vote
1
Answered by
HexC3D 830 Moderation Voter
10 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

That is an example and should help you out.

+1 if helped :P.

0
But would it move through a wall if I used it? Tempestatem 884 — 10y
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 — 10y
0
I tried, and it moves to the top of the brick it is underneath..? Tempestatem 884 — 10y
0
Even changing the size?? It goes throw the wall? Clarify this please. HexC3D 830 — 10y
0
nevermind, I just found a loophole to make it work. Thanks for the help Tempestatem 884 — 10y
Ad

Answer this question