I have NPC in a game and I want to make it so if you walk near the NPC text will appear on your screen. I know I could just add an invisible part that the player would step on, but that is not very professional.
local part = script.Parent
-- Parts position is -223.845, 21.141, -0.373
local humanoid -- Get the humanoid of the player or something
if humanoid ~= nil then
print("Someone walked near me")
end
The player walks near the part ( like 5 - 10 studs ) and the function will run. It would be great if you included how to get player from the character in the answer.

1 comment
Sometimes, you have to go on with not too professional things, if it is possible to make it easier.