Hey, I’ve been trying to get this simple model I made to stick onto the back of a player’s upper torso. The design for it was meant to be a pair of wings and I want to understand how to attach it to the player on impact. Thanks for your time.
2 Likes
Here is what I got with the weld restraints…
local cardboard = script.Parent cardboard.Touched:Connect (function(hit) if hit.parent:FindFirstChild ("Humanoid") then local UpperTorso = hit.parent.UpperTorso local weld = Instance.new("Weld") weld.part0 = UpperTorso weld.part1 = cardboard weld.parent = script.Parent end end)
Cardboard is the part name
It’s not weld, it’s a weld Constraint
example:
local cardboard = script.Parent
cardboard.Touched:Connect (function(hit)
if hit.parent:FindFirstChild ("Humanoid") then
local UpperTorso = hit.parent.UpperTorso
local weld = Instance.new("WeldConstraint")
weld.part0 = UpperTorso
weld.part1 = cardboard
weld.parent = script.Parent
end
end)
I believe this tutorial should help!