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

Constraints problem on character. Have any idea how to fix it?

Asked by 6 years ago
Edited 6 years ago

I have made a Ragdoll script, which creates attachments and "Ball in socket" constrains between the character's limbs and torso. When the character dies, all of its Welds breaks except the constrains, turning it into a ragdoll

The problem is that It only works in studio mode. When I tested It online, the character limbs breaks appart just like a normal death. Do anyone know how to fix this?

Also, I tried using that GUI which displays script errors in-game, and nothing pops out

In any case, heres the part of my script

01function joint(part1,part2,pos1,pos2,stable)
02    local attach0 = Instance.new("Attachment",part1)
03    attach0.Position = pos1
04    local attach1 = Instance.new("Attachment",part2)
05    attach1.Position = pos2
06    local socket = Instance.new("BallSocketConstraint",part1)
07    socket.Attachment0 = attach0
08    socket.Attachment1 = attach1
09 
10    if stable then
11        socket.LimitsEnabled = true
12        socket.UpperAngle = 0
13        socket.TwistLimitsEnabled = true
14        socket.TwistLowerAngle = 0
15        socket.TwistUpperAngle = 0
View all 28 lines...
0
script pls User#23365 30 — 6y
0
here, I edited my post masterjosue1998 116 — 6y

Answer this question