So, I want to make it so that when a button is pressed, a union part will be changed to change the transparency to 1 and cancollide to ## ### ##### and button are inside the same model. Does anyone have any idea of what i should script?
So, I want to make it so that when a button is pressed, a union part will change the transparency to 1 and cancollide to O . the union and button are inside the same model. Does anyone have any idea of what i should script?
add a click detector in the object
and a script:
function onClicked()
script.parent.Transparency=1
script.Parent.CanCollide=false
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)