As the subject suggests, this bullet script for my gun works in the studio test mode, but not on an actual server. When the bullet hits a player or NPC, it just doesn't do any damage.
script.Parent.Touched:connect(function(hit)
game.Debris:AddItem(script.Parent, 5)
human = hit.Parent:FindFirstChild("Humanoid")
if human and human.Parent.Name ~= script.Parent.Parent.Name then
human:TakeDamage(20)
end
|