Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Welding ROBLOX weapons, parts scattered around the map? [closed]

Asked by 10 years ago

Hi SH,

I've made and scripted an AWP for a game I have in mind, but on usage, (mind you, it's fully welded) I see some parts are missing, and they're scattered around the baseplate. I don't know if it's a failure of my Weld Script, or anything.

This is my weld script:

01function Weld(x,y)
02 local W = Instance.new("Weld")
03 W.Part0 = x
04 W.Part1 = y
05 local CJ = CFrame.new(x.Position)
06 local C0 = x.CFrame:inverse()*CJ
07 local C1 = y.CFrame:inverse()*CJ
08 W.C0 = C0
09 W.C1 = C1
10 W.Parent = x
11end
12 
13function Get(A)
14 if A.className == "Part" then
15  Weld(script.Parent.Handle, A)
View all 31 lines...

I don't know what I'm doing wrong. Help?

0
Make sure the Weapon is not Anchored and doesn;t collide. Mystdar 352 — 10y
0
The script actually welds colliding objects, so that is not the problem. broetchen 0 — 10y
0
With ROBLOX's release of Solid Modeling, especially now that the collision is better, it is usually preferable to make tools and such a single part until of welding multiple parts. Perci1 4988 — 10y

Locked by Perci1, Tkdriverx, Redbullusa, EzraNehemiah_TF2, and adark

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

2 answers

Log in to vote
0
Answered by 10 years ago

This has been solved. I installed Ozzypig's welding plugin and it did the job just fine, now I have CFramed weapons.

Ad
Log in to vote
0
Answered by
Tkdriverx 514 Moderation Voter
10 years ago

Use solid modeling now, rather than using hundreds of parts. Your players will appreciate the lag reduction.