I am trying to weld a part to a player's torso when they join the game, but all it does is creates the part and the part sits on the baseplate.
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(chr)
local part = Instance.new("Part", game.Workspace)
part.BrickColor = BrickColor.new("Really red")
part.Size = Vector3.new(2, 2, 2)
part.Name = "Welded part"
local weld = Instance.new("Weld", chr)
weld.Part0 = part
weld.Part1 = chr.Torso
weld.C0 = CFrame.new()
weld.C1 = CFrame.new()
end)
end)
