Sacki

Untitled

Jun 16th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 69.87 KB | None | 0 0
  1. --[[QARMORY]]--
  2. wait(1 / 60)
  3. script.Archivable=false
  4. Effects = { }
  5. local Player = game.Players.localPlayer
  6. local Character = Player.Character
  7. local Humanoid = Character.Humanoid
  8. local mouse = Player:GetMouse()
  9. local m = Instance.new('Model', Character)
  10. m.Name = "WeaponModel"
  11. local effect = Instance.new('Model', Character)
  12. effect.Name = "Effects"
  13. local LeftArm = Character["Left Arm"]
  14. local RightArm = Character["Right Arm"]
  15. local LeftLeg = Character["Left Leg"]
  16. local RightLeg = Character["Right Leg"]
  17. local Head = Character.Head
  18. local Torso = Character.Torso
  19. local cam = game.Workspace.CurrentCamera
  20. local RootPart = Character.HumanoidRootPart
  21. local RootJoint = RootPart.RootJoint
  22. local equipped = false
  23. local attack = false
  24. local Anim = 'Idle'
  25. local idle = 0
  26. local attacktype = 1
  27. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  28. local velocity = RootPart.Velocity.y
  29. local sine = 0
  30. local change = 1
  31. local mana = 0
  32. local it =Instance.new
  33. vt=Vector3.new
  34. local grabbed = false
  35. local cf = CFrame.new
  36. local mr = math.rad
  37. local angles = CFrame.Angles
  38. local ud = UDim2.new
  39. local c3 = Color3.new
  40.  
  41. local NeckCF = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  42. Humanoid.Animator:Destroy()
  43. Character.Animate:Destroy()
  44.  
  45. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  46. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  47. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  48.  
  49. RSH, LSH = nil, nil
  50.  
  51. RW = Instance.new("Weld")
  52. LW = Instance.new("Weld")
  53.  
  54. RH = Torso["Right Hip"]
  55. LH = Torso["Left Hip"]
  56.  
  57. RSH = Torso["Right Shoulder"]
  58. LSH = Torso["Left Shoulder"]
  59.  
  60. RSH.Parent = nil
  61. LSH.Parent = nil
  62.  
  63. RW.Name = "RW"
  64. RW.Part0 = Torso
  65. RW.C0 = cf(1.5, 0.5, 0)
  66. RW.C1 = cf(0, 0.5, 0)
  67. RW.Part1 = RightArm
  68. RW.Parent = Torso
  69.  
  70. LW.Name = "LW"
  71. LW.Part0 = Torso
  72. LW.C0 = cf(-1.5, 0.5, 0)
  73. LW.C1 = cf(0, 0.5, 0)
  74. LW.Part1 = LeftArm
  75. LW.Parent = Torso
  76.  
  77. function clerp(a, b, t)
  78. return a:lerp(b, t)
  79. end
  80.  
  81.  
  82. local RbxUtility = LoadLibrary("RbxUtility")
  83. local Create = RbxUtility.Create
  84.  
  85. function RemoveOutlines(part)
  86. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  87. end
  88.  
  89. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  90. local Part = Create("Part"){
  91. Parent = Parent,
  92. Reflectance = Reflectance,
  93. Transparency = Transparency,
  94. CanCollide = false,
  95. Locked = true,
  96. BrickColor = BrickColor.new(tostring(BColor)),
  97. Name = Name,
  98. Size = Size,
  99. Material = Material,
  100. }
  101. RemoveOutlines(Part)
  102. return Part
  103. end
  104.  
  105. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  106. local Msh = Create(Mesh){
  107. Parent = Part,
  108. Offset = OffSet,
  109. Scale = Scale,
  110. }
  111. if Mesh == "SpecialMesh" then
  112. Msh.MeshType = MeshType
  113. Msh.MeshId = MeshId
  114. end
  115. return Msh
  116. end
  117.  
  118. local co1 = 5
  119. local co2 = 7
  120. local co3 = 10
  121. local co4 = 20
  122.  
  123. local cooldown1 = 0
  124. local cooldown2 = 0
  125. local cooldown3 = 0
  126. local cooldown4 = 0
  127.  
  128. local maxEnergy = 100
  129. local Energy = 0--Energy you start out with
  130. local skill1stam = 10--how much stamina is needed for a skill
  131. local skill2stam = 50
  132. local skill3stam = 60
  133. local skill4stam = 100
  134. local recovermana = 5--how much mana per second
  135.  
  136. local skillcolorscheme = BrickColor.new("Dirt brown").Color
  137.  
  138. local scrn = Instance.new('ScreenGui', Player.PlayerGui)
  139. function makeframe(par, trans, pos, size, color)
  140. local frame = Instance.new('Frame', par)
  141. frame.BackgroundTransparency = trans
  142. frame.BorderSizePixel = 0
  143. frame.Position = pos
  144. frame.Size = size
  145. frame.BackgroundColor3 = color
  146. return frame
  147. end
  148.  
  149. function makelabel(par, text)
  150. local label = Instance.new('TextLabel', par)
  151. label.BackgroundTransparency = 1
  152. label.Size = UDim2.new(1, 0, 1, 0)
  153. label.Position = UDim2.new(0, 0, 0, 0)
  154. label.TextColor3 = Color3.new(255, 255, 255)
  155. label.TextStrokeTransparency = 0
  156. label.FontSize = Enum.FontSize.Size32
  157. label.Font = Enum.Font.SourceSansLight
  158. label.BorderSizePixel = 0
  159. label.TextScaled = true
  160. label.Text = text
  161. end
  162. framesk1 = makeframe(scrn, .5, UDim2.new(.8, 0, .93, 0), UDim2.new(.16, 0, .06, 0), skillcolorscheme)
  163. framesk2 = makeframe(scrn, .5, UDim2.new(.8, 0, .86, 0), UDim2.new(.16, 0, .06, 0), skillcolorscheme)
  164. framesk3 = makeframe(scrn, .5, UDim2.new(.8, 0, .79, 0), UDim2.new(.16, 0, .06, 0), skillcolorscheme)
  165. framesk4 = makeframe(scrn, .5, UDim2.new(.8, 0, .72, 0), UDim2.new(.16, 0, .06, 0), skillcolorscheme)
  166. bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  167. bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  168. bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  169. bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  170. text1 = makelabel(framesk1, '[Z] Earthwave')
  171. text2 = makelabel(framesk2, "[X] Charger")
  172. text3 = makelabel(framesk3, "[C] Fury")
  173. text4 = makelabel(framesk4, '[V] Devastation')
  174.  
  175. --[[Credits to SazErenos for his Artificial Heartbeat]]--
  176.  
  177. ArtificialHB = Instance.new("BindableEvent", script)
  178. ArtificialHB.Name = "Heartbeat"
  179.  
  180. script:WaitForChild("Heartbeat")
  181.  
  182. frame = 1 / 30
  183. tf = 0
  184. allowframeloss = false
  185. tossremainder = false
  186. lastframe = tick()
  187. script.Heartbeat:Fire()
  188.  
  189. game:GetService("RunService").Heartbeat:connect(function(s, p)
  190. tf = tf + s
  191. if tf >= frame then
  192. if allowframeloss then
  193. script.Heartbeat:Fire()
  194. lastframe = tick()
  195. else
  196. for i = 1, math.floor(tf / frame) do
  197. script.Heartbeat:Fire()
  198. end
  199. lastframe = tick()
  200. end
  201. if tossremainder then
  202. tf = 0
  203. else
  204. tf = tf - frame * math.floor(tf / frame)
  205. end
  206. end
  207. end)
  208.  
  209. function swait(num)
  210. if num == 0 or num == nil then
  211. ArtificialHB.Event:wait()
  212. else
  213. for i = 0, num do
  214. ArtificialHB.Event:wait()
  215. end
  216. end
  217. end
  218.  
  219.  
  220. function CreateWeld(Parent, Part0, Part1, C0, C1)
  221. local Weld = Create("Weld"){
  222. Parent = Parent,
  223. Part0 = Part0,
  224. Part1 = Part1,
  225. C0 = C0,
  226. C1 = C1,
  227. }
  228. return Weld
  229. end
  230.  
  231. function rayCast(Position, Direction, Range, Ignore)
  232. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  233. end
  234.  
  235. function CreateSound(id, par, vol, pit)
  236. coroutine.resume(coroutine.create(function()
  237. local sou = Instance.new("Sound", par or workspace)
  238. sou.Volume = vol
  239. sou.Pitch = pit or 1
  240. sou.SoundId = id
  241. swait()
  242. sou:play()
  243. game:GetService("Debris"):AddItem(sou, 6)
  244. end))
  245. end
  246.  
  247. local function getclosest(obj, distance)
  248. local last, lastx = distance + 1
  249. for i, v in pairs(workspace:GetChildren()) do
  250. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  251. local t = v.Torso
  252. local dist = (t.Position - obj.Position).magnitude
  253. if dist <= distance then
  254. if dist < last then
  255. last = dist
  256. lastx = v
  257. end
  258. end
  259. end
  260. end
  261. return lastx
  262. end
  263.  
  264. Handle=CreatePart(m,Enum.Material.SmoothPlastic,0.25,1,"Dark stone grey","FakeHandle",Vector3.new(0.505485535, 1.32378638, 0.437194824))
  265. HandleWeld=CreateWeld(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0155639648, 0.026468277, 1.02599454, 1, 0, 0, 0, 0, -1, 0, 1, 0))
  266. FakeHandle=CreatePart(m,Enum.Material.SmoothPlastic,0.25,1,"Dark stone grey","FakeHandle",Vector3.new(0.505485535, 1.32378638, 0.437194824))
  267. FakeHandleWeld=CreateWeld(m,Handle,FakeHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  268. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.651604891, 0.353641689, 0.960422277))
  269. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00848388672, -2.25204468, 3.03001976, -1, 0, 0, 0, 0.715983272, -0.698117495, -0, -0.698117495, -0.715983272))
  270. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  271. Part=CreatePart(m,Enum.Material.SmoothPlastic,0.25,0,"Sand red","Part",Vector3.new(0.785459161, 0.353641689, 0.678900838))
  272. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.33682251, -0.617828369, 1.15732193, 0, 1, -2.98023224e-008, 1, 0, 0, -0, -2.98023224e-008, -1))
  273. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  274. Part=CreatePart(m,Enum.Material.SmoothPlastic,0.25,0,"Sand red","Part",Vector3.new(0.651604891, 0.353641689, 0.678900838))
  275. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.40277863, -3.02360535, 1.15732217, -0.707106829, 0.707106829, -2.10734257e-008, 0.707106829, 0.707106829, -2.10734257e-008, -0, -2.98023224e-008, -1))
  276. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  277. Part=CreatePart(m,Enum.Material.SmoothPlastic,0.25,0,"Sand red","Part",Vector3.new(0.651604891, 0.353641689, 0.678900838))
  278. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.3026886, 1.70986938, 1.15732193, 0.707106829, -0.707106829, -2.10734257e-008, -0.707106829, -0.707106829, -2.10734257e-008, 0, 2.98023224e-008, -1))
  279. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  280. Part=CreatePart(m,Enum.Material.SmoothPlastic,0.25,0,"Sand red","Part",Vector3.new(0.783992589, 0.353641689, 0.678900838))
  281. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.33755493, -0.598022461, 1.16449344, 0, 1, 2.98023224e-008, -1, 0, 0, 0, -2.98023224e-008, 1))
  282. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  283. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.651604891, 0.353641689, 0.960422277))
  284. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00848388672, -2.24703598, 3.03515816, 1, 0, 0, 0, 0.715983272, 0.698117495, 0, -0.698117495, 0.715983272))
  285. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  286. Part=CreatePart(m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.929814219, 1.22773778, 0.619561553))
  287. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0127563477, -3.40548706, 1.14073551, 1, 0, 0, 0, 1, 2.98023224e-008, 0, -2.98023224e-008, 1))
  288. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  289. Part=CreatePart(m,Enum.Material.SmoothPlastic,0.25,0,"Sand red","Part",Vector3.new(0.651604891, 0.353641689, 0.678900838))
  290. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00924682617, -4.0140686, 1.15732217, -1, 0, 0, 0, 1, -2.98023224e-008, -0, -2.98023224e-008, -1))
  291. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  292. Part=CreatePart(m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.929814219, 1.22773778, 0.597561538))
  293. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0127563477, -3.40548706, 1.13656998, -1, 0, 0, 0, 1, -2.98023224e-008, -0, -2.98023224e-008, -1))
  294. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  295. Part=CreatePart(m,Enum.Material.SmoothPlastic,0.25,0,"Sand red","Part",Vector3.new(0.651604891, 0.353641689, 0.773990393))
  296. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00924682617, 2.66007996, 1.11695445, -1, 0, 0, 0, -1, 2.98023224e-008, 0, 2.98023224e-008, 1))
  297. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  298. Part=CreatePart(m,Enum.Material.SmoothPlastic,0.25,0,"Sand red","Part",Vector3.new(0.651604891, 0.353641689, 0.678900838))
  299. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.31669617, 1.69586182, 1.1644932, -0.707106829, -0.707106829, 2.10734257e-008, 0.707106829, -0.707106829, 2.10734257e-008, 0, 2.98023224e-008, 1))
  300. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  301. Part=CreatePart(m,Enum.Material.SmoothPlastic,0.25,0,"Sand red","Part",Vector3.new(0.651604891, 0.353641689, 0.678900838))
  302. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.3026886, 1.70986938, 1.1644932, -0.707106829, 0.707106829, -2.10734257e-008, -0.707106829, -0.707106829, 2.10734257e-008, 0, 2.98023224e-008, 1))
  303. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  304. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.651604891, 0.353641689, 0.982642174))
  305. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00848388672, 2.45775986, -1.71069145, 1, 0, 0, 0, -0.715983272, -0.698117495, 0, 0.698117495, -0.715983272))
  306. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  307. Part=CreatePart(m,Enum.Material.SmoothPlastic,0.25,0,"Sand red","Part",Vector3.new(0.651604891, 0.353641689, 0.678900838))
  308. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.31669617, 1.69586182, 1.15732193, 0.707106829, 0.707106829, 2.10734257e-008, 0.707106829, -0.707106829, -2.10734257e-008, 0, 2.98023224e-008, -1))
  309. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  310. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.651604891, 0.353641689, 0.982642174))
  311. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00848388672, 2.46276665, -1.70555687, -1, 0, 0, 0, -0.715983272, 0.698117495, 0, 0.698117495, 0.715983272))
  312. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  313. Part=CreatePart(m,Enum.Material.SmoothPlastic,0.25,0,"Sand red","Part",Vector3.new(0.651604891, 0.353641689, 0.678900838))
  314. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00924682617, -4.0140686, 1.16449344, 1, 0, 0, 0, 1, 2.98023224e-008, 0, -2.98023224e-008, 1))
  315. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  316. Part=CreatePart(m,Enum.Material.SmoothPlastic,0.25,0,"Sand red","Part",Vector3.new(0.651604891, 0.353641689, 0.773990393))
  317. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00924682617, 2.66007996, 1.10978317, 1, 0, 0, 0, -1, -2.98023224e-008, 0, 2.98023224e-008, -1))
  318. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  319. Part=CreatePart(m,Enum.Material.SmoothPlastic,0.25,0,"Sand red","Part",Vector3.new(0.651604891, 0.353641689, 0.678900838))
  320. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.40277863, -3.02360535, 1.16449344, 0.707106829, -0.707106829, -2.10734257e-008, 0.707106829, 0.707106829, 2.10734257e-008, 0, -2.98023224e-008, 1))
  321. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  322. Part=CreatePart(m,Enum.Material.SmoothPlastic,0.25,0,"Sand red","Part",Vector3.new(0.783992589, 0.353641689, 0.678900838))
  323. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.33755493, -0.598022461, 1.15732193, 0, -1, 2.98023224e-008, -1, 0, 0, -0, -2.98023224e-008, -1))
  324. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  325. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.651604891, 0.53363961, 0.814506233))
  326. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00848388672, -3.28816223, 0.00796890259, -1, 0, 0, 0, 1, 0, 0, 0, -1))
  327. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  328. Part=CreatePart(m,Enum.Material.SmoothPlastic,0.25,0,"Sand red","Part",Vector3.new(0.651604891, 0.353641689, 0.678900838))
  329. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.41677856, -3.00960541, 1.15732217, -0.707106829, -0.707106829, 2.10734257e-008, -0.707106829, 0.707106829, -2.10734257e-008, 0, -2.98023224e-008, -1))
  330. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  331. Part=CreatePart(m,Enum.Material.SmoothPlastic,0.25,0,"Sand red","Part",Vector3.new(0.785459161, 0.353641689, 0.678900838))
  332. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.33682251, -0.617828369, 1.16449344, -0, -1, -2.98023224e-008, 1, 0, 0, 0, -2.98023224e-008, 1))
  333. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  334. Part=CreatePart(m,Enum.Material.SmoothPlastic,0.25,0,"Sand red","Part",Vector3.new(0.651604891, 0.353641689, 0.678900838))
  335. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.41677856, -3.00960541, 1.16449344, 0.707106829, 0.707106829, 2.10734257e-008, -0.707106829, 0.707106829, 2.10734257e-008, 0, -2.98023224e-008, 1))
  336. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  337. Part=CreatePart(m,Enum.Material.SmoothPlastic,0.25,0,"Dark stone grey","Part",Vector3.new(0.505485535, 4.86178637, 0.437194824))
  338. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.35499573, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  339. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  340. Part=CreatePart(m,Enum.Material.SmoothPlastic,0.25,0,"Medium stone grey","Part",Vector3.new(0.505485535, 0.792678058, 0.437194824))
  341. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -2.69285583, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  342. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.5, 1, 1.5))
  343. Part=CreatePart(m,Enum.Material.SmoothPlastic,0.25,0,"Sand red","Part",Vector3.new(0.505485535, 0.317724407, 0.437194824))
  344. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -2.92750549, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  345. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.5, 1, 2))
  346. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.505485535, 0.200000003, 0.437194824))
  347. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.0849323273, -0.0202736855, 1, 0, 0, 0, 0.98192817, -0.189254314, 0, 0.189254314, 0.98192817))
  348. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.5, 1, 1.10000002))
  349. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.505485535, 0.200000003, 0.437194824))
  350. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.297920227, -0.0411686897, 1, 0, 0, 0, 0.99248904, 0.122333705, 0, -0.122333705, 0.99248904))
  351. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.5, 1, 1.10000002))
  352. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.505485535, 0.200000003, 0.437194824))
  353. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.12693405, 0.134458065, 1, 0, 0, 0, 0.99248904, 0.122333705, 0, -0.122333705, 0.99248904))
  354. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.5, 1, 1.10000002))
  355. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.505485535, 0.200000003, 0.437194824))
  356. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.85461044, 0.224159002, 1, 0, 0, 0, 0.99248904, 0.122333705, 0, -0.122333705, 0.99248904))
  357. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.5, 1, 1.10000002))
  358. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.505485535, 0.200000003, 0.437194824))
  359. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.774690628, -0.153215885, 1, 0, 0, 0, 0.98192817, -0.189254314, 0, 0.189254314, 0.98192817))
  360. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.5, 1, 1.10000002))
  361. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.505485535, 0.200000003, 0.437194824))
  362. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.635002136, 0.11848402, 1, 0, 0, 0, 0.98192817, -0.189254314, 0, 0.189254314, 0.98192817))
  363. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.5, 1, 1.10000002))
  364. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.505485535, 0.200000003, 0.437194824))
  365. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.494627, -0.291974545, 1, 0, 0, 0, 0.98192817, -0.189254314, 0, 0.189254314, 0.98192817))
  366. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.5, 1, 1.10000002))
  367. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.505485535, 0.200000003, 0.437194824))
  368. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.429756165, 0.0485243797, 1, 0, 0, 0, 0.99248904, 0.122333705, 0, -0.122333705, 0.99248904))
  369. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.5, 1, 1.10000002))
  370.  
  371. Part=CreatePart(m,Enum.Material.Plastic,0.10000000149012,0,"Dark stone grey","Part",Vector3.new(0.300000012, 0.800000012, 0.300000012))
  372. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.33679962, -1.1673584, -1.15903568, 7.07509798e-006, -1, -1.02181616e-007, 1, 7.07509844e-006, -4.51291817e-006, 4.51291908e-006, -1.02149684e-007, 1))
  373. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1033714",Vector3.new(0, 0, 0),Vector3.new(0.170000002, 1, 0.170000002))
  374. Part=CreatePart(m,Enum.Material.Plastic,0.20000000298023,0,"Sand red","Part",Vector3.new(0.5, 0.5, 0.5))
  375. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00302124023, 1.28483582, -0.00327897072, -1, -0.000214757063, 2.38186044e-006, -0.000214756918, 1, 6.37130361e-005, -2.39554311e-006, 6.37125195e-005, -1))
  376. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.850000024, 0.75, 0.850000024))
  377. Part=CreatePart(m,Enum.Material.Plastic,0.10000000149012,0,"Dark stone grey","Part",Vector3.new(0.300000012, 0.800000012, 0.300000012))
  378. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00355529785, 2.11416054, -1.15905571, -1, -6.97575024e-006, 1.02181218e-007, 6.97575069e-006, -1, 4.51291817e-006, 1.02149734e-007, 4.51291908e-006, 1))
  379. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1033714",Vector3.new(0, 0, 0),Vector3.new(0.170000002, 1, 0.170000002))
  380. Part=CreatePart(m,Enum.Material.Plastic,0.20000000298023,0,"Dark stone grey","Part",Vector3.new(0.5, 0.5, 0.5))
  381. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00444793701, 1.28483582, -0.000190734863, -0.707106173, -0.000107986314, -0.707107365, -0.000212582891, 1, 5.98669576e-005, 0.707107365, 0.000192651234, -0.707106233))
  382. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.949999988, 0.5, 0.949999988))
  383. Part=CreatePart(m,Enum.Material.Plastic,0.10000000149012,0,"Dark stone grey","Part",Vector3.new(0.300000012, 0.800000012, 0.300000012))
  384. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00146484375, -4.53398132, 0.000669956207, -1, -7.06317314e-006, -1.02181616e-007, -7.0631736e-006, 1, 4.51291817e-006, 1.02149741e-007, 4.51291908e-006, -1))
  385. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1033714",Vector3.new(0, 0, 0),Vector3.new(0.215000004, 2, 0.215000004))
  386. Part=CreatePart(m,Enum.Material.Plastic,0.10000000149012,0,"Dark stone grey","Part",Vector3.new(0.300000012, 0.800000012, 0.300000012))
  387. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00357055664, -4.56028175, -1.15905166, 1, 7.06317314e-006, -1.02181616e-007, -7.0631736e-006, 1, -4.51291817e-006, 1.02149741e-007, 4.51291908e-006, 1))
  388. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1033714",Vector3.new(0, 0, 0),Vector3.new(0.170000002, 1, 0.170000002))
  389. Part=CreatePart(m,Enum.Material.Plastic,0.10000000149012,0,"Dark stone grey","Part",Vector3.new(0.300000012, 0.800000012, 0.300000012))
  390. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00355529785, 2.11416245, -1.15817821, 1, 6.97575024e-006, 1.02181218e-007, 6.97575069e-006, -1, -4.51291817e-006, 1.02149734e-007, 4.51291908e-006, -1))
  391. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1033714",Vector3.new(0, 0, 0),Vector3.new(0.170000002, 1, 0.170000002))
  392. Part=CreatePart(m,Enum.Material.Plastic,0.10000000149012,0,"Dark stone grey","Part",Vector3.new(0.300000012, 0.800000012, 0.300000012))
  393. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00357055664, -4.56028366, -1.15817392, -1, -7.06317314e-006, -1.02181616e-007, -7.0631736e-006, 1, 4.51291817e-006, 1.02149741e-007, 4.51291908e-006, -1))
  394. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1033714",Vector3.new(0, 0, 0),Vector3.new(0.170000002, 1, 0.170000002))
  395. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(1.30130839, 0.570941746, 0.533639908))
  396. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.395450592, 0.168457031, -3.28816223, -0.353771091, 0, -0.93533206, -0.93533206, 0, 0.353771091, 0, 1, 0))
  397. Part=CreatePart(m,Enum.Material.Plastic,0.10000000149012,0,"Dark stone grey","Part",Vector3.new(0.300000012, 0.800000012, 0.300000012))
  398. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.33681679, -1.15431213, -1.15904069, -6.98767508e-006, 1, 1.02181218e-007, -1, -6.98767553e-006, 4.51291817e-006, 4.51291908e-006, -1.02149684e-007, 1))
  399. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1033714",Vector3.new(0, 0, 0),Vector3.new(0.170000002, 1, 0.170000002))
  400. Part=CreatePart(m,Enum.Material.Plastic,0.10000000149012,0,"Dark stone grey","Part",Vector3.new(0.300000012, 0.800000012, 0.300000012))
  401. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.33679962, -1.16734314, -1.15815818, -7.07509798e-006, 1, -1.02181616e-007, 1, 7.07509844e-006, 4.51291817e-006, 4.51291908e-006, -1.02149684e-007, -1))
  402. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1033714",Vector3.new(0, 0, 0),Vector3.new(0.170000002, 1, 0.170000002))
  403. Part=CreatePart(m,Enum.Material.Plastic,0.20000000298023,0,"Dark stone grey","Part",Vector3.new(0.300000012, 0.800000012, 0.300000012))
  404. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.33681679, -1.15431213, -1.15816295, 6.98767508e-006, -1, 1.02181218e-007, -1, -6.98767553e-006, -4.51291817e-006, 4.51291908e-006, -1.02149684e-007, -1))
  405. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1033714",Vector3.new(0, 0, 0),Vector3.new(0.170000002, 1, 0.170000002))
  406. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(1.30029905, 0.569891214, 0.533639908))
  407. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.388046265, 0.152572632, -3.28816223, -0.351845443, 0, 0.936058104, 0.936058104, 0, 0.351845443, 0, 1, 0))
  408. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(1.32294869, 0.567779899, 0.533639908))
  409. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.388534546, 0.173995972, -3.28816223, 0.347984225, 0, -0.937500358, -0.937500358, 0, -0.347984254, 0, 1, 0))
  410. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(1.3219558, 0.566737056, 0.533639908))
  411. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.381248474, 0.158065796, -3.28816223, 0.346081376, 0, 0.938204527, 0.938204527, 0, -0.346081376, 0, 1, 0))
  412. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.651607454, 0.608765721, 0.699442625))
  413. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00848388672, 0.4419384, 3.66109848, 1, 8.35569267e-008, -5.07116091e-008, 4.37113883e-008, 0.0817466229, 0.99665314, 8.74227766e-008, -0.99665314, 0.0817466229))
  414. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.651607454, 0.608765721, 0.503385246))
  415. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00848388672, 0.441930771, -3.05968666, -1, -8.35569338e-008, 5.07116091e-008, 4.37113954e-008, 0.0817465335, 0.99665314, -8.74227766e-008, 0.99665314, -0.0817465335))
  416. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.651607454, 0.608765721, 0.503385246))
  417. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00848388672, 0.434783459, -3.0590992, 1, 8.35569338e-008, 5.07116091e-008, 4.37113954e-008, 0.0817465335, -0.99665314, -8.74227766e-008, 0.99665314, 0.0817465335))
  418. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.651607454, 0.608765721, 0.699442625))
  419. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00848388672, 0.434791565, 3.66051102, -1, -8.35569267e-008, -5.07116091e-008, 4.37113883e-008, 0.0817466229, -0.99665314, 8.74227766e-008, -0.99665314, -0.0817466229))
  420. Hitbox=CreatePart(m,Enum.Material.SmoothPlastic,0.25,1,"Dark stone grey","Hitbox",Vector3.new(1.41548562, 1.75178647, 3.32719469))
  421. HitboxWeld=CreateWeld(m,FakeHandle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0950012207, -3.2899971, 0.0750000477, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  422.  
  423.  
  424. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  425. if hit.Parent == nil then
  426. return
  427. end
  428. local h = hit.Parent:FindFirstChild("Humanoid")
  429. for _, v in pairs(hit.Parent:children()) do
  430. if v:IsA("Humanoid") then
  431. h = v
  432. end
  433. end
  434. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  435. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  436. if hit.Parent.DebounceHit.Value == true then
  437. return
  438. end
  439. end
  440. local c = Create("ObjectValue"){
  441. Name = "creator",
  442. Value = game:service("Players").LocalPlayer,
  443. Parent = h,
  444. }
  445. game:GetService("Debris"):AddItem(c, .5)
  446. if HitSound ~= nil and HitPitch ~= nil then
  447. CreateSound(HitSound, hit, 1, HitPitch)
  448. end
  449. local Damage = math.random(minim, maxim)
  450. local blocked = false
  451. local block = hit.Parent:findFirstChild("Block")
  452. if block ~= nil then
  453. if block.className == "IntValue" then
  454. if block.Value > 0 then
  455. blocked = true
  456. block.Value = block.Value - 1
  457. print(block.Value)
  458. end
  459. end
  460. end
  461. if blocked == false then
  462. HitHealth=h.Health
  463. h.Health=h.Health-Damage
  464. if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 and h.Parent.Name~="Hologram" then
  465. print("gained spree")
  466. game.Players.LocalPlayer:FindFirstChild("leaderstats").Spree.Value=game.Players.LocalPlayer.leaderstats.Spree.Value+1
  467. end
  468. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  469. else
  470. h.Health = h.Health - (Damage / 2)
  471. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  472. end
  473. if Type == "Knockdown" then
  474. local hum = hit.Parent.Humanoid
  475. hum.PlatformStand = true
  476. coroutine.resume(coroutine.create(function(HHumanoid)
  477. swait(1)
  478. HHumanoid.PlatformStand = false
  479. end), hum)
  480. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  481. local bodvol = Create("BodyVelocity"){
  482. velocity = angle * knockback,
  483. P = 5000,
  484. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  485. Parent = hit,
  486. }
  487. local rl = Create("BodyAngularVelocity"){
  488. P = 3000,
  489. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  490. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  491. Parent = hit,
  492. }
  493. game:GetService("Debris"):AddItem(bodvol, .5)
  494. game:GetService("Debris"):AddItem(rl, .5)
  495. elseif Type == "Normal" then
  496. local vp = Create("BodyVelocity"){
  497. P = 500,
  498. maxForce = Vector3.new(math.huge, 0, math.huge),
  499. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  500. }
  501. if knockback > 0 then
  502. vp.Parent = hit.Parent.Torso
  503. end
  504. game:GetService("Debris"):AddItem(vp, .5)
  505. elseif Type == "Up" then
  506. local bodyVelocity = Create("BodyVelocity"){
  507. velocity = vt(0, 20, 0),
  508. P = 5000,
  509. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  510. Parent = hit,
  511. }
  512. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  513. elseif Type == "DarkUp" then
  514. coroutine.resume(coroutine.create(function()
  515. for i = 0,1,0.1 do
  516. swait()
  517. BlockEffect(BrickColor.new("Black"), hit.Parent.Torso.CFrame,5, 5, 5, 1, 1, 1, .08,1)
  518. end
  519. end))
  520. local bodyVelocity = Create("BodyVelocity"){
  521. velocity = vt(0, 20, 0),
  522. P = 5000,
  523. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  524. Parent = hit,
  525. }
  526. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  527. elseif Type == "Snare" then
  528. local bp = Create("BodyPosition"){
  529. P = 2000,
  530. D = 100,
  531. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  532. position = hit.Parent.Torso.Position,
  533. Parent = hit.Parent.Torso,
  534. }
  535. game:GetService("Debris"):AddItem(bp, 1)
  536. elseif Type == "Freeze" then
  537. local BodPos = Create("BodyPosition"){
  538. P = 50000,
  539. D = 1000,
  540. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  541. position = hit.Parent.Torso.Position,
  542. Parent = hit.Parent.Torso,
  543. }
  544. local BodGy = Create("BodyGyro") {
  545. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  546. P = 20e+003,
  547. Parent = hit.Parent.Torso,
  548. cframe = hit.Parent.Torso.CFrame,
  549. }
  550. hit.Parent.Torso.Anchored = true
  551. coroutine.resume(coroutine.create(function(Part)
  552. swait(1.5)
  553. Part.Anchored = false
  554. end), hit.Parent.Torso)
  555. game:GetService("Debris"):AddItem(BodPos, 3)
  556. game:GetService("Debris"):AddItem(BodGy, 3)
  557. end
  558. local debounce = Create("BoolValue"){
  559. Name = "DebounceHit",
  560. Parent = hit.Parent,
  561. Value = true,
  562. }
  563. game:GetService("Debris"):AddItem(debounce, Delay)
  564. c = Instance.new("ObjectValue")
  565. c.Name = "creator"
  566. c.Value = Player
  567. c.Parent = h
  568. game:GetService("Debris"):AddItem(c, .5)
  569. end
  570. end
  571. function MagniCamShake(Part,magni,cam,intens)
  572. for _,c in pairs(workspace:children()) do
  573. if game.Players:GetPlayerFromCharacter(c)~=nil then
  574. if c:findFirstChild("Torso")~=nil then
  575. local targ=c.Torso.Position-Part.Position
  576. local mag=targ.magnitude
  577. if mag<=magni then
  578. camshake=script[cam]:Clone()
  579. camshake.Intensity.Value=mag/intens
  580. camshake.Parent=game.Players:GetPlayerFromCharacter(c).Backpack
  581. camshake.Disabled=false
  582. end
  583. end
  584. end
  585. end
  586. end
  587. function ShowDamage(Pos, Text, Time, Color)
  588. local Rate = (1 / 30)
  589. local Pos = (Pos or Vector3.new(0, 0, 0))
  590. local Text = (Text or "")
  591. local Time = (Time or 2)
  592. local Color = (Color or Color3.new(1, 0, 1))
  593. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  594. EffectPart.Anchored = true
  595. local BillboardGui = Create("BillboardGui"){
  596. Size = UDim2.new(3, 0, 3, 0),
  597. Adornee = EffectPart,
  598. Parent = EffectPart,
  599. }
  600. local TextLabel = Create("TextLabel"){
  601. BackgroundTransparency = 1,
  602. Size = UDim2.new(1, 0, 1, 0),
  603. Text = Text,
  604. TextColor3 = Color,
  605. TextScaled = true,
  606. Font = Enum.Font.ArialBold,
  607. Parent = BillboardGui,
  608. }
  609. game.Debris:AddItem(EffectPart, (Time + 0.1))
  610. EffectPart.Parent = game:GetService("Workspace")
  611. delay(0, function()
  612. local Frames = (Time / Rate)
  613. for Frame = 1, Frames do
  614. wait(Rate)
  615. local Percent = (Frame / Frames)
  616. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  617. TextLabel.TextTransparency = Percent
  618. end
  619. if EffectPart and EffectPart.Parent then
  620. EffectPart:Destroy()
  621. end
  622. end)
  623. end
  624. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  625. for _,c in pairs(workspace:children()) do
  626. local hum=c:findFirstChild("Humanoid")
  627. if hum~=nil then
  628. local head=c:findFirstChild("Torso")
  629. if head~=nil then
  630. local targ=head.Position-Part.Position
  631. local mag=targ.magnitude
  632. if mag<=magni and c.Name~=Player.Name then
  633. --Damagefunc(head,mindam,maxdam,knock,Type,RootPart,.2,1,nil,1)
  634. Damagefunc(head, head, mindam,maxdam, knock, Type, RootPart, .1, "http://www.roblox.com/asset/?id=231917784", 1)
  635. end
  636. end
  637. end
  638. end
  639. end
  640.  
  641. --[[Effect Functions]]--
  642.  
  643. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  644. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  645. prt.Anchored = true
  646. prt.CFrame = cframe
  647. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  648. game:GetService("Debris"):AddItem(prt, 10)
  649. if Type == 1 or Type == nil then
  650. table.insert(Effects, {
  651. prt,
  652. "Block1",
  653. delay,
  654. x3,
  655. y3,
  656. z3,
  657. msh
  658. })
  659. elseif Type == 2 then
  660. table.insert(Effects, {
  661. prt,
  662. "Block2",
  663. delay,
  664. x3,
  665. y3,
  666. z3,
  667. msh
  668. })
  669. end
  670. end
  671.  
  672. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  673. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  674. prt.Anchored = true
  675. prt.CFrame = cframe
  676. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  677. game:GetService("Debris"):AddItem(prt, 10)
  678. table.insert(Effects, {
  679. prt,
  680. "Cylinder",
  681. delay,
  682. x3,
  683. y3,
  684. z3,
  685. msh
  686. })
  687. end
  688.  
  689. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  690. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  691. prt.Anchored = true
  692. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  693. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  694. game:GetService("Debris"):AddItem(prt, 10)
  695. table.insert(Effects, {
  696. prt,
  697. "Cylinder",
  698. delay,
  699. x3,
  700. y3,
  701. z3,
  702. msh
  703. })
  704. end
  705.  
  706. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  707. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  708. prt.Anchored = true
  709. prt.CFrame = cframe
  710. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  711. game:GetService("Debris"):AddItem(prt, 10)
  712. table.insert(Effects, {
  713. prt,
  714. "Cylinder",
  715. delay,
  716. x3,
  717. y3,
  718. z3,
  719. msh
  720. })
  721. end
  722.  
  723. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  724. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  725. prt.Anchored = true
  726. prt.CFrame = cframe
  727. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  728. game:GetService("Debris"):AddItem(prt, 10)
  729. table.insert(Effects, {
  730. prt,
  731. "Cylinder",
  732. delay,
  733. x3,
  734. y3,
  735. z3,
  736. msh
  737. })
  738. end
  739.  
  740. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  741. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  742. prt.Anchored = true
  743. prt.CFrame = cframe
  744. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  745. game:GetService("Debris"):AddItem(prt, 10)
  746. table.insert(Effects, {
  747. prt,
  748. "Cylinder",
  749. delay,
  750. x3,
  751. y3,
  752. z3,
  753. msh
  754. })
  755. end
  756.  
  757. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  758. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  759. prt.Anchored = true
  760. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  761. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  762. local num = math.random(10, 50) / 1000
  763. game:GetService("Debris"):AddItem(prt, 10)
  764. table.insert(Effects, {
  765. prt,
  766. "SAccessoryter",
  767. num,
  768. prt.CFrame,
  769. math.random() - math.random(),
  770. 0,
  771. math.random(50, 100) / 100
  772. })
  773. end
  774. --[[ V = The CFraming of the part]]--
  775. --[[EXAMPLE: ExampleWeld.C0 = clerp(ExampleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) ]]--
  776. --[[ ^ = The Rotations of the part]]--
  777.  
  778. --[[Attack Function]]--
  779.  
  780. function attackone()
  781. attack = true
  782. local con = Hitbox.Touched:connect(function(hit)
  783. Damagefunc(Hitbox, hit, 8, 13, math.random(1, 5), "Normal", RootPart, .2, "rbxassetid://199149221", .8)
  784. end)
  785. for i = 0, 1, 0.1 do
  786. swait()
  787. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(10), math.rad(80)), .3)
  788. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-20), math.rad(0), math.rad(-80)), .3)
  789. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -0.5) * angles(math.rad(50), math.rad(0), math.rad(-80)), .3)
  790. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.4, 0.5) * angles(math.rad(70), math.rad(0), math.rad(-100)), .3)
  791. RH.C0 = clerp(RH.C0, cf(1, -1+.1, 0) * RHCF * angles(math.rad(0), math.rad(-30), math.rad(20)), .3)
  792. LH.C0 = clerp(LH.C0, cf(-1, -1.2, 0.25) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  793. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(-30), math.rad(90)), .3)
  794. end
  795. for i = 0, 1, 0.5 do
  796. swait()
  797. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .6)
  798. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .6)
  799. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.5) * angles(math.rad(70), math.rad(0), math.rad(0)), .3)
  800. LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.5, 0.5) * angles(math.rad(50), math.rad(0), math.rad(0)), .3)
  801. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  802. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  803. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), .3)
  804. end
  805. CreateSound("rbxassetid://231917950",Torso,1,1.8)
  806. for i = 0, 1, 0.1 do
  807. swait()
  808. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(5), math.rad(-50)), .6)
  809. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(50)), .6)
  810. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), .3)
  811. LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.5, 0.5) * angles(math.rad(50), math.rad(0), math.rad(0)), .3)
  812. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(10)), .3)
  813. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(-10)), .3)
  814. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(-80), math.rad(90)), .3)
  815. end
  816. con:disconnect()
  817. attack = false
  818. end
  819.  
  820. function earthquake()
  821. attack = true
  822. local con = Hitbox.Touched:connect(function(hit)
  823. Damagefunc(Hitbox, hit, 8, 13, math.random(1, 5), "Normal", RootPart, .2, "rbxassetid://199149221", .8)
  824. end)
  825. for i = 0, 1, 0.1 do
  826. swait()
  827. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(10), math.rad(80)), .3)
  828. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-20), math.rad(0), math.rad(-80)), .3)
  829. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -0.5) * angles(math.rad(50), math.rad(0), math.rad(-80)), .3)
  830. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.4, 0.5) * angles(math.rad(70), math.rad(0), math.rad(-100)), .3)
  831. RH.C0 = clerp(RH.C0, cf(1, -1+.1, 0) * RHCF * angles(math.rad(0), math.rad(-30), math.rad(20)), .3)
  832. LH.C0 = clerp(LH.C0, cf(-1, -1.2, 0.25) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  833. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(-30), math.rad(90)), .3)
  834. end
  835. Humanoid.JumpPower=200
  836. Humanoid.Jump=true
  837. for i = 0, 1, 0.1 do
  838. swait()
  839. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * angles(math.rad(-20), math.rad(0), math.rad(0)), .3)
  840. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  841. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -1) * angles(math.rad(170), math.rad(0), math.rad(-30)), .3)
  842. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -1) * angles(math.rad(170), math.rad(0), math.rad(30)), .3)
  843. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  844. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  845. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(-20), math.rad(0)), .3)
  846. end
  847. CreateSound("rbxassetid://231917950",Torso,1,1.8)
  848. for i = 0, 1, 0.08 do
  849. swait()
  850. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * angles(math.rad(-20), math.rad(0), math.rad(0)), .3)
  851. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  852. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -1) * angles(math.rad(170), math.rad(0), math.rad(-30)), .3)
  853. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -1) * angles(math.rad(170), math.rad(0), math.rad(30)), .3)
  854. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  855. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  856. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(-20), math.rad(0)), .3)
  857. end
  858. CreateSound("rbxassetid://231917950",Torso,1,1.3)
  859. --SlashEffect(BrickColor.new("White"),RootPart.CFrame*cf(0,.5,-5)*angles(math.rad(90),0,0),.001,.1,.1,0,.002,.002,.07)
  860. for i = 0, 1, 0.1 do
  861. swait()
  862. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * angles(math.rad(20), math.rad(0), math.rad(0)), .5)
  863. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-20), math.rad(0), math.rad(0)), .5)
  864. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -1) * angles(math.rad(20), math.rad(0), math.rad(-30)), .3)
  865. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -1) * angles(math.rad(20), math.rad(0), math.rad(30)), .3)
  866. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  867. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  868. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(-30), math.rad(-20), math.rad(0)), .3)
  869. end
  870. if RootPart.Velocity.y < -1 and hit == nil then
  871. hit=nil
  872. for i=1,1 do
  873. if hit==nil then
  874. swait()
  875. end
  876. hit,pos=rayCast(RootPart.Position,RootPart.CFrame.lookVector,6,Character)
  877. end
  878. local hit=nil
  879. while hit==nil do
  880. swait()
  881. hit,pos=rayCast(Hitbox.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,10,Character)
  882. end
  883. hit,pos=rayCast(Hitbox.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,10,Character)
  884. if hit~=nil then
  885. local ref=CreatePart(effect,"SmoothPlastic",0,0,BrickColor.new("Black"),"Effect",vt())--part(3,effect,0,1,BrickColor.new("Black"),"Effect",vt())
  886. ref.Anchored=true
  887. ref.CFrame=cf(pos)
  888. game:GetService("Debris"):AddItem(ref,3)
  889. for i=1,30 do
  890. Col=hit.BrickColor
  891. local groundpart=CreatePart(effect,hit.Material,0,0,Col,"Ground",vt(math.random(100,500)/100,math.random(100,500)/100,math.random(150,700)/100))
  892. groundpart.Anchored=true
  893. groundpart.CanCollide=true
  894. groundpart.CFrame=cf(pos)*cf(math.random(-3000,3000)/100,0,math.random(-3000,3000)/100)*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  895. game:GetService("Debris"):AddItem(groundpart,5)
  896. end
  897. CreateSound("http://roblox.com/asset/?id=157878578",ref,1,.7)
  898. WaveEffect(hit.BrickColor,cf(pos),1,1,1,2,2,2,0.05)
  899. WaveEffect(hit.BrickColor,cf(pos),1,1,1,1,3,1,0.05)
  900. MagniDamage(ref,20,20,33,math.random(10,20),"Knockdown")
  901. MagniCamShake(ref,20,"CamShake1",.1)
  902. end
  903. end
  904. Humanoid.JumpPower=50
  905. con:disconnect()
  906. attack = false
  907. end
  908.  
  909. function attacktwo()
  910. attack = true
  911. local con = Hitbox.Touched:connect(function(hit)
  912. Damagefunc(Hitbox, hit, 8, 13, math.random(1, 5), "Normal", RootPart, .2, "rbxassetid://199149221", .8)
  913. end)
  914. for i = 0, 1, 0.1 do
  915. swait()
  916. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(-80)), .3)
  917. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30), math.rad(0), math.rad(80)), .3)
  918. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), .3)
  919. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.4, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), .3)
  920. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  921. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(-10)), .3)
  922. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(40), math.rad(90)), .3)
  923. end
  924. for i = 0, 1, 0.5 do
  925. swait()
  926. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  927. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  928. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), .3)
  929. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  930. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  931. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(0)), .3)
  932. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(-60), math.rad(90)), .5)
  933. end
  934. CreateSound("rbxassetid://231917950",Torso,1,1.5)
  935. for i = 0, 1, 0.1 do
  936. swait()
  937. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .5)
  938. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-90)), .5)
  939. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), .3)
  940. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  941. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  942. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(0)), .3)
  943. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(-60), math.rad(90)), .5)
  944. end
  945. con:disconnect()
  946. attack = false
  947. end
  948.  
  949. function attackthree()
  950. attack = true
  951. local con = Hitbox.Touched:connect(function(hit)
  952. Damagefunc(Hitbox, hit, 8, 13, math.random(1, 5), "Normal", RootPart, .2, "rbxassetid://199149221", .8)
  953. end)
  954. for i = 0, 1, 0.1 do
  955. swait()
  956. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * angles(math.rad(-20), math.rad(0), math.rad(0)), .3)
  957. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  958. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -1) * angles(math.rad(170), math.rad(0), math.rad(-30)), .3)
  959. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -1) * angles(math.rad(170), math.rad(0), math.rad(30)), .3)
  960. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  961. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  962. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(-20), math.rad(0)), .3)
  963. end
  964. CreateSound("rbxassetid://231917950",Torso,1,1.3)
  965. --SlashEffect(BrickColor.new("White"),RootPart.CFrame*cf(0,.5,-5)*angles(math.rad(90),0,0),.001,.1,.1,0,.002,.002,.07)
  966. for i = 0, 1, 0.1 do
  967. swait()
  968. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * angles(math.rad(20), math.rad(0), math.rad(0)), .5)
  969. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-20), math.rad(0), math.rad(0)), .5)
  970. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -1) * angles(math.rad(20), math.rad(0), math.rad(-30)), .3)
  971. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -1) * angles(math.rad(20), math.rad(0), math.rad(30)), .3)
  972. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  973. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  974. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(-30), math.rad(-20), math.rad(0)), .3)
  975. end
  976. con:disconnect()
  977. attack = false
  978. end
  979.  
  980. function spin()
  981. attack = true
  982. local con = Hitbox.Touched:connect(function(hit)
  983. Damagefunc(Hitbox, hit, 8, 13, math.random(1, 5), "Normal", RootPart, .2, "rbxassetid://199149221", .8)
  984. end)
  985. CreateSound("rbxassetid://231917950",Torso,1,2)
  986. for i = 0, 1, 0.1 do
  987. swait()
  988. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(10), math.rad(80)), .3)
  989. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-20), math.rad(0), math.rad(-80)), .3)
  990. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -0.5) * angles(math.rad(50), math.rad(0), math.rad(-80)), .3)
  991. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.4, 0.5) * angles(math.rad(70), math.rad(0), math.rad(-100)), .3)
  992. RH.C0 = clerp(RH.C0, cf(1, -1+.1, 0) * RHCF * angles(math.rad(0), math.rad(-30), math.rad(20)), .3)
  993. LH.C0 = clerp(LH.C0, cf(-1, -1.2, 0.25) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  994. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(-30), math.rad(90)), .3)
  995. end
  996. for i = 1,10 do
  997. CreateSound("rbxassetid://231917950",Torso,1,1.5)
  998. for i = 0, 1, 0.1 do
  999. swait()
  1000. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * angles(math.rad(0), math.rad(0), math.rad(0-360*i)), .5)
  1001. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .5)
  1002. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -1) * angles(math.rad(80), math.rad(0), math.rad(-40)), .3)
  1003. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -1) * angles(math.rad(80), math.rad(0), math.rad(40)), .3)
  1004. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  1005. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1006. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(-90), math.rad(60), math.rad(0)), .3)
  1007. end
  1008. end
  1009. con:disconnect()
  1010. attack = false
  1011. end
  1012. local boop=false
  1013. function charger()
  1014. attack = true
  1015. for i = 0, 1, 0.1 do
  1016. swait()
  1017. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(10), math.rad(70)), .3)
  1018. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-70)), .3)
  1019. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -0.5) * angles(math.rad(50), math.rad(0), math.rad(-50)), .3)
  1020. LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.5, 0.5) * angles(math.rad(50), math.rad(0), math.rad(-50)), .3)
  1021. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-30), math.rad(20)), .3)
  1022. LH.C0 = clerp(LH.C0, cf(-1, -1.2, 0.25) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  1023. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  1024. end
  1025. Torso.Velocity=RootPart.CFrame.lookVector*150
  1026. WaveEffect(BrickColor.new("White"),RootPart.CFrame*angles(1.57,0,0),1,1,1,.7,.7,.7,0.05)
  1027. local con = RightArm.Touched:connect(function(hit)
  1028. if boop == true then return end
  1029. boop = true
  1030. hit=nil
  1031. for i=1,1 do
  1032. if hit==nil then
  1033. swait()
  1034. end
  1035. hit,pos=rayCast(RootPart.Position,RootPart.CFrame.lookVector,6,Character)
  1036. end
  1037. local hit=nil
  1038. while hit==nil do
  1039. swait()
  1040. hit,pos=rayCast(Hitbox.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,10,Character)
  1041. end
  1042. hit,pos=rayCast(Hitbox.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,10,Character)
  1043. if hit~=nil then
  1044. local ref=CreatePart(effect,"SmoothPlastic",0,0,BrickColor.new("Black"),"Effect",vt())--part(3,effect,0,1,BrickColor.new("Black"),"Effect",vt())
  1045. ref.Anchored=true
  1046. ref.CFrame=cf(pos)
  1047. game:GetService("Debris"):AddItem(ref,3)
  1048. for i=1,10 do
  1049. Col=hit.BrickColor
  1050. local groundpart=CreatePart(effect,hit.Material,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  1051. groundpart.Anchored=true
  1052. groundpart.CanCollide=true
  1053. groundpart.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1054. game:GetService("Debris"):AddItem(groundpart,5)
  1055. end
  1056. CreateSound("http://roblox.com/asset/?id=157878578",ref,.6,1.2)
  1057. WaveEffect(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  1058. MagniDamage(ref,9,9,13,math.random(10,20),"Knockdown")
  1059. MagniCamShake(ref,5,"CamShake1",.05)
  1060. end
  1061. end)
  1062. for i = 0, 1, 0.1 do
  1063. swait()
  1064. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(30), math.rad(0), math.rad(70)), .3)
  1065. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(0), math.rad(-70)), .3)
  1066. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -0.5) * angles(math.rad(50), math.rad(0), math.rad(-50)), .3)
  1067. LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.5, 0.5) * angles(math.rad(50), math.rad(0), math.rad(-50)), .3)
  1068. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-30), math.rad(20)), .3)
  1069. LH.C0 = clerp(LH.C0, cf(-1, -1.2, 0.25) * LHCF * angles(math.rad(-30), math.rad(0), math.rad(-10)), .3)
  1070. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  1071. end
  1072. con:disconnect()
  1073. boop=false
  1074. attack=false
  1075. end
  1076.  
  1077. function earthwave()
  1078. attack = true
  1079.  
  1080. for i = 0, 1, 0.05 do
  1081. swait()
  1082. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * angles(math.rad(-20), math.rad(0), math.rad(0)), .3)
  1083. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  1084. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -1) * angles(math.rad(170), math.rad(0), math.rad(-30)), .3)
  1085. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -1) * angles(math.rad(170), math.rad(0), math.rad(30)), .3)
  1086. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1087. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  1088. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(-20), math.rad(0)), .3)
  1089. end
  1090. local con = Hitbox.Touched:connect(function(hit)
  1091. Damagefunc(Hitbox, hit, 8, 13, math.random(1, 5), "Normal", RootPart, .2, "rbxassetid://199149221", .8)
  1092. end)
  1093. CreateSound("rbxassetid://231917950",Torso,1,1)
  1094. coroutine.resume(coroutine.create(function()
  1095. hit=nil
  1096. for i=1,1 do
  1097. if hit==nil then
  1098. swait()
  1099. end
  1100. hit,pos=rayCast(RootPart.Position,RootPart.CFrame.lookVector,6,Character)
  1101. end
  1102. local hit=nil
  1103. while hit==nil do
  1104. swait()
  1105. hit,pos=rayCast(Hitbox.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,10,Character)
  1106. end
  1107. hit,pos=rayCast(Hitbox.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,10,Character)
  1108. if hit~=nil then
  1109. local ref=CreatePart(effect,"SmoothPlastic",0,0,BrickColor.new("Black"),"Effect",vt())--part(3,effect,0,1,BrickColor.new("Black"),"Effect",vt())
  1110. ref.Anchored=true
  1111. ref.CFrame=cf(pos)
  1112. game:GetService("Debris"):AddItem(ref,3)
  1113. for i=1,10 do
  1114. Col=hit.BrickColor
  1115. local groundpart=CreatePart(effect,hit.Material,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  1116. groundpart.Anchored=true
  1117. groundpart.CanCollide=true
  1118. groundpart.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1119. game:GetService("Debris"):AddItem(groundpart,5)
  1120. end
  1121. CreateSound("http://roblox.com/asset/?id=157878578",ref,.6,1.2)
  1122. WaveEffect(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  1123. MagniDamage(ref,9,9,13,math.random(10,20),"Knockdown")
  1124. MagniCamShake(ref,9,"CamShake1",.01)
  1125. end
  1126.  
  1127. end))
  1128. for i = 0, 1, 0.1 do
  1129. swait()
  1130. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * angles(math.rad(20), math.rad(0), math.rad(0)), .5)
  1131. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-20), math.rad(0), math.rad(0)), .5)
  1132. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -1) * angles(math.rad(20), math.rad(0), math.rad(-30)), .3)
  1133. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -1) * angles(math.rad(20), math.rad(0), math.rad(30)), .3)
  1134. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  1135. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1136. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(-30), math.rad(-20), math.rad(0)), .3)
  1137. end
  1138. con:disconnect()
  1139. attack = false
  1140. end
  1141. --[[Attacks]]--
  1142. function ob1u()
  1143. end
  1144. function ob1d()
  1145. if attack == false and attacktype == 1 then
  1146. attacktype = 2
  1147. attackone()
  1148. elseif attack == false and attacktype == 2 then
  1149. attacktype = 3
  1150. attacktwo()
  1151. elseif attack == false and attacktype == 3 then
  1152. attacktype = 1
  1153. attackthree()
  1154. end
  1155. end
  1156.  
  1157. function key(k)
  1158. k = k:lower()
  1159. if attack == false and cooldown1 >= co1 and k == 'z' then
  1160. cooldown1=0
  1161. earthwave()
  1162. elseif attack == false and cooldown2 >= co2 and k == 'x' then
  1163. cooldown2 = 0
  1164. charger()
  1165. elseif attack == false and cooldown3 >= co3 and k == 'c' then
  1166. cooldown3 = 0
  1167. spin()
  1168. elseif attack == false and cooldown4 >= co4 and k == 'v' then
  1169. cooldown4 = 0
  1170. earthquake()
  1171. end
  1172. end
  1173.  
  1174.  
  1175. Bin=script.Parent
  1176.  
  1177. function ds(mouse)
  1178. end
  1179.  
  1180. function s(mouse)
  1181. print("Selected")
  1182. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1183. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1184. mouse.KeyDown:connect(key)
  1185.  
  1186. end
  1187.  
  1188. Bin.Selected:connect(s)
  1189. Bin.Deselected:connect(ds)
  1190.  
  1191. function updateskills()
  1192. if cooldown1 <= co1 then
  1193. cooldown1 = cooldown1 + 1 / 30
  1194. end
  1195. if cooldown2 <= co2 then
  1196. cooldown2 = cooldown2 + 1 / 30
  1197. end
  1198. if cooldown3 <= co3 then
  1199. cooldown3 = cooldown3 + 1 / 30
  1200. end
  1201. if cooldown4 <= co4 then
  1202. cooldown4 = cooldown4 + 1 / 30
  1203. end
  1204.  
  1205. end
  1206. --[[ Movement Detection ]]--
  1207.  
  1208. while true do
  1209. swait()
  1210. updateskills()
  1211. bar4:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), 'Out', 'Quad', .5)
  1212. bar3:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), 'Out', 'Quad', .5)
  1213. bar1:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), 'Out', 'Quad', .5)
  1214. bar2:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), 'Out', 'Quad', .5)
  1215. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1216. velocity = RootPart.Velocity.y
  1217. sine = sine + change
  1218. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1219. if equipped == true or equipped == false then
  1220. if RootPart.Velocity.y > 1 and hit == nil then
  1221. Anim = "Jump"
  1222. if attack == false then
  1223. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0-.1* math.cos(sine / 9)) * angles(math.rad(0), math.rad(10), math.rad(40)), .3)
  1224. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
  1225. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3-.1* math.cos(sine / 9), -0.5) * angles(math.rad(50), math.rad(0), math.rad(-30)), .3)
  1226. LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.5-.1* math.cos(sine / 9), 0.5) * angles(math.rad(50), math.rad(0), math.rad(-30)), .3)
  1227. RH.C0 = clerp(RH.C0, cf(1, -1+.1* math.cos(sine / 9), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1228. LH.C0 = clerp(LH.C0, cf(-1, -1.2+.1* math.cos(sine / 9), 0.25) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-0)), .3)
  1229. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  1230. end
  1231. elseif RootPart.Velocity.y < -1 and hit == nil then
  1232. Anim = "Fall"
  1233. if attack == false then
  1234. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1235. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(0), math.rad(0)), .3)
  1236. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1237. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  1238. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(30)), .3)
  1239. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1240. end
  1241. elseif Torsovelocity < 1 and hit ~= nil then
  1242. Anim = "Idle"
  1243. if attack == false then
  1244. change = 1
  1245. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0-.1* math.cos(sine / 9)) * angles(math.rad(20), math.rad(10), math.rad(40)), .3)
  1246. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-20), math.rad(0), math.rad(-40)), .3)
  1247. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3-.1* math.cos(sine / 9), -0.5) * angles(math.rad(50), math.rad(0), math.rad(-30)), .3)
  1248. LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.5-.1* math.cos(sine / 9), 0.5) * angles(math.rad(50), math.rad(0), math.rad(-30)), .3)
  1249. RH.C0 = clerp(RH.C0, cf(1, -1+.1* math.cos(sine / 9), 0) * RHCF * angles(math.rad(0), math.rad(-30), math.rad(20)), .3)
  1250. LH.C0 = clerp(LH.C0, cf(-1, -1.2+.1* math.cos(sine / 9), 0.25) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  1251. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  1252. end
  1253. elseif Torsovelocity > 2 and hit ~= nil then
  1254. Anim = "Walk"
  1255. if attack == false then
  1256. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0-.1* math.cos(sine / 9)) * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  1257. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-20), math.rad(0), math.rad(0)), .3)
  1258. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.3-.1* math.cos(sine / 9), 0) * angles(math.rad(50), math.rad(0), math.rad(-30)), .3)
  1259. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5-.1* math.cos(sine / 9), 0) * angles(math.rad(50), math.rad(0), math.rad(-30)), .3)
  1260. RH.C0 = clerp(RH.C0, cf(1, -1, 0- .5 * math.cos(sine /5)) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0+55 * math.cos(sine / 5))), .3)
  1261. LH.C0 = clerp(LH.C0, cf(-1, -1, 0+ .5 * math.cos(sine / 5)) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0+55 * math.cos(sine / 5))), .3)
  1262. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(-20), math.rad(90)), .3)
  1263. end
  1264. end
  1265. end
  1266. if #Effects > 0 then
  1267. for e = 1, #Effects do
  1268. if Effects[e] ~= nil then
  1269. local Thing = Effects[e]
  1270. if Thing ~= nil then
  1271. local Part = Thing[1]
  1272. local Mode = Thing[2]
  1273. local Delay = Thing[3]
  1274. local IncX = Thing[4]
  1275. local IncY = Thing[5]
  1276. local IncZ = Thing[6]
  1277. if Thing[1].Transparency <= 1 then
  1278. if Thing[2] == "Block1" then
  1279. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1280. Mesh = Thing[1].Mesh
  1281. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1282. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1283. elseif Thing[2] == "Block2" then
  1284. Thing[1].CFrame = Thing[1].CFrame
  1285. Mesh = Thing[7]
  1286. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1287. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1288. elseif Thing[2] == "Cylinder" then
  1289. Mesh = Thing[1].Mesh
  1290. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1291. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1292. elseif Thing[2] == "Blood" then
  1293. Mesh = Thing[7]
  1294. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  1295. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1296. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1297. elseif Thing[2] == "Elec" then
  1298. Mesh = Thing[1].Mesh
  1299. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1300. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1301. elseif Thing[2] == "Disappear" then
  1302. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1303. elseif Thing[2] == "SAccessoryter" then
  1304. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1305. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1306. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1307. Thing[6] = Thing[6] + Thing[5]
  1308. end
  1309. else
  1310. Part.Parent = nil
  1311. table.remove(Effects, e)
  1312. end
  1313. end
  1314. end
  1315. end
  1316. end
  1317. end
  1318. --[[
  1319. Copyrighted (C) Qaeo 2016
  1320. ]]
Add Comment
Please, Sign In to add comment