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

How to make a stalking NPC? (Like Stan in Identity Fraud (I think that's his name))

Asked by 3 years ago

I have searched the internet for an answer, and I think I need rays for this to work. Sadly, I have no knowledge of rays. I have tried ray tutorials but none seem to work... thank you for listening.

Any help, even a post, would help. Thank you!

0
first you need to use math.random to make him pop up randomly and just use clone to make him spawn momgggbghghghghg 50 — 3y
0
Thank you! Quick other question, I also want the stalking NPC to disappear if a player sees him, like if the player camera sees this NPC, it will quickly dissapear after .5 seconds. LikeableEmmec 470 — 3y
0
find a tutorial on worldtoscreenpoint ive used it but it works differently in other scripts momgggbghghghghg 50 — 3y
0
what kind of game are you making? it sounds cool momgggbghghghghg 50 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

local npc = game.Workspace.npcname

local randomspawn = math.random(1, 10) --put in any number you want to wait for him to spawn

while true do

wait(randomspawn) npc:Clone()

0
make sure its a pathfinder npc momgggbghghghghg 50 — 3y
0
and you can use cframe to make him spawn at the player but im way to lazy momgggbghghghghg 50 — 3y
0
Thank you for your replies! I have accepted your answer. Have a nice day! LikeableEmmec 470 — 3y
0
thank you momgggbghghghghg 50 — 3y
Ad

Answer this question