Advertisement
ThatOneGuy561

Untitled

Jun 15th, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.21 KB | None | 0 0
  1. local player = game:GetService("Players").LocalPlayer
  2. local mouse = player:GetMouse()
  3. repeat wait() until player.Character
  4. local character = player.Character
  5.  
  6. character.Humanoid.MaxHealth = 1000
  7. wait(.05)
  8. character.Humanoid.Health = character.Humanoid.MaxHealth
  9. character.Humanoid.WalkSpeed = 28
  10. character.Animate:Destroy()
  11. character.Humanoid.Animator:Destroy()
  12.  
  13. FPS = 1/game:GetService("RunService").RenderStepped:wait()
  14. local Damage = 1
  15. local MaxMana = 300
  16. local Mana = MaxMana
  17.  
  18. function sound(parent, id, playonremove, volume, speed)
  19. local audio = Instance.new("Sound", parent)
  20. audio.SoundId = id
  21. audio.PlayOnRemove = playonremove
  22. audio.PlaybackSpeed = speed
  23. audio.Volume = volume
  24. if playonremove then
  25. audio:Destroy()
  26. else
  27. audio.Looped = true
  28. audio.Playing = true
  29. end
  30. return audio
  31. end
  32.  
  33. local theme = sound(character.HumanoidRootPart, "rbxassetid://290263119", false, .5, 1)
  34.  
  35. function hitBox(object, offset, radius, damage, physical, knockback)
  36. for i, v in pairs(workspace:GetChildren()) do
  37. local humanoid = v:FindFirstChild("Humanoid")
  38. local torso = v:FindFirstChild("HumanoidRootPart")
  39. if torso and (torso.CFrame.p - (object.CFrame*offset).p).magnitude < radius then
  40. if humanoid then
  41. if not humanoid:IsDescendantOf(character) then
  42. humanoid:TakeDamage(damage*Damage)
  43. torso.Velocity = character.HumanoidRootPart.CFrame.lookVector*knockback
  44. if physical then
  45. sound(torso, "rbxassetid://566593606", true, 1, .9)
  46. else
  47. return
  48. end
  49. end
  50. end
  51. end
  52. end
  53. end
  54.  
  55. function clerp(a, b, t)
  56. return a:lerp(b, t)
  57. end
  58.  
  59. fx = {
  60. ["fireblast"] = function(cframe)
  61. local cylin = Instance.new("Part", workspace)
  62. cylin.Anchored = true
  63. cylin.CanCollide = false
  64. cylin.Material = Enum.Material.Neon
  65. cylin.BrickColor = BrickColor.new("Bright red")
  66. cylin.Shape = "Cylinder"
  67. game:GetService("Debris"):AddItem(cylin, 5)
  68. local cymesh = Instance.new("SpecialMesh", cylin)
  69. cymesh.Scale = Vector3.new(.1, .3, .3)
  70. cymesh.MeshType = Enum.MeshType.Cylinder
  71. cylin.CFrame = cframe*CFrame.Angles(math.rad(90), math.rad(90), 0)
  72. local square = Instance.new("Part", workspace)
  73. square.Anchored = true
  74. square.CanCollide = false
  75. square.Material = Enum.Material.Neon
  76. square.BrickColor = BrickColor.new("Bright red")
  77. square.Shape = "Block"
  78. game:GetService("Debris"):AddItem(square, 5)
  79. square.Size = Vector3.new(.5, .5, .5)
  80. local sqmesh = Instance.new("SpecialMesh", square)
  81. sqmesh.Scale = Vector3.new(.5, .5, .5)
  82. sqmesh.MeshType = Enum.MeshType.Brick
  83. square.CFrame = cylin.CFrame
  84. --[[
  85. local projectile = Instance.new("Part", workspace)
  86. projectile.Anchored = false
  87. projectile.CanCollide = false
  88. projectile.Size = Vector3.new(2, 2, 2)
  89. projectile.Material = Enum.Material.Neon
  90. projectile.BrickColor = BrickColor.new("Bright red")
  91. projectile.Shape = "Ball"
  92. projectile.CFrame = cframe
  93. projectile.CFrame = CFrame.new(projectile.CFrame.p, mouse.Hit.p)
  94. local circle = Instance.new("SpecialMesh", projectile)
  95. circle.Scale = Vector3.new(2, 2, 2)
  96. circle.MeshType = Enum.MeshType.Sphere
  97. local BV = Instance.new("BodyVelocity", projectile)
  98. BV.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  99. BV.Velocity = projectile.CFrame.lookVector*150
  100. game:GetService("Debris"):AddItem(projectile, 1.8)
  101. projectile.Touched:connect(function(hit)
  102. local humanoid = hit.Parent:FindFirstChild("Humanoid")
  103. if humanoid then
  104. if not humanoid:IsDescendantOf(character) then
  105. humanoid:TakeDamage(math.random(6, 11))
  106. end
  107. end
  108. end)
  109. --]]
  110. spawn(function()
  111. for i = 0, 1, .05 do
  112. game:GetService("RunService").RenderStepped:wait()
  113. cylin.Transparency = i
  114. square.Transparency = i
  115. cymesh.Scale = cymesh.Scale + Vector3.new(0, 1.8, 1.8)
  116. sqmesh.Scale = sqmesh.Scale + Vector3.new(1.8, 1.8, 1.8)
  117. square.CFrame = square.CFrame*CFrame.Angles(.3, .3, .3)
  118. end
  119. cylin:Destroy()
  120. square:Destroy()
  121. end)
  122. end;
  123. ["fireburst"] = function(cframe, duration)
  124. spawn(function()
  125. hitBox(character.HumanoidRootPart, CFrame.new(0, 0, 0), 38, 30, false, 45)
  126. sound(character.HumanoidRootPart, "rbxassetid://233856115", true, 1, 1)
  127. local outer = Instance.new("Part", workspace)
  128. outer.Anchored = true
  129. outer.CanCollide = false
  130. outer.Material = Enum.Material.Neon
  131. outer.BrickColor = BrickColor.new("Bright red")
  132. outer.Shape = "Ball"
  133. outer.Size = Vector3.new(12, 12, 12)
  134. outer.CFrame = cframe
  135. game:GetService("Debris"):AddItem(outer, 9)
  136. local outermesh = Instance.new("SpecialMesh", outer)
  137. outermesh.MeshType = Enum.MeshType.Sphere
  138. local inner = Instance.new("Part", workspace)
  139. local innermesh = Instance.new("SpecialMesh", inner)
  140. innermesh.MeshType = Enum.MeshType.Brick
  141. inner.Anchored = true
  142. inner.CanCollide = false
  143. inner.Material = Enum.Material.Neon
  144. inner.BrickColor = BrickColor.new("Bright red")
  145. inner.Shape = "Block"
  146. inner.Size = Vector3.new(12, 12, 12)
  147. inner.CFrame = cframe
  148. game:GetService("Debris"):AddItem(inner, 9)
  149. for i = 0, duration, .05 do
  150. game:GetService("RunService").Heartbeat:wait()
  151. outer.Transparency = i
  152. inner.Transparency = i
  153. outermesh.Scale = outermesh.Scale + Vector3.new(.4, .4, .4)
  154. innermesh.Scale = innermesh.Scale + Vector3.new(.4, .4, .4)
  155. outer.CFrame = outer.CFrame*CFrame.Angles(.3, .3, .3)
  156. inner.CFrame = inner.CFrame*CFrame.Angles(.3, .3, .3)
  157. end
  158. outer:Destroy()
  159. inner:Destroy()
  160. end)
  161. end
  162. }
  163.  
  164. local rarm = Instance.new("Weld", character)
  165. rarm.Part0 = character.Torso
  166. rarm.Part1 = character["Right Arm"]
  167. rarm.C0 = CFrame.new(1.5, 0, 0)
  168.  
  169. local larm = Instance.new("Weld", character)
  170. larm.Part0 = character.Torso
  171. larm.Part1 = character["Left Arm"]
  172. larm.C0 = CFrame.new(-1.5, 0, 0)
  173.  
  174. local rleg = Instance.new("Weld", character)
  175. rleg.Part0 = character.Torso
  176. rleg.Part1 = character["Right Leg"]
  177. rleg.C0 = CFrame.new(.5, -2, 0)
  178.  
  179. local lleg = Instance.new("Weld", character)
  180. lleg.Part0 = character.Torso
  181. lleg.Part1 = character["Left Leg"]
  182. lleg.C0 = CFrame.new(-.5, -2, 0)
  183.  
  184. local torso = Instance.new("Weld", character)
  185. torso.Part0 = character.HumanoidRootPart
  186. torso.Part1 = character.Torso
  187.  
  188. local head = Instance.new("Weld", character)
  189. head.Part0 = character.Torso
  190. head.Part1 = character.Head
  191. head.C0 = CFrame.new(0, 1.5, 0)
  192.  
  193. local blade = Instance.new("Part", character["Right Arm"])
  194. blade.CanCollide = false
  195. blade.Anchored = false
  196. blade.Locked = true
  197. blade.Size = Vector3.new(0.26, 1.14, 8.12)
  198.  
  199. local blademesh = Instance.new("SpecialMesh", blade)
  200. blademesh.MeshId = "rbxassetid://409664704"
  201. blademesh.TextureId = "rbxassetid://409665021"
  202. blademesh.Scale = Vector3.new(3.8, 3.8, 4.5)
  203.  
  204. local sword = Instance.new("Weld", character)
  205. sword.Part0 = character["Right Arm"]
  206. sword.Part1 = blade
  207. sword.C0 = CFrame.new(0, -.8, -2.9)*CFrame.Angles(0, 0, 0)
  208.  
  209. local flamehood = Instance.new("Part", character.Head)
  210. flamehood.Anchored = false
  211. flamehood.CanCollide = false
  212. flamehood.Transparency = .4
  213. flamehood.BrickColor = BrickColor.new("Bright red")
  214. flamehood.Material = Enum.Material.Neon
  215. flamehood.Size = Vector3.new(1.6, 1.6, 2)
  216. flamehood.Locked = true
  217.  
  218. local hoodmesh = Instance.new("SpecialMesh", flamehood)
  219. hoodmesh.MeshId = "http://www.roblox.com/asset/?id=72538389"
  220. hoodmesh.Scale = Vector3.new(2, 2, 2)
  221.  
  222. local hood = Instance.new("Weld", character)
  223. hood.Part0 = character.Head
  224. hood.Part1 = flamehood
  225. hood.C0 = CFrame.new(0, -1.7, 1.2)*CFrame.Angles(math.rad(160), 0, 0)
  226.  
  227. local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  228. local bottom = Instance.new("Frame", gui)
  229. bottom.AnchorPoint = Vector2.new(.5, .5)
  230. bottom.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  231. bottom.Position = UDim2.new(0.5, 0, 0.9, 0)
  232. bottom.Size = UDim2.new(0.3, 0, .05, 0)
  233. local top = Instance.new("Frame", bottom)
  234. top.BackgroundColor3 = Color3.fromRGB(255, 66, 29)
  235. top.AnchorPoint = Vector2.new(.5, .5)
  236. top.Position = UDim2.new(.5, 0, .5, 0)
  237. top.Size = UDim2.new(1, -20, 1, -15)
  238.  
  239. local Sine = 0
  240. local Change = 1
  241. local State = "Idle"
  242. local Form = "Standard"
  243.  
  244. debounces = {
  245. ["Attacking"] = false
  246. }
  247.  
  248.  
  249.  
  250.  
  251. local pos = blade.CFrame
  252.  
  253. game:GetService("RunService").RenderStepped:connect(function()
  254. FPS = 1/game:GetService("RunService").RenderStepped:wait()
  255. top.Size = UDim2.new(Mana/MaxMana, -20, 1, -15)
  256. if Form == "Standard" and Mana <= 300 then
  257. Mana = Mana + .1
  258. end
  259. --[[
  260. if debounces["Attacking"] == true then
  261. local part = Instance.new("Part", workspace)
  262. local lastPos = blade.CFrame
  263. local nextPos = pos
  264. part.Anchored = true
  265. part.CanCollide = false
  266. part.BrickColor = BrickColor.new("Really red")
  267. part.Material = Enum.Material.Neon
  268. local distance = (nextPos.p - lastPos.p).magnitude
  269. part.FormFactor = Enum.FormFactor.Brick
  270. part.Size = Vector3.new(.2, .2, distance)
  271. part.CFrame = CFrame.new((nextPos.p + lastPos.p)/2, nextPos.p)
  272. pos = blade.CFrame
  273.  
  274. game:GetService("Debris"):AddItem(part, 1)
  275. end
  276. --]]
  277. Sine = tick() * Change * 60
  278. walkingMagnitude = Vector3.new(character.Torso.Velocity.X, 0, character.Torso.Velocity.Z).magnitude
  279. if walkingMagnitude > 2 then
  280. State = "Walking"
  281. rleg.C0 = clerp(rleg.C0, CFrame.new(.6, -2-math.sin(Sine/3)/1.3/1.2, -math.cos(Sine/3)/1.3*1.9)*CFrame.Angles(math.cos(Sine/3)/1.3*1.9, 0, math.rad(5)), .15)
  282. lleg.C0 = clerp(lleg.C0, CFrame.new(-.6, -2+math.sin(Sine/3)/1.3/1.2, math.cos(Sine/3)/1.3*1.9)*CFrame.Angles(-math.cos(Sine/3)/1.3*1.9, 0, math.rad(-5)), .15)
  283. if debounces["Attacking"] == false then
  284. rarm.C0 = clerp(rarm.C0, CFrame.new(1.7, 0, .2+math.sin(Sine/3)/1.3/5.5)*CFrame.Angles(math.rad(-15)-math.sin(Sine/3)/1.3/5.5, math.rad(-15)+math.sin(Sine/3)/1.3/5.5, math.rad(10)), .15)
  285. larm.C0 = clerp(larm.C0, CFrame.new(-1.6, 0, -math.sin(Sine/3)/1.3*1.7)*CFrame.Angles(math.sin(Sine/3)/1.3, 0, math.rad(-5)), .15)
  286. torso.C0 = clerp(torso.C0, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(-10)+math.sin(Sine/1.5)/1.3/4, math.sin(Sine/3)/1.3/2.5, 0), .15)
  287. head.C0 = clerp(head.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-10), 0, 0), .15)
  288. sword.C0 = clerp(sword.C0, CFrame.new(0, -.8, -2.9)*CFrame.Angles(0, 0, 0), .15)
  289. end
  290. elseif walkingMagnitude < 2 then
  291. State = "Idle"
  292. rleg.C0 = clerp(rleg.C0, CFrame.new(.6, -2+math.sin(Sine/7)/1.2/4.5, -.3)*CFrame.Angles(0, 0, math.rad(5)), .15)
  293. lleg.C0 = clerp(lleg.C0, CFrame.new(-.6, -2+math.sin(Sine/7)/1.2/4.5, .3)*CFrame.Angles(math.rad(-10), 0, math.rad(-5)), .15)
  294. if debounces["Attacking"] == false then
  295. rarm.C0 = clerp(rarm.C0, CFrame.new(1.6, math.cos(Sine/7)/1.2/4.5, -.2)*CFrame.Angles(math.rad(10), 0, math.rad(5)), .15)
  296. larm.C0 = clerp(larm.C0, CFrame.new(-1.6, math.cos(Sine/7)/1.2/4.5, 0)*CFrame.Angles(math.rad(-10), 0, math.rad(-5)), .15)
  297. torso.C0 = clerp(torso.C0, CFrame.new(0, -math.sin(Sine/7)/1.2/4.5, 0)*CFrame.Angles(0, math.rad(-20), 0), .15)
  298. head.C0 = clerp(head.C0, CFrame.new(0, 1.5, -.1)*CFrame.Angles(math.rad(-10), math.rad(20), 0), .15)
  299. sword.C0 = clerp(sword.C0, CFrame.new(0, -.8, -2.9)*CFrame.Angles(0, 0, 0), .15)
  300. end
  301. end
  302. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement