It supposed to move the “gibbed” part of the head over to an attachment but for some odd reason the
head is going to the position of the head. Any ideas?
local things = game.ReplicatedStorage.gmodels.Head
local headgib = things.gibbedhead
local motor = Instance.new("Weld")
local disval = script.Parent.limbstats.head.health
disval:GetPropertyChangedSignal("Value"):Connect(function()
if disval.Value <= 0 then
headgib:Clone().Parent = script.Parent.weldedgibs
print("gib")
headgib.GibbedHead.gibatch:Clone().Parent = script.Parent.Head
motor.Part0 = script.Parent.weldedgibs.gibbedhead.GibbedHead
motor.Part1 = script.Parent.Head
motor.Parent = script.Parent.weldedgibs.gibbedhead.GibbedHead
headgib:MoveTo(script.Parent.Head.gibatch.WorldPosition)
local face = script.Parent.Head:FindFirstChildWhichIsA("Decal")
face:Destroy()
script.Parent.Head.Transparency = 1
script.Parent.weldedgibs.gibbedhead.GibbedHead.Headgib:Play()
end
end)