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

How Do i Weld a Mesh To a Player?

Asked by
linx45 -1
7 years ago

So i made a Bracelet Mesh And i would like to make it wearable. I was told that i could weld it to a player so that it looks like im' wearing it. How Could i do that?

0
Rather, the weld is for the part the mesh is contained in. User#18043 95 — 7y

1 answer

Log in to vote
0
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
7 years ago
Edited 7 years ago

Weld objects require simply two things: their Part0 and Part1 Properties.

When two objects are welded, the object correlating to Part1 is going to be welded to Part0's Position. Heres an example of how to weld objects via script:

local object1 = workspace.Part --This is the stationary object
local object2 = workspace.OtherPart --This is the part to be welded
local w = Instance.new("Weld") --This creates the weld
w.Part0 = object1
w.Part1 = object2
w.Parent = object1

The C0 property determine's Part1's offset from Part2. For example, if I wanted my object to be 5 studs above the other I would do:

w.C0 = CFrame.new(0,5,0)

To apply this to your situation, you should clone and weld your bracelet from ServerStorage in PlayerAdded/CharacterAdded events.

Hope I helped, and happy developing!

0
Cool. Never knew about the C0 and the C1 properties! hiimgoodpack 2009 — 7y
Ad

Answer this question