I was just about to make a kill giver to my leaderstats and tested it at first with printing, but somehow it's not registering anything.
bulletTemplate.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if hit then
print("Detected" .. hit.Name)
end
end)
There is no error or anyhing printing in my output. By the way I am using FastCast for my gun.

2 comments
the raycast can detect if it hit a player
This guy made a good video on Fastcast module https://www.youtube.com/watch?v=mJZWY3G7wa4