Hello,
So, this use to work till I added Tween to the raycast to simulate a moving projectile.
I am not getting any output at all and its kinda annoying. Was wondering if anyone here might have a general idea of where I went wrong.
if hit then
print("Found Person")
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid and humanoid:FindFirstChild("Health") then
print("Hitting Person")
if hit.Name == "Head" then
humanoid.Health:TakeDamage(Head)
elseif hit.Name == "Torso" then
humanoid.Health:TakeDamage(Torso)
else
humanoid.Health:TakeDamage(Limb)
end
end
end
