Hello! I have a monster jumpscare system. Basically, an NPC following you, and when it touches you, there will be a jumpscare. But there is a problem. I want the monster to start following you every 8 minutes, for 1 minute, and I do not know how to do it. Like, it will stop for 8 mins, and then he will start chasing you for 1 minute, and then stoping again for 8 minutes like in Piggy.
Please, help me!
For the “Following the player” part you will have to use
while true do -- This loop should not cause lag.
wait(480) -- 8 Minutes
-- Put your pathfinding code here
-- Stop the npc path.
And there is some articles on the devfourm for the jump scare such as:
I want to achieve a jumpscare camera like the one we see in Piggy.
I made a simple camera script that I thought would do the trick by just fixing the camera in first person while facing a certain character. The thing is, the camera is too close to the character that I want to focus on.
Whenever Piggy attacks you it is 1 or 2 studs away from your character. However, the jumpscare camera makes it seem like you are a little farther, without your own character in the way of its view. How would I a…
I want to make like real jumpscares, not decal jumpscares. Like the jumpscares in real scary games. I tried using camera angles but the jumpscare just freezes in one direction. Like I want a character jumpscare. I tried using sound but it didn’t play while it was playing. I need help with what I am doing wrong, basically I want the camera to shake and the jumpscare noise when the jumpscare starts to play. I have tried using camera angles but they aren’t working and I tried sound effects.
I hope this helps.
I have already the pathfinding code in the game, so it will destroy the system.
what do you mean by destroy the system?
I mean, errors may appear in codes.
Why? If the pathfinding is working then all you need to do is add delays for when the pathfinding should/shouldn’t occur.
Alright then. I will try it then.