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 » Scripting Helpers
Home Search
 

Re: Way of making a brick orbit using BodyPosition

Previous Thread :: Next Thread 
longbow12 is not online. longbow12
Joined: 20 Sep 2008
Total Posts: 565
20 Nov 2013 02:43 PM
As the subject fields says, any other "body" classes you could think of that would help me achieve this would help.
bp1.position = vip.Character.Torso.Position + Vector3.new(0,0.5,4)

with that line there a brick is 4 studs in front of me constantly, basically I want the brick to orbit around me aswell. Any1 know how this would be achieve?
I believe CFraming causes some issues.
Report Abuse
longbow12 is not online. longbow12
Joined: 20 Sep 2008
Total Posts: 565
21 Nov 2013 07:53 AM
Bump
Report Abuse
longbow12 is not online. longbow12
Joined: 20 Sep 2008
Total Posts: 565
21 Nov 2013 11:13 AM
Bump
Report Abuse
flatline115 is not online. flatline115
Joined: 29 Jul 2013
Total Posts: 7826
21 Nov 2013 12:04 PM
CFraming is your best bet imo..
Report Abuse
longbow12 is not online. longbow12
Joined: 20 Sep 2008
Total Posts: 565
21 Nov 2013 12:23 PM
I thought it would be, I think CFrame is glitchy though.
Report Abuse
flatline115 is not online. flatline115
Joined: 29 Jul 2013
Total Posts: 7826
21 Nov 2013 12:26 PM
No it isn't, it is the person scripting it.
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
21 Nov 2013 01:01 PM
@flatline. You are truly obsessed with CFrame..


@op

t = 0

while true do
bp1.position = vip.Character.Torso.Position + Vector3.new(math.cos(math.rad(t))*4,0.5,math.sin(math.rad(t))*4)
t=t+5--change this number to bigger for faster orbitting
wait(1/30)
end


Should do stuff
Report Abuse
flatline115 is not online. flatline115
Joined: 29 Jul 2013
Total Posts: 7826
21 Nov 2013 02:01 PM
@Zars this is probably true. But, I rarely touch parts when scripting as I like to do other things so not really.
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
21 Nov 2013 02:36 PM
I just saw that you mentioned CFrame in several threads, where it wouldn't fit so well.
Report Abuse
longbow12 is not online. longbow12
Joined: 20 Sep 2008
Total Posts: 565
21 Nov 2013 03:36 PM
Thank you zars for replying, not appreciating flat's attitude but there we go.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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