Need help with script!

Script Error:

Code-

if game.Players.LocalPlayer.PlayerGui["Game UI"].HomeScreen.Background["No-Results"]["No-Results Text"].AbsoluteSize >= Vector2.new(1331, 50.0652) then
  print("It worked!")
end

Output-

image

Attempt to compare both X and Y values separately, then reply with the results.

1 Like

You would have to compare the X and Y values separately.

local size = game.Players.LocalPlayer.PlayerGui["Game UI"].HomeScreen.Background["No-Results"]["No-Results Text"].AbsoluteSize

if size.X >= 1331 and size.Y >= 50.0652 then
  print("It worked!")
end