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: Creating an Orb script

Previous Thread :: Next Thread 
Aoredon is not online. Aoredon
Joined: 05 Feb 2012
Total Posts: 34
05 Dec 2012 10:04 AM
I was wondering how I would go about creating an orb? I don't mean all the commands and stuff, I can do that, but how would I create an actual orb. By that I mean a sphere object that follows me around? That's all I want to know how to do :P Create an object and make it follow me :D

-Thanks in advance.
Report Abuse
awesomeM3 is not online. awesomeM3
Joined: 23 Aug 2011
Total Posts: 1992
05 Dec 2012 10:10 AM
Try using the backpack and Players

I don't know how to script all too well sorry.
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
05 Dec 2012 10:19 AM
RocketProplusion, magnitude, stuff like that :p
Report Abuse
FreeToTake is not online. FreeToTake
Joined: 21 Apr 2010
Total Posts: 1827
05 Dec 2012 10:30 AM
x = Instance.new("Part", character)
x.Size = Vector3.new(1,1,1)
bp = Instance.new("BodyPosition", x)

while wait() do
bp.Position = character.Torso.Position + Vector3.new(3,5,0)
end

try something like this.
Report Abuse
Aoredon is not online. Aoredon
Joined: 05 Feb 2012
Total Posts: 34
05 Dec 2012 10:41 AM
Exactly what I needed, will try it out now, thanks.
Report Abuse
Aoredon is not online. Aoredon
Joined: 05 Feb 2012
Total Posts: 34
05 Dec 2012 10:43 AM
Edit: Just realised: How would I make the orb constantly go to the body position and make the body position move without pausing the script as while statements pause until the script is done doesn't it?
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
05 Dec 2012 10:44 AM
while wait() do
Report Abuse
Monkey727 is not online. Monkey727
Joined: 12 Jan 2009
Total Posts: 969
05 Dec 2012 10:47 AM
Try using BodyForce instead,

Orb.Name = "Orb"
Orb.Shape = "Ball"
Orb.Size = Vector3.new(1,1,1)
Velocity = (mouse.Hit.p - Player.Character.Head.Position).unit
Orb.CFrame = Player.Character.Torso.CFrame + (Velocity * 7)
Orb.Parent = Player.Character
Orb.Velocity = Velocity * 100

local Force = Instance.new("BodyForce")
Force.force = Vector3.new(0,Orb:GetMass()*196.2,0)
Force.Parent = Orb

game.Debris:AddItem(Orb,10)
Report Abuse
Monkey727 is not online. Monkey727
Joined: 12 Jan 2009
Total Posts: 969
05 Dec 2012 10:48 AM
Nvm, I read the question completely wrong xD
Report Abuse
Aoredon is not online. Aoredon
Joined: 05 Feb 2012
Total Posts: 34
05 Dec 2012 11:18 AM
Still tryna get a stable orb type thing D:
Report Abuse
FreeToTake is not online. FreeToTake
Joined: 21 Apr 2010
Total Posts: 1827
05 Dec 2012 11:38 AM
use a coroutine or a second script.
Report Abuse
FreeToTake is not online. FreeToTake
Joined: 21 Apr 2010
Total Posts: 1827
05 Dec 2012 11:40 AM
or .Changed event maybe.
Report Abuse
FreeToTake is not online. FreeToTake
Joined: 21 Apr 2010
Total Posts: 1827
05 Dec 2012 11:41 AM
Or weld to your torso and offset it?
Report Abuse
Aoredon is not online. Aoredon
Joined: 05 Feb 2012
Total Posts: 34
05 Dec 2012 02:12 PM
I like the idea of using a second script, but I like to be able to use just one script, is it possible to create a script using a script and then edit the contents of that script? Or would I have to seperatly create two different scripts.
Report Abuse
izzatnasruna is not online. izzatnasruna
Joined: 09 Jun 2009
Total Posts: 1927
05 Dec 2012 02:13 PM
Use coroutines
Report Abuse
coplox is not online. coplox
Joined: 07 Jun 2008
Total Posts: 3252
05 Dec 2012 02:17 PM
Yeah, coroutines.
Report Abuse
FreeToTake is not online. FreeToTake
Joined: 21 Apr 2010
Total Posts: 1827
05 Dec 2012 02:37 PM
local x = coroutine.create(function()

end)

coroutine.resume(x)
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