aka303
|
  |
| Joined: 25 May 2012 |
| Total Posts: 2063 |
|
|
| 18 Jan 2014 08:51 AM |
What is a script that will do EXACTLY the same thing as this, but repeat everytime the tool it is in is equipped?
local CrossGuard = script.Parent local Edge = script.Parent.Parent.Edge
local function weldBetween(a, b) local weld = Instance.new("ManualWeld") weld.Part0 = a weld.Part1 = b weld.C0 = CFrame.new() weld.C1 = b.CFrame:inverse() * a.CFrame weld.Parent = a return weld; end weldBetween(CrossGuard, Edge) |
|
|
| Report Abuse |
|
|
aka303
|
  |
| Joined: 25 May 2012 |
| Total Posts: 2063 |
|
| |
|
Kingmouli
|
  |
| Joined: 28 Sep 2012 |
| Total Posts: 1292 |
|
|
| 18 Jan 2014 09:14 AM |
tool.Equipped:connect(function() --your script end)
tool.Unequipped:connect(function() --delete the weld end) |
|
|
| Report Abuse |
|
|
aka303
|
  |
| Joined: 25 May 2012 |
| Total Posts: 2063 |
|
|
| 18 Jan 2014 03:22 PM |
| any other suggestions? When I used the script, the way they are welded change. |
|
|
| Report Abuse |
|
|
aka303
|
  |
| Joined: 25 May 2012 |
| Total Posts: 2063 |
|
| |
|