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: Welding / CFrame Q

Previous Thread :: Next Thread 
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
16 Nov 2011 02:21 PM
I want to weld brick B onto a brick A such that when I weld it on and brick A's CFrame is, I don't know, X, brick B's CFrame is Y.

Given I know X and Y, how do I find the C0 CFrame I would use to weld it? I tried just subtracting A from B but apparently I can't do that.
Report Abuse
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
16 Nov 2011 02:23 PM
A.CFrame:inverse()*B.CFrame

Or something like that, if this is normal welding.
Report Abuse
sk8ercool456 is not online. sk8ercool456
Joined: 24 Jan 2008
Total Posts: 1846
16 Nov 2011 02:27 PM
I had something, and I'd get it for you if ROBLOX wasn't retarded and would start for me XP
Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
16 Nov 2011 02:35 PM
eh that didn't work QUITE right

I'll try swapping them around
Report Abuse
sk8ercool456 is not online. sk8ercool456
Joined: 24 Jan 2008
Total Posts: 1846
16 Nov 2011 02:35 PM
Here:

part1 =
part2 =

Weld.C0 = CFrame.new(part1.CFrame:inverse() * part1.CFrame.p)
Weld.C1 = CFrame.new(part2.CFrame:inverse() * part1.CFrame.p)
Report Abuse
sk8ercool456 is not online. sk8ercool456
Joined: 24 Jan 2008
Total Posts: 1846
16 Nov 2011 02:37 PM
Oh, oops:

Weld.C0 = CFrame.new(part1.CFrame:inverse() * CFrame.new(x.Position))
Weld.C1 = CFrame.new(part2.CFrame:inverse() * CFrame.new(x.Position))
Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
16 Nov 2011 02:41 PM
's ok: RATEX' worked, I just had them the wrong way round. Tanks anyway.
Report Abuse
sk8ercool456 is not online. sk8ercool456
Joined: 24 Jan 2008
Total Posts: 1846
16 Nov 2011 02:42 PM
I believe RATE's will mess up if you have angles involved...
Report Abuse
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
16 Nov 2011 02:44 PM
@sk8 Nope.
Report Abuse
Penguine236 is not online. Penguine236
Joined: 13 Apr 2011
Total Posts: 1303
16 Nov 2011 02:44 PM
@sk8er


YOU CAN NOT CHANGE THE X PROPERTY ON ITS OWN!! X IS A READ ONLY PROPERTY!!! TRYING TYOT CHANGE WILL RESULT IN ERROR
Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
16 Nov 2011 02:47 PM
"X IS A READ ONLY PROPERTY"

's a good job he's reading it then

And RATEX' does work with angles.. proof by.. proof.

(is it RATEX's? RATEX' sounds right to me)
Report Abuse
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
16 Nov 2011 02:49 PM
Ratex' no need to make my name as in my username.
Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
16 Nov 2011 02:53 PM
rly

I hate it when people capitalise my name :x
Report Abuse
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
16 Nov 2011 02:56 PM
I hate it when people call me RAT or rat, I don't like when they capitalize it like RATEX or RATE.
Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
17 Nov 2011 10:46 AM
how about sally

from now on, I wll call you Sally
Report Abuse
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
17 Nov 2011 11:51 AM
... why?
Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
17 Nov 2011 11:54 AM
why not?

a friend of mine called declan went by sally for a two months after a joke about the register
Report Abuse
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
17 Nov 2011 12:04 PM
but i don't like sally D:
Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
17 Nov 2011 12:28 PM
shut up sally
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
17 Nov 2011 12:31 PM
Vague hello's from holland.
Report Abuse
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
17 Nov 2011 12:32 PM
nou!
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
17 Nov 2011 12:33 PM
*shalps*

dats dutch and u ish nawt dutch, k?
Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
17 Nov 2011 12:34 PM
"dats dutch and u ish nawt dutch, k?"

lul kay
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
17 Nov 2011 12:35 PM
Dus ik hoorde dat julie nederlands leuk vinden :3
Report Abuse
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
17 Nov 2011 12:46 PM
D: I was telling sally to shut up D:

yes i did it i called you sally :D
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