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 » Scripters
Home Search
 

Sword Welding

Previous Thread :: Next Thread 
zorgoth1170 is not online. zorgoth1170
Joined: 08 May 2009
Total Posts: 15
13 Dec 2016 11:59 PM
I am trying to build a sword made from one union and one Handle and a generic sword script. However i can not get the Handle to weld to the union. I have tried a few weld scripts in the library and have tried to use the weld surface input with the join:all setting on but nothing has been working. Is there any script or setting i can use to join the handle to the rest of the tool?
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
14 Dec 2016 02:43 AM
ANCHOR ALL PARTS IN TOOL

local tool = workspace.tool --change to tool

--put a part named Handle

local welds = Instance.new('Folder')
welds.Name = 'Welds'
welds.Parent = tool

for i, v in pairs(tool:GetChildren()) do
if v:IsA('BasePart') and v.Name ~= 'Handle' then
local w = Instance.new('ManualWeld')
w.Part0 = tool.Handle
w.Part1 = v
w.C0 = tool.Handle.CFrame:inverse() * v.CFrame
v.Anchored = false
end
end

tool.Handle.Anchored = false


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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