Let's say I have a click detector like this:
script.Parent.ClickDetector.MouseClick:connect(function()
local player = --this Is what I want to know how to get
local f = script.Parent
f.Parent = player.Backpack
end)
How do I get the player? I know with a brick touch you can:
function onTouch(f)
local player = game.Players:GetPlayerFromCharacter(f.Parent)
end
script.Parent.Touched:connect(onTouch)
and you can get the player like that through touch, but in the situation I'm in I don't want to use a brick touch. Is there a similar way for click? If you can help please do! Thanks!

3 comments
To be noted: ClickDetectors will not work in FilteringEnabled. As an alternative, use a LocalScript that will detect what a person clicked on with the mouse's hit property. With that LocalScript you can then fire to the server what you want it to do.
Oh :P, totally forgot about it. Thanks for remembering.
Thanks so much!