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: CFrame Help?

Previous Thread :: Next Thread 
georgeharrison12345 is not online. georgeharrison12345
Joined: 11 Mar 2011
Total Posts: 161
14 Aug 2014 09:39 PM
I am rather new to using CFrame and I am wondering how I would do this - I am making a GTA V money brick. Basic idea of the 'money brick': When the humanoid dies, the script clones a small, medium, or large cash part from lighting then changes the parent to Workspace. I can't figure out how to get it to spawn/CFrame to where the humanoid died. I can get it to spawn where it was before I cut and pasted it into lighting but not where the humanoid died. I am using "CFrame = CFrame.new(0,0,0)" to CFrame the part to where the humanoid died. Is there a way I can find the position of the humanoid to automatically CFrame it to where it is? Thanks!
Report Abuse
iiEssence is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
14 Aug 2014 09:40 PM
Any part of the character's position
Report Abuse
IAmTheRolo is online. IAmTheRolo
Joined: 12 Nov 2013
Total Posts: 859
14 Aug 2014 09:40 PM
This is the basic idea:

humanoid.Died:connect(function()
stack_of_cash.CFrame = CFrame.new(humanoid.Parent.Torso.Position)
end
Report Abuse
georgeharrison12345 is not online. georgeharrison12345
Joined: 11 Mar 2011
Total Posts: 161
14 Aug 2014 09:47 PM
Alright, thanks! I tried this already but I entered the code wrong. Anyways, thanks for your help!
Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
14 Aug 2014 09:50 PM


moneybrick.CFrame = player.Torso.CFrame
Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
14 Aug 2014 09:51 PM
moneybrick.CFrame = player.Character.Torso.CFrame*
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