Advertisement
memberhero

leaked magic gun

Aug 21st, 2016
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. --Created by mpk5lmao Magice gun --
  2. local enabled = true
  3. Player = script.Player.memberhero
  4. c = Player.Character
  5. game:GetService("Chat"):Chat(Player.Character.Head, "Magic Gun Hurrra!!!!!!!!!")
  6. --Player:WaitForDataReady()
  7. mouse = Player:GetMouse()
  8. run = game:GetService("RunService")
  9. function onKeyDown(key)
  10. if not enabled then return end
  11. enabled = true
  12. Key = key:lower()
  13. if key == "e" then
  14. RightShoulder = Player.Character.Torso["Right Shoulder"]
  15. LeftShoulder = Player.Character.Torso["Left Shoulder"]
  16. Run = game:GetService("RunService")
  17. local pow = Instance.new("Sound")
  18. pow.SoundId = ("http://www.roblox.com/asset/?id=2691586")
  19. pow.Volume = 1
  20. pow.Parent = game.Workspace
  21. x = Instance.new("Part")
  22. x.BrickColor = BrickColor.new("Cool yellow")
  23. x.Size = Vector3.new(1, 1, 2)
  24. x.TopSurface = "Smooth"
  25. x.BottomSurface = "Smooth"
  26. x.Shape = "Ball"
  27. x.Name = Player.Name
  28. x.CanCollide = false
  29. x.Transparency = 0
  30. t = Instance.new("SpecialMesh")
  31. t.MeshId = "http://www.roblox.com/asset/?id=2697549"
  32. t.TextureId = ""
  33. t.MeshType = "FileMesh"
  34. t.Scale = Vector3.new(1.7, 1.7, 1.7)
  35. t.Parent = x
  36. w = Instance.new ("Part")
  37. w.Size = Vector3.new (1, 1, 1)
  38. w.TopSurface = "Smooth"
  39. w.BottomSurface = "Smooth"
  40. w.BrickColor = BrickColor.new("Mid gray")
  41. w.Reflectance = 0.3
  42. w.Material = "Ice"
  43. w.CanCollide = false
  44. w.Transparency = 0
  45. w.Parent = c
  46. w.Name = "LeftS"
  47. q = Instance.new("SpecialMesh")
  48. q.MeshId = "http://www.roblox.com/asset/?id=4372594"
  49. q.TextureId = ""
  50. q.MeshType = "FileMesh"
  51. q.Scale = Vector3.new(1.7, 1.7, 1.7)
  52. q.Parent = w
  53. function onTouched(hit)
  54. local human = hit.Parent:findFirstChild("Humanoid")
  55. local fon = hit.Parent
  56. if (human ~= nil) then
  57. game:GetService("Chat"):Chat(Player.Character.Head, "Hit")
  58. human.Health = human.Health - 15 -- Change the amount to change the damage.
  59. -- human.Torso
  60. end
  61. end
  62. x.Touched:connect(onTouched)
  63. --function a(part)
  64. --local a = part.Parent:FindFirstChild("Humanoid")
  65. --if (a ~= nil) then
  66. --a.Parent:Remove()
  67. --end
  68. --end
  69.  
  70. --x.Touched:connect(a)
  71. --fd = script.Firedamage:clone()
  72. --fd.Parent = x
  73. y = Instance.new("BodyVelocity")
  74. y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  75. y.velocity = Player.Character.Torso.CFrame.lookVector*600
  76. x.Parent = Workspace
  77. y.Parent = x
  78. pow:Play()
  79. w1 = Instance.new ("Weld", c)
  80. w1.Part0 = w1.Parent["Left Arm"]
  81. print 'Its on my arm'
  82. w1.Part1 = w
  83. w1.C1 = CFrame.fromEulerAnglesXYZ (1.5, 0, 0) *CFrame.new (0, 1.5, 0)
  84.  
  85. x.CFrame = Player.Character.Torso.CFrame*CFrame.new(0, 0, -5)
  86. --fd.Disabled = false
  87. game.Debris:AddItem(x, 6)
  88. game.Debris:AddItem(pow, 2)
  89. wait(0.25)
  90. end
  91. wait(.001)
  92. enabled = true
  93. end
  94. script.Parent.Parent.Character.Humanoid.MaxHealth = 450
  95. script.Parent.Parent.Character.Humanoid.Health = 400
  96. LeftShoulder = Player.Character.Torso["Left Shoulder"]
  97. for i = .5, 1 do
  98. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, -1.5)
  99. end
  100.  
  101. mouse.KeyDown:connect(onKeyDown)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement