Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sword = script.Parent
- local handle = sword:WaitForChild("Handle")
- Sounds = {{145180529, "Slash"}, {145180550, "Slash"}}
- function attack()
- if not enabled then
- return
- end
- local humanoid = sword.Parent.Humanoid
- local sound = handle:WaitForChild("Sounds"):GetChildren()
- sound[math.random(#sound)]:Play()
- Tool.Enabled = true
- function onActivated()
- if not Tool.Enabled then return end
- Tool.Enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then return end
- wait(1)
- Tool.Enabled = true
- end
- script.Parent.Activated:Connect(onActivated)
- end
Add Comment
Please, Sign In to add comment