Everything's going wrong in my game

Still doesn’t work for some reason, I just checked my player int value in game and it seems that the value doesn’t even change…

is the height of the invisible part high?

This is my code and it works perfectly fine

local Players = game.Players
local InvisibleZone = game.Workspace.InvisibleZone
local Zone = require(game.ReplicatedStorage.Zone)
local zone = Zone.new(InvisibleZone)

zone.playerEntered:Connect(function()

end)
zone.playerExited:Connect(function()

end)

kind of, why ask?

cheeseburger

Try this code (Without the Players thing for now as a test)

local Players = game.Players
local InvisibleZone = game.Workspace.YourInvisiblePart
local Zone = require(game.ReplicatedStorage.Zone)
local zone = Zone.new(InvisibleZone)

zone.playerEntered:Connect(function()
	 print("e")
end)
zone.playerExited:Connect(function()

end)

Now tell me if it prints…

doesn’t even print…

eeeeeeeeeeeeeeeeeeeee

… Show me your workspace and the script…

script:

workspace:

Of course it won’t because you didn’t change the variable.

Try this

local Players = game.Players
local InvisibleZone = game.Workspace.InvisibleZone
local Zone = require(game.ReplicatedStorage.Zone)
local zone = Zone.new(InvisibleZone)

zone.playerEntered:Connect(function()
	 print("e")
end)
zone.playerExited:Connect(function()

end)

still it does not print the “e” in the output…

Is the script a server script inside ServerScriptService?

if not PLEASE remove and get the new Zone plus module.

yes the script is a server script inside serverscriptservice, and I am pretty sure I got the newest version… v3.2.0?

Can i see the properties of InvisibleZone?

There is nothing wrong with the script Nor it’s properties can you give me a file with the Zone plus script & your script with the part?

This is really confusing.

how can i do that?

eeeeeeeeeeeeeeeeeeee

Go to file → Save to file as → Name it press confirm after that Open it and remove the stuff you don’t want me to have access to (Lobby, other scripts,etc) → press on the Import sign when Replying on the devforum and put it.

You mean save to roblox as? It seems that i can’t find save to file as in the file section in roblox studio

You have CanTouch disabled. The “script.Parent.Touched” part of your code will not run when this is disabled. Try enabling it where you have “map.CanTouch”.

Nope, he doesn’t have CanTouch off.