Attribute is acting strange

i’m making script which detects if size of an part is bigger than attribute vector3 size but for some reasons it gives this error: attempt to compare Vector3 <= Vector3

Script:

if water.Size >= Planet1:GetAttribute("WaterSize") then

end

I also tried doing this:

if water.Size.Y >= Planet1:GetAttribute("WaterSize") then -- and i converted attribute to number
-- but it still gets error "attempt to compare Number <= Number" or something like that i don't remember.
end

water.Size.Y >= Planet1:GetAttribute("WaterSize").Y
You need to get the ‘Y’ property value from the attribute.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.