You can shorten it by Assigning Enabled with a conditional statement, lets say you wanted to ensure 4 == 4 which a variable, instead of checking a condition and then assigning a true or false value, you can say this:
local Is4 = (4 == 4) -- This will return a Boolean
-- it is also how if statements function
print(Is4) -- true
for this example, you can say:
lastPart.BillboardGui.Enabled = (lastpart == nil)
You can also use this for and, and or
local Confirmation = Is4 and true or false
-- if Is4 is true then value will be true, otherwise it will be given
-- the value of false
local Another = lastpart or 0
-- if lastPart doesnt exist, 0 will be assigned