Havum
|
  |
| Joined: 19 Sep 2014 |
| Total Posts: 91 |
|
|
| 20 Oct 2014 02:48 PM |
How would you change a GUI's position using UDim2 for every second, like if I wanted it to go up +10 every second, how would I go about this?
Who am I? |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 20 Oct 2014 03:36 PM |
While wait(1) do thingy.Position = thingy.Position + UDim2.new(0,0,0,10) end |
|
|
| Report Abuse |
|
|
Havum
|
  |
| Joined: 19 Sep 2014 |
| Total Posts: 91 |
|
| |
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
| |
|
Havum
|
  |
| Joined: 19 Sep 2014 |
| Total Posts: 91 |
|
|
| 20 Oct 2014 04:02 PM |
local Frame = script.Parent.Parent local credits, data, info, start = Frame:WaitForChild("Credits"), Frame:WaitForChild("Data"), Frame:WaitForChild("Info"), Frame:WaitForChild("Start"),
while wait(1) do credits.Position = credits.Position + UDim2.new(0,0,0,10) end
Who am I? |
|
|
| Report Abuse |
|
|
domogomo
|
  |
| Joined: 03 Jun 2012 |
| Total Posts: 335 |
|
|
| 20 Oct 2014 04:02 PM |
| You need to edit eLunate script for it to work, btw that script will never end :) |
|
|
| Report Abuse |
|
|
Havum
|
  |
| Joined: 19 Sep 2014 |
| Total Posts: 91 |
|
|
| 20 Oct 2014 04:05 PM |
fixed the end and ik how to edit a script,
it just says while won't work in studio
Who am I? |
|
|
| Report Abuse |
|
|
Havum
|
  |
| Joined: 19 Sep 2014 |
| Total Posts: 91 |
|
| |
|
Egzekiel
|
  |
| Joined: 10 Jan 2011 |
| Total Posts: 1079 |
|
|
| 23 Oct 2014 03:20 PM |
while true do wait(1) credits.Position = credits.Position + UDim2.new(0,0,0,10) end
Instead of:
while wait(1) do credits.Position = credits.Position + UDim2.new(0,0,0,10) end |
|
|
| Report Abuse |
|
|
Havum
|
  |
| Joined: 19 Sep 2014 |
| Total Posts: 91 |
|
|
| 23 Oct 2014 03:31 PM |
I thought so, but.. prntscr.com/4z1tcr
Who am I? |
|
|
| Report Abuse |
|
|
Havum
|
  |
| Joined: 19 Sep 2014 |
| Total Posts: 91 |
|
| |
|