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: I was wondering if anyone could help me out

Previous Thread :: Next Thread 
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
18 Dec 2012 11:21 AM
If I have a part who's front surface is pointing down, and the top surface is pointing forward, can still place a brick behind that part using a negative lookvector? Or would it simply appear above the back surface, which is pointing up.

If it appears above the back surface, can anyone give me an example of lua that will allow me to place the brick behind the bottom surface instead?

more specifically, i snagged a copy of the rc tank from free models that has the moveable turret and after editing so much, i wanted to make an ability to place landmines behind the tank, but apparently both the torso and head of the tank are pointing downwards even though the tank itself looks like its laying flat.

Can anyone help me out here?
Report Abuse
1Topcop is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
18 Dec 2012 02:21 PM
Behind = Part.CFrame*-Part.CFrame.lookVector -- This should work.
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
19 Dec 2012 03:32 PM
15:32:14 - Players.xiaoxiao181.Backpack.Red Tank.RCTankLocal:337: bad argument #3 to 'CFrame' (CFrame expected, got userdata)
15:32:14 - Script "Players.xiaoxiao181.Backpack.Red Tank.RCTankLocal", Line 337
15:32:14 - stack end
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
19 Dec 2012 03:38 PM
Should I just create it at the BottomSurface? This is complicated to me lol
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