You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I would like to know how I can let players press the button for the door again. -
What is the issue? Include screenshots / videos if possible!
I have made a sliding door, when a part is clicked, it will open. When it closes automatically however, it does not open again when I click it and the click detector does not show up. Did I make an error somewhere in my script? Or do I have to add something? (Note, I’m using the plugin “TweenService animator” for Tweening.)
animator = require(script.Parent.Door.Animator)
script.Parent.Button.ClickDetector.MouseClick:Connect(function()
script.Parent.Button.ClickDetector.MaxActivationDistance = 0
wait(0.1)
script.Parent.Door.Open:Play()
wait(0.1)
animator.Door_Open:Play()
wait(4)
script.Parent.Door.Open:Play()
wait(0.1)
animator.Door_Close:Play()
end)
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I was wondering if I could try looping the script, but I feel that it would simply make the door open over and over. (Mind you, I’m not the best at scripting, so thats why I’m here.
