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

Stay crouched in a vent?

Asked by 6 years ago

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

Log in to vote
0
Answered by 6 years ago

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.

0
Smart, I'll try this out SooGloezNoob 45 — 6y
Ad

Answer this question