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
|
  |
| 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
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 05 Dec 2012 10:19 AM |
| RocketProplusion, magnitude, stuff like that :p |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
| |
|
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
|
  |
| Joined: 12 Jan 2009 |
| Total Posts: 969 |
|
|
| 05 Dec 2012 10:48 AM |
| Nvm, I read the question completely wrong xD |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 05 Dec 2012 11:38 AM |
| use a coroutine or a second script. |
|
|
| Report Abuse |
|
|
| |
|
|
| 05 Dec 2012 11:41 AM |
| Or weld to your torso and offset it? |
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
coplox
|
  |
| Joined: 07 Jun 2008 |
| Total Posts: 3252 |
|
| |
|
|
| 05 Dec 2012 02:37 PM |
local x = coroutine.create(function()
end)
coroutine.resume(x) |
|
|
| Report Abuse |
|
|