So. I'm making this for a bank robbery, you enter, touch the invisible part and get a wanted level. Here is my script:
local crime = require(game.ServerScriptService.Crime)
local trigger = script.Parent
trigger.Touched:Connect(function(hit)
if hit then
local char = hit:FindFirstAncestorWhichIsA("Model")
crime.increaseWantedLevel(char, 1)
end
end)
I'm not sure what's wrong, I even put print("hit") so it prints hit when I touch it, but it doesn't work. How can I fix this?

1 comment
I'm guessing the invisible part is unanchored while having no colisions making it go thru the map and getting destroyed? I don't see why the touched connection would fail and unless you're getting any errors that seems like the most reasonable thing.