Advertisement
Kaemi

Untitled

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