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: Body st00f

Previous Thread :: Next Thread 
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
30 Nov 2012 05:26 PM
So i wanna make a bodyforced objcect infront of me (a flying brick infront of my torso), i have been practicing body objects but how would i make it stay to my alittle infront of my torso?
Report Abuse
squirrelterritory is not online. squirrelterritory
Joined: 17 Sep 2011
Total Posts: 276
30 Nov 2012 05:38 PM
Weld it to your self, useing a weld script.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
30 Nov 2012 05:39 PM
Bump.@Squirrel, no.
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
30 Nov 2012 05:41 PM
Could doooooo a bodyPosition and put the position toooo

BodyPosition.Position = game.Workspace.Fedorakid.Torso.Position + game.Workspace.Fedorakid.Torso.CFrame.lookVector * 5

yeye
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
30 Nov 2012 05:47 PM
So?:

c = Instance.new("BodyPosition",game.Workspace.Fedorakid.Character)
c.D = STUFF
c.P = STUFF
c.maxForce = Vector3.new(10000,30000,10000)
c.position = game.Workspace.Fedorakid.Torso.Position + game.Workspace.Torso.CFrame = CFrame.new(0,0,2)


Dont bother about the D,P and maxforce, is the rest right?

Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
30 Nov 2012 06:06 PM
Dude, the position property in a BodyPosition tells it where the brick is supposed to GO, not where it is...

1. That would error
2. You have to put the BodyPosition in the part you made
3. If that wouldn't error, that would make your character move 2 studs forward...

Here:

local p = Instance.new("Part", workspace.Fedorakid)
local bp = Instance.new("BodyPosition", p)
bp.maxForce = Vector3.new(10000,30000,10000)
while wait() do
bp.position = workspace.Fedorakid.Torso.Position + Vector3.new(0, 0, 2)
end

http://wiki.roblox.com/index.php/User:ElectricBlaze
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
02 Dec 2012 02:38 PM
It worked but theres one thing, what property would i change to make it follow me faster? do i needto change power or maxforce or less D? i cant tell the difference between maxforce and P...help?
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
02 Dec 2012 02:44 PM
Nvm it was the power, but how would i make the brick and torso look at each other even when i walk, the front side of my torso and the backside of my brick face to face, when i walk?
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
02 Dec 2012 03:12 PM
local p = Instance.new("Part", workspace.Fedorakid)
local bp = Instance.new("BodyPosition", p)
bp.maxForce = Vector3.new(10000,30000,10000)
while wait() do
bp.position = workspace.Fedorakid.Torso.Position + workspace.Fedorakid.Torso.CFrame.lookVector * 2
end


http://wiki.roblox.com/index.php/User:ElectricBlaze
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