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
2 years ago
Edited 2 years 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 2 years ago
Edited 2 years 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