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

How to make an NPC interactive?

Asked by 5 years ago

Hello.

I am not requesting for any scripts so there is no need to remove this.

I have been wondering how to make an NPC interactive, Like a big inspiration Pokémon brick bronze. They make it so when you enter a specific area it forces a player to talk to an NPC or play a special cutsceen. But it only happens once.

Any ideas would be great! Thanks

1 answer

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

A debounce. Then use either magnitude, distancefromcharacter or region3.

https://developer.roblox.com/articles/Magnitude https://developer.roblox.com/api-reference/function/Player/DistanceFromCharacter https://developer.roblox.com/api-reference/datatype/Region3 https://developer.roblox.com/articles/Debounce

0
I'm sorry but I don't know how region 3 is supposed to help Tayshift 6 — 5y
0
You wanted to know how you make it so when you walk inside an area, something activates. Region3 can be used for that. Thesquid13 301 — 5y
0
or you can use magnitude and check distance between player and npc if he is close enough you can activate dialog system B_arocena 55 — 5y
Ad

Answer this question