Script's located inside a NPC's torso and meant to get replaced by any players that touches him/her. It says there's an error on line 3 when I clearly see none. I'd like to know why the error keeps popping up in the output. Script:
script.Parent.Touched:connect(function(P)
if game.Players:FindFirstChild(P.Parent.Name) then
P.Parent:Clone().Name = "Player"
game.Workspace:FindFirstChild("Player").PrimaryPart.Position = Vector3.new(CFrame.new(script.Parent.Position))
script:Clone().Parent = game.Workspace:FindFirstChild("Player").PrimaryPart
script.Parent.Parent:Destroy()
end
end)
