Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local bullet = script.Parent
- local function player_check(otherPart)
- local humanoid = otherPart.Parent:FindFirstChild('Humanoid')
- if humanoid then
- humanoid:TakeDamage(10)
- local player = game.Players:FindFirstChild(humanoid.Parent.Name)
- if player and humanoid.parent.name ~= bullet.Attacker.Value then
- local tag = player:FindFirstChild('Killer')
- if tag then
- tag.Value = bullet.Attacker.Value
- end
- end
- bullet:Destroy()
- end
- end
- bullet.Touched:Connect(player_check)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement