Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why i can't attach the Player with AlignPosition?

Asked by 4 years ago
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)


0
First of all what are you trying to do? spunargar -6 — 4y

Answer this question