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 » Scripting Helpers
Home Search
 

Re: Comparing Gui Positions

Previous Thread :: Next Thread 
russellthesnake is not online. russellthesnake
Joined: 24 May 2011
Total Posts: 410
26 May 2014 05:00 PM
How do I compare positions? I cannot use UDim2.new...
Im trying to tween GUIs.

script.Parent.PlayBKG.MouseEnter:connect(function()
game.Players.LocalPlayer.PlayerGui.Menu.MenuHolder.Play.PlayBKG.BackgroundColor3 = Color3.new(170,0,0)

script.Parent.Position = UDim2.new(0.21,0,0.25,0)
end)

script.Parent.PlayBKG.MouseLeave:connect(function()
game.Players.LocalPlayer.PlayerGui.Menu.MenuHolder.Play.PlayBKG.BackgroundColor3 = Color3.new(255,255,255)
script.Parent.Position = script.Parent.Position + UDim2.new(0,3,0,0)
if script.Parent.Position > UDim2.new(0.275,0,0.25,0) then
script.Parent.Position = UDim2.new(0.275,0,0.25,0)
end
--script.Parent.Position = UDim2.new(0.275,0,0.25,0)
end)

Report Abuse
russellthesnake is not online. russellthesnake
Joined: 24 May 2011
Total Posts: 410
26 May 2014 05:24 PM
Bumpididoo
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
26 May 2014 05:26 PM
You could just use TweenPosition

-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::]
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
26 May 2014 05:28 PM
Yup, or you would have to manually compare each component
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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