You set the player's torso to the player, which is why it kept killing them. The torso doesn't need to be parented. You also forgot to set the parent of the weld.
And I'm not sure why it even worked, because in lines 31-33, you used 'plr' which wasn't defined. If you're trying to loop through the players and do it for all of them, then substitute plr with v, as I did. You should also connect the function to the actual player added event, which I assume is what you wanted to do from 'OnPlayerAdded', as right now it'll only run once.
01 | local lplayer = game.Players.LocalPlayer |
03 | local HumT = lplayer.Character.Torso |
05 | local RepStore = game:GetService( "ReplicatedStorage" ) |
08 | local Players = game:GetService( "Players" ) |
10 | function OnPlayerAdded(plr) |
13 | local part 2 = RepStore.Blocky:Clone() |
14 | part 2. Parent = game.Workspace |
18 | local weld = Instance.new( "Weld" ) |
25 | weld.C 0 = CFrame.new( 0 , 0 , 0 ) |
26 | weld.C 1 = CFrame.new( 0 , 0 , 0 ) |
32 | for _,v in pairs (Players:GetPlayers()) do |
36 | game.Players.PlayerAdded:connect(OnPlayerAdded) |