Advertisement
TheUnknownDiscord

GUn

Aug 30th, 2021 (edited)
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Tool = Instance.new("Tool")
  2. Tool.Name = "Sword"
  3. Knife = Instance.new("Part")
  4. Knife.Name = "Handle"
  5. Knife.Parent = Tool
  6. Tool.Parent = workspace.Lucas_YT111
  7. Knife.Size = Vector3.new(0.82325, 2.1545, 6.25)
  8. Knife.Massless = true
  9. Knife.CanCollide = true
  10. myhum = owner.Character.Humanoid
  11. local stab = Instance.new("Sound", owner.character.Head)
  12. stab.SoundId = "rbxassetid://663369157"
  13. stab.Volume = 1
  14. stab.Looped = true
  15. islunging = false
  16. Mesh = Instance.new("SpecialMesh")
  17. Mesh.Parent = Knife
  18. Mesh.MeshId = "http://www.roblox.com/asset/?id=6938825994"
  19. Mesh.TextureId = "http://www.roblox.com/asset/?id=6938826036"
  20. Mesh.Scale = Vector3.new(0.125, 0.125, 0.125)
  21.  
  22. Tool.Activated:connect(function()
  23. islunging = true
  24. local Anim = Instance.new("StringValue")
  25. Anim.Name = "toolanim"
  26. Anim.Value = "Lunge"
  27. Anim.Parent = Tool
  28. wait(0.25)
  29. islunging = false
  30. wait(0.40)
  31. end)
  32.  
  33. local isTouched = false
  34.  
  35. function thinghere(plr,action,otherPart)
  36. if islunging then
  37. local partParent = otherPart.Parent
  38. local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
  39. if humanoid ~= "myhum" and humanoid then
  40. if not isTouched then
  41. isTouched = true
  42. humanoid.BreakJointsOnDeath = false
  43. if humanoid.Health ~= 0 then
  44. humanoid.Health = 0
  45. wait(0.75)
  46. isTouched = false
  47. end
  48. end
  49. end
  50. end
  51. end
  52.  
  53.  
  54. local E = Instance.new("RemoteEvent",NLS([[local E = script:FindFirstChildWhichIsA("RemoteEvent")
  55. local Mouse = owner:GetMouse()
  56. function ButtonDown()
  57. if Mouse.Target ~= nil then
  58. E:FireServer("Down",Mouse.Target)
  59. end
  60. end
  61. Mouse.Button1Down:Connect(ButtonDown)
  62. ]],owner.PlayerGui))
  63. E.OnServerEvent:Connect(thinghere)
  64.  
  65. Tool.Unequipped:connect(function()
  66. stab:Stop()
  67. end)
  68. Tool.Equipped:connect(function()
  69. stab:Play()
  70. end)
  71. Tool.GripPos = Vector3.new(0,-0.5,2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement