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

How to make a script that goes "if part.Size is Higher than its original size, then print("Text")"?

Asked by
Oxar12 0
1 year ago
Edited 1 year ago

I tried several ways and even researching, and I couldn't find the solution. Is there anyway to make that type of script?

1 answer

Log in to vote
0
Answered by 1 year ago
Edited 1 year ago
--Part refers to your part, just swap it out with whatever you want


local oldSize = Part.Size
Part:GetPropertyChangedSignal("Size"):Connect(function()
    if Part.Size > oldSize then
        oldSize  = Part.Size
        print("Text")   
    end
end)
Ad

Answer this question