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: How do I make weld scripts?

Previous Thread :: Next Thread 
Dozer86421 is not online. Dozer86421
Joined: 18 Aug 2011
Total Posts: 726
29 Apr 2012 09:59 AM
I tried to make a weld script for my weapon, but it just put all the bricks in the gun to the position of the Handle. That's what happened when I tried Roblox Wiki. I tried Youtube. No results. So can someone explain to me how to make a weld script and maybe include an example of one?
Report Abuse
Dozer86421 is not online. Dozer86421
Joined: 18 Aug 2011
Total Posts: 726
29 Apr 2012 10:20 AM
Does anyone know how?
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
29 Apr 2012 10:24 AM
crazyman32 profile he maked an auto weld script
Report Abuse
Dozer86421 is not online. Dozer86421
Joined: 18 Aug 2011
Total Posts: 726
29 Apr 2012 12:18 PM
THANK you SO MUCH!!!
Report Abuse
Dozer86421 is not online. Dozer86421
Joined: 18 Aug 2011
Total Posts: 726
29 Apr 2012 12:43 PM
It doesn't work! Almost all the comments on the weld script said that it didn't work! Well, it didn't! It just did some really wierd stuff and pulled back lost data. So, does anyone know how to make a normal weld script?
Report Abuse
Dozer86421 is not online. Dozer86421
Joined: 18 Aug 2011
Total Posts: 726
29 Apr 2012 01:23 PM
Does anyone know how to make a working weld script? I just need an example of one and how to edit it how I need it. All the bricks on got pulled to the very center of the Handle. My gun actually used just two bricks. Does anyone know how?
Report Abuse
Drenkus is not online. Drenkus
Joined: 03 May 2009
Total Posts: 2380
29 Apr 2012 01:49 PM
The wiki has welds, I'd help but I don't know how to use them either.
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
01 May 2012 05:40 AM
function onChanged()
local w1 = Instance.new("Weld")
local w2 = Instance.new("Weld")
local w3 = Instance.new("Weld")
local w4 = Instance.new("Weld")
local w5 = Instance.new("Weld")
w1.Parent = script.Parent.Handle
w2.Parent = script.Parent.Handle
w3.Parent = script.Parent.Handle
w4.Parent = script.Parent.Handle
w5.Parent = script.Parent.Handle
w1.Part0 = w1.Parent
w2.Part0 = w2.Parent
w3.Part0 = w3.Parent
w4.Part0 = w4.Parent
w5.Part0 = w5.Parent
w1.Part1 = script.Parent.Handle2
w2.Part1 = script.Parent.Handle3
w3.Part1 = script.Parent.Handle4
w4.Part1 = script.Parent.Handle5
w5.Part1 = script.Parent.Handle6
w1.C1 = CFrame.new(-0.01, 1, -0.01)
w2.C1 = CFrame.new(-0.01, -1, -0.01)
w3.C1 = CFrame.new(-0.01, -1.2, -0.01)
w4.C1 = CFrame.new(-0.01, -4, -0.01)
w5.C1 = CFrame.new(-0.01, -7.5, -0.01)
end
script.Parent.AncestryChanged:connect(onChanged)
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