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

How to make blocks shrink? [closed]

Asked by 10 years ago

like touching a block it will shrink

Closed as Not Constructive by evaera

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
1waffle1 2908 Trusted Badge of Merit Moderation Voter Community Moderator
10 years ago
block.Touched:connect(function()
    local cf=block.CFrame
    block.Size=block.Size-Vector3.new(1,1,1)
    block.CFrame=cf
end)

This will reduce the size of the block by 1 in all dimensions. (min .2 for custom parts, 1 for Symmetric, 1.2 for Brick, 2 for trusses)

Ad