Racer107
|
  |
| Joined: 13 Feb 2012 |
| Total Posts: 165 |
|
|
| 18 Sep 2016 09:47 PM |
Part.CFrame = RightArm.CFrame * CFrame.new(-0.226,-0.085,0.866) local Weld = Instance.new("Weld") Weld.Parent = RightArm Weld.Name = ("HoldPart") Weld.Part0 = RightArm Weld.C0 = RightArm.CFrame:inverse() Weld.Part1 = PartOne Weld.C1 = PartOne.CFrame:inverse() PartOne.Anchored = false
The part does appear at the CFrame but the part dosen't move with the arm.
|
|
|
| Report Abuse |
|
|
Racer107
|
  |
| Joined: 13 Feb 2012 |
| Total Posts: 165 |
|
|
| 18 Sep 2016 09:48 PM |
PartOne.CFrame = RightArm.CFrame * CFrame.new(-0.226,-0.085,0.866) local Weld = Instance.new("Weld") Weld.Parent = RightArm Weld.Name = ("HoldPart") Weld.Part0 = RightArm Weld.C0 = RightArm.CFrame:inverse() Weld.Part1 = PartOne Weld.C1 = PartOne.CFrame:inverse() PartOne.Anchored = false |
|
|
| Report Abuse |
|
|
ownedyou1
|
  |
| Joined: 03 Jul 2008 |
| Total Posts: 528 |
|
|
| 18 Sep 2016 09:50 PM |
| ############################################################################################################################################################################################### |
|
|
| Report Abuse |
|
|
Racer107
|
  |
| Joined: 13 Feb 2012 |
| Total Posts: 165 |
|
| |
|
ownedyou1
|
  |
| Joined: 03 Jul 2008 |
| Total Posts: 528 |
|
|
| 18 Sep 2016 09:56 PM |
| my script was too good so roblox cencored it |
|
|
| Report Abuse |
|
|
Racer107
|
  |
| Joined: 13 Feb 2012 |
| Total Posts: 165 |
|
|
| 18 Sep 2016 10:02 PM |
| so like, does anyone know why it does not move? |
|
|
| Report Abuse |
|
|
ownedyou1
|
  |
| Joined: 03 Jul 2008 |
| Total Posts: 528 |
|
|
| 18 Sep 2016 10:14 PM |
func/tion weld(/Arm,/Part,o/1,o2,/o3) loca/l w1 = In/stanc/e.new("Wel/d") w1.Pa/rent = /Part w1.Pa/rt0 = Part w/1.Part1 =/ Arm w1./C1 = CF/rame/.new(o/1, o2/, o/3) en/d |
|
|
| Report Abuse |
|
|
ownedyou1
|
  |
| Joined: 03 Jul 2008 |
| Total Posts: 528 |
|
|
| 18 Sep 2016 10:14 PM |
| take out ever single / and then just use weld(arm,part,offset1,offset2,offset3) |
|
|
| Report Abuse |
|
|
Racer107
|
  |
| Joined: 13 Feb 2012 |
| Total Posts: 165 |
|
|
| 18 Sep 2016 10:25 PM |
local o1 = -0.226 local o2 = -0.085 local o3 = 0.866 function Weld(RightArm,CandyOne,o1,o2,o3) local w1 = Instance.new("Weld") w1.Parent = PartOne w1.Part0 = PartOne w1.Part1 = RightArm w1.C1 = CFrame.new(o1, o2, o3) end Weld()
I tried this and it did'nt do anything, i'm not really sure what the offsets are |
|
|
| Report Abuse |
|
|
Racer107
|
  |
| Joined: 13 Feb 2012 |
| Total Posts: 165 |
|
|
| 18 Sep 2016 10:26 PM |
| also this is my first attempt at welding |
|
|
| Report Abuse |
|
|
ownedyou1
|
  |
| Joined: 03 Jul 2008 |
| Total Posts: 528 |
|
|
| 18 Sep 2016 10:31 PM |
why did you edit the function
function weld(Arm,Part,o1,o2,o3) local w1 = Instance.new("Weld") w1.Parent = Part w1.Part0 = Part w1.Part1 = Arm w1.C1 = CFrame.new(o1, o2, o3) end Weld(RightArm,CandyOne,0,0,0) |
|
|
| Report Abuse |
|
|
Racer107
|
  |
| Joined: 13 Feb 2012 |
| Total Posts: 165 |
|
|
| 18 Sep 2016 10:42 PM |
| It does the same thing where it won't move with the arm |
|
|
| Report Abuse |
|
|