so i would like to instantiate an event listener inside a function, yet am currently unaware of how to begin.
my guess of how to would be like this
function registerPlayer(player)
--code
player.Character.Torso.Changed:connect(watchPlayerLocation)
end
function watchPlayerLocation(CFrame)
--code
end
is this how i would set it up?

3 comments
thanks, i could see how it would really bog down a server, and i did not know about the disconnect method, that will help a lot
While this doesn't affect the answer, I want to contradict adark's statement that this was recently changed. Physics / UI based positional updates have never fired Changed events.
Color me enlightened, then. I've used the Changed event for them in the past, or could have sworn I did at least.