function grow()
x=script.Parent.Size.X
y=script.Parent.Size.Y
z=script.Parent.Size.Z
script.Parent.Size=Vector3.new(x+1,y+1,z+1)
end
function shrink()
x=script.Parent.Size.X
y=script.Parent.Size.Y
z=script.Parent.Size.Z
script.Parent.Size=Vector3.new(x-1,y-1,z-1)
end
script.Parent.ClickDetector.Button1Down:connect(grow)
script.Parent.ClickDetector.Button2Down:connect(shrink)
That is the code used in the script. The script's parent is a part, and it has a clickDetector. (Ex. -Part ClickDetector Script)
Im trying to make a part shrink and grow using mouse1button(grow) and mouse2button(shrink), but when i test it, nothing happends.

2 comments
Please explain your answers.
Sorry I thought it was pretty obvious.