i want to make it so when dismembered it doesnt go to the world pos it goes to the torso pos
the issue is in this script: ` rightarmsound.Parent = hit
local dismember = game.ReplicatedStorage.Dismemberment.ArmPart:Clone()
dismember.Parent = hit.Parent
local offset = Vector3.new(0, 0, 2) -- Modify offset here
local weld = Instance.new("Weld")
weld.Name = "Weld"
weld.Part0 = dismember
weld.Part1 = hit.Parent.Torso
weld.Parent = hit.Parent.Torso
weld.Part0.Position = weld.Part0.Position + Vector3.new(1, 0.5, 0) -- issue line
local clingythingy = game.ReplicatedStorage.HitEffects["Cling thingy"]:Clone()
clingythingy.Parent = dismember
debris:AddItem(clingythingy, 0.5)
rightarmsound:Play()
hit.CanCollide = true
if hit.Parent:FindFirstChild("Torso") and hit.Parent.Torso:FindFirstChild("Right Shoulder") then
hit.Parent.Torso["Right Shoulder"]:Destroy()
end
hit.CanCollide = true
debris:AddItem(rightarmsound, 5)
else
hit.Parent:FindFirstChild("Humanoid"):TakeDamage(30)
if hit.Parent:FindFirstChild("Humanoid").Health <= 0 then
if Debounce == false then
Debounce = true
leaderstats.Kills.Value += 1
wait(5)
Debounce = false
end
end
end
end`
i have tried cframe wich didnt work and i dont have an example atm cuz i deleted it already
please help me fix it so the i have read some articles about trying it with cframe but it just doesnt work out for me… this line causes the issue: weld.Part0.Position = weld.Part0.Position + Vector3.new(1, 0.5, 0)
pls help