Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function blow(hit)
- if (hit.Parent == nil) then return end --Happens when bullet hits a sword.--
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- local vCharacter = Tool.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- local hum = vCharacter:findFirstChild("Humanoid") --If tool still held by character it will do final check if sword is in hand.--
- local right_arm = vCharacter:FindFirstChild("Right Arm")
- if (right_arm) ~=nil) then
- local joint = right_arm:FindFirstChild("RightGrip")
- if (joint ~= nil and (joint.Part0 == sword or joint.Part == sword)) then
- tagHumanoid (humanoid, vPlayer)
- humanoid:TakeDamage(damage)
- wait (1)
- untagHumanoid(humanoid
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement