Advertisement
mr2meows

sword

Mar 16th, 2023 (edited)
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. local tool = Instance.new("Tool",owner.Backpack)
  2. local handle = Instance.new("Part",tool)
  3. handle.Name = "Handle"
  4. handle.Shape = "Cylinder"
  5. handle.Size = Vector3.new(4,1,1)
  6. handle.BrickColor = BrickColor.new("Fossil")
  7. handle.Reflectance = 1
  8. handle.Material = "Metal"
  9. tool.Name = "Sword"
  10. tool.GripPos = Vector3.new(-1.449, 0.358, 0)
  11. local normalgrip = CFrame.new(-1.44859314, 0.357548714, 3.81469727e-06, -2.69850887e-07, 1, 6.0395945e-07, 4.61935002e-07, -6.03959336e-07, 1, 1, 2.69851171e-07, -4.61934832e-07)
  12. local atackgrip = CFrame.new(-2.0602684, 0.0410385132, 3.81469727e-06, -3.19326972e-07, 5.51806522e-07, -1, 7.93135086e-07, 1, 5.51806295e-07, 1, -7.93134916e-07, -3.19327398e-07)
  13. local slash = Instance.new("Sound", handle)
  14. local equip = Instance.new("Sound", handle)
  15. slash.SoundId = "rbxassetid://9125670883"
  16. equip.SoundId = "rbxassetid://9116787844"
  17. function slish()
  18. tool.Enabled = false
  19. slash:Play()
  20. tool.Grip = atackgrip
  21. wait(.5)
  22. tool.Grip = normalgrip
  23. wait(1.5)
  24. tool.Enabled = true
  25. end
  26. function eqip()
  27. equip:Play()
  28. tool.Grip = normalgrip
  29. end
  30. function touch(part)
  31. if part.Parent.Humanoid then
  32. part.Parent.Humanoid:TakeDamage(25)
  33. end
  34. end
  35. handle.Touched:Connect(touch)
  36. tool.Activated:Connect(slish)
  37. tool.Equipped:Connect(eqip)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement