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

Stay crouched in a vent?

I am currently making a horror game on ROBLOX. I already own a "press c to crouch" script that works fine. However, I don't know how to make a script that allows you to stay crouched in the vent and when you get out of the vent, you get out of crouch. Any ideas?

1 answer

✓ Accepted answer

Possible way to do this is inside ChracterScriptServer

make a ontouch function

and anytime a character touches a part in the vent, it will fire a remoteevent that will then play the animation.

If character isn't touching that part then, animation stops playing, via remoteevent as well.

1 comment

0

Smart, I'll try this out

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