`local NPC = script.Parent.Parent local Owner = NPC.Stats.Owner.Value

local OwnerWS = game.Workspace:FindFirstChild("VexTrexYT") local Target = OwnerWS.Torso`

OUTPUT:

20:30:08.377 - Workspace.NPC.Scripts.Follow:5: attempt to index local 'OwnerWS' (a nil value) 20:30:08.379 - Stack Begin 20:30:08.380 - Script 'Workspace.NPC.Scripts.Follow', Line 5 20:30:08.380 - Stack End

2 comments

0

Use :WaitForChild("VexTrexYT") as this will wait for your character to load in, as opposed of instantly trying to get your charcater.

0

you shouldnt be trying to find the character of your own player, since it wont work for other players