Kaemi

Untitled

Jul 30th, 2016
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.94 KB | None | 0 0
  1. --(Axe Simulation V0.1 Loaded) This script is brought to you by peyquinn
  2. --Credit is given to LuisPambid Pambid for the name :)
  3. --Please do not steal so copy to notepad
  4. --if you.steal == true then noob = you end
  5. name = "peyquinn"
  6. if script.Parent.Name == "AxeSim" then
  7. char = nil
  8. local ani = Instance.new("Animation")
  9. ani.AnimationId = "http://www.roblox.com/Asset?ID=32659699"
  10. ani.Name = "Ani"
  11. ani.Parent = script
  12. local sound = Instance.new("Sound")
  13. sound.Name = "Splat"
  14. sound.SoundId = "http://www.roblox.com/asset/?id=1390349"
  15. sound.Volume = 1
  16. sound.Pitch = 1.5
  17. sound.Parent = script.Parent.Handle
  18. local sound2 = Instance.new("Sound")
  19. sound2.Name = "Swoosh"
  20. sound2.SoundId = "rbxasset://sounds/swordslash.wav"
  21. sound2.Volume = 1
  22. sound2.Pitch = 0.7
  23. sound2.Parent = script.Parent.Handle
  24. function Teleport(key,pos)
  25. if key == "q" then
  26. char.Torso.CFrame = CFrame.new(pos + Vector3.new(0,5,0))
  27. end
  28. if key == "r" then
  29. char.Humanoid.WalkSpeed = 30
  30. end
  31. if key == "e" then
  32. char.Humanoid.WalkSpeed = 16
  33. end
  34. end
  35. function hitpart(part)
  36. if part.Parent == nil then return end
  37. if (part.Parent~=char) and (part.Parent:FindFirstChild("Humanoid") ~= nil) and (part.Parent.Name ~= "peyquinn") then
  38. if part.Parent:FindFirstChild("Humanoid").ClassName == "Humanoid" then
  39. part.Parent:FindFirstChild("Humanoid").Health = part.Parent:FindFirstChild("Humanoid").Health - 50
  40. script.Parent.Handle.Splat:Play()
  41. for i = 1,math.random(1,5) do
  42. blood = Instance.new("Part")
  43. blood.formFactor = "Custom"
  44. blood.CFrame = script.Parent.Handle.CFrame
  45. blood.CanCollide = false
  46. blood.Size = Vector3.new(1,1,1)
  47. blood.Velocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  48. blood.BrickColor = BrickColor.Red()
  49. blood.Transparency = 0.5
  50. blood.Parent = Workspace
  51. game:GetService("Debris"):AddItem(blood,2)
  52. end
  53. end
  54. end
  55. end
  56. function Attack()
  57. play = char.Humanoid:LoadAnimation(ani)
  58. play:Play()
  59. script.Parent.Handle.Swoosh:Play()
  60. end
  61. function EQ(mouse)
  62. char = script.Parent.Parent
  63. mouse.Icon = "http://www.roblox.com/asset/?id=67075709"
  64. mouse.KeyDown:connect(function(k) Teleport(k,mouse.Hit.p) end)
  65. end
  66. script.Parent.Handle.Touched:connect(hitpart)
  67. script.Parent.Equipped:connect(EQ)
  68. script.Parent.Activated:connect(Attack)
  69. else
  70. local tool = Instance.new("Tool")
  71. tool.GripForward = Vector3.new(1,0,0)
  72. tool.GripPos = Vector3.new(0,-0.2,1.7)
  73. tool.GripRight = Vector3.new(0,1,0)
  74. tool.GripUp = Vector3.new(0,0,-1)
  75. tool.ToolTip = "Axe Simulation"
  76. tool.Name = "AxeSim"
  77. hand = Instance.new("Part")
  78. hand.FormFactor = "Custom"
  79. hand.Size = Vector3.new(2, 0.8, 4)
  80. hand.Parent = tool
  81. hand.Name = "Handle"
  82. mesh = Instance.new("SpecialMesh")
  83. mesh.MeshType = "FileMesh"
  84. mesh.Scale = Vector3.new(1.7,1.7,1.7)
  85. mesh.TextureId = "http://www.roblox.com/asset/?id=26768350"
  86. mesh.MeshId = "http://www.roblox.com/asset/?id=26768319"
  87. mesh.Parent = hand
  88. script:clone().Parent = tool
  89. tool.Parent = game:GetService("Players"):FindFirstChild(name).StarterGear
  90. end
Add Comment
Please, Sign In to add comment