|
| 26 Jul 2015 10:09 PM |
Can someone give me a script that moves the GUI Frame from what it is already at {0, -200},{0.48, 0}, going to {0, 0},{0.48, 0}, in a sliding motion on the click of Script Parent
I'm just here so I don't get fined |
|
|
| Report Abuse |
|
|
vacha
|
  |
| Joined: 06 Jan 2011 |
| Total Posts: 1993 |
|
|
| 26 Jul 2015 10:11 PM |
bruh http://wiki.roblox.com/index.php?title=Tweening#TweenPosition
while true do the do |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 10:12 PM |
It's not making sense, but if I saw an actual example that filled in the numbers, it would make more sense
I'm just here so I don't get fined |
|
|
| Report Abuse |
|
|
baldo46
|
  |
| Joined: 28 Jul 2008 |
| Total Posts: 1254 |
|
|
| 26 Jul 2015 10:12 PM |
| gui:TweenPosition(UDim2.new(0,0,0.48,0); |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 10:13 PM |
OnClick?
I'm just here so I don't get fined |
|
|
| Report Abuse |
|
|
vacha
|
  |
| Joined: 06 Jan 2011 |
| Total Posts: 1993 |
|
|
| 26 Jul 2015 10:15 PM |
button.MouseButton1Down:connect(function() --blados function end)
while true do the do |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 26 Jul 2015 10:16 PM |
if those coordinates are position,
script.Parent.MouseButton1Click:connect(function() script.Parent:TweenPosition(UDim2.new(0, 0, 0.48, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, 1, true) --[[set to true if you want other guis to be able to be tweened at the same time, else, set it to false]] end)
if they are size,
script.Parent.MouseButton1Click:connect(function() script.Parent:TweenSize(UDim2.new(0, 0, 0.48, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, 1, true) --[[ set to true if you want other guis to be able to be tweened at the same time, else, set it to false]] end)
play around with the different easing directions and styles, you'll probably find someting that looks better than the others |
|
|
| Report Abuse |
|
|