|
| 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 |
|
| |
|
| 26 May 2014 05:26 PM |
You could just use TweenPosition
-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::] |
|
|
| Report Abuse |
|
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 |
|