Advertisement
Axelpuff

Magic test

Jul 12th, 2018
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.54 KB | None | 0 0
  1. --Simple attack tests--
  2. -- By Axelpuff --
  3.  
  4. --Variables--
  5.  
  6. local UIS = game:GetService("UserInputService")
  7. local Player = game.Players.LocalPlayer
  8. local Mouse = Player:GetMouse()
  9. local Character = Player.Character
  10. local Humanoid = Character.Humanoid
  11. local AbuseMode = false
  12. local Torso = Character.Torso
  13. local Tool = Instance.new("Tool")
  14. Tool.Name = "Maaaagic"
  15. Tool.RequiresHandle = false
  16. Tool.Parent = Player.Backpack
  17.  
  18. --Functions--
  19. local function NewPillar(Color,Width)
  20. local Thing = Instance.new("Part")
  21. Thing.Shape = "Cylinder"
  22. Thing.Material = "Neon"
  23. Thing.BrickColor = BrickColor.new(Color)
  24. Thing.Size = Vector3.new(5000,Width,Width)
  25. Thing.CanCollide = false
  26. Thing.Orientation = Vector3.new(0,0,90)
  27. return(Thing)
  28. end
  29.  
  30. --Abuse Mode--
  31. UIS.InputBegan:connect(function(input)
  32. if input.KeyCode == Enum.KeyCode.X then
  33. if Tool.Parent == Character then
  34. AbuseMode = true
  35. Humanoid.Name = "LOLyouidiot"
  36. print("Abuse on!")
  37. end
  38. end
  39. if input.KeyCode == Enum.KeyCode.C then
  40. if Tool.Parent == Character then
  41. AbuseMode = false
  42. Humanoid.Name = "Humanoid"
  43. print("Abuse off!")
  44. end
  45. end
  46. end)
  47. --Attacks--
  48.  
  49. --Sky Pillar--
  50.  
  51. UIS.InputBegan:connect(function(input)
  52. if input.KeyCode == Enum.KeyCode.Q then
  53. if Tool.Parent == Character then
  54. local pos = Mouse.Hit.p
  55. local Pillar = NewPillar("Really red",1)
  56. Pillar.Parent = workspace
  57. Pillar.Position = pos
  58. Pillar.Anchored = true
  59. wait(0.3)
  60. for i=1,10,1 do
  61. Pillar.Size = Pillar.Size+Vector3.new(0,8,8)
  62. Pillar.Transparency = Pillar.Transparency+0.1
  63. Pillar.Touched:connect(function(part)
  64. if part.Parent.ClassName ~= "Accessory" and part.Parent.ClassName ~= "Workspace" and part.Parent ~= Character then
  65. local Hum = part.Parent.Humanoid
  66. if Hum then
  67. if AbuseMode == false then
  68. Hum:TakeDamage(10)
  69. else
  70. part.Parent:Destroy()
  71. end
  72. end
  73. end
  74. end)
  75. wait(0.01)
  76. end
  77. Pillar:Destroy()
  78. end
  79. end
  80. end)
  81.  
  82. --Teleport--
  83.  
  84. UIS.InputBegan:connect(function(input)
  85. if input.KeyCode == Enum.KeyCode.E then
  86. if Tool.Parent == Character then
  87. local pos = Mouse.Hit
  88. local Pillar1 = NewPillar("Really red", 1)
  89. local Pillar2 = NewPillar("Really red", 1)
  90. Pillar1.Parent = workspace
  91. Pillar1.Position = Torso.Position
  92. Pillar1.Anchored = true
  93. Pillar2.Parent = workspace
  94. Pillar2.Position = pos.p
  95. Pillar2.Anchored = true
  96. for i =1,9,1 do
  97. Pillar1.Size = Pillar1.Size+Vector3.new(0,1,1)
  98. Pillar2.Size = Pillar1.Size
  99. wait(0.01)
  100. end
  101. Torso.CFrame = pos+Vector3.new(0,3,0)
  102. for i =1,10,1 do
  103. Pillar1.Size = Pillar1.Size+Vector3.new(0,-1,-1)
  104. Pillar2.Size = Pillar1.Size
  105. Pillar1.Transparency = Pillar1.Transparency+0.1
  106. Pillar2.Transparency = Pillar1.Transparency
  107. wait(0.01)
  108. end
  109. Pillar1:Destroy()
  110. Pillar2:Destroy()
  111. end
  112. end
  113. end)
  114.  
  115. --Orb Throw--
  116. UIS.InputBegan:connect(function(input)
  117. if input.KeyCode == Enum.KeyCode.R then
  118. if Tool.Parent == Character then
  119. local Orb = Instance.new("Part")
  120. Orb.Shape = "Ball"
  121. Orb.Material = "Neon"
  122. Orb.BrickColor = BrickColor.new("Really red")
  123. Orb.Size = Vector3.new(1,1,1)
  124. Orb.CanCollide = false
  125. local PWalk = Humanoid.WalkSpeed
  126. Humanoid.WalkSpeed = 0
  127. local PJump = Humanoid.JumpPower
  128. Humanoid.JumpPower = 0
  129. Torso.Anchored = true
  130. Orb.Parent = workspace
  131. Orb.CFrame = Character.HumanoidRootPart.CFrame*CFrame.new(0,10,0)
  132. Orb.Anchored = true
  133. for i=1,9,1 do
  134. Orb.Size = Orb.Size+Vector3.new(1,1,1)
  135. wait(0.01)
  136. end
  137. wait(0.2)
  138. Orb.CFrame = CFrame.new(Orb.Position,Orb.Position+Vector3.new(0,500,0))
  139. local V = Instance.new("BodyVelocity")
  140. V.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  141. V.Velocity = Orb.CFrame.lookVector*1000
  142. V.Parent = Orb
  143. Orb.Anchored = false
  144. Torso.Anchored = false
  145. Humanoid.WalkSpeed = PWalk
  146. Humanoid.JumpPower = PJump
  147. wait(0.5)
  148. local MHit = Mouse.Hit
  149. Orb.Position = MHit.p+Vector3.new(0,500,0)
  150. Orb.Anchored = true
  151. Orb.CFrame = CFrame.new(Orb.Position, MHit.p)
  152. V.Velocity = Orb.CFrame.lookVector*1000
  153. Orb.Anchored = false
  154. wait(0.485)
  155. local OrbS = Orb.Size
  156. Orb:Destroy()
  157. local Boom = Instance.new("Part")
  158. Boom.Shape = "Ball"
  159. Boom.Material = "Neon"
  160. Boom.BrickColor = BrickColor.new("Really red")
  161. Boom.Size = OrbS*5
  162. Boom.CanCollide = false
  163. Torso.CFrame = MHit+Vector3.new(0,3,0)
  164. Boom.Parent = workspace
  165. Boom.CFrame = MHit
  166. Boom.Anchored = true
  167. Boom.Touched:connect(function(part)
  168. if part.Parent.ClassName ~= "Accessory" and part.Parent.ClassName ~= "Workspace" and part.Parent ~= Character then
  169. local Hum = part.Parent.Humanoid
  170. if Hum then
  171. Hum:TakeDamage(10)
  172. end
  173. end
  174. end)
  175. local Ring1 = Instance.new("Part")
  176. Ring1.BrickColor = BrickColor.new("Really red")
  177. Ring1.Material = "Neon"
  178. local RingMesh1 = Instance.new("SpecialMesh")
  179. RingMesh1.MeshId = "rbxassetid://9982590"
  180. RingMesh1.Parent = Ring1
  181. RingMesh1.Scale = Vector3.new(10,10,10)
  182. Ring1.CanCollide = false
  183. Ring1.Parent = workspace
  184. Ring1.CFrame = Boom.CFrame
  185. local BV = Instance.new("BodyVelocity")
  186. BV.Velocity = Vector3.new(0,0,0)
  187. BV.Parent = Ring1
  188. Ring1.RotVelocity = Vector3.new(10,0,0)
  189. for i =1,10,1 do
  190. Boom.Size = Boom.Size+Vector3.new(10,10,10)
  191. RingMesh1.Scale = RingMesh1.Scale+Vector3.new(4,4,4)
  192. Boom.Transparency = Boom.Transparency+0.1
  193. Ring1.Transparency = Boom.Transparency
  194. wait(0.02)
  195. end
  196. Boom:Destroy()
  197. Ring1:Destroy()
  198. end
  199. end
  200. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement