#ball socket constraint freaks out

8 messages · Page 1 of 1 (latest)

burnt cedar
#

whenever i run this it freaks out

local Prox = script.Parent
local LocalHuman = script.Parent.Parent.Parent.Humanoid
local body = script.Parent.Parent.Parent
local dragging = false

Prox.Triggered:Connect(function(Player)
    if dragging == false then
        dragging = true
        Prox.Parent.PickUp.Enabled = false
        Player.Character.Humanoid.JumpPower = 0
        body.HumanoidRootPart.CFrame = Player.Character.HumanoidRootPart.CFrame + Vector3.new(0,0,2)
        body.HumanoidRootPart.CanCollide = false
        body["RagdollPart4"].CanCollide = false
        body["RagdollPart5"].CanCollide = false
        Player.Character["Right Arm"].BallSocketConstraint.Attachment1 = body["Left Leg"].DragAttachment2    
        Player.Character.Animate.Disabled = true
        Player.Character.DragAnimate.Disabled = false

    elseif dragging == true then
        dragging = false
        Prox.Parent.PickUp.Enabled = true
        Player.Character.Humanoid.JumpPower = 50
        body["Left Leg"].CanCollide = true
        body["Right Leg"].CanCollide = true
        Player.Character["Right Arm"].BallSocketConstraint.Attachment1 = nil
        Player.Character.Animate.Disabled = false
        Player.Character.DragAnimate.Disabled = true
    end
end)

```lua
#

ive tried everything and it still wont work

lapis tusk
#

I reckon the player that's pulling is just too close. Are you able to change the distance between the player and the item dragged?

dim plinth
#

remove the ```local Prox = script.Parent
local LocalHuman = script.Parent(.Parent.Parent).Humanoid
local body = script.Parent.Parent.Parent
local dragging = false

Prox.Triggered:Connect(function(Player)
if dragging == false then
dragging = true```

#

remove the thing in ()

#

remove every three parent and make it one

burnt cedar
#

ok