|
| 02 Aug 2016 10:52 PM |
local pokeball = workspace.Pokeball local ball = pokeball.Ball local finish = pokeball.BallFinish local start = pokeball.BallStart local bodyposition = ball.BodyPosition while true do bodyposition.Position = start.Position wait(2) bodyposition.Position = finish.Position end
Here I am trying to animate a pokeball as seen in pokemon go. I have placed this script in ServerScriptService but it doesn't seem to work...
Any help is appreciated!
Thanks! |
|
|
| Report Abuse |
|
|
j1sh
|
  |
| Joined: 31 Jul 2016 |
| Total Posts: 289 |
|
|
| 02 Aug 2016 10:54 PM |
Use a for loop. Something like this:
for i = 1, 100 do wait() doodad.Position = doodad.Position + Vector3.new(0.1, 0, 0) end |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 02 Aug 2016 10:58 PM |
| Oh, I figured it out anyway. Therefore no more help is needed this thread is closed! |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2016 11:13 PM |
@j1sh
If I used that then how would I check if the pokeballs position is whether at the starting or the finishing? |
|
|
| Report Abuse |
|
|