Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tool = script.Parent
- local function onTouch (partOther)
- local humanOther = partOther.Parent:FindFirstChild ("Humanoid")
- if not humanOther then return end
- if humanOther.Parent == tool then return end
- humanOther:TakeDamage (5)
- end
- local function slash()
- local str = Instance.new ("StringValue")
- str.Name = "toolanim"
- str.Value = "Slash"
- str.Parent = tool
- end
- tool.Activated:Connect (slash)
- tool.Handle.Touched:Connect (onTouch)
- --made by GamerM8--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement