traps player for a few seconds

hi guys i need some guideline in this : how do i trap my player for a few seconds.such as when my player went into this trap. the player will freeze 4 a few seconds then it can start moving ?i needed some guidelines and examples. as i can’t find any in tutorials as well as other resoures ?

You would just not move him, and if he has an idle state, put him in that for 4 seconds. There are many Q&A’s about timers not to mention the docs, look at Time.Time and WaitForSeconds