Welding won't work?
I am trying to Weld a part to a player when they join the game, but the part just sits on the baseplate.
01 | local function weldBetween(a, b) |
03 | local weld = Instance.new( "Weld" , a) |
06 | weld.C 0 = a.CFrame:inverse() * b.CFrame |
08 | a.LocalTransparencyModifier = 0 |
13 | game.Players.PlayerAdded:connect( function (plr) |
14 | plr.CharacterAdded:connect( function (chr) |
15 | chr:WaitForChild( "Torso" ) |
16 | local part = Instance.new( "Part" , game.Workspace) |
17 | part.Name = "Welded Part" |
18 | part.Size = Vector 3. new( 2 , 2 , 2 ) |
19 | part.CFrame = chr.Torso.CFrame |
21 | local weld = weldBetween(part, chr.Torso) |