You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve?
I want to achieve a client-sided npc that only shows up on a players screen. On my screen, there’s only 1 NPC in the game and it is following me. On your screen, there would be 1 NPc in the game and its following you. -
What is the issue?
I just cannot figure out how to make it work. -
What solutions have you tried so far?
I have checked the DevForum, Education and Developer hubs. I have tried making aStarterPlayerScript
that inserts the NPC into the players camera and makes it follow the local players character. It just didn’t work.
StarterPlayerScript:
local plr = game.Workspace:WaitForChild("Camera")
local npc = script.VirtuaIPixI:Clone()
npc.Parent = plr