Advertisement
memberhero

tremor from black magic

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