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 Help

Previous Thread :: Next Thread 
aka303 is not online. 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 is not online. aka303
Joined: 25 May 2012
Total Posts: 2063
18 Jan 2014 09:09 AM
can you help?
Report Abuse
Kingmouli is not online. 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 is not online. 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 is not online. aka303
Joined: 25 May 2012
Total Posts: 2063
19 Jan 2014 10:46 AM
bump
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