#Why does the output look like this?

2 messages · Page 1 of 1 (latest)

edgy birch
#
workspace.Plane.Floor.Touched:Connect(function(part)
    print(1)
    player.CameraMode = Enum.CameraMode.LockFirstPerson
end)

workspace.Plane.Floor.TouchEnded:Connect(function(part)
    print(2)
    player.CameraMode = Enum.CameraMode.Classic
end)```As you can see, I am legit just standing still on the part
tardy wigeon
#

Each individual part has collision detection that can sometimes clip into the collision hitbox for the event to fire. You can see which parts they are by doing:

workspace.Plane.Floor.Touched:Connect(function(part)
    print(1)
    print(part) -- to see which part it is
    player.CameraMode = Enum.CameraMode.LockFirstPerson
end)