When CFrame.Angles is on.
When CFrame.Angles is off.
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local uppertorso = char:WaitForChild("UpperTorso")
for i,v in pairs(plr.Backpack:GetChildren()) do
if v:IsA("Tool") then
for j,b in pairs(v:GetChildren()) do
if b:IsA("MeshPart") or b:IsA("Part") then
local clonedB = b:Clone()
print(clonedB.Name)
if clonedB.Name ~= "Handle" then
clonedB:FindFirstChild("WeldConstraint"):Destroy()
local weld = Instance.new("Weld")
weld.Parent = clonedB
weld.Part0 = uppertorso:WaitForChild("Handle")
weld.Part1 = clonedB
weld.C0 = uppertorso:WaitForChild("Handle").CFrame:inverse()
weld.C1 = clonedB.CFrame:inverse()
clonedB.Parent = uppertorso
else
clonedB.Parent = uppertorso
end
clonedB.CanCollide = false
end
end
end
end
wait(0.5)
local weld = Instance.new("Weld")
weld.Parent = uppertorso:FindFirstChild("Handle")
weld.Part0 = uppertorso
weld.Part1 = uppertorso:FindFirstChild("Handle")
weld.C0 = uppertorso.CFrame
local Cframenew = CFrame.new(Vector3.new(uppertorso.Position.X,uppertorso.Position.Y,uppertorso.Position.Z-0.65)) * CFrame.Angles(0,math.rad(180),math.rad(45))
weld.C1 = Cframenew
end)
end)
I’ve been trying to fix it for 2h by myself, but I’ve tried everything I found and nothing works.