How would I go about making this NPC react to certain things?

So this NPC is based in a gas station, The dialouge when chatting with it is “Go rob the ATM if you want… I don’t care” so i want to make it when a gun is pulled out, the npc jumps and gets scared. Could anyone teach me how to do this?

2 Likes

Do you have animation, scripts or anything that you need help with? If not I can help you with the plan in general.

1 Like

I have the animation for it but im not sure how to go about using it as im not the best with coding.

Umm u can use magnitude if a player around him find a tool name gun then do the animation and make it emwhatever u want

1 Like

I like this idea but how would I put this in a script.

Search in youtube or devforum how to find a tool of a player and there are plenty of tutorials about magnitude. it will take like 30 minutes to do, but the better result!