Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can you make a curtain to open and close?

Like you are gonna make a curtain but it just like the bathroom curtains and windows curtain? like the hotels how they make the curtains open. Like when you click on them the open and closes. And what is the script for it?

1 answer

✓ Accepted answer

Firstly you will need a ClickDetector to detect when the curtains have been clicked on. After this you will need to call the MouseClick() event on the ClickDetector and CFrame the curtains at this point, I recommend using CFrame:lerp() to smoothly transition between the initial position and the resulting position.

This discussion is preserved as it was. New answers, comments, and votes are closed.