Are you sure the Humanoid is named “Zombie”?
Try this
local player = game:GetService("Players").LocalPlayer
local Character = player.Character
local mouse = player:GetMouse()
local bulletDamage = 25
mouse.Button1Down:Connect(function()
local Raycasthit = Instance.new("Part")
Raycasthit.Parent = game.Workspace
Raycasthit.BrickColor = BrickColor.Red()
Raycasthit.Anchored = true
Raycasthit.Archivable = true
Raycasthit.Size = Vector3.new(1, 1, 1)
Raycasthit.Position = mouse.Hit.Position
print(Raycasthit.Position)
Raycasthit.Touched:Connect(function(objectHit)
local human = objectHit.Parent:FindFirstChild("Humanoid")
if human then
print("e")
end
end)
end)
Its not that it won’t print i was using print as a test its supposed to actually deal damage but since it didn’t do that i made it to a print for easier testing