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
 

Weld line does not work

Previous Thread :: Next Thread 
Disti15 is not online. Disti15
Joined: 04 Sep 2009
Total Posts: 2652
15 Nov 2011 08:12 AM
Localscript in a tool's handle

weld.C1 = CFrame.new(-0.5, 0.3, 0) * CFrame.lookVector(script.Parent)

I got the lookVector part wrong I think.. how do I do it?
Report Abuse
Disti15 is not online. Disti15
Joined: 04 Sep 2009
Total Posts: 2652
15 Nov 2011 08:38 AM
Bumpie, help me :)
Report Abuse
UttermostExedra is not online. UttermostExedra
Joined: 28 Dec 2009
Total Posts: 2483
15 Nov 2011 09:04 AM
weld.C1 = CFrame.new(-0.5, 0.3, 0) * script.Parent.CFrame.lookVector
Report Abuse
Disti15 is not online. Disti15
Joined: 04 Sep 2009
Total Posts: 2652
15 Nov 2011 10:40 AM
sp.Weld4.C1 = CFrame.new(0, -0.6, 1.375) * sp.Parent.Frente.CFrame.lookVector

I want to make the Weld4's part1 face the part named "frente"

Output: Players.Player.Backpack.Bow.Handle.LocalScript:41: bad argument #3 to '?' (CFrame expected, got userdata)
Report Abuse
Disti15 is not online. Disti15
Joined: 04 Sep 2009
Total Posts: 2652
15 Nov 2011 10:57 AM
I need help, sorry if I'm annoying.
Report Abuse
Disti15 is not online. Disti15
Joined: 04 Sep 2009
Total Posts: 2652
16 Nov 2011 07:59 AM
Bumpie again
Report Abuse
Robert00001 is not online. Robert00001
Joined: 15 May 2010
Total Posts: 7965
16 Nov 2011 08:02 AM
sp.Weld4.C1 = CFrame.new(0, -0.6, 1.375) + sp.Parent.Frente.CFrame.lookVector

?

~ ROBERT00001 ~
~(ಠωಠ)~
Report Abuse
Disti15 is not online. Disti15
Joined: 04 Sep 2009
Total Posts: 2652
16 Nov 2011 09:18 AM
The script continues, but it doesn't weld it...
Report Abuse
Juniperr is not online. Juniperr
Joined: 12 Dec 2009
Total Posts: 6094
16 Nov 2011 09:40 AM
First of all, you cannot CFrame a weld.
Report Abuse
Disti15 is not online. Disti15
Joined: 04 Sep 2009
Total Posts: 2652
16 Nov 2011 09:45 AM
Yes you can. Only the lookvector part fails.

I want it to be at that distance and face that part named 'frente'
Report Abuse
Juniperr is not online. Juniperr
Joined: 12 Dec 2009
Total Posts: 6094
16 Nov 2011 09:56 AM
Sorry, I didn't read you post(s). This is how I would do it:

sp.Weld4.C1.CFrame = CFrame.new((sp.Weld4.C1.Position+sp.Parent.Frente.Position)/2,sp.Parent.Frente.Position)*CFrame.Angles(math.pi/2, math.pi, math.pi/2)
Report Abuse
Disti15 is not online. Disti15
Joined: 04 Sep 2009
Total Posts: 2652
16 Nov 2011 10:10 AM
That didn't work
I will do it my way then.
Sorry for disturbing.
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