generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Help with a script

Previous Thread :: Next Thread 
devCrucible is not online. devCrucible
Joined: 17 Jul 2016
Total Posts: 40
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 is not online. 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
devCrucible is not online. devCrucible
Joined: 17 Jul 2016
Total Posts: 40
02 Aug 2016 10:54 PM
Bump,
Report Abuse
devCrucible is not online. devCrucible
Joined: 17 Jul 2016
Total Posts: 40
02 Aug 2016 10:55 PM
^
^
I've tried that
Report Abuse
devCrucible is not online. devCrucible
Joined: 17 Jul 2016
Total Posts: 40
02 Aug 2016 10:58 PM
Oh, I figured it out anyway. Therefore no more help is needed this thread is closed!
Report Abuse
devCrucible is not online. devCrucible
Joined: 17 Jul 2016
Total Posts: 40
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image