ZonePlus playerEntered and playerExited not working when CanCollide turned On

  1. What do you want to achieve? Use of playerEntered and Exited events

  2. What is the issue? The events are not firing at all. All the print statements in my code below run as well. Except for the print statements that print when they enter or exit.

  3. What solutions have you tried so far? I have tried checking if the zonesplus module works on another game. And yes, it does work.

Details: safeZone is the name of a model that gets cloned from a map in replicated storage to the workspace when each map is cloned.

local function process(v)
    local zone = Zone.new(v)
    print("processing")
    zone.playerEntered:Connect(function(player)
        print("player entered")

    end)
    zone.playerExited:Connect(function(player)
        print(("%s exited the zone!"):format(player.Name))

end)

    for _, v in game.workspace.GameSystem:GetDescendants() do 
        if v.Name == "safeZone" then
            process(v)
        
        end
    end
    game.workspace.GameSystem.DescendantAdded:Connect(function(v)
    if v.Name == "safeZone" then
        print("processed")
            process(v)
        end
    end)

Could someone help playerEntered and exited wont fire, and there are no errors in the output as well??

Can we see the part’s properties that you use for the zone?

Ok turns out it only works when the part canCollide is off. However I do not want canCollide to be off. How do i fix this?

Is can query on when you turn can collide off?

yes it is on should i turn it off?

No leave it on. Is can touch on aswell?

YO UR A LIFESAVER I had to turn can touch off

Can touch off? I thought you had to turn it on!. But if it works I guess that’s all you need

oh wait ur right, i just realized i was setting this whole thing up wrong anyways

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.