SimpleZone | A simple, fast and new Zone module!

Great module! I was looking for a functioning zone module for such a long time.

3 Likes

BugReports!

1.
The path to “SimpleSignal” Is wrong in “Types”

Path = Replicated.Modules.Utility.SimpleSignal

Screenshot:
image

2.
Creating a localized queryoptions bugs due to the “table.freeze”

Screenshots:
image

Error:

2 Likes

For the first one, simply just fix it by requiring the SimpleSignal module dependency. I forgot to change it :sweat_smile:

  1. Yeah just remove the table freeze if you want, will be fixing these issues in the download soon, currently away from home
2 Likes

Thats kind of weird though, are you sure you didnt download the old version? Ive published the version with no bugs to the package link

2 Likes

The download link has been updated, I’ll look into why the PackageLink isn’t working

3 Likes

Ok so I think what you did was you downloaded the module through the marketplace, which is no longer being updated xd, also you edit the query options this way, as QueryOptions.new() does not accept any arguments:

local options = ZoneModule.QueryOptions.new()
options.FireMode = "OnEnter"

You could use parallel luau to improve performance for games with many zones, GetPartBoundsInBox can eat up performance https://youtu.be/kBUA-UTjBBQ

Ooh, good idea, I’ll add an option for this.

Give me a minute…

asdadasdadasad

Added!

This is about 40 zones, not much lag even on my bad PC (most of the lag youre seeing is from the pure act of recording xd)!

1 Like

Feel free to test more zones yourself!

I also added it into the documentation!

Yeah seeing about a 300% performance boost with connect parallel mad

I am unable to find this function anywhere in this file

Could you perhaps update the download?

Oh yes, I thought it would automatically update since I have a PackageLink, holdon updating it right now!

Download updated! Feel free to test it out

1 Like

Do you know of a way for modules to remotely get updated, since PackageLinks don’t seem to work? I really do not like having to update the download everytime :face_exhaling:

Package links work fine, Its just that they often fail to fetch latest version.

I see I see. Well alright then

Ok guys, so I just did a test with 4800 individual Zones, to compare the performance on :BindToHeartbeatParallel() vs :BindToHeartbeat(), and I think the result is pretty surprising!

I honestly think this is because :BindToHeartbeatParallel() needs its own GetPlayerFromCharacter function as Players:GetPlayerFromCharacter() is unsafe to call from parallel, whereas the normal :BindToHeartbeat() function can just use that.

I’ll try out some things to see if I can maybe change this, for now just keep using :BindToHeartbeat() :sweat_smile: