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
 

Blarg, I forget how to do this..simple stuff.

Previous Thread :: Next Thread 
MrMcAero is not online. MrMcAero
Joined: 21 Apr 2012
Total Posts: 671
01 May 2012 06:32 PM
I'm trying to take a part from lighting, clone it, and make the position and the angle of the par to that of another part that move's.

A is the part from Lighting
B is the part it's suppose to copy position's/CFrame

local a = game.Lighting.Part:clone()
local b = game.Workspace.Part
a.Parent = game.Workspace
a.Position = Vector3.new(b.Position.X,b.Position.Y - 3,b.Position.Z) * CFrame.new(a) -- I'd like the part to "spawn" 3 stud's below the new part, and does the CFrame make the part look the same angle?



- Cheers!
Report Abuse
MrMcAero is not online. MrMcAero
Joined: 21 Apr 2012
Total Posts: 671
01 May 2012 06:37 PM
Help?

- Cheers!
Report Abuse
tofwap is not online. tofwap
Joined: 06 Dec 2007
Total Posts: 6596
01 May 2012 06:43 PM
um. I assume you meant to use CFrame for this line

a.Position = Vector3.new(b.Position.X,b.Position.Y - 3,b.Position.Z) * CFrame.new(a)

a.CFrame=b.CFrame.P + Vector3.new(0,-3,0)

-- I'd like the part to "spawn" 3 stud's below the new part, and does the CFrame make the part look the same angle?
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