Advertisement
lolz3456

Untitled

Sep 1st, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 69.52 KB | None | 0 0
  1. -- Gaster <3
  2. -- Condolences To Asriel And Fang (sexy Mofo's)
  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. vt = Vector3.new
  27. local idle = 0
  28. local attacktype = 1
  29. local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  30. local velocity = RootPart.Velocity.y
  31. local sine = 0
  32. local change = 1
  33. local mana = 100
  34. local mananum = 0
  35. local it = Instance.new
  36. xenabled = true
  37. cenabled = true
  38. venabled = true
  39. zenabled = true
  40. local grabbed = false
  41. local cf = CFrame.new
  42. local mr = math.rad
  43. local angles = CFrame.Angles
  44. local ud = UDim2.new
  45. local c3 = Color3.new
  46. local NeckCF = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  47. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  48. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  49. local LHCF = (CFrame.fromEulerAnglesXYZ(0, -1.6, 0))
  50. RSH = nil
  51. RW = Instance.new("Weld")
  52. LW = Instance.new("Weld")
  53. RH = Torso["Right Hip"]
  54. LH = Torso["Left Hip"]
  55. RSH = Torso["Right Shoulder"]
  56. LSH = Torso["Left Shoulder"]
  57. RSH.Parent = nil
  58. LSH.Parent = nil
  59. RW.Name = "RW"
  60. RW.Part0 = Torso
  61. RW.C0 = cf(1.5, 0.5, 0)
  62. RW.C1 = cf(0, 0.5, 0)
  63. RW.Part1 = RightArm
  64. RW.Parent = Torso
  65. LW.Name = "LW"
  66. LW.Part0 = Torso
  67. LW.C0 = cf(-1.5, 0.5, 0)
  68. LW.C1 = cf(0, 0.5, 0)
  69. LW.Part1 = LeftArm
  70. LW.Parent = Torso
  71. clerp = function(a, b, t)
  72. return a:lerp(b, t)
  73. end
  74.  
  75. local RbxUtility = LoadLibrary("RbxUtility")
  76. local Create = RbxUtility.Create
  77. RemoveOutlines = function(part)
  78. part.TopSurface = 10
  79. end
  80.  
  81. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  82. 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})
  83. RemoveOutlines(Part)
  84. return Part
  85. end
  86.  
  87. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  88. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  89. if Mesh == "SpecialMesh" then
  90. Msh.MeshType = MeshType
  91. Msh.MeshId = MeshId
  92. end
  93. return Msh
  94. end
  95.  
  96. ArtificialHB = Instance.new("BindableEvent", script)
  97. ArtificialHB.Name = "Heartbeat"
  98. script:WaitForChild("Heartbeat")
  99. frame = 0.033333333333333
  100. tf = 0
  101. allowframeloss = false
  102. tossremainder = false
  103. lastframe = tick()
  104. script.Heartbeat:Fire()
  105. game:GetService("RunService").Heartbeat:connect(function(s, p)
  106. tf = tf + s
  107. if frame <= tf then
  108. if allowframeloss then
  109. script.Heartbeat:Fire()
  110. lastframe = tick()
  111. else
  112. for i = 1, math.floor(tf / frame) do
  113. script.Heartbeat:Fire()
  114. end
  115. lastframe = tick()
  116. end
  117. if tossremainder then
  118. tf = 0
  119. else
  120. tf = tf - frame * math.floor(tf / frame)
  121. end
  122. end
  123. end
  124. )
  125. swait = function(num)
  126. if num == 0 or num == nil then
  127. ArtificialHB.Event:wait()
  128. else
  129. for i = 0, num do
  130. ArtificialHB.Event:wait()
  131. end
  132. end
  133. end
  134.  
  135. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  136. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  137. return Weld
  138. end
  139.  
  140. rayCast = function(Position, Direction, Range, Ignore)
  141. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  142. end
  143.  
  144. CreateSound = function(id, par, vol, pit)
  145. coroutine.resume(coroutine.create(function()
  146. local sou = Instance.new("Sound", par or workspace)
  147. sou.Volume = vol
  148. sou.Pitch = pit or 1
  149. sou.SoundId = id
  150. swait()
  151. sou:play()
  152. game:GetService("Debris"):AddItem(sou, 6)
  153. end
  154. ))
  155. end
  156.  
  157. local getclosest = function(obj, distance)
  158. local last, lastx = distance + 1, nil
  159. for i,v in pairs(workspace:GetChildren()) do
  160. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  161. local t = v.Torso
  162. local dist = t.Position - obj.Position.magnitude
  163. if dist <= distance and dist < last then
  164. last = dist
  165. lastx = v
  166. end
  167. end
  168. end
  169. return lastx
  170. end
  171.  
  172. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  173. if hit.Parent == nil then
  174. return
  175. end
  176. local h = hit.Parent:FindFirstChild("Humanoid")
  177. for _,v in pairs(hit.Parent:children()) do
  178. if v:IsA("Humanoid") then
  179. h = v
  180. end
  181. end
  182. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  183. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  184. return
  185. end
  186. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  187. game:GetService("Debris"):AddItem(c, 0.5)
  188. if HitSound ~= nil and HitPitch ~= nil then
  189. CreateSound(HitSound, hit, 1, HitPitch)
  190. end
  191. local Damage = math.random(minim, maxim)
  192. local blocked = false
  193. local block = hit.Parent:findFirstChild("Block")
  194. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  195. blocked = true
  196. block.Value = block.Value - 1
  197. print(block.Value)
  198. end
  199. if blocked == false then
  200. h.Health = h.Health - Damage
  201. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  202. else
  203. h.Health = h.Health - Damage / 2
  204. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  205. end
  206. if Type == "Knockdown" then
  207. local hum = hit.Parent.Humanoid
  208. hum.PlatformStand = true
  209. coroutine.resume(coroutine.create(function(HHumanoid)
  210. swait(1)
  211. HHumanoid.PlatformStand = false
  212. end
  213. ), hum)
  214. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  215. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  216. 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})
  217. game:GetService("Debris"):AddItem(bodvol, 0.5)
  218. game:GetService("Debris"):AddItem(rl, 0.5)
  219. else
  220. do
  221. if Type == "Debuff" then
  222. print'hi'
  223. else
  224. if Type == "Up" then
  225. local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  226. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  227. else
  228. do
  229. if Type == "DarkUp" then
  230. coroutine.resume(coroutine.create(function()
  231. for i = 0, 1, 0.1 do
  232. swait()
  233. BlockEffect(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
  234. end
  235. end
  236. ))
  237. local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  238. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  239. else
  240. do
  241. if Type == "Snare" then
  242. 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})
  243. game:GetService("Debris"):AddItem(bp, 1)
  244. else
  245. do
  246. if Type == "Freeze" then
  247. 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})
  248. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  249. hit.Parent.Torso.Anchored = true
  250. coroutine.resume(coroutine.create(function(Part)
  251. swait(1.5)
  252. Part.Anchored = false
  253. end
  254. ), hit.Parent.Torso)
  255. game:GetService("Debris"):AddItem(BodPos, 3)
  256. game:GetService("Debris"):AddItem(BodGy, 3)
  257. end
  258. do
  259. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  260. game:GetService("Debris"):AddItem(debounce, Delay)
  261. c = Instance.new("ObjectValue")
  262. c.Name = "creator"
  263. c.Value = Player
  264. c.Parent = h
  265. game:GetService("Debris"):AddItem(c, 0.5)
  266. end
  267. end
  268. end
  269. end
  270. end
  271. end
  272. end
  273. end
  274. end
  275. end
  276. end
  277. end
  278.  
  279. ShowDamage = function(Pos, Text, Time, Color)
  280. local Rate = 0.033333333333333
  281. if not Pos then
  282. local Pos = Vector3.new(0, 0, 0)
  283. end
  284. local Text = Text or ""
  285. local Time = Time or 2
  286. if not Color then
  287. local Color = Color3.new(1, 0, 1)
  288. end
  289. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  290. EffectPart.Anchored = true
  291. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  292. 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})
  293. game.Debris:AddItem(EffectPart, Time + 0.1)
  294. EffectPart.Parent = game:GetService("Workspace")
  295. delay(0, function()
  296. local Frames = Time / Rate
  297. for Frame = 1, Frames do
  298. wait(Rate)
  299. local Percent = Frame / Frames
  300. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  301. TextLabel.TextTransparency = Percent
  302. end
  303. if EffectPart and EffectPart.Parent then
  304. EffectPart:Destroy()
  305. end
  306. end
  307. )
  308. end
  309.  
  310. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  311. for _,c in pairs(workspace:children()) do
  312. local hum = c:findFirstChild("Humanoid")
  313. if hum ~= nil then
  314. local head = c:findFirstChild("Torso")
  315. if head ~= nil then
  316. local targ = head.Position - Part.Position
  317. local mag = targ.magnitude
  318. if mag <= magni and c.Name ~= Player.Name then
  319. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1)
  320. end
  321. end
  322. end
  323. end
  324. end
  325.  
  326. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  327. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  328. prt.Anchored = true
  329. prt.CFrame = cframe
  330. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  331. game:GetService("Debris"):AddItem(prt, 10)
  332. if Type == 1 or Type == nil then
  333. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  334. else
  335. if Type == 2 then
  336. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  337. end
  338. end
  339. end
  340.  
  341. it = Instance.new
  342. local fengui = it("GuiMain")
  343. fengui.Parent = Player.PlayerGui
  344. fengui.Name = "WeaponGUI"
  345. local fenframe = it("Frame")
  346. fenframe.Parent = fengui
  347. fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
  348. fenframe.BackgroundTransparency = 1
  349. fenframe.BorderColor3 = Color3.new(17, 17, 17)
  350. fenframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  351. fenframe.Position = UDim2.new(0.4, 0, 0.1, 0)
  352. local fenbarmana1 = it("TextLabel")
  353. fenbarmana1.Parent = fenframe
  354. fenbarmana1.Text = " "
  355. fenbarmana1.BackgroundTransparency = 0
  356. fenbarmana1.BackgroundColor3 = Color3.new(0, 0, 0)
  357. fenbarmana1.SizeConstraint = "RelativeXY"
  358. fenbarmana1.TextXAlignment = "Center"
  359. fenbarmana1.TextYAlignment = "Center"
  360. fenbarmana1.Position = UDim2.new(0, 0, 0, 0)
  361. fenbarmana1.Size = UDim2.new(4, 0, 0.2, 0)
  362. local fenbarmana2 = it("TextLabel")
  363. fenbarmana2.Parent = fenframe
  364. fenbarmana2.Text = " "
  365. fenbarmana2.BackgroundTransparency = 0
  366. fenbarmana2.BackgroundColor3 = Torso.Color
  367. fenbarmana2.SizeConstraint = "RelativeXY"
  368. fenbarmana2.TextXAlignment = "Center"
  369. fenbarmana2.TextYAlignment = "Center"
  370. fenbarmana2.Position = UDim2.new(0, 0, 0, 0)
  371. fenbarmana2.Size = UDim2.new(4 * mana / 100, 0, 0.2, 0)
  372. local fenbarmana3 = it("TextLabel")
  373. fenbarmana3.Parent = fenframe
  374. fenbarmana3.Text = " "
  375. fenbarmana3.BackgroundTransparency = 0
  376. fenbarmana3.BackgroundColor3 = BrickColor.new("Magenta").Color
  377. fenbarmana3.SizeConstraint = "RelativeXY"
  378. fenbarmana3.TextXAlignment = "Center"
  379. fenbarmana3.TextYAlignment = "Center"
  380. fenbarmana3.Position = UDim2.new(0, 0, 0, 0)
  381. fenbarmana3.Size = UDim2.new(0, 0, 0.2, 0)
  382. local fenbarmana4 = it("TextLabel")
  383. fenbarmana4.Parent = fenframe
  384. fenbarmana4.Text = "Energy(" .. mana .. ")"
  385. fenbarmana4.BackgroundTransparency = 1
  386. fenbarmana4.BackgroundColor3 = Color3.new(0, 0, 0)
  387. fenbarmana4.SizeConstraint = "RelativeXY"
  388. fenbarmana4.TextXAlignment = "Center"
  389. fenbarmana4.TextYAlignment = "Center"
  390. fenbarmana4.Position = UDim2.new(0, 0, -0.3, 0)
  391. fenbarmana4.Size = UDim2.new(4, 0, 0.2, 0)
  392. fenbarmana4.FontSize = "Size9"
  393. fenbarmana4.TextStrokeTransparency = 0
  394. fenbarmana4.TextColor = BrickColor.new("White")
  395. local fengui = it("GuiMain")
  396. fengui.Parent = Player.PlayerGui
  397. fengui.Name = "WeaponGUI"
  398. local fenframe1 = it("TextLabel")
  399. fenframe1.Parent = fengui
  400. fenframe1.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  401. fenframe1.BackgroundTransparency = 0.3
  402. fenframe1.BorderSizePixel = 5
  403. fenframe1.BorderColor3 = Color3.new(1, 1, 1)
  404. fenframe1.Size = UDim2.new(0.05, 0, 0.1, 0)
  405. fenframe1.Position = UDim2.new(0.325, 0, 0.7, 0)
  406. fenframe1.Text = "Z"
  407. fenframe1.TextWrapped = true
  408. fenframe1.FontSize = 7
  409. fenframe1.TextColor3 = Color3.new(1, 1, 1)
  410. local fenframe1a = it("TextLabel")
  411. fenframe1a.Parent = fengui
  412. fenframe1a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  413. fenframe1a.BackgroundTransparency = 0.3
  414. fenframe1a.BorderSizePixel = 5
  415. fenframe1a.BorderColor3 = Color3.new(1, 1, 1)
  416. fenframe1a.Size = UDim2.new(0.05, 0, 0.1, 0)
  417. fenframe1a.Position = UDim2.new(0.325, 0, 0.7, 0)
  418. fenframe1a.Text = ""
  419. local fenframe2 = it("TextLabel")
  420. fenframe2.Parent = fengui
  421. fenframe2.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  422. fenframe2.BackgroundTransparency = 0.3
  423. fenframe2.BorderSizePixel = 5
  424. fenframe2.BorderColor3 = Color3.new(1, 1, 1)
  425. fenframe2.Size = UDim2.new(0.05, 0, 0.1, 0)
  426. fenframe2.Position = UDim2.new(0.425, 0, 0.7, 0)
  427. fenframe2.Text = "X"
  428. fenframe2.TextWrapped = true
  429. fenframe2.FontSize = 7
  430. fenframe2.TextColor3 = Color3.new(1, 1, 1)
  431. local fenframe2a = it("TextLabel")
  432. fenframe2a.Parent = fengui
  433. fenframe2a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  434. fenframe2a.BackgroundTransparency = 0.3
  435. fenframe2a.BorderSizePixel = 5
  436. fenframe2a.BorderColor3 = Color3.new(1, 1, 1)
  437. fenframe2a.Size = UDim2.new(0.05, 0, 0.1, 0)
  438. fenframe2a.Position = UDim2.new(0.425, 0, 0.7, 0)
  439. fenframe2a.Text = ""
  440. local fenframe3 = it("TextLabel")
  441. fenframe3.Parent = fengui
  442. fenframe3.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  443. fenframe3.BackgroundTransparency = 0.3
  444. fenframe3.BorderSizePixel = 5
  445. fenframe3.BorderColor3 = Color3.new(1, 1, 1)
  446. fenframe3.Size = UDim2.new(0.05, 0, 0.1, 0)
  447. fenframe3.Position = UDim2.new(0.525, 0, 0.7, 0)
  448. fenframe3.Text = "C"
  449. fenframe3.TextWrapped = true
  450. fenframe3.FontSize = 7
  451. fenframe3.TextColor3 = Color3.new(1, 1, 1)
  452. local fenframe3a = it("TextLabel")
  453. fenframe3a.Parent = fengui
  454. fenframe3a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  455. fenframe3a.BackgroundTransparency = 0.3
  456. fenframe3a.BorderSizePixel = 5
  457. fenframe3a.BorderColor3 = Color3.new(1, 1, 1)
  458. fenframe3a.Size = UDim2.new(0.05, 0, 0.1, 0)
  459. fenframe3a.Position = UDim2.new(0.525, 0, 0.7, 0)
  460. fenframe3a.Text = ""
  461. local fenframe4 = it("TextLabel")
  462. fenframe4.Parent = fengui
  463. fenframe4.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  464. fenframe4.BackgroundTransparency = 0.3
  465. fenframe4.BorderSizePixel = 5
  466. fenframe4.BorderColor3 = Color3.new(1, 1, 1)
  467. fenframe4.Size = UDim2.new(0.05, 0, 0.1, 0)
  468. fenframe4.Position = UDim2.new(0.625, 0, 0.7, 0)
  469. fenframe4.Text = "V"
  470. fenframe4.TextWrapped = true
  471. fenframe4.FontSize = 7
  472. fenframe4.TextColor3 = Color3.new(1, 1, 1)
  473. local fenframe4a = it("TextLabel")
  474. fenframe4a.Parent = fengui
  475. fenframe4a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  476. fenframe4a.BackgroundTransparency = 0.3
  477. fenframe4a.BorderSizePixel = 5
  478. fenframe4a.BorderColor3 = Color3.new(1, 1, 1)
  479. fenframe4a.Size = UDim2.new(0.05, 0, 0.1, 0)
  480. fenframe4a.Position = UDim2.new(0.625, 0, 0.7, 0)
  481. fenframe4a.Text = ""
  482. fenframe1a.Size = UDim2.new(0, 0, 0.1, 0)
  483. fenframe2a.Size = UDim2.new(0, 0, 0.1, 0)
  484. fenframe3a.Size = UDim2.new(0, 0, 0.1, 0)
  485. fenframe4a.Size = UDim2.new(0, 0, 0.1, 0)
  486. MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  487. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  488. prt.Anchored = true
  489. prt.CFrame = cframe
  490. msh = CreateMesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  491. game:GetService("Debris"):AddItem(prt, 5)
  492. Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
  493. end
  494.  
  495. SphereEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  496. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  497. prt.Anchored = true
  498. prt.CFrame = cframe
  499. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  500. game:GetService("Debris"):AddItem(prt, 10)
  501. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  502. end
  503.  
  504. RingEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  505. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  506. prt.Anchored = true
  507. prt.CFrame = cframe
  508. msh = CreateMesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  509. game:GetService("Debris"):AddItem(prt, 2)
  510. coroutine.resume(coroutine.create(function(Part, Mesh, num)
  511. for i = 0, 1, delay do
  512. swait()
  513. Part.Transparency = i
  514. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  515. end
  516. Part.Parent = nil
  517. end
  518. ), prt, msh, (math.random(0, 1) + math.random()) / 5)
  519. end
  520.  
  521. SlashEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  522. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  523. prt.Anchored = true
  524. prt.CFrame = cframe
  525. msh = CreateMesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=448386996", vt(0, 0, 0), vt(x1, y1, z1))
  526. game:GetService("Debris"):AddItem(prt, 2)
  527. coroutine.resume(coroutine.create(function(Part, Mesh, num)
  528. for i = 0, 1, delay do
  529. swait()
  530. Part.Transparency = i
  531. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  532. end
  533. Part.Parent = nil
  534. end
  535. ), prt, msh, (math.random(0, 1) + math.random()) / 5)
  536. end
  537.  
  538. CylinderEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  539. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  540. prt.Anchored = true
  541. prt.CFrame = cframe
  542. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  543. game:GetService("Debris"):AddItem(prt, 10)
  544. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  545. end
  546.  
  547. HeadEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  548. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  549. prt.Anchored = true
  550. prt.CFrame = cframe
  551. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  552. game:GetService("Debris"):AddItem(prt, 10)
  553. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  554. end
  555.  
  556. WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  557. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  558. prt.Anchored = true
  559. prt.CFrame = cframe
  560. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  561. game:GetService("Debris"):AddItem(prt, 10)
  562. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  563. end
  564.  
  565. SpecialEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  566. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  567. prt.Anchored = true
  568. prt.CFrame = cframe
  569. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  570. game:GetService("Debris"):AddItem(prt, 10)
  571. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  572. end
  573.  
  574. BreakEffect = function(brickcolor, cframe, x1, y1, z1)
  575. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  576. prt.Anchored = true
  577. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  578. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  579. local num = math.random(10, 50) / 1000
  580. game:GetService("Debris"):AddItem(prt, 10)
  581. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  582. end
  583.  
  584. Handle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "FakeHandle", Vector3.new(1.49999952, 0.219999999, 0.25999999))
  585. HandleWeld = CreateWeld(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00998926163, -1.0048238, -0.00521278381, -3.05175781e-005, 3.05175781e-005, -1, 3.05175781e-005, -1, -3.05185094e-005, -1, -3.05185094e-005, 3.05166468e-005))
  586. FakeHandle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "FakeHandle", Vector3.new(1.49999952, 0.219999999, 0.25999999))
  587. 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))
  588. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 1.00999999, 0.860000014))
  589. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.85998917, -0.0150715113, 4.76837158e-005, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  590. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  591. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Magenta", "Part", Vector3.new(0.200000003, 1.00999999, 0.790000081))
  592. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.69999313, -0.0150667429, 0.00504493713, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  593. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  594. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0.5, "Bright violet", "Part", Vector3.new(0.800000012, 0.800000012, 0.800000012))
  595. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.1099968, -0.020236969, 0.0101566315, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  596. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  597. Part = CreatePart(m, Enum.Material.Plastic, 0, 0, "Really black", "Part", Vector3.new(0.599999905, 0.299999952, 0.399999976))
  598. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0196530819, -1.10002947, 0.00994300842, 3.05195063e-005, -1, 2.14517786e-006, 1, 3.05193462e-005, -7.3674797e-005, 7.36747315e-005, 2.14742613e-006, 1))
  599. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.800000012, 0.800000012, 2))
  600. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Plum", "Part", Vector3.new(0.200000003, 0.709999979, 0.720000029))
  601. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(6.67572021e-005, -1.10500383, -0.0198179483, -6.10337593e-005, -6.10356219e-005, -1, 1, 4.65618655e-010, -6.10337593e-005, 4.1909658e-009, -1, 6.10356219e-005))
  602. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  603. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.400000036, 1.00999999, 0.699999988))
  604. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.29998541, -0.0150543451, 3.43322754e-005, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  605. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  606. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.49999952, 0.219999999, 0.25999999))
  607. PartWeld = CreateWeld(m, FakeHandle, Part, 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))
  608. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  609. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.71999991, 0.319999993, 0.359999985))
  610. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.86998796, 0.160014272, 0.0100288391, 1, 1.86264515e-009, -6.10351563e-005, -5.58793545e-009, 1, -6.10351563e-005, 6.10351563e-005, 6.10351563e-005, 1))
  611. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  612. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 1.00999999, 0.790000081))
  613. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0150831938, -4.23999023, 0.00506019592, 9.31322575e-010, -1, 0, 1, 9.31322575e-010, 0, 0, 0, 1))
  614. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "rbxassetid://448386996", Vector3.new(0, 0, 0), Vector3.new(0.0120000001, 0.0120000001, 0.0120000001))
  615. Part = CreatePart(m, Enum.Material.Plastic, 0, 0, "Black", "Part", Vector3.new(1.19999993, 1.29999995, 0.399999976))
  616. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0803631544, 3.18995714, 0.300125122, 3.05195063e-005, -1, 2.14517786e-006, 1, 3.05193462e-005, -7.3674797e-005, 7.36747315e-005, 2.14742613e-006, 1))
  617. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1.10000002, 1.10000002, 1))
  618. Part = CreatePart(m, Enum.Material.Plastic, 0, 0, "Black", "Part", Vector3.new(1.19999993, 1.29999995, 0.399999976))
  619. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0803436041, 3.18998289, -0.299877167, 3.05195063e-005, -1, 2.14517786e-006, 1, 3.05193462e-005, -7.3674797e-005, 7.36747315e-005, 2.14742613e-006, 1))
  620. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1.10000002, 1.10000002, 1))
  621. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 1.00999999, 0.790000081))
  622. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00506019592, -4.23999023, 0.0150831938, 0, 0, -1, 1, 9.31322575e-010, 0, 9.31322575e-010, -1, 0))
  623. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "rbxassetid://448386996", Vector3.new(0, 0, 0), Vector3.new(0.0120000001, 0.0120000001, 0.0120000001))
  624. Part = CreatePart(m, Enum.Material.Plastic, 0, 0, "Bright violet", "Part", Vector3.new(1.19999993, 1.29999995, 0.399999976))
  625. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0803533792, 3.18997002, 0.00012588501, 3.05195063e-005, -1, 2.14517786e-006, 1, 3.05193462e-005, -7.3674797e-005, 7.36747315e-005, 2.14742613e-006, 1))
  626. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1.10000002, 1.10000002, 1))
  627. Part = CreatePart(m, Enum.Material.Plastic, 0, 0, "Really black", "Part", Vector3.new(1.19999993, 1.29999995, 0.399999976))
  628. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0803533792, 3.18997002, 0.00012588501, 3.05195063e-005, -1, 2.14517786e-006, 1, 3.05193462e-005, -7.3674797e-005, 7.36747315e-005, 2.14742613e-006, 1))
  629. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1, 1, 5))
  630. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.609999955, 0.319999993, 0.359999985))
  631. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.094997406, -0.959980011, 0.00995254517, 1.264202e-005, 1, 6.31808798e-005, -1, 1.26400919e-005, 3.05188951e-005, 3.05180947e-005, -6.31812654e-005, 1))
  632. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  633. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(2.49999952, 0.219999999, 0.25999999))
  634. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.71000099, -6.74724579e-005, 8.20159912e-005, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  635. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  636. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.319999874, 0.319999993, 0.359999985))
  637. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.56999588, -0.260039806, 0.0099811554, 1, 1.86264515e-009, -6.10351563e-005, -5.58793545e-009, 1, -6.10351563e-005, 6.10351563e-005, 6.10351563e-005, 1))
  638. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  639. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.319999874, 0.319999993, 0.359999985))
  640. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.3599968, -0.260046244, 0.009973526, 1, 1.86264515e-009, -6.10351563e-005, -5.58793545e-009, 1, -6.10351563e-005, 6.10351563e-005, 6.10351563e-005, 1))
  641. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  642. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.599999905, 0.519999981, 0.560000002))
  643. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0999407768, 0.959987402, -3.81469727e-005, -1.26400264e-005, -1, 2.14649481e-006, 1, -1.26400919e-005, -3.05170342e-005, 3.05170615e-005, 2.14610918e-006, 1))
  644. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  645. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.319999874, 0.319999993, 0.359999985))
  646. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0300308466, -1.36999273, 0.00995635986, 1.264202e-005, 1, 6.31808798e-005, -1, 1.26400919e-005, 3.05188951e-005, 3.05180947e-005, -6.31812654e-005, 1))
  647. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  648. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 1.00999999, 0.860000014))
  649. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.53999329, -0.0150617361, 3.81469727e-005, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  650. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  651. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright violet", "Part", Vector3.new(0.819999874, 0.25, 0.359999985))
  652. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.01999855, -0.260010839, 0.00999450684, 1, 1.86264515e-009, -6.10351563e-005, -5.58793545e-009, 1, -6.10351563e-005, 6.10351563e-005, 6.10351563e-005, 1))
  653. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  654. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.319999874, 0.319999993, 0.359999985))
  655. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.56999779, -0.260009289, 0.010011673, 1, 1.86264515e-009, -6.10351563e-005, -5.58793545e-009, 1, -6.10351563e-005, 6.10351563e-005, 6.10351563e-005, 1))
  656. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  657. Tip = CreatePart(m, Enum.Material.Neon, 0, 0.5, "Really black", "Tip", Vector3.new(1, 1, 1))
  658. TipWeld = CreateWeld(m, FakeHandle, Tip, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.1099968, -0.020236969, 0.0101566315, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  659. CreateMesh("SpecialMesh", Tip, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  660. IceMortar = function()
  661. local dacf = Tip.CFrame * angles(-1.57 + math.random(40, 80) / 100, 0, math.random(-80, 80) / 100)
  662. local icepart1 = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Cyan"), "Ice", vt())
  663. icepart1.Anchored = true
  664. i1msh = CreateMesh("SpecialMesh", icepart1, "Sphere", "", vt(0, 0, 0), vt(5, 5, 5))
  665. icepart1.CFrame = dacf
  666. for i = 0, 1, 0.1 do
  667. swait()
  668. icepart1.CFrame = dacf
  669. end
  670. local cfinc = 99999
  671. icepart1.Transparency = 1
  672. CreateSound("rbxassetid://192410089", icepart1, 1, 1)
  673. game:GetService("Debris"):AddItem(icepart1, 1)
  674. local spread = vt((math.random(-1, 0) + math.random()) * 16, (math.random(-1, 0) + math.random()) * 16, (math.random(-1, 0) + math.random()) * 16) * (icepart1.Position - (icepart1.Position + vt(0, -1, 0))).magnitude / 100
  675. local TheHit = mouse.Hit.p
  676. local MouseLook = cf((icepart1.Position + TheHit) / 2, TheHit + spread)
  677. local hit, pos = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character)
  678. local target1, distance1 = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character)
  679. local test1, dist1 = mouse.Hit.p, nil
  680. if target1 ~= nil then
  681. cfda = target1.Position + vt(math.random(-3000, 3000) / 100, 10, math.random(-3000, 3000) / 100)
  682. local hit2, pos2 = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character)
  683. local d1 = CreatePart(effect, "SmoothPlastic", 0, 0.5, BrickColor.new("Magenta"), "Effect", vt())
  684. d1.Anchored = true
  685. d1.CFrame = cf(pos2)
  686. MagniDamage(d1, 20, 2, 5, -10, "Debuff")
  687. SphereEffect(BrickColor.new("Black"), cf(pos2), 100, 100, 100, 10, 10, 10, 0.07)
  688. msh = CreateMesh("CylinderMesh", d1, "", "", vt(0, 0, 0), vt(200, 5, 200))
  689. d2 = d1:Clone()
  690. d2.Parent = d1
  691. d2.CFrame = cf(d1.Position)
  692. d2.BrickColor = BrickColor.new("Black")
  693. d2.Mesh.Scale = vt(0, 5, 0)
  694. table.insert(Effects, {d1, "SatelliteStrike", d2, d2.Mesh, 0})
  695. end
  696. end
  697.  
  698. local nr = NumberRange.new
  699. local ns = NumberSequence.new
  700. local cs = ColorSequence.new
  701. local nsk = NumberSequenceKeypoint.new
  702. particle = function(parent, col1, col2, lightemis, size, texture, transparency, zoffset, accel, drag, ltp, velinher, emisdir, enabled, lifetime, rate, rotation, rotspeed, speed, velspread)
  703. local fp = it("ParticleEmitter")
  704. fp.Parent = parent
  705. fp.Color = cs(col1, col2)
  706. fp.LightEmission = lightemis
  707. fp.Size = size
  708. fp.Texture = texture
  709. fp.Transparency = transparency
  710. fp.ZOffset = zoffset
  711. fp.Acceleration = accel
  712. fp.Drag = drag
  713. fp.LockedToPart = ltp
  714. fp.VelocityInheritance = velinher
  715. fp.EmissionDirection = emisdir
  716. fp.Enabled = enabled
  717. fp.Lifetime = lifetime
  718. fp.Rate = rate
  719. fp.Rotation = rotation
  720. fp.RotSpeed = rotspeed
  721. fp.Speed = speed
  722. fp.VelocitySpread = velspread
  723. return fp
  724. end
  725.  
  726. sizeseq = ns({nsk(0, 4), nsk(0.027, 8.5), nsk(0.184, 9), nsk(1, 10)})
  727. transseq = ns({nsk(0, 0.375), nsk(0.4, 1), nsk(1, 1)})
  728. local icicleparti1 = particle(Torso, Color3.new(1, 1, 1), Color3.new(0.3921568627451, 0.3921568627451, 1), 0.2, sizeseq, "http://www.roblox.com/asset/?id=329766994", transseq, 0, vt(0, -0.5, 0), 0, false, 0, "Bottom", false, nr(7, 10), 15, nr(-360, 360), nr(-30, 30), nr(3), 20)
  729. sizeseq = ns({nsk(0, 5), nsk(0.025, 7.7), nsk(0.192, 9), nsk(1, 10)})
  730. transseq = ns({nsk(0, 0.8), nsk(0.3, 1), nsk(1, 1)})
  731. local icicleparti2 = particle(Torso, Color3.new(1, 1, 1), Color3.new(0.3921568627451, 0.3921568627451, 1), 0.3, sizeseq, "http://www.roblox.com/asset/?id=241594419", transseq, 0, vt(0, -0.5, 0), 0, false, 0, "Bottom", false, nr(7, 10), 80, nr(-360, 360), nr(-30, 30), nr(3), 20)
  732. sizeseq = ns({nsk(0, 0.328), nsk(0.075, 3.11), nsk(0.206, 4.97), nsk(1, 10)})
  733. transseq = ns({nsk(0, 0.363), nsk(0.107, 1), nsk(1, 1)})
  734. DarkMortar = function()
  735. for i = 1, math.random(3, 5) do
  736. local dacf = Tip.CFrame * angles(-1.57 + math.random(40, 80) / 100, 0, math.random(-80, 80) / 100)
  737. local icepart1 = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Cyan"), "Ice", vt())
  738. icepart1.Anchored = true
  739. i1msh = CreateMesh("SpecialMesh", icepart1, "Sphere", "", vt(0, 0, 0), vt(5, 5, 5))
  740. icepart1.CFrame = dacf
  741. for i = 0, 1, 0.1 do
  742. swait()
  743. icepart1.CFrame = dacf
  744. end
  745. local cfinc = 99999
  746. icepart1.Transparency = 1
  747. CreateSound("rbxassetid://192410089", icepart1, 1, 1.5)
  748. game:GetService("Debris"):AddItem(icepart1, 1)
  749. local spread = vt((math.random(-5, 5) + math.random()) * 16, (math.random(-5, 5) + math.random()) * 16, (math.random(-5, 5) + math.random()) * 16) * (icepart1.Position - (icepart1.Position + vt(0, -1, 0))).magnitude / 100
  750. local TheHit = mouse.Hit.p
  751. local MouseLook = cf((icepart1.Position + TheHit) / 2, TheHit + spread)
  752. local hit, pos = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character)
  753. local target1, distance1 = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character)
  754. local test1, dist1 = mouse.Hit.p, nil
  755. if target1 ~= nil then
  756. cfda = target1.Position + vt(math.random(-3000, 3000) / 100, 10, math.random(-3000, 3000) / 100)
  757. local hit2, pos2 = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character)
  758. BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 12, 12, 12, 0.5, 0.5, 0.5, 0.05)
  759. SphereEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 12, 12, 12, 0.5, 0.5, 0.5, 0.05)
  760. local d1 = CreatePart(effect, "SmoothPlastic", 0, 0.5, BrickColor.new("Magenta"), "Effect", vt())
  761. d1.Anchored = true
  762. d1.CFrame = cf(pos2)
  763. MagniDamage(d1, 20, 2, 5, -10, "Normal")
  764. SphereEffect(BrickColor.new("Black"), cf(pos2), 10, 10, 10, 10, 10, 10, 0.07)
  765. msh = CreateMesh("CylinderMesh", d1, "", "", vt(0, 0, 0), vt(50, 5, 50))
  766. d2 = d1:Clone()
  767. d2.Parent = d1
  768. d2.CFrame = cf(d1.Position)
  769. d2.BrickColor = BrickColor.new("Black")
  770. d2.Mesh.Scale = vt(0, 5, 0)
  771. table.insert(Effects, {d1, "MiniStrike", d2, d2.Mesh, 0})
  772. end
  773. end
  774. end
  775.  
  776. Ravage = function()
  777. attack = true
  778. for i = 0, 1, 0.1 do
  779. swait()
  780. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  781. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  782. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(100), math.rad(0), math.rad(0)), 0.3)
  783. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.3)
  784. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  785. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  786. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  787. end
  788. IceMortar()
  789. SphereEffect(BrickColor.new("Black"), Tip.CFrame, 10, 10, 10, 5, 5, 5, 0.07)
  790. RingEffect(BrickColor.new("Black"), Tip.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 10, 10, 2, 0.5, 0.5, 0, 0.07)
  791. RingEffect(BrickColor.new("Black"), Tip.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 10, 10, 2, 0.5, 0.5, 0, 0.08)
  792. end
  793.  
  794. attackone = function()
  795. attack = true
  796. for i = 0, 1, 0.1 do
  797. swait()
  798. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-70)), 0.3)
  799. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 + 1 * math.cos(sine / 9)), math.rad(0), math.rad(70)), 0.3)
  800. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  801. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(-20)), 0.3)
  802. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  803. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(-30)), 0.3)
  804. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(50), math.rad(-70)), 0.3)
  805. end
  806. for i = 0, 1, 0.5 do
  807. swait()
  808. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  809. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 + 1 * math.cos(sine / 9)), math.rad(0), math.rad(0)), 0.3)
  810. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3)
  811. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(-20)), 0.3)
  812. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  813. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3)
  814. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(50), math.rad(0)), 0.3)
  815. end
  816. for i = 0, 1, 0.1 do
  817. swait()
  818. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(70)), 0.3)
  819. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 + 1 * math.cos(sine / 9)), math.rad(0), math.rad(-70)), 0.3)
  820. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  821. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(-20)), 0.3)
  822. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  823. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(30)), 0.3)
  824. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(50), math.rad(70)), 0.3)
  825. end
  826. CreateSound("rbxassetid://241816017", Tip, 1, 1)
  827. MagniDamage(Tip, 10, 7, 10, 1, "Normal")
  828. SphereEffect(BrickColor.new("Black"), Tip.CFrame, 10, 10, 10, 5, 5, 5, 0.07)
  829. RingEffect(BrickColor.new("Black"), Tip.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 10, 10, 2, 0.5, 0.5, 0, 0.07)
  830. RingEffect(BrickColor.new("Black"), Tip.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 10, 10, 2, 0.5, 0.5, 0, 0.08)
  831. attack = false
  832. end
  833.  
  834. Nightmare = function()
  835. attack = true
  836. for i = 0, 1, 0.1 do
  837. swait()
  838. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-70)), 0.3)
  839. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 + 1 * math.cos(sine / 9)), math.rad(0), math.rad(70)), 0.3)
  840. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  841. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(0)), 0.3)
  842. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  843. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3)
  844. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(80), math.rad(50), math.rad(-70)), 0.3)
  845. end
  846. BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 12, 12, 12, 0.5, 0.5, 0.5, 0.05)
  847. DarkMortar()
  848. end
  849.  
  850. attacktwo = function()
  851. attack = true
  852. for i = 0, 1, 0.1 do
  853. swait()
  854. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  855. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 + 1 * math.cos(sine / 9)), math.rad(0), math.rad(90)), 0.3)
  856. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  857. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  858. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  859. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3)
  860. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(80), math.rad(50), math.rad(-70)), 0.3)
  861. end
  862. CreateSound("rbxassetid://241816017", Tip, 1, 1.5)
  863. MagniDamage(LeftArm, 3, 7, 12, 1, "Normal")
  864. BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 12, 12, 12, 0.5, 0.5, 0.5, 0.05)
  865. for i = 0, 1, 0.1 do
  866. swait()
  867. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  868. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 + 1 * math.cos(sine / 9)), math.rad(0), math.rad(90)), 0.3)
  869. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  870. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-130)), 0.3)
  871. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  872. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3)
  873. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(80), math.rad(50), math.rad(-70)), 0.3)
  874. end
  875. attack = false
  876. end
  877.  
  878. local grabbing = false
  879. Finale = function()
  880. attack = true
  881. for i = 0, 1, 0.1 do
  882. swait()
  883. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  884. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 + 1 * math.cos(sine / 9)), math.rad(0), math.rad(-90)), 0.3)
  885. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  886. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3)
  887. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  888. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3)
  889. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(80), math.rad(50), math.rad(-70)), 0.3)
  890. end
  891. local ef = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "ef", vt(0.5, 0.5, 0.5))
  892. con1 = LeftArm.Touched:connect(function(hit)
  893. local ht = hit.Parent
  894. coroutine.resume(coroutine.create(function()
  895. while grabbing do
  896. swait()
  897. ef.CFrame = LeftArm.CFrame * cf(0, -0.5, 0) * angles(1.57, 0, 1.57)
  898. end
  899. end
  900. ))
  901. local hum1 = ht:FindFirstChild("Humanoid")
  902. if hum1 ~= nil then
  903. grabbing = true
  904. coroutine.resume(coroutine.create(function()
  905. hum1.PlatformStand = true
  906. wait(3)
  907. hum1.PlatformStand = false
  908. end
  909. ))
  910. local asd = CreateWeld(ef, ef, ht:FindFirstChild("Torso"), CFrame.new(0, 0, 0), CFrame.new(0, 0, 0))
  911. asd.Parent = ef
  912. asd.Name = "asd"
  913. asd.C0 = asd.C0 * CFrame.Angles(math.rad(0), 0, 0)
  914. else
  915. do
  916. if hum1 == nil then
  917. con1:disconnect()
  918. wait()
  919. return
  920. end
  921. end
  922. end
  923. end
  924. )
  925. if grabbing == false then
  926. for i = 0, 1, 0.05 do
  927. swait()
  928. Torso.Velocity = RootPart.CFrame.lookVector * 30
  929. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  930. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 + 1 * math.cos(sine / 9)), math.rad(0), math.rad(90)), 0.3)
  931. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3)
  932. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  933. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  934. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3)
  935. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(80), math.rad(50), math.rad(0)), 0.3)
  936. end
  937. end
  938. do
  939. if grabbing == true then
  940. for i = 0, 1, 0.05 do
  941. swait()
  942. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  943. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-20), math.rad(0), math.rad(90)), 0.3)
  944. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3)
  945. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-120)), 0.3)
  946. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  947. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3)
  948. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(80), math.rad(50), math.rad(0)), 0.3)
  949. BlockEffect(BrickColor.new("Black"), LeftArm.CFrame, 10, 10, 10, -0.5, -0.5, -0.5, 0.07, 1)
  950. end
  951. mana = mana
  952. CreateSound("rbxassetid://188959258", LeftArm, 0.5, 1)
  953. for i = 0, 1 do
  954. BlockEffect(BrickColor.new("Black"), LeftArm.CFrame, 50, 50, 50, -0.5, -0.5, -0.5, 0.07, 1)
  955. end
  956. MagniDamage(LeftArm, 15, 20, 30, 1, "Normal")
  957. coroutine.resume(coroutine.create(function()
  958. for i = 0, 3 do
  959. swait()
  960. WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -1, 0) * angles(0, math.random(-50, 50), 0), 1, 1, 1, 1, 1, 1, 0.05)
  961. end
  962. end
  963. ))
  964. end
  965. grabbing = false
  966. con1:disconnect()
  967. ef.Parent = nil
  968. attack = false
  969. end
  970. end
  971.  
  972. attackthree = function()
  973. attack = true
  974. for i = 0, 1, 0.1 do
  975. swait()
  976. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  977. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 + 1 * math.cos(sine / 9)), math.rad(0), math.rad(90)), 0.3)
  978. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  979. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3)
  980. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  981. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3)
  982. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(80), math.rad(50), math.rad(-70)), 0.3)
  983. end
  984. MagniDamage(LeftArm, 5, 10, 10, 1, "Normal")
  985. CreateSound("rbxassetid://241816017", LeftArm, 1, 0.8)
  986. SlashEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, 1, -5) * angles(math.rad(90), math.rad(-50, 50), 0), 0.001, 0.1, 0.1, 0, 0.001, 0.001, 0.05)
  987. for i = 0, 1, 0.1 do
  988. swait()
  989. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  990. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 + 1 * math.cos(sine / 9)), math.rad(0), math.rad(0)), 0.3)
  991. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  992. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.3)
  993. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  994. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3)
  995. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(80), math.rad(50), math.rad(-70)), 0.3)
  996. end
  997. attack = false
  998. end
  999.  
  1000. ShootCannon = function(asd, mindam, maxdam, x, y, z, magn)
  1001. CreateSound("rbxassetid://263623156", asd, 0.5, 1)
  1002. CreateSound("rbxassetid://263610152", asd, 0.5, 1)
  1003. CreateSound("rbxassetid://263623139", asd, 0.5, 1)
  1004. local MainPos = asd.Position
  1005. local MainPos2 = mouse.Hit.p
  1006. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  1007. num = 30
  1008. coroutine.resume(coroutine.create(function()
  1009. repeat
  1010. wait()
  1011. local hit, pos = rayCast(MainPos, MouseLook.lookVector, 10, Character)
  1012. local mag = (MainPos - pos).magnitude
  1013. MagicCylinder2(BrickColor.new("Magenta"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 0.1, mag * 5, 0.1, 0.2, 0, 0.2, 0.03)
  1014. MainPos = MainPos + MouseLook.lookVector * 10
  1015. num = num - 1
  1016. if hit ~= nil then
  1017. num = 0
  1018. local ref = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Magenta"), "Reference", vt())
  1019. ref.Anchored = true
  1020. ref.CFrame = cf(pos)
  1021. game.Debris:AddItem(ref, 3)
  1022. MagniDamage(ref, mag, mindam, maxdam, 1, "Normal")
  1023. CreateSound("rbxassetid://263610039", ref, 1, 1)
  1024. CreateSound("rbxassetid://263610111", ref, 1, 1)
  1025. BlockEffect(BrickColor.new("Magenta"), cf(pos), 5, 5, 5, 0.5, 0.5, 0.5, 0.05)
  1026. game:GetService("Debris"):AddItem(ref, 1)
  1027. MagniDamage(ref, magn, mindam, maxdam, 10, "Normal")
  1028. end
  1029. until num <= 0
  1030. end
  1031. ))
  1032. end
  1033.  
  1034. Debuff = function()
  1035. attack = true
  1036. for i = 0, 1, 0.1 do
  1037. swait()
  1038. BlockEffect(BrickColor.new("Black"), Tip.CFrame, 10, 10, 10, -0.5, -0.5, -0.5, 0.07, 1)
  1039. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1040. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 + 1 * math.cos(sine / 9)), math.rad(0), math.rad(90)), 0.3)
  1041. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1042. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3)
  1043. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1044. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3)
  1045. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(80), math.rad(50), math.rad(-70)), 0.3)
  1046. end
  1047. SphereEffect(BrickColor.new("Black"), Tip.CFrame, 10, 10, 10, 0.5, 0.5, 0.5, 0.07)
  1048. ShootCannon(Tip, 10, 15, 5, 5, 5, 2)
  1049. for i = 0, 1, 0.1 do
  1050. swait()
  1051. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1052. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 + 1 * math.cos(sine / 9)), math.rad(0), math.rad(90)), 0.3)
  1053. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1054. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.3)
  1055. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1056. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3)
  1057. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(80), math.rad(50), math.rad(-70)), 0.3)
  1058. end
  1059. attack = false
  1060. end
  1061.  
  1062. ob1u = function()
  1063. end
  1064.  
  1065. ob1d = function()
  1066. if attack == false and attacktype == 1 then
  1067. attacktype = 2
  1068. attackone()
  1069. else
  1070. if attack == false and attacktype == 2 then
  1071. attacktype = 3
  1072. attacktwo()
  1073. else
  1074. if attack == false and attacktype == 3 then
  1075. attacktype = 1
  1076. attackthree()
  1077. end
  1078. end
  1079. end
  1080. end
  1081.  
  1082. key = function(k)
  1083. k = k:lower()
  1084. if attack == false and k == "z" and mana >= 10 and zenabled == true then
  1085. zenabled = false
  1086. mana = mana
  1087. coroutine.resume(coroutine.create(function()
  1088. for i = 1, 0, -0.01 do
  1089. swait()
  1090. fenframe1a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1091. end
  1092. zenabled = true
  1093. fenframe1a.Size = UDim2.new(0, 0, 0.1, 0)
  1094. end
  1095. ))
  1096. Debuff()
  1097. else
  1098. if attack == false and k == "x" and mana >= 20 and xenabled == true then
  1099. mana = mana
  1100. xenabled = false
  1101. Ravage()
  1102. else
  1103. if attack == false and k == "c" and mana >= 30 and cenabled == true then
  1104. cenabled = false
  1105. mana = mana
  1106. coroutine.resume(coroutine.create(function()
  1107. for i = 1, 0, -0.003 do
  1108. swait()
  1109. fenframe3a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1110. end
  1111. cenabled = true
  1112. fenframe3a.Size = UDim2.new(0, 0, 0.1, 0)
  1113. end
  1114. ))
  1115. Nightmare()
  1116. else
  1117. if attack == false and k == "v" and mana >= 45 and venabled == true then
  1118. venabled = false
  1119. coroutine.resume(coroutine.create(function()
  1120. for i = 1, 0, -0.005 do
  1121. swait()
  1122. fenframe4a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1123. end
  1124. venabled = true
  1125. fenframe4a.Size = UDim2.new(0, 0, 0.1, 0)
  1126. end
  1127. ))
  1128. Finale()
  1129. end
  1130. end
  1131. end
  1132. end
  1133. end
  1134.  
  1135. Bin = Instance.new("HopperBin", Player.Backpack)
  1136. ds = function(mouse)
  1137. end
  1138.  
  1139. s = function(mouse)
  1140. print("Selected")
  1141. mouse.Button1Down:connect(function()
  1142. ob1d(mouse)
  1143. end
  1144. )
  1145. mouse.Button1Up:connect(function()
  1146. ob1u(mouse)
  1147. end
  1148. )
  1149. mouse.KeyDown:connect(key)
  1150. end
  1151.  
  1152. Bin.Selected:connect(s)
  1153. Bin.Deselected:connect(ds)
  1154. coroutine.resume(coroutine.create(function()
  1155. while 1 do
  1156. for i = 0, 1, 0.1 do
  1157. swait()
  1158. end
  1159. BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 2, 2, 2, 0.5, 0.5, 0.5, 0.05)
  1160. end
  1161. end
  1162. ))
  1163. while 1 do
  1164. while 1 do
  1165. while 1 do
  1166. swait()
  1167. Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  1168. velocity = RootPart.Velocity.y
  1169. sine = sine + change
  1170. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1171. if equipped == true or equipped == false then
  1172. if 1 < RootPart.Velocity.y and hit == nil then
  1173. Anim = "Jump"
  1174. if attack == false then
  1175. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1176. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3)
  1177. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  1178. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-10)), 0.3)
  1179. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1180. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1181. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(-80), math.rad(50), math.rad(80)), 0.3)
  1182. end
  1183. else
  1184. if RootPart.Velocity.y < -1 and hit == nil then
  1185. Anim = "Fall"
  1186. if attack == false then
  1187. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1188. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3)
  1189. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  1190. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-20)), 0.3)
  1191. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1192. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1193. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(-80), math.rad(50), math.rad(80)), 0.3)
  1194. end
  1195. else
  1196. if Torsovelocity.x < 1 or Torsovelocity.z < 1 and hit ~= nil then
  1197. Anim = "Idle"
  1198. if attack == false then
  1199. change = 1
  1200. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.1 * math.cos((sine) / 9)) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3)
  1201. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 + 1 * math.cos((sine) / 9)), math.rad(0), math.rad(40)), 0.3)
  1202. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(70)), 0.3)
  1203. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 9), 0) * angles(math.rad(20), math.rad(0), math.rad(-20)), 0.3)
  1204. 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)
  1205. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.1 * math.cos((sine) / 9), 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3)
  1206. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(-70), math.rad(50), math.rad(80)), 0.3)
  1207. end
  1208. else
  1209. if 2 < Torsovelocity.x or 2 < Torsovelocity.z and hit ~= nil then
  1210. Anim = "Walk"
  1211. if attack == false then
  1212. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1213. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  1214. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(70)), 0.3)
  1215. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.3)
  1216. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1217. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1218. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(-80), math.rad(50), math.rad(80)), 0.3)
  1219. end
  1220. end
  1221. end
  1222. end
  1223. end
  1224. end
  1225. if 0 < #Effects then
  1226. for e = 1, #Effects do
  1227. if Effects[e] ~= nil then
  1228. local Thing = Effects[e]
  1229. if Thing ~= nil then
  1230. local Part = Thing[1]
  1231. local Mode = Thing[2]
  1232. local Delay = Thing[3]
  1233. local IncX = Thing[4]
  1234. local IncY = Thing[5]
  1235. local IncZ = Thing[6]
  1236. if Thing[1].Transparency <= 1 then
  1237. if Thing[2] == "MiniStrike" then
  1238. if Thing[5] < 50 then
  1239. Thing[5] = Thing[5] + 1
  1240. Thing[4].Scale = vt(Thing[5], 5, Thing[5])
  1241. else
  1242. refda = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "Reference", vt())
  1243. refda.Anchored = true
  1244. refda.CFrame = cf(Thing[1].Position)
  1245. game:GetService("Debris"):AddItem(refda, 1)
  1246. CreateSound("rbxassetid://334325056", refda, 1, 1.5)
  1247. CreateSound("rbxassetid://243711369", refda, 0.8, 2)
  1248. MagniDamage(refda, 20, 8, 10, 0, "Normal.")
  1249. HeadEffect(BrickColor.new("Black"), cf(refda.Position), 20, 99999, 20, -4, 1, -4, 0.1)
  1250. BlockEffect(BrickColor.new("Black"), cf(refda.Position), 80, 80, 80, -5, -5, -5, 0.07, 1)
  1251. RingEffect(BrickColor.new("Black"), cf(refda.Position) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 3, 3, 0, 3, 3, 0, 0.07)
  1252. attack = false
  1253. Thing[1].Parent = nil
  1254. table.remove(Effects, e)
  1255. end
  1256. end
  1257. if Thing[2] == "SatelliteStrike" then
  1258. if Thing[5] < 200 then
  1259. Thing[5] = Thing[5] + 2
  1260. Thing[4].Scale = vt(Thing[5], 5, Thing[5])
  1261. else
  1262. refda = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "Reference", vt())
  1263. refda.Anchored = true
  1264. refda.CFrame = cf(Thing[1].Position)
  1265. game:GetService("Debris"):AddItem(refda, 1)
  1266. CreateSound("rbxassetid://334325056", refda, 1, 1)
  1267. CreateSound("rbxassetid://243711369", refda, 0.8, 1)
  1268. MagniDamage(refda, 20, 20, 30, 0, "Debuff")
  1269. HeadEffect(BrickColor.new("Black"), cf(refda.Position), 50, 99999, 50, -4, 1, -4, 0.1)
  1270. BlockEffect(BrickColor.new("Black"), cf(refda.Position), 120, 120, 120, -5, -5, -5, 0.07, 1)
  1271. RingEffect(BrickColor.new("Black"), cf(refda.Position) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 10, 10, 0, 3, 3, 0, 0.07)
  1272. coroutine.resume(coroutine.create(function()
  1273. for i = 1, 0, -0.0075 do
  1274. swait()
  1275. fenframe2a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1276. end
  1277. xenabled = true
  1278. fenframe2a.Size = UDim2.new(0, 0, 0.1, 0)
  1279. end
  1280. ))
  1281. attack = false
  1282. Thing[1].Parent = nil
  1283. table.remove(Effects, e)
  1284. end
  1285. end
  1286. if Thing[2] == "Block1" then
  1287. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1288. Mesh = Thing[1].Mesh
  1289. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1290. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1291. else
  1292. if Thing[2] == "Block2" then
  1293. Thing[1].CFrame = Thing[1].CFrame
  1294. Mesh = Thing[7]
  1295. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1296. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1297. else
  1298. if Thing[2] == "Cylinder" then
  1299. Mesh = Thing[1].Mesh
  1300. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1301. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1302. else
  1303. if Thing[2] == "Blood" then
  1304. Mesh = Thing[7]
  1305. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1306. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1307. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1308. else
  1309. if Thing[2] == "Elec" then
  1310. Mesh = Thing[1].Mesh
  1311. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1312. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1313. else
  1314. if Thing[2] == "Disappear" then
  1315. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1316. else
  1317. if Thing[2] == "Shatter" then
  1318. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1319. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1320. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1321. Thing[6] = Thing[6] + Thing[5]
  1322. end
  1323. end
  1324. end
  1325. end
  1326. end
  1327. end
  1328. end
  1329. else
  1330. Part.Parent = nil
  1331. table.remove(Effects, e)
  1332. end
  1333. end
  1334. end
  1335. end
  1336. end
  1337. do
  1338. fenbarmana2:TweenSize((UDim2.new(4 * mana / 100, 0, 0.2, 0)), nil, 1, 0.4, true)
  1339. fenbarmana4.Text = "[Mana] <{[ " .. mana .. " ]}> [Mana]"
  1340. if 100 <= mana then
  1341. mana = 100
  1342.  
  1343.  
  1344. end
  1345. end
  1346. end
  1347. if attack == false then
  1348. if mananum <= 8 then
  1349. mananum = mananum + 1
  1350.  
  1351.  
  1352. end
  1353. end
  1354. end
  1355. mananum = 0
  1356. mana = mana + 1
  1357. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement