Sorcism
|
  |
| Joined: 09 Jul 2015 |
| Total Posts: 6906 |
|
|
| 23 Apr 2016 10:28 AM |
Frame info required:
Position of frame : {-0.2, 0},{0.2, 0} Size of frame : {0.2, 0},{0.3, 0}
This is my current code:
function openmenu() local frame = script.Parent.Parent:WaitForChild("Background") for i=1,200 do wait(0.01) end end
What I'm attempting to do, but I need help on: I would like for the frame to move +0.01 every 0.01 second, 200 times. I don't know the line of code to move the frame though, and that's what I need. If you could help me, I would appreciate it a lot!
|
|
|
| Report Abuse |
|
|
War_Force
|
  |
| Joined: 15 Apr 2016 |
| Total Posts: 2611 |
|
| |
|
Sorcism
|
  |
| Joined: 09 Jul 2015 |
| Total Posts: 6906 |
|
|
| 23 Apr 2016 10:29 AM |
@War
That's what I'm trying to do, but I don't know how.
|
|
|
| Report Abuse |
|
|
eRanged
|
  |
| Joined: 15 Jun 2013 |
| Total Posts: 9746 |
|
|
| 23 Apr 2016 10:31 AM |
Search up tutorials or a wiki about :TweenPosition
|
|
|
| Report Abuse |
|
|
|
| 23 Apr 2016 10:31 AM |
function openmenu() local frame = script.Parent.Parent:WaitForChild("Background") for i=1,200 do frame.Size = frame.Size + UDim2.new(0.1,0,0.1,0) frame.Position = frame.Position + UDim2.new(0.1,0,0.1,0) wait(0.01) end end
edit the UDim2.new increasing to your liking |
|
|
| Report Abuse |
|
|
Sorcism
|
  |
| Joined: 09 Jul 2015 |
| Total Posts: 6906 |
|
|
| 23 Apr 2016 10:32 AM |
@Zarman
Appreciate it man! Thanks for the help!
|
|
|
| Report Abuse |
|
|
eRanged
|
  |
| Joined: 15 Jun 2013 |
| Total Posts: 9746 |
|
|
| 23 Apr 2016 10:33 AM |
TweenPosition so much better tho q-q
|
|
|
| Report Abuse |
|
|
|
| 23 Apr 2016 10:34 AM |
| Hey this guy doesn't seem to know most of the basics, let him go step by step |
|
|
| Report Abuse |
|
|
|
| 23 Apr 2016 10:34 AM |
By the way, ~0.03 is the shortest you can wait for on the server
Instance.new("BodyThrust",SenseiWarrior).position = CFrame.new(SenseiWarrior,YourGirlsDMs) |
|
|
| Report Abuse |
|
|
War_Force
|
  |
| Joined: 15 Apr 2016 |
| Total Posts: 2611 |
|
|
| 23 Apr 2016 11:10 AM |
:TweenPosition(UDim2.new(2,0,2,0),"Out","Quad",1)--In the zeros put the destination position, where its 2 it's for scale number, zero is the offsted. In the 1 put the time it takes to tween it to that location.
|
|
|
| Report Abuse |
|
|