Why i can't attach the Player with AlignPosition?
local debounce = false
script.Parent.Touched:Connect(function(hit)
if not debounce then
debounce = true
local Ball = script.Parent.Ball
local AttachmentA = Instance.new("Attachment",Ball)
AttachmentA.Position = Vector3.new(0,1,0)
local Targett = hit.Parent:FindFirstChild("UpperTorso")
local AttachmentV = Instance.new("Attachment",Targett)
AttachmentV.Position = Vector3.new(1,0,0)
local al = Instance.new("AlignPosition",Ball)
al.Attachment0 = AttachmentA
al.Attachment1 = AttachmentV
end
end)