This is just dumb, I made a wall that won't let NPCS go through but only players does but It keeps working players to not enter! Its just dumb!
Script:
script.Parent.Touched:Connect(function(Hit) local Player = game:GetService("Players"):GetPlayerFromCharacter(Hit.Parent) if Player then script.Parent.CanCollide = false else script.Parent.CanCollide = true end end)
try changing your script to this
script.Parent.Touched:Connect(function(Hit) local Player = game.Players:FindFirstChild(Hit.Parent.Name) if Player then script.Parent.CanCollide = false else script.Parent.CanCollide = true end end)
maybe this will work