iKobi
|
  |
| Joined: 24 Jun 2010 |
| Total Posts: 373 |
|
|
| 03 Feb 2017 07:18 PM |
| I cant find a solution anywhere that can help me change this script, so that instead of animating each players GUI one at a time, it does everyone at once... Help!! for _, Child in pairs(game.Players:GetChildren()) ## # = 1.1 for i = 1,81 do Child.PlayerGui.ScreenGui.Frame.Position = UDim2.new((x-.005), 0, 0, 0) x = x-.005 wait(.03) end end |
|
|
| Report Abuse |
|
|
iKobi
|
  |
| Joined: 24 Jun 2010 |
| Total Posts: 373 |
|
|
| 03 Feb 2017 07:20 PM |
| ... Sorry for the rushed post.. I would like a link or an explanation of changing all Player's GUI's at once, Sorry. |
|
|
| Report Abuse |
|
|
|
| 03 Feb 2017 07:22 PM |
coroutines/spawn allows multiple pieces of code to run at virtually the same time
spawn(function()
end)
coroutine.wrap(function()
end)()
coroutine.resume(coroutine.create(function()
end))
ex
spawn(function() wait(5) print 'first one' end)
wait(5)
print 'second one'
this should print first one and second one at the same time
|
|
|
| Report Abuse |
|
|
iKobi
|
  |
| Joined: 24 Jun 2010 |
| Total Posts: 373 |
|
|
| 03 Feb 2017 07:23 PM |
| Thanks! This clears it up. |
|
|
| Report Abuse |
|
|
|
| 03 Feb 2017 07:27 PM |
Oh god
Please don't manipulate player GUI from the server |
|
|
| Report Abuse |
|
|