I want to make a script where when a part is being touched, the player is hidden from NPC's until they are no longer touching the part. I also need the PathFinding script to reset when the brick is being touched. (The Pathfinder script was deleted because it was glitched on the R15 avatar)
(The part is the Brick)
I only know how I can make a OnTouched script.
local torso = game.Players.zboi082007.Torso -- I dont really know how do do this part -- local bandit = game.ReplicatedStorage.Bandit local path = bandit.path script.Parent.Touched:Connect(function() bandit.path = ??? -- neither this ---