Welding on the torso

So, I’m trying to weld a red oval to the top of my character’s torso via script. I want it to look like this:

By using this script:

game.Players.LocalPlayer.Character.Humanoid.Died:Connect(function(Kill)
   wait(1)
   game.Players.LocalPlayer.Character.Head.face.Texture = "rbxgameasset://Images/spoop face" --Irrelevant
   local char = game.Players.LocalPlayer.Character
   local headblood = game.ReplicatedStorage["Head thing"].Parent
   local weld = Instance.new("Weld",char.Torso)
   weld.Part1 = char.Torso
   
   
end)

I want it to take the model out of replicatedFirst and place it on my torso…

And this happens:

this is why I dislike CFrames.

Edit: I know its a weld. The same things happen with frames tho.

You are not setting the Part0 property of the weld, it should be set to the red oval. Also if you want it to work more than once, consider cloning it from ReplicatedStorage and welding the clone to the torso. ReplicatedFirst is usually used for things that need to be loaded immediately upon joining the game, so a better place to store this object would be ReplicatedStorage.

1 Like
game.Players.LocalPlayer.Character.Humanoid.Died:Connect(function(Kill)
	wait(1)
	game.Players.LocalPlayer.Character.Head.face.Texture = "rbxgameasset://Images/spoop face" --Irrelevant
	local char = game.Players.LocalPlayer.Character
	local headblood = game.ReplicatedStorage["Head thing"]:Clone()
	local weld = Instance.new("Weld",char.Torso)
	weld.Part1 = char.Torso
	weld.Part0 = headblood
	headblood.Anchored = true
	wait(5)
	headblood.Destroy()
	
	
end)

new script. Still not working:

now, the special mesh wont even clone.

The headblood and weld must be parented to something or it will be immediately destroyed.

game.Players.LocalPlayer.Character.Humanoid.Died:Connect(function(Kill)
	wait(1)
	game.Players.LocalPlayer.Character.Head.face.Texture = "rbxgameasset://Images/spoop face" --Irrelevant
	local char = game.Players.LocalPlayer.Character
	local headblood = game.ReplicatedStorage["Head thing"]
	local weld = Instance.new("Weld")
	weld.Parent = headblood
	headblood:Clone()
	weld.Part1 = char.Torso
	weld.Part0 = headblood
	wait(5)

	
	
end)

still doing the same thing despite the new script. ITs always the same position as well.

game.Players.LocalPlayer.Character.Humanoid.Died:Connect(function(Kill)
	wait(1)
	game.Players.LocalPlayer.Character.Head.face.Texture = "rbxgameasset://Images/spoop face" --Irrelevant
	local char = game.Players.LocalPlayer.Character
	local headblood = game.ReplicatedStorage["Head thing"]:Clone()
	local weld = Instance.new("Weld")
	weld.Part1 = char.Torso
	weld.Part0 = headblood
	headblood.Anchored = true
        headblood.Parent = char
        weld.Parent = headblood
	wait(5)
	headblood.Destroy()
	
	
end)

Something like this is what I meant

image
Does’t go anywhere. it just welds itself and stays in replicated first

Copy over the code exactly how I had it, the last code you posted has lots of problems.

I did. I’ll try again and try and move headblood

If you copied it over exactly then there should be no way for the weld to end up inside of ReplicatedStorage.

image
Copied it exactly. WTH

Do you perhaps have a second copy of the script somewhere doing it at the same time? Otherwise please send your code again

game.Players.LocalPlayer.Character.Humanoid.Died:Connect(function(Kill)
	wait(1)
	game.Players.LocalPlayer.Character.Head.face.Texture = "rbxgameasset://Images/spoop face" --Irrelevant
	local char = game.Players.LocalPlayer.Character
	local headblood = game.ReplicatedStorage["Head thing"]:Clone()
	local weld = Instance.new("Weld",char.Torso)
	weld.Part1 = char.Torso
	weld.Part0 = headblood
	headblood.Anchored = true
        headblood.Parent = char
        weld.Parent = headblood
	wait(5)
	headblood.Destroy()
	
	
end)

When you die, is the oval parented into the character?

and

I think it might be the script path. idk. Here:
image

@Vmena

I spent some time writing up code to properly weld this piece but came to the sudden realization that welds to the character will break when the character dies. What is your purpose for this code? Is there anything else you could do other than welding this part to them? Maybe you could remove their clothes and color their avatar red, otherwise you’d have to disable BreakJointsOnDeath which would get rid of the roblox death “breaking into pieces”, you’d just stand like a stick when you die.

False, if you were to weld it AFTER the player died, then it would work. Also there were many things wrong with the code you sent him.

game.Players.LocalPlayer.Character.Humanoid.Died:Connect(function()
	wait()
	local char = game.Players.LocalPlayer.Character
	local headblood = game.ReplicatedStorage["Head thing"]:Clone()
    headblood.Parent = char
	local weld = Instance.new("Weld", headblood)
	weld.Part1 = char.Torso
	weld.Part0 = headblood
    weld.C0 = CFrame.new(0,1.5,0)
end)

Try this, should work. If you can’t see it, it might be inside the torso.