vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
|
| 19 Sep 2015 11:08 AM |
alright so I had my brother make me a flare gun, and I scripted the flare gun
the actual flare shooting part of it works perfectly, but not the welding
here is the weld script:
tool = script.Parent while not tool:FindFirstChild("WeldProfile") do wait() end Parts = script.Parent:GetChildren() function reweld() for i = 1,#Parts do local b = Parts.Value local w = Instance.new("Weld") w.Part0 = script.Parent.Handle w.Part1 = script.Parent.Part w.C0 = script.Parent.Handle.CFrame:inverse() w.C1 = script.Parent.Part.CFrame:inverse() Parts.Anchored = false end end tool.Equipped:connect(reweld) reweld()
when I take out the tool, I am only holding one block and some of the tool gets put into workspace somewhere else, and the other parts of it are just gone
help? |
|
|
| Report Abuse |
|
|
|
| 19 Sep 2015 11:12 AM |
weld.C0 = script.Parent.Handle.CFrame:inverse * script.Parent.Parent.CFrame according to the wiki
while true do the do |
|
|
| Report Abuse |
|
|
|
| 19 Sep 2015 11:12 AM |
inverse()*
while true do the do |
|
|
| Report Abuse |
|
|
vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
|
| 19 Sep 2015 11:22 AM |
| you have the best siggy ever made |
|
|
| Report Abuse |
|
|
vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
|
| 19 Sep 2015 11:27 AM |
| it still does the same thing :/ |
|
|
| Report Abuse |
|
|
vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
| |
|
Vescule
|
  |
| Joined: 23 Jan 2014 |
| Total Posts: 72 |
|
|
| 19 Sep 2015 11:32 AM |
What I usually do is I get the weld script then I put a weld in each part. Did you do that?
=== VESCULE | SCRIPTER === |
|
|
| Report Abuse |
|
|
vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
|
| 19 Sep 2015 11:45 AM |
no..
I used this exact script for a flashlight tool and it worked fine, I don't know why it isn't working now |
|
|
| Report Abuse |
|
|
Vescule
|
  |
| Joined: 23 Jan 2014 |
| Total Posts: 72 |
|
|
| 19 Sep 2015 11:59 AM |
Try that
=== VESCULE | SCRIPTER === |
|
|
| Report Abuse |
|
|
vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
|
| 19 Sep 2015 12:11 PM |
| yeah I put a weld into every part and it still didn't work |
|
|
| Report Abuse |
|
|