generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How do I do this?

Previous Thread :: Next Thread 
fun4nerd is not online. fun4nerd
Joined: 30 Oct 2013
Total Posts: 4440
27 Nov 2015 05:48 PM
It gives me an error: 18:45:38.542 - Players.Player.PlayerGui.MainGui.ScreenFit:7: attempt to compare two userdata values

wait()
local sp = script.Parent

if sp.AbsoluteSize >= Vector2.new(1300, 1) then
print"WORKING!"
end
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
27 Nov 2015 05:50 PM
Compare coordinates.

if sp.AbsoluteSize.X > 50 then

print'yes'

end
Report Abuse
wonderful72pike is online. wonderful72pike
Joined: 13 Jul 2010
Total Posts: 7009
27 Nov 2015 05:52 PM
Userdata = object value, you can't compare them
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image