and its working perfectly on the client but sometimes the sounds dont stop on the server? like when a player slightly enters it and leaves like immediately you can still hear the sounds playing.
Zone.partEntered uses a TouchTransmitter, is there a way to make it so CanTouch is false or make it so parts cant interact with the zone using own touch event while maintaining their touch event for other parts, since i dont want stuff like projectiles interacting with the zone.
Thanks for the feedback, this is currently a limitation with part checking. I’ve opened up a feature card for this to be completed for the next update:
If there’s anything you’d like added/changed to the proposed API feel free to lemme know!
Sorry i keep asking for so much help, but when someone resets while on the skateboard (skateboard has a localscript in it that uses zoneplus) the whole system just stops working? not even an error in the console or anything.
well, the main thing i am looking for right now, is so projectiles with a touchtransmitter does not react with the zone, (usually to fix projectiles reacting is to turn the part that the projectile will touch’s cantouch to false, but doing that with zoneplus causes problems)
Correct me if I’m wrong but doing zone:addToDenylist(yourProjectile) after the proposed API above has been released sounds like it would solve your problem (since the projectile would then be ignored by the zone).
Hello, great module overall! I was wondering how to check in what zone a player is in? I read the API documentation and still didn’t get it. Thanks for the help, I love this resource!
im using it in the context of making a more reliable (than touch atleast) system to detect when a skateboard is on a rail or a ledge so it can play the corresponding sound, its in a local script in the board.
Allow both PascalCase and camelCase so my code doesn’t look weird:
for _, Checkpoints in pairs(Checkpoints:GetChildren()) do
local CheckpointZone = Zone.new(Checkpoints)
CheckpointZone.playerEntered:Connect(function(Player) -- This line is odd
if Checkpoints.Name ~= "EndRace" then
CheckpointTrue(Checkpoints.Name, Player)
end
end)
end
We won’t support PascalCase methods/properties as these don’t conform to the Roblox Lua Formatting Guidelines. You’re welcome to create and maintain your own fork though.