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
23 days ago
Edited 23 days 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 22 days ago
Edited 18 days 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