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

How to resize the player when he touch a brick?

Asked by 6 years ago

I want to know how to resize the player to normal size to a small size when he touch a brick.

1 answer

Log in to vote
0
Answered by 6 years ago
script.Parent.Touched:connect(function(hit)

    if hit.Parent:FindFirstChild("Humanoid") then

        for _,v in pairs(hit.Parent:GetChildren()) do
            if v.ClassName=="Part" then
                v.Size=Vector3.new(size, you, want)
                --you can also check what the name of it is and change the size of the                       
                arms/legs/head/torso to different sizes 
            end
        end

    end 

end)
Ad

Answer this question