Upon entering the place it is activated as a sword, weapons, etc. and when leaving it takes off
This isn’t a Platform Usage Support topic. You should move it to the Scripting forum. It appears that English may not be your first language though so I’m going to try to keep it simple so a translator can help.
Here’s a post about how to check if a player is in a zone: Check if player is in zone - #53 by fasmandom
You aren’t allowed to ask people to create entire scripts here. We can help you out if you have issues with scripts though.
There are also many topics in the forums about how to Enable Tools, how to script detection of players in a zone, and other helpful posts that you can find with the Search magnifying glass icon at the top of the page…
There is also the Roblox Studio Assistant (in the View tab in Studio select Assistant). It’s an artificial intelligence script creator that sometimes works well. Other times it creates scripts that are close to what you need but you have to fix them yourself to work for your case.