I need to check if a player is in a zone, but when i come into the brick, nothing is appearing in the console.
b = true script.Parent.Touched:Connect(function(hit) print("you touched me :(") if game.Workspace.Temp.Errored.Value and b then p = 1 b = false local a = hit.Parent:FindFirstChild("Humanoid") if a ~= nil and p == 1 then wait(5) game.Workspace.Pipes.Pipe1.Transparency = 1 game.Workspace.Pipes.Pipe2.Transparency = 1 game.Workspace.Pipes.Pipe3.Transparency = 1 game.Workspace.Pipe1.Transparency = 0 game.Workspace.Temp.Errored.Value = 0 game.Workspace.Temp.Errored2.Value = 0 wait(10) b = true end end end) script.Parent.TouchEnded:Connect(function() print("you stopped touching me :)") p = 0 end)
It does detect touches from other parts, though. In here it says that invisible detection is a thing. EDIT: After some time this problem disappeared, weird
Yes, Even with CanCollide off, it can still detect players.
Simple answer: Yes yes it can
Long answer: The part is still being touched, even with transparency 0 and cancollide set to false, therefore the ontouched event will still fire. You can try this in a brick that has 0 transparency and cancollide set to false to be sure:
script.Parent.Touched:Connect(function(hit) print(hit.Parent.Name) end) --if it prints the player name then it works, which it should