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

Why Is The Wrist Disable Script Not Functioning?

Asked by 3 years ago

-- 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 answer

Log in to vote
0
Answered by 3 years ago
test = script.Parent.Parent.TextButton
A = workspace.Dummy.RightHand.RightWrist

test.MouseButton1Down:Connect(function()
    A.Active = false 
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.

Ad

Answer this question