-- Note : All of this is tested on a dummy r15 rig type
by disabling it the wrist should fall to the floor, but when clicked it doesnt work properly.
test = script.Parent.Parent.TextButton A = workspace.Dummy.RightHand.RightWrist.Active test.MouseButton1Down:connect(function() A = false end)
1 | test = script.Parent.Parent.TextButton |
2 | A = workspace.Dummy.RightHand.RightWrist |
3 |
4 | test.MouseButton 1 Down:Connect( function () |
5 | A.Active = false |
6 | end ) |
The problem here is that you put .Active which made your variable a boolean instead of an object. Here we are referring to the object itself which lets us change the properties like the "Active" property.