Advertisement
ghostteen14

Untitled

Feb 19th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 137.65 KB | None | 0 0
  1. -- This script has convert to FE by who i don't know?
  2.  
  3. -----------------------------------------------------
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,game,owner = owner,game
  6. local RealPlayer = Player
  7. do
  8. print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
  9. local rp = RealPlayer
  10. script.Parent = rp.Character
  11.  
  12. --RemoteEvent for communicating
  13. local Event = Instance.new("RemoteEvent")
  14. Event.Name = "UserInput_Event"
  15.  
  16. --Fake event to make stuff like Mouse.KeyDown work
  17. local function fakeEvent()
  18. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  19. t.connect = t.Connect
  20. return t
  21. end
  22.  
  23. --Creating fake input objects with fake variables
  24. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  25. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  26. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  27. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  28. end}
  29. --Merged 2 functions into one by checking amount of arguments
  30. CAS.UnbindAction = CAS.BindAction
  31.  
  32. --This function will trigger the events that have been :Connect()'ed
  33. local function te(self,ev,...)
  34. local t = m[ev]
  35. if t and t._fakeEvent then
  36. for _,f in pairs(t.Functions) do
  37. f(...)
  38. end
  39. end
  40. end
  41. m.TrigEvent = te
  42. UIS.TrigEvent = te
  43.  
  44. Event.OnServerEvent:Connect(function(plr,io)
  45. if plr~=rp then return end
  46. m.Target = io.Target
  47. m.Hit = io.Hit
  48. if not io.isMouse then
  49. local b = io.UserInputState == Enum.UserInputState.Begin
  50. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  51. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67.  
  68. local Mouse = Player:GetMouse()
  69. local UIS = game:GetService("UserInputService")
  70. local input = function(io,a)
  71. if a then return end
  72. --Since InputObject is a client-side instance, we create and pass table instead
  73. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  74. end
  75. UIS.InputBegan:Connect(input)
  76. UIS.InputEnded:Connect(input)
  77.  
  78. local h,t
  79. --Give the server mouse data 30 times every second, but only if the values changed
  80. --If player is not moving their mouse, client won't fire events
  81. while wait(1/30) do
  82. if h~=Mouse.Hit or t~=Mouse.Target then
  83. h,t=Mouse.Hit,Mouse.Target
  84. Event:FireServer({isMouse=true,Target=t,Hit=h})
  85. end
  86. end]==],Player.Character)
  87.  
  88. ----Sandboxed game object that allows the usage of client-side methods and services
  89. --Real game object
  90. local _rg = game
  91.  
  92. --Metatable for fake service
  93. local fsmt = {
  94. __index = function(self,k)
  95. local s = rawget(self,"_RealService")
  96. if s then return s[k] end
  97. end,
  98. __newindex = function(self,k,v)
  99. local s = rawget(self,"_RealService")
  100. if s then s[k]=v end
  101. end,
  102. __call = function(self,...)
  103. local s = rawget(self,"_RealService")
  104. if s then return s(...) end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return self[s]
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. }
  123. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  124. g.service = g.GetService
  125.  
  126. g.RunService = FakeService({
  127. RenderStepped = _rg:GetService("RunService").Heartbeat,
  128. BindToRenderStep = function(self,name,_,fun)
  129.  
  130. end,
  131. UnbindFromRenderStep = function(self,name)
  132. self._btrs[name]:Disconnect()
  133. end,
  134. },"RunService")
  135.  
  136. setmetatable(g,{
  137. __index=function(self,s)
  138. return _rg:GetService(s) or typeof(_rg[s])=="function"
  139. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  140. end,
  141. __newindex = fsmt.__newindex,
  142. __call = fsmt.__call
  143. })
  144. --Changing owner to fake player object to support owner:GetMouse()
  145. game,owner = g,g.Players.LocalPlayer
  146. end
  147. Effects = {}
  148. local Player = game.Players.LocalPlayer
  149. local Character = Player.Character
  150. local Humanoid = Character.Humanoid
  151. local mouse = Player:GetMouse()
  152. local m = Instance.new("Model", Character)
  153. m.Name = "WeaponModel"
  154. local rearRotor = Instance.new("Model", Character)
  155. rearRotor.Name = "RearRotor"
  156. local rail = Instance.new("Model", Character)
  157. rail.Name = "Rail"
  158. local shield = Instance.new("Model", Character)
  159. shield.Name = "Shield"
  160. local LeftArm = Character["Left Arm"]
  161. local RightArm = Character["Right Arm"]
  162. local LeftLeg = Character["Left Leg"]
  163. local RightLeg = Character["Right Leg"]
  164. local Head = Character.Head
  165. local Torso = Character.Torso
  166. local cam = game.Workspace.CurrentCamera
  167. local RootPart = Character.HumanoidRootPart
  168. local RootJoint = RootPart.RootJoint
  169. local equipped = false
  170. local attack = false
  171. local aim = false
  172. local vHold = false
  173. local Anim = "Idle"
  174. local idle = 0
  175. local attacktype = 1
  176. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1).magnitude).x or (RootPart.Velocity * Vector3.new(1, 0, 1).magnitude).z
  177. local velocity = RootPart.Velocity.y
  178. local sine = 0
  179. local change = 1
  180. local lapse = 0
  181. local grabbed = false
  182. local cn = CFrame.new
  183. local mr = math.rad
  184. local angles = CFrame.Angles
  185. local euler = CFrame.fromEulerAnglesXYZ
  186. local ud = UDim2.new
  187. local c3 = Color3.new
  188. local donum = 0
  189. local donum2 = 0
  190. local NeckCF = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  191. Humanoid.Animator:Destroy()
  192. Character.Animate:Destroy()
  193. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  194. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  195. local LHCF = (CFrame.fromEulerAnglesXYZ(0, -1.6, 0))
  196. RSH = nil
  197. RW = Instance.new("Weld")
  198. LW = Instance.new("Weld")
  199. RH = Torso["Right Hip"]
  200. LH = Torso["Left Hip"]
  201. RSH = Torso["Right Shoulder"]
  202. LSH = Torso["Left Shoulder"]
  203. RSH.Parent = nil
  204. LSH.Parent = nil
  205. RW.Name = "RW"
  206. RW.Part0 = Torso
  207. RW.C0 = cn(1.5, 0.5, 0)
  208. RW.C1 = cn(0, 0.5, 0)
  209. RW.Part1 = RightArm
  210. RW.Parent = Torso
  211. LW.Name = "LW"
  212. LW.Part0 = Torso
  213. LW.C0 = cn(-1.5, 0.5, 0)
  214. LW.C1 = cn(0, 0.5, 0)
  215. LW.Part1 = LeftArm
  216. LW.Parent = Torso
  217. local co1 = 2
  218. local co2 = 2
  219. local co3 = 2
  220. local co4 = 2
  221. local cooldown1 = 0
  222. local cooldown2 = 0
  223. local cooldown3 = 0
  224. local cooldown4 = 0
  225. local maxMana = 100
  226. local Mana = 100
  227. local skill1stam = 0
  228. local skill2stam = 0
  229. local skill3stam = 0
  230. local skill4stam = 0
  231. local skill4absorbrate = 2
  232. local blockDrainRate = 0.5
  233. local recovermana = 100
  234. local skillcolorscheme = Color3.new(1, 1, 1)
  235. local scrn = Instance.new("ScreenGui", Player.PlayerGui)
  236. makeframe = function(par, trans, pos, size, color)
  237. local frame = Instance.new("Frame", par)
  238. frame.BackgroundTransparency = trans
  239. frame.BorderSizePixel = 0
  240. frame.Position = pos
  241. frame.Size = size
  242. frame.BackgroundColor3 = Color3.new(color)
  243. return frame
  244. end
  245.  
  246. makelabel = function(par, text)
  247. local label = Instance.new("TextLabel", par)
  248. label.BackgroundTransparency = 1
  249. label.Size = UDim2.new(1, 0, 1, 0)
  250. label.Position = UDim2.new(0, 0, 0, 0)
  251. label.TextColor3 = Color3.new(255, 255, 255)
  252. label.TextStrokeTransparency = 0
  253. label.FontSize = Enum.FontSize.Size32
  254. label.Font = Enum.Font.SourceSansBold
  255. label.BorderSizePixel = 0
  256. label.TextScaled = true
  257. label.Text = text
  258. end
  259.  
  260. local colorscheme2 = Torso.BrickColor.Color
  261. framesk1 = makeframe(scrn, 0.5, UDim2.new(0.23, 0, 0.93, 0), UDim2.new(0.26, 0, 0.06, 0), colorscheme2)
  262. framesk2 = makeframe(scrn, 0.5, UDim2.new(0.5, 0, 0.93, 0), UDim2.new(0.26, 0, 0.06, 0), colorscheme2)
  263. framesk3 = makeframe(scrn, 0.5, UDim2.new(0.5, 0, 0.86, 0), UDim2.new(0.26, 0, 0.06, 0), colorscheme2)
  264. framesk4 = makeframe(scrn, 0.5, UDim2.new(0.23, 0, 0.86, 0), UDim2.new(0.26, 0, 0.06, 0), colorscheme2)
  265. bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  266. bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  267. bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  268. bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  269. text1 = makelabel(framesk1, "[C] Rail Dominator")
  270. text2 = makelabel(framesk2, "[V + HOLD] Gluon Drive")
  271. text3 = makelabel(framesk3, "[X] Arcus Surge")
  272. text4 = makelabel(framesk4, "[Z] Ground Breaker")
  273. Manabar = makeframe(scrn, 0.5, UDim2.new(0.23, 0, 0.82, 0), UDim2.new(0.26, 0, 0.03, 0), BrickColor.new("Really black").Color)
  274. Manacover = makeframe(Manabar, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), BrickColor.new("Cyan").Color)
  275. Manatext = makelabel(Manabar, "Energy")
  276. healthbar = makeframe(scrn, 0.5, UDim2.new(0.5, 0, 0.82, 0), UDim2.new(0.26, 0, 0.03, 0), BrickColor.new("Really black").Color)
  277. healthcover = makeframe(healthbar, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), BrickColor.new("Lime green").Color)
  278. healthtext = makelabel(healthbar, "Health")
  279. local stats = Instance.new("Folder", Character)
  280. stats.Name = "Stats"
  281. local block = Instance.new("BoolValue", stats)
  282. block.Name = "Block"
  283. block.Value = false
  284. local stun = Instance.new("BoolValue", stats)
  285. stun.Name = "Stun"
  286. stun.Value = false
  287. local defense = Instance.new("NumberValue", stats)
  288. defense.Name = "Defence"
  289. defense.Value = 1.2
  290. local speed = Instance.new("NumberValue", stats)
  291. speed.Name = "Speed"
  292. speed.Value = 0.7
  293. local damagea = Instance.new("NumberValue", stats)
  294. damagea.Name = "Damage"
  295. damagea.Value = 0.8
  296. clerp = function(a, b, t)
  297. return a:lerp(b, t)
  298. end
  299.  
  300. ArtificialHB = Instance.new("BindableEvent", script)
  301. ArtificialHB.Name = "Heartbeat"
  302. script:WaitForChild("Heartbeat")
  303. frame = 0.033333333333333
  304. tf = 0
  305. allowframeloss = false
  306. tossremainder = false
  307. lastframe = tick()
  308. script.Heartbeat:Fire()
  309. game:GetService("RunService").Heartbeat:connect(function(s, p)
  310. tf = tf + s
  311. if frame <= tf then
  312. if allowframeloss then
  313. script.Heartbeat:Fire()
  314. lastframe = tick()
  315. else
  316. for i = 1, math.floor(tf / frame) do
  317. script.Heartbeat:Fire()
  318. end
  319. lastframe = tick()
  320. end
  321. if tossremainder then
  322. tf = 0
  323. else
  324. tf = tf - frame * math.floor(tf / frame)
  325. end
  326. end
  327. end
  328. )
  329. swait = function(num)
  330. if num == 0 or num == nil then
  331. ArtificialHB.Event:wait()
  332. else
  333. for i = 0, num do
  334. ArtificialHB.Event:wait()
  335. end
  336. end
  337. end
  338.  
  339. local RbxUtility = LoadLibrary("RbxUtility")
  340. local Create = RbxUtility.Create
  341. RemoveOutlines = function(part)
  342. part.TopSurface = 10
  343. end
  344.  
  345. CreateWeaponPart = function(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  346. local fp = Create("Part")({formFactor = formfactor, Parent = parent, Reflectance = reflectance, Transparency = transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(brickcolor)), Name = name, Size = size, Material = material})
  347. RemoveOutlines(fp)
  348. return fp
  349. end
  350.  
  351. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  352. 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})
  353. RemoveOutlines(Part)
  354. return Part
  355. end
  356.  
  357. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  358. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  359. if Mesh == "SpecialMesh" then
  360. Msh.MeshType = MeshType
  361. Msh.MeshId = MeshId
  362. end
  363. return Msh
  364. end
  365.  
  366. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  367. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  368. return Weld
  369. end
  370.  
  371. rayCast = function(Position, Direction, Range, Ignore)
  372. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  373. end
  374.  
  375. CreateSound = function(id, par, vol, pit, looped)
  376. local sou = Instance.new("Sound", par or Character)
  377. coroutine.resume(coroutine.create(function()
  378. sou.Volume = vol
  379. sou.Pitch = pit or 1
  380. sou.SoundId = id
  381. sou.Looped = looped or false
  382. swait()
  383. sou:play()
  384. if looped == nil or looped == false then
  385. game:GetService("Debris"):AddItem(sou, 6)
  386. end
  387. end
  388. ))
  389. return sou
  390. end
  391.  
  392. local getclosest = function(obj, distance)
  393. local last, lastx = distance + 1, nil
  394. for i,v in pairs(workspace:GetChildren()) do
  395. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  396. local t = v.Torso
  397. local dist = (t.Position - obj.Position).magnitude
  398. if dist <= distance and dist < last then
  399. last = dist
  400. lastx = v
  401. end
  402. end
  403. end
  404. return lastx
  405. end
  406.  
  407. makegui = function(cframe, text)
  408. local a = math.random(-10, 10) / 100
  409. local c = Instance.new("Part")
  410. c.Transparency = 1
  411. Instance.new("BodyGyro").Parent = c
  412. c.Parent = Character
  413. c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0))
  414. local f = Instance.new("BodyPosition")
  415. f.P = 2000
  416. f.D = 100
  417. f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  418. f.position = c.Position + Vector3.new(0, 3, 0)
  419. f.Parent = c
  420. game:GetService("Debris"):AddItem(c, 6.5)
  421. c.CanCollide = false
  422. c.Parent = Character
  423. c.CanCollide = false
  424. local bg = Instance.new("BillboardGui", c)
  425. bg.Adornee = c
  426. bg.Size = UDim2.new(1, 0, 1, 0)
  427. bg.StudsOffset = Vector3.new(0, 0, 0)
  428. bg.AlwaysOnTop = false
  429. local tl = Instance.new("TextLabel", bg)
  430. tl.BackgroundTransparency = 1
  431. tl.Size = UDim2.new(1, 0, 1, 0)
  432. tl.Text = text
  433. tl.Font = "SourceSansBold"
  434. tl.FontSize = "Size42"
  435. if crit == true then
  436. tl.TextColor3 = Color3.new(0.70588235294118, 0, 0)
  437. else
  438. tl.TextColor3 = Color3.new(255, 0.70588235294118, 0.2)
  439. end
  440. tl.TextStrokeTransparency = 0
  441. tl.TextScaled = true
  442. tl.TextWrapped = true
  443. coroutine.wrap(function()
  444. wait(2)
  445. for i = 1, 10 do
  446. swait()
  447. c.Transparency = 1
  448. tl.TextTransparency = tl.TextTransparency + 0.1
  449. end
  450. end
  451. )()
  452. end
  453.  
  454. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, decreaseblock, blockreduction)
  455. if hit.Parent == nil or hit.Name == "Laser" or hit.Name == "Reference" then
  456. return
  457. end
  458. local h = nil
  459. if hit.Parent:FindFirstChild("Humanoid") then
  460. h = hit.Parent:FindFirstChild("Humanoid")
  461. else
  462. if hit.Parent.Parent:FindFirstChild("Humanoid") then
  463. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  464. else
  465. if hit.Parent.Parent:FindFirstChild("Parent") and hit.Parent.Parent.Parent:FindFirstChild("Humanoid") then
  466. h = hit.Parent.Parent.Parent:FindFirstChild("Humanoid")
  467. end
  468. end
  469. end
  470. h = nil
  471. if h == nil then
  472. return
  473. end
  474. for _,v in pairs(hit.Parent:children()) do
  475. if v:IsA("Humanoid") then
  476. h = v
  477. end
  478. end
  479. if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  480. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  481. end
  482. if hit.Parent.className == "Hat" then
  483. hit = hit.Parent.Parent:findFirstChild("Head")
  484. end
  485. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil and hit.Parent:FindFirstChild("Armed") ~= nil then
  486. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  487. return
  488. end
  489. local c = Instance.new("ObjectValue")
  490. c.Name = "creator"
  491. c.Value = game:service("Players").LocalPlayer
  492. c.Parent = h
  493. game:GetService("Debris"):AddItem(c, 0.5)
  494. local Damage = math.random(minim, maxim)
  495. local blocked = false
  496. local stats = (hit.Parent:FindFirstChild("Stats"))
  497. local block = nil
  498. if stats ~= nil then
  499. block = stats.Block
  500. end
  501. if blockreduction == nil then
  502. blockreduction = 3
  503. end
  504. if block ~= nil then
  505. if block.className == "NumberValue" and block.Value > 0 then
  506. blocked = true
  507. if decreaseblock == nil then
  508. block.Value = block.Value - 1
  509. end
  510. end
  511. if block.className == "BoolValue" and block.Value == true then
  512. blocked = true
  513. local vp = Instance.new("BodyVelocity")
  514. vp.P = 500
  515. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  516. if KnockbackType == 1 then
  517. vp.velocity = (Property.CFrame.lookVector * knockback + Property.Velocity / 1.05) / blockreduction
  518. else
  519. if KnockbackType == 2 then
  520. vp.velocity = Property.CFrame.lookVector * knockback / blockreduction
  521. end
  522. end
  523. if knockback > 0 then
  524. vp.Parent = hit.Parent.Torso
  525. end
  526. game:GetService("Debris"):AddItem(vp, 0.5)
  527. end
  528. do
  529. if block.className == "IntValue" and block.Value > 0 then
  530. blocked = true
  531. if decreaseblock ~= nil then
  532. block.Value = block.Value - 1
  533. end
  534. end
  535. if blocked == false then
  536. h.Health = h.Health - Damage
  537. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Hitbox.BrickColor.Color)
  538. else
  539. h.Health = h.Health - (Damage / blockreduction or 3)
  540. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), math.floor(-Damage / blockreduction or 3) + 0.5, 1.5, BrickColor.new("Bright blue").Color)
  541. end
  542. if Type == "Knockdown" and blocked == false then
  543. local hum = hit.Parent.Humanoid
  544. hum.PlatformStand = true
  545. coroutine.resume(coroutine.create(function(HHumanoid)
  546. swait(1)
  547. HHumanoid.PlatformStand = false
  548. end
  549. ), hum)
  550. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  551. local bodvol = Instance.new("BodyVelocity")
  552. bodvol.velocity = angle * knockback
  553. bodvol.P = 5000
  554. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  555. bodvol.Parent = hit
  556. local rl = Instance.new("BodyAngularVelocity")
  557. rl.P = 3000
  558. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  559. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  560. rl.Parent = hit
  561. game:GetService("Debris"):AddItem(bodvol, 0.5)
  562. game:GetService("Debris"):AddItem(rl, 0.5)
  563. else
  564. do
  565. if Type == "Normal" and blocked == false then
  566. local vp = Instance.new("BodyVelocity")
  567. vp.P = 500
  568. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  569. if KnockbackType == 1 then
  570. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  571. else
  572. if KnockbackType == 2 then
  573. vp.velocity = Property.CFrame.lookVector * knockback
  574. end
  575. end
  576. if knockback > 0 then
  577. vp.Parent = hit.Parent.Torso
  578. end
  579. game:GetService("Debris"):AddItem(vp, 0.5)
  580. else
  581. do
  582. if Type == "Up" and blocked == false then
  583. local bodyVelocity = Instance.new("BodyVelocity")
  584. bodyVelocity.velocity = vt(0, 60, 0)
  585. bodyVelocity.P = 5000
  586. bodyVelocity.maxForce = Vector3.new(8000, 8000, 8000)
  587. bodyVelocity.Parent = hit
  588. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  589. local rl = Instance.new("BodyAngularVelocity")
  590. rl.P = 3000
  591. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  592. rl.angularvelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
  593. rl.Parent = hit
  594. game:GetService("Debris"):AddItem(rl, 0.5)
  595. else
  596. do
  597. if Type == "Snare" and blocked == false then
  598. local bp = Instance.new("BodyPosition")
  599. bp.P = 2000
  600. bp.D = 100
  601. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  602. bp.position = hit.Parent.Torso.Position
  603. bp.Parent = hit.Parent.Torso
  604. game:GetService("Debris"):AddItem(bp, 1)
  605. else
  606. do
  607. if Type == "Target" and blocked == false then
  608. local Targetting = false
  609. if Targetting == false then
  610. ZTarget = hit.Parent.Torso
  611. coroutine.resume(coroutine.create(function(Part)
  612. CreateSound("http://www.roblox.com/asset/?id=15666462", Part, 1, 1.5)
  613. swait(5)
  614. CreateSound("http://www.roblox.com/asset/?id=15666462", Part, 1, 1.5)
  615. end
  616. ), ZTarget)
  617. local TargHum = ZTarget.Parent:findFirstChild("Humanoid")
  618. local targetgui = Instance.new("BillboardGui")
  619. targetgui.Parent = ZTarget
  620. targetgui.Size = UDim2.new(10, 100, 10, 100)
  621. local targ = Instance.new("ImageLabel")
  622. targ.Parent = targetgui
  623. targ.BackgroundTransparency = 1
  624. targ.Image = "rbxassetid://4834067"
  625. targ.Size = UDim2.new(1, 0, 1, 0)
  626. cam.CameraType = "Scriptable"
  627. cam.CoordinateFrame = CFrame.new(Head.CFrame.p, ZTarget.Position)
  628. local dir = Vector3.new(cam.CoordinateFrame.lookVector.x, 0, cam.CoordinateFrame.lookVector.z)
  629. workspace.CurrentCamera.CoordinateFrame = CFrame.new(Head.CFrame.p, ZTarget.Position)
  630. Targetting = true
  631. RocketTarget = ZTarget
  632. for i = 1, Property do
  633. if Humanoid.Health > 0 and Character.Parent ~= nil and TargHum.Health > 0 and TargHum.Parent ~= nil and Targetting == true then
  634. swait()
  635. end
  636. cam.CoordinateFrame = CFrame.new(Head.CFrame.p, ZTarget.Position)
  637. dir = Vector3.new(cam.CoordinateFrame.lookVector.x, 0, cam.CoordinateFrame.lookVector.z)
  638. cam.CoordinateFrame = CFrame.new(Head.CFrame.p, ZTarget.Position) * cf(0, 5, 10) * euler(-0.3, 0, 0)
  639. end
  640. Targetting = false
  641. RocketTarget = nil
  642. targetgui.Parent = nil
  643. cam.CameraType = "Custom"
  644. end
  645. end
  646. do
  647. local debounce = Instance.new("BoolValue")
  648. debounce.Name = "DebounceHit"
  649. debounce.Parent = hit.Parent
  650. debounce.Value = true
  651. game:GetService("Debris"):AddItem(debounce, Delay)
  652. c = Instance.new("ObjectValue")
  653. c.Name = "creator"
  654. c.Value = Player
  655. c.Parent = h
  656. game:GetService("Debris"):AddItem(c, 0.5)
  657. end
  658. end
  659. end
  660. end
  661. end
  662. end
  663. end
  664. end
  665. end
  666. end
  667. end
  668. end
  669. end
  670.  
  671. ShowDamage = function(Pos, Text, Time, Color)
  672. local Rate = 0.033333333333333
  673. if not Pos then
  674. local Pos = Vector3.new(0, 0, 0)
  675. end
  676. local Text = Text or ""
  677. local Time = Time or 2
  678. if not Color then
  679. local Color = Color3.new(1, 0, 0)
  680. end
  681. local EffectPart = CreateWeaponPart("Custom", Character, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  682. EffectPart.Anchored = true
  683. local BillboardGui = Instance.new("BillboardGui")
  684. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  685. BillboardGui.Adornee = EffectPart
  686. local TextLabel = Instance.new("TextLabel")
  687. TextLabel.BackgroundTransparency = 1
  688. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  689. TextLabel.Text = Text
  690. TextLabel.TextColor3 = Color
  691. TextLabel.TextScaled = true
  692. TextLabel.Font = Enum.Font.ArialBold
  693. TextLabel.Parent = BillboardGui
  694. BillboardGui.Parent = EffectPart
  695. game.Debris:AddItem(EffectPart, Time + 0.1)
  696. EffectPart.Parent = Character
  697. Delay(0, function()
  698. local Frames = Time / Rate
  699. for Frame = 1, Frames do
  700. wait(Rate)
  701. local Percent = Frame / Frames
  702. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  703. TextLabel.TextTransparency = Percent
  704. end
  705. if EffectPart and EffectPart.Parent then
  706. EffectPart:Destroy()
  707. end
  708. end
  709. )
  710. end
  711.  
  712. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  713. for _,c in pairs(workspace:children()) do
  714. local hum = c:findFirstChild("Humanoid")
  715. if hum ~= nil then
  716. local head = c:findFirstChild("Torso")
  717. if head ~= nil then
  718. local targ = head.Position - Part.Position
  719. local mag = targ.magnitude
  720. if mag <= magni and c.Name ~= Player.Name then
  721. Damagefunc(Part, head, mindam, maxdam, knock, Type, RootPart, 0.2, 1)
  722. end
  723. end
  724. end
  725. end
  726. end
  727.  
  728. LeftHandle = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Handle", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  729. LeftHandleweld = CreateWeld(m, Character["Left Arm"], LeftHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0481894873, 0.0176233053, 1.05672896, 7.91948478e-005, -0.0114456406, -0.999934554, -1, -0.000125397128, -7.77646856e-005, -0.000124498867, 0.999934435, -0.0114456518))
  730. CreateMesh("SpecialMesh", LeftHandle, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1.79999995, 1.79999995, 2))
  731. SMnrgRng = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Toothpaste", "nrgRng", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  732. SMnrgRngweld = CreateWeld(m, LeftHandle, SMnrgRng, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0150001682, 0.0078753233, 1.20272875, 1.00000012, 0, 0, 0, 1, -3.97903932e-013, 0, -3.97903932e-013, 1.00000012))
  733. CreateMesh("SpecialMesh", SMnrgRng, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1.79999995, 1.79999995, 2))
  734. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(1.79999995, 0.300000012, 0.300000012))
  735. Partweld = CreateWeld(m, LeftHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0289917998, -0.0111817122, -0.157007813, 1.00000012, 0, 0, 0, 1, -3.97903932e-013, 0, -3.97903932e-013, 1.00000012))
  736. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  737. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  738. Partweld = CreateWeld(m, LeftHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.39512122e-005, 4.9829483e-005, -0.400003552, 1.00000012, 0, 0, 0, 1, -3.97903932e-013, 0, -3.97903932e-013, 1.00000012))
  739. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1.79999995, 1.79999995, 2))
  740. LGnrgRng = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Toothpaste", "nrgRng", Vector3.new(1, 1, 0.200000003))
  741. LGnrgRngweld = CreateWeld(m, LeftHandle, LGnrgRng, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0596184209, 0.00756621361, 3.90246272, 1.00000012, 0, 0, 0, 1, -3.97903932e-013, 0, -3.97903932e-013, 1.00000012))
  742. CreateMesh("SpecialMesh", LGnrgRng, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(3, 3, 1))
  743. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Toothpaste", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  744. Partweld = CreateWeld(m, LeftHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0022751987, 2.46763229e-005, -0.20001471, 1.00000012, 0, 0, 0, 1, -3.97903932e-013, 0, -3.97903932e-013, 1.00000012))
  745. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(2.0999999, 2.0999999, 1.20000005))
  746. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  747. Partweld = CreateWeld(m, LeftHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0022752136, 2.46763229e-005, -0.20001328, 1.00000012, 0, 0, 0, 1, -3.97903932e-013, 0, -3.97903932e-013, 1.00000012))
  748. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1.79999995, 1.79999995, 2))
  749. Hitbox = CreateWeaponPart(Enum.FormFactor.Brick, m, Enum.Material.Plastic, 0, 1, "Really black", "Hitbox", Vector3.new(2.48000002, 1.44999993, 2.5999999))
  750. Hitboxweld = CreateWeld(m, LeftHandle, Hitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0208437443, 0.118899107, -0.0742249787, 7.91661951e-005, -0.99999994, -0.000124600119, -0.0114456592, -0.000125502178, 0.999934554, -0.999934494, -7.7734876e-005, -0.0114456508))
  751. RightHandle = CreateWeaponPart(Enum.FormFactor.Symmetric, m, Enum.Material.Plastic, 0, 1, "Pastel brown", "Handle", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  752. RightHandleweld = CreateWeld(m, Character["Right Arm"], RightHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 5.96046448e-008, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1))
  753. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.210000008, 0.200000003))
  754. Partweld = CreateWeld(m, RightHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00615789229, -0.00749695301, -0.713596702, 0.00343851582, -0.0130101992, 0.99990952, 0.999908209, 0.0131466873, -0.00326745468, -0.0131029878, 0.999828994, 0.0130542098))
  755. CreateMesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(5.19999981, 5, 3))
  756. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.26000002))
  757. Partweld = CreateWeld(m, RightHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00633427128, -0.00812423229, 0.316169471, 0.00343851, -0.0130097354, 0.99990952, 0.999983072, -0.00467376411, -0.00349957286, 0.00471886946, 0.999904513, 0.0129934428))
  758. CreateMesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(5.19999981, 5.0999999, 3))
  759. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Toothpaste", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  760. Partweld = CreateWeld(m, RightHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00592672965, -0.512394786, 0.348286837, 0.00343851582, -0.0130101992, 0.99990952, 0.999908209, 0.0131466873, -0.00326745468, -0.0131029878, 0.999828994, 0.0130542098))
  761. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.5, 0.5, 0.5))
  762. RotorHandle = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "RotorHandle", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  763. RotorHandleweld = CreateWeld(m, LeftHandle, RotorHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0022752136, 2.46763229e-005, -0.20001328, 1.00000012, 0, 0, 0, 1, -3.97903932e-013, 0, -3.97903932e-013, 1.00000012))
  764. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 1.38300407, 0.455274403))
  765. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0708336234, -1.50832129, 0.498044372, 0.707035065, 0.707131386, 0.0081796376, -0.547542334, 0.540074348, 0.639153421, 0.447547853, -0.456382543, 0.769035935))
  766. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.687728763, 1, 1))
  767. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 1.28300405, 0.465274394))
  768. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0788677931, 1.42347693, -0.449401736, 0.707083941, -0.707084417, 0.00800593756, -0.554244578, -0.561204016, -0.614705682, 0.43914175, 0.430211216, -0.788716078))
  769. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.687728763, 1, 1))
  770. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Toothpaste", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  771. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0787920952, -0.413565874, 1.75803661, -0.707136631, 0.707032025, -0.00797253475, 0.311199784, 0.301081628, -0.901390433, -0.634911597, -0.639887214, -0.432934046))
  772. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.171932191, 2.06318712, 0.343864322))
  773. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 1.51300383, 0.687728643))
  774. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0787450075, -1.02296484, 1.68831527, -0.707139432, 0.707029164, -0.00797644071, 0.464936852, 0.456450999, -0.758608103, -0.532717288, -0.540150166, -0.651498377))
  775. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.687728763, 1, 1))
  776. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 2.88846183, 0.687728643))
  777. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0789119005, -2.71741366, 1.07279229, 0.707086623, -0.707081854, 0.00799725484, 0.394271672, 0.403612196, 0.82561934, -0.587008238, -0.580631137, 0.564171076))
  778. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.687728763, 1, 1))
  779. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 2.88846183, 0.687728643))
  780. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0788670778, -2.44238925, 0.834575415, 0.707086623, -0.707081854, 0.00799725484, 0.394271672, 0.403612196, 0.82561934, -0.587008238, -0.580631137, 0.564171076))
  781. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.687728763, 1, 1))
  782. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 1.38300407, 0.455274403))
  783. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0788627863, -1.51101875, 0.500322938, 0.707086146, -0.707082272, 0.00800287351, 0.532733202, 0.540109992, 0.651518703, -0.464999825, -0.456416398, 0.75859046))
  784. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.687728763, 1, 1))
  785. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 1.28300405, 0.465274394))
  786. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.128174901, 1.40868759, -0.438068837, -0.707084, 0.707084417, -0.0080038365, 0.568168223, 0.561356604, -0.601717353, -0.42097193, -0.430012137, -0.7986691))
  787. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.687728763, 1, 1))
  788. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Toothpaste", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  789. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.128249526, -0.4056243, 1.74116552, 0.707135856, -0.707032025, 0.00803845003, -0.290484756, -0.300854653, -0.90835309, 0.644653141, 0.639993906, -0.418127179))
  790. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.171932191, 2.06318712, 0.343864322))
  791. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 1.51300383, 0.687728643))
  792. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.128296375, -1.01092637, 1.67407274, 0.707138777, -0.707029164, 0.00803461019, -0.447449356, -0.456259429, -0.769166112, 0.547488809, 0.540312052, -0.638998449))
  793. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.687728763, 1, 1))
  794. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 2.88846183, 0.687728643))
  795. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.12812984, -2.70677805, 1.05749547, -0.707086444, 0.707081854, -0.00801257882, -0.413065463, -0.403818071, 0.816277027, 0.573939025, 0.580487967, 0.577605367))
  796. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.687728763, 1, 1))
  797. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 2.88846183, 0.687728643))
  798. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.12817502, -2.43175316, 0.819277644, -0.707086444, 0.707081854, -0.00801257882, -0.413065463, -0.403818071, 0.816277027, 0.573939025, 0.580487967, 0.577605367))
  799. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.687728763, 1, 1))
  800. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 1.38300407, 0.455274403))
  801. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.128179669, -1.4967854, 0.488298923, -0.707086086, 0.707082272, -0.00800695177, -0.5475052, -0.540271878, 0.639018416, 0.447512656, 0.456224799, 0.76914984))
  802. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.687728763, 1, 1))
  803. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 1.28300405, 0.465274394))
  804. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.120145082, 1.41149151, -0.440217525, -0.70703721, -0.70712924, -0.00818065181, -0.554282606, 0.561320245, -0.614565372, 0.439169079, -0.429986089, -0.788823605))
  805. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.687728763, 1, 1))
  806. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Toothpaste", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  807. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.120219231, -0.407127917, 1.74436224, 0.706984401, 0.707181513, 0.00821406581, 0.311306417, -0.300748885, -0.901464701, -0.63502878, 0.639878511, -0.432774931))
  808. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.171932191, 2.06318712, 0.343864322))
  809. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 1.51300383, 0.687728643))
  810. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.120266378, -1.0132066, 1.67677212, 0.706981599, 0.707184374, 0.00821016077, 0.465069741, -0.456127822, -0.758721054, -0.532810807, 0.540220141, -0.651364028))
  811. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.687728763, 1, 1))
  812. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 2.88846183, 0.687728643))
  813. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.120099187, -2.70879459, 1.060395, -0.707034528, -0.707131803, -0.00818933453, 0.394292414, -0.403798521, 0.82551837, -0.587057054, 0.580440879, 0.564316154))
  814. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.687728763, 1, 1))
  815. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 2.88846183, 0.687728643))
  816. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.120144725, -2.43376923, 0.82217741, -0.707034528, -0.707131803, -0.00818933453, 0.394292414, -0.403798521, 0.82551837, -0.587057054, 0.580440879, 0.564316154))
  817. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.687728763, 1, 1))
  818. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 1.38300407, 0.455274403))
  819. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.120149255, -1.49948359, 0.490578234, -0.707035005, -0.707131386, -0.00818371587, 0.532770336, -0.540236235, 0.651383698, -0.465034902, 0.456190914, 0.758704364))
  820. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.687728763, 1, 1))
  821. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 1.28300405, 0.465274394))
  822. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0708386302, 1.42067397, -0.447253823, 0.707037151, 0.70712924, 0.00818275195, 0.568206251, -0.561167657, -0.601857662, -0.420999259, 0.430185169, -0.798561573))
  823. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.687728763, 1, 1))
  824. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Toothpaste", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  825. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0707631111, -0.412062526, 1.75484037, -0.706985176, -0.707181513, -0.00814815145, -0.290591359, 0.300975889, -0.908278823, 0.644770324, -0.639771819, -0.418286294))
  826. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.171932191, 2.06318712, 0.343864322))
  827. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 1.51300383, 0.687728643))
  828. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0707163811, -1.02068484, 1.68561661, -0.706982255, -0.707184374, -0.00815199129, -0.447582245, 0.456319392, -0.769053161, 0.547582328, -0.540058255, -0.639132917))
  829. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.687728763, 1, 1))
  830. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 2.88846183, 0.687728643))
  831. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0708848238, -2.71539783, 1.06989348, 0.707034707, 0.707131803, 0.00817401055, -0.413086206, 0.403592646, 0.816377997, 0.573987842, -0.580584049, 0.577460289))
  832. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.687728763, 1, 1))
  833. Part = CreateWeaponPart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 2.88846183, 0.687728643))
  834. Partweld = CreateWeld(m, RotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0708384514, -2.44037342, 0.831676602, 0.707034707, 0.707131803, 0.00817401055, -0.413086206, 0.403592646, 0.816377997, 0.573987842, -0.580584049, 0.577460289))
  835. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.687728763, 1, 1))
  836. RearRotorHandle = CreateWeaponPart(Enum.FormFactor.Brick, rearRotor, Enum.Material.Plastic, 0, 1, "Medium stone grey", "Handle", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  837. RearRotorHandleweld = CreateWeld(rearRotor, Character["Left Arm"], RearRotorHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000138282776, -0.763178706, 0.0102877412, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1))
  838. Part = CreateWeaponPart(Enum.FormFactor.Custom, rearRotor, Enum.Material.SmoothPlastic, 0, 1, "Toothpaste", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  839. Partweld = CreateWeld(rearRotor, RearRotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.152360201, -0.7086851, 2.94673538, -1, 9.55974247e-005, 4.89801168e-005, -9.55983123e-005, -0.999999762, -1.76297326e-005, 4.89784325e-005, -1.76344111e-005, 1))
  840. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.25, 3, 0.5))
  841. Part = CreateWeaponPart(Enum.FormFactor.Custom, rearRotor, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "Part", Vector3.new(0.200000003, 2.20000005, 1.20000005))
  842. Partweld = CreateWeld(rearRotor, RearRotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0879260302, -2.49646044, 1.15150487, 3.2633543e-005, 1.7081331e-005, -1, -0.96591121, 0.258873641, -2.7099195e-005, 0.258873731, 0.965911031, 2.49470213e-005))
  843. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  844. Part = CreateWeaponPart(Enum.FormFactor.Custom, rearRotor, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "Part", Vector3.new(0.200000003, 4.19999981, 1))
  845. Partweld = CreateWeld(rearRotor, RearRotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0877985284, -3.83579588, 1.5019176, 8.10176134e-005, 6.36921541e-005, -1, -0.865989804, 0.500061631, -3.83104125e-005, 0.50006175, 0.865989625, 9.56705771e-005))
  846. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  847. Part = CreateWeaponPart(Enum.FormFactor.Custom, rearRotor, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "Part", Vector3.new(0.200000003, 4.19999981, 1))
  848. Partweld = CreateWeld(rearRotor, RearRotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0876546949, -4.2356863, 1.84832323, 8.10176134e-005, 6.36921541e-005, -1, -0.865989804, 0.500061631, -3.83104125e-005, 0.50006175, 0.865989625, 9.56705771e-005))
  849. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  850. Part = CreateWeaponPart(Enum.FormFactor.Custom, rearRotor, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "Part", Vector3.new(0.200000003, 2.19999981, 1))
  851. Partweld = CreateWeld(rearRotor, RearRotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0881010816, -1.6923486, 2.80422521, 2.66134703e-005, -1.39818931e-005, 1, -0.258923441, -0.96589762, -6.61423292e-006, 0.965897858, -0.258923382, -2.93261346e-005))
  852. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  853. Part = CreateWeaponPart(Enum.FormFactor.Custom, rearRotor, Enum.Material.SmoothPlastic, 0, 1, "Toothpaste", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  854. Partweld = CreateWeld(rearRotor, RearRotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0880328566, -0.708874345, 2.94670677, 5.02169132e-006, 6.38468555e-005, 1, -9.67959641e-005, -0.999999762, 6.38473575e-005, 1, -9.67962624e-005, -5.01551131e-006))
  855. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.25, 3, 0.5))
  856. Part = CreateWeaponPart(Enum.FormFactor.Custom, rearRotor, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "Part", Vector3.new(0.200000003, 4.19999981, 1))
  857. Partweld = CreateWeld(rearRotor, RearRotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0882927999, -3.83751416, 1.49840403, -7.78734611e-005, 8.45296672e-005, 1, 0.866055846, 0.499947369, 2.51823622e-005, -0.499947459, 0.866055608, -0.000112140064))
  858. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  859. Part = CreateWeaponPart(Enum.FormFactor.Custom, rearRotor, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "Part", Vector3.new(0.200000003, 2.20000005, 1.20000005))
  860. Partweld = CreateWeld(rearRotor, RearRotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0883924663, -2.49747229, 1.14758539, -0.000127851948, 8.4142237e-005, 1, 0.965971649, 0.258648068, 0.000101738129, -0.258648127, 0.96597147, -0.000114347713))
  861. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  862. Part = CreateWeaponPart(Enum.FormFactor.Custom, rearRotor, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "Part", Vector3.new(0.200000003, 2.19999981, 1))
  863. Partweld = CreateWeld(rearRotor, RearRotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0882568434, -1.69534659, 2.80337143, 4.76986097e-005, -7.78390458e-005, -1, 0.258832425, -0.965922058, 8.75324404e-005, -0.965922296, -0.258832365, -2.59258759e-005))
  864. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  865. Part = CreateWeaponPart(Enum.FormFactor.Custom, rearRotor, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "Part", Vector3.new(0.200000003, 4.19999981, 1))
  866. Partweld = CreateWeld(rearRotor, RearRotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0883531645, -4.23755169, 1.8447659, -7.78734611e-005, 8.45296672e-005, 1, 0.866055846, 0.499947369, 2.51823622e-005, -0.499947459, 0.866055608, -0.000112140064))
  867. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  868. Part = CreateWeaponPart(Enum.FormFactor.Custom, rearRotor, Enum.Material.SmoothPlastic, 0, 1, "Toothpaste", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  869. Partweld = CreateWeld(rearRotor, RearRotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0881102905, -0.711688459, -2.94676971, 5.02169132e-006, 6.38468555e-005, 1, -9.67959641e-005, -0.999999762, 6.38473575e-005, 1, -9.67962624e-005, -5.01551131e-006))
  870. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.25, 3, 0.5))
  871. Part = CreateWeaponPart(Enum.FormFactor.Custom, rearRotor, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "Part", Vector3.new(0.200000003, 4.19999981, 1))
  872. Partweld = CreateWeld(rearRotor, RearRotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.152352452, -3.83745646, 1.49872386, -1, 2.19111753e-005, -5.33312559e-005, -3.52297939e-005, 0.500015736, 0.866016209, 4.56419148e-005, 0.86601609, -0.500015855))
  873. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  874. Part = CreateWeaponPart(Enum.FormFactor.Custom, rearRotor, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "Part", Vector3.new(0.200000003, 2.20000005, 1.20000005))
  875. Partweld = CreateWeld(rearRotor, RearRotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.152505159, -2.49745202, 1.14781475, -1, 4.78689872e-005, 3.06963921e-006, 1.53502097e-005, 0.258728802, 0.965950012, 4.544486e-005, 0.965949833, -0.258728862))
  876. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  877. Part = CreateWeaponPart(Enum.FormFactor.Custom, rearRotor, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "Part", Vector3.new(0.200000003, 2.19999981, 1))
  878. Partweld = CreateWeld(rearRotor, RearRotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.15264535, -1.69557297, 2.80329514, 1, -8.55391263e-005, -6.28978087e-005, -6.63380342e-005, -0.965902925, 0.25890404, -8.28996126e-005, -0.25890395, -0.965903103))
  879. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  880. Part = CreateWeaponPart(Enum.FormFactor.Custom, rearRotor, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "Part", Vector3.new(0.200000003, 4.19999981, 1))
  881. Partweld = CreateWeld(rearRotor, RearRotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.152270079, -4.23744345, 1.84510767, -1, 2.19111753e-005, -5.33312559e-005, -3.52297939e-005, 0.500015736, 0.866016209, 4.56419148e-005, 0.86601609, -0.500015855))
  882. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  883. Part = CreateWeaponPart(Enum.FormFactor.Custom, rearRotor, Enum.Material.SmoothPlastic, 0, 1, "Toothpaste", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  884. Partweld = CreateWeld(rearRotor, RearRotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.152536869, -0.7119295, -2.94669724, -1, 9.55974247e-005, 4.89801168e-005, -9.55983123e-005, -0.999999762, -1.76297326e-005, 4.89784325e-005, -1.76344111e-005, 1))
  885. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.25, 3, 0.5))
  886. Part = CreateWeaponPart(Enum.FormFactor.Custom, rearRotor, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "Part", Vector3.new(0.200000003, 2.20000005, 1.20000005))
  887. Partweld = CreateWeld(rearRotor, RearRotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.15265131, -2.49634123, 1.15168691, 1, -1.49821371e-005, 2.75075436e-005, 3.04488494e-005, 0.258942276, -0.965892792, 7.34827427e-006, 0.965892553, 0.258942336))
  888. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  889. Part = CreateWeaponPart(Enum.FormFactor.Custom, rearRotor, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "Part", Vector3.new(0.200000003, 4.19999981, 1))
  890. Partweld = CreateWeld(rearRotor, RearRotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.152612925, -3.83569002, 1.50197709, 1, -2.76630253e-005, 2.7552247e-005, 3.76933967e-005, 0.500079393, -0.865979493, 1.01773057e-005, 0.865979373, 0.500079513))
  891. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  892. Part = CreateWeaponPart(Enum.FormFactor.Custom, rearRotor, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "Part", Vector3.new(0.200000003, 4.19999981, 1))
  893. Partweld = CreateWeld(rearRotor, RearRotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.15270555, -4.23561811, 1.84841764, 1, -2.76630253e-005, 2.7552247e-005, 3.76933967e-005, 0.500079393, -0.865979493, 1.01773057e-005, 0.865979373, 0.500079513))
  894. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  895. Part = CreateWeaponPart(Enum.FormFactor.Custom, rearRotor, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "Part", Vector3.new(0.200000003, 2.19999981, 1))
  896. Partweld = CreateWeld(rearRotor, RearRotorHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.152220964, -1.69214988, 2.80436611, -1, 0.000166705737, 5.29289318e-005, -0.000174724628, -0.965919554, -0.258841753, 7.97468692e-006, -0.258841693, 0.965919793))
  897. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  898. ShieldHandle = CreateWeaponPart(Enum.FormFactor.Custom, shield, Enum.Material.Plastic, 0, 1, "Toothpaste", "Handle", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  899. handleweld = CreateWeld(shield, Character["Right Arm"], ShieldHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.238033935, -0.224113405, -0.75435853, 2.45124138e-005, 0.707114398, 0.70709914, 7.06314813e-006, -0.70709908, 0.707114458, 1, -1.23387335e-005, -2.232716e-005))
  900. Part = CreateWeaponPart(Enum.FormFactor.Custom, shield, Enum.Material.Plastic, 0.5, 1, "Toothpaste", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  901. Partweld = CreateWeld(shield, ShieldHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 0.707103133, 0.707110465, 4.77082322e-005, -0.707110465, 0.707103133, -3.04873265e-005, -5.52925521e-005, -1.21773119e-005, 1))
  902. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1, 5.5999999, 0.400000006))
  903. Part = CreateWeaponPart(Enum.FormFactor.Custom, shield, Enum.Material.Plastic, 0.5, 1, "Cyan", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  904. Partweld = CreateWeld(shield, ShieldHandle, 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, -1.8189894e-012, 0, -1.8189894e-012, 1))
  905. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.800000012, 5.5999999, 0.200000003))
  906. Part = CreateWeaponPart(Enum.FormFactor.Custom, shield, Enum.Material.Plastic, 0.5, 1, "Cyan", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  907. Partweld = CreateWeld(shield, ShieldHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 0.707103133, 0.707110465, 4.77082322e-005, -0.707110465, 0.707103133, -3.04873265e-005, -5.52925521e-005, -1.21773119e-005, 1))
  908. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 6, 0.200000003))
  909. Part = CreateWeaponPart(Enum.FormFactor.Custom, shield, Enum.Material.Plastic, 0.5, 1, "Toothpaste", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  910. Partweld = CreateWeld(shield, ShieldHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 5.66244125e-007, 1, -5.63711073e-005, -1, 5.66244125e-007, -0.000140726566, -0.000140726537, 5.63711837e-005, 1))
  911. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 5.19999981, 0.400000006))
  912. Part = CreateWeaponPart(Enum.FormFactor.Custom, shield, Enum.Material.Plastic, 0.5, 1, "Toothpaste", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  913. Partweld = CreateWeld(shield, ShieldHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 0.707094014, -0.707119584, 0.000157117916, 0.707119584, 0.707094014, -1.47577284e-005, -0.000100661651, 0.000121536257, 1))
  914. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1, 5.5999999, 0.400000006))
  915. Part = CreateWeaponPart(Enum.FormFactor.Custom, shield, Enum.Material.Plastic, 0.5, 1, "Cyan", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  916. Partweld = CreateWeld(shield, ShieldHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 5.66244125e-007, 1, -5.63711073e-005, -1, 5.66244125e-007, -0.000140726566, -0.000140726537, 5.63711837e-005, 1))
  917. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.800000012, 5.5999999, 0.200000003))
  918. Part = CreateWeaponPart(Enum.FormFactor.Custom, shield, Enum.Material.Plastic, 0.5, 1, "Cyan", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  919. Partweld = CreateWeld(shield, ShieldHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 0.707094014, -0.707119584, 0.000157117916, 0.707119584, 0.707094014, -1.47577284e-005, -0.000100661651, 0.000121536257, 1))
  920. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 6, 0.200000003))
  921. Part = CreateWeaponPart(Enum.FormFactor.Custom, shield, Enum.Material.Plastic, 0.5, 1, "Toothpaste", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  922. Partweld = CreateWeld(shield, ShieldHandle, 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, -1.8189894e-012, 0, -1.8189894e-012, 1))
  923. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 5.19999981, 0.400000006))
  924. Blocker = CreateWeaponPart(Enum.FormFactor.Brick, shield, Enum.Material.Plastic, 0, 1, "Medium stone grey", "Blocker", Vector3.new(0.200000003, 5.76000023, 6.46999979))
  925. Blockerweld = CreateWeld(shield, ShieldHandle, Blocker, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000354290009, -0.399796933, 0.0251437165, 2.45124138e-005, 7.06314813e-006, 1, 0.707114458, -0.70709914, -1.23387354e-005, 0.70709914, 0.707114458, -2.232716e-005))
  926. LRingsHandle = CreateWeaponPart(Enum.FormFactor.Brick, m, Enum.Material.Plastic, 0, 1, "Medium stone grey", "Handle", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  927. LRingsHandleWeld = CreateWeld(m, Character["Left Arm"], LRingsHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 5.96046448e-008, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1))
  928. LRingShoulderWeld = CreateWeld(m, LRingsHandle, LRingShoulder, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.590000212, -6.36577606e-005, -6.8128109e-005, -0.000151079468, 0.999999762, 4.60445881e-005, 0.865981996, 0.000107806307, 0.500075221, 0.500075221, 0.000115424853, -0.865981996))
  929. LRingMiddleWeld = CreateWeld(m, LRingsHandle, LRingMiddle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.130000055, -4.79730807e-006, -1.28746033e-005, -9.91046691e-005, 0.999999762, -3.68952788e-005, 7.15851929e-005, 3.69023655e-005, 1, 1, 9.91020061e-005, -7.15888527e-005))
  930. LRingHandWeld = CreateWeld(m, LRingsHandle, LRingHand, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.309999973, 2.86102295e-006, -2.70605087e-005, 5.17578083e-005, 0.999999762, 7.09593296e-005, -0.86608696, 9.35464323e-006, 0.499893606, 0.499893546, -8.73303215e-005, 0.866086841))
  931. generateRail = function()
  932. local RailHandle = CreateWeaponPart(Enum.FormFactor.Brick, rail, Enum.Material.Plastic, 0, 1, "Medium stone grey", "Handle", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  933. local RailHandleweld = CreateWeld(m, Character["Left Arm"], RailHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 4, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1))
  934. end
  935.  
  936. BaseLaser = CreateWeaponPart(Enum.FormFactor.Brick, m, Enum.Material.Neon, 0.10000000149012, 1, "Toothpaste", "Handle", Vector3.new(1, 0.800000012, 1))
  937. BaseLaserweld = CreateWeld(m, Character["Left Arm"], BaseLaser, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.800000072, 3.57627869e-007, -1.43051352e-007, 4.68747942e-007, 0.999999881, 1.78813934e-007, -1, 4.68747771e-007, 5.66653569e-007, 5.66653512e-007, -1.78814176e-007, 1))
  938. CreateMesh("SpecialMesh", BaseLaser, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.800000012, 0.200000003))
  939. for i,v in pairs(Character:GetChildren()) do
  940. if v:IsA("Model") then
  941. for _,c in pairs(v:GetChildren()) do
  942. if c:IsA("Part") then
  943. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  944. end
  945. end
  946. end
  947. end
  948. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  949. local prt = CreatePart(Character, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  950. prt.Anchored = true
  951. prt.CFrame = cframe
  952. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  953. game:GetService("Debris"):AddItem(prt, 10)
  954. if Type == 1 or Type == nil then
  955. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  956. else
  957. if Type == 2 then
  958. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  959. end
  960. end
  961. return prt
  962. end
  963.  
  964. SphereEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  965. local prt = CreatePart(Character, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  966. prt.Anchored = true
  967. prt.CFrame = cframe
  968. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  969. game:GetService("Debris"):AddItem(prt, 10)
  970. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  971. return prt
  972. end
  973.  
  974. RingEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  975. local prt = CreatePart(Character, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  976. prt.Anchored = true
  977. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  978. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  979. game:GetService("Debris"):AddItem(prt, 10)
  980. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  981. return prt
  982. end
  983.  
  984. CylinderEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  985. local prt = CreatePart(Character, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  986. prt.Anchored = true
  987. prt.CFrame = cframe
  988. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  989. game:GetService("Debris"):AddItem(prt, 10)
  990. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  991. return prt
  992. end
  993.  
  994. WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  995. local prt = CreatePart(Character, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  996. prt.Anchored = true
  997. prt.CFrame = cframe
  998. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  999. game:GetService("Debris"):AddItem(prt, 10)
  1000. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1001. return prt
  1002. end
  1003.  
  1004. SpecialEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1005. local prt = CreatePart(Character, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1006. prt.Anchored = true
  1007. prt.CFrame = cframe
  1008. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1009. game:GetService("Debris"):AddItem(prt, 10)
  1010. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1011. return prt
  1012. end
  1013.  
  1014. BreakEffect = function(brickcolor, cframe, x1, y1, z1)
  1015. local prt = CreatePart(Character, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1016. prt.Anchored = true
  1017. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1018. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1019. local num = math.random(10, 50) / 1000
  1020. game:GetService("Debris"):AddItem(prt, 10)
  1021. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  1022. return prt
  1023. end
  1024.  
  1025. ChargeEffect = function(part, x1, y1, z1, x2, y2, z2, x3, y3, z3, color)
  1026. local S = Create("Part")({Material = "SmoothPlastic", Name = "Effect", formFactor = 0, Size = Vector3.new(x1, y1, z1), BrickColor = color, Reflectance = 0, TopSurface = 0, BottomSurface = 0, Transparency = 0, Anchored = false, CanCollide = false, Material = "Neon", CFrame = part.CFrame * cn(x2, y2, z2) * euler(x3, y3, z3), Parent = m})
  1027. local msh1 = Create("SpecialMesh")({Scale = Vector3.new(0.5, 0.5, 0.5), MeshType = "Sphere", Parent = S})
  1028. coroutine.resume(coroutine.create(function(Part, CF)
  1029. local f = Instance.new("BodyPosition")
  1030. f.P = 800
  1031. f.D = 100
  1032. f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1033. f.position = part.Position
  1034. f.Parent = Part
  1035. for i = 0, 1, 0.1 do
  1036. wait()
  1037. Part.Transparency = Part.Transparency + 0.1
  1038. end
  1039. Part.Parent = nil
  1040. end
  1041. ), S, S.CFrame)
  1042. end
  1043.  
  1044. attackone = function()
  1045. attack = true
  1046. CreateSound("http://www.roblox.com/asset/?id=442069814", LeftArm, 0.5, 1)
  1047. local con = Hitbox.Touched:connect(function(hit)
  1048. Damagefunc(Hitbox, hit, 2, 4, 1, "Normal", RootPart, 0.2, 1)
  1049. end
  1050. )
  1051. for i = 0, 1, 0.15 do
  1052. swait()
  1053. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.33)
  1054. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(15)), 0.33)
  1055. RW.C0 = clerp(RW.C0, CFrame.new(0.5, 0.4, -0.5) * angles(math.rad(83), math.rad(0), math.rad(-40)), 0.33)
  1056. LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.2, -0.4) * angles(math.rad(88), math.rad(0), math.rad(0)), 0.33)
  1057. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(12), math.rad(0)), 0.33)
  1058. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(10), math.rad(0)), 0.33)
  1059. LRingShoulderWeld.C0 = clerp(LRingShoulderWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.08, math.rad(0)), 0.3)
  1060. LRingMiddleWeld.C0 = clerp(LRingMiddleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / 0.05, math.rad(0)), 0.3)
  1061. LRingHandWeld.C0 = clerp(LRingHandWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.03, math.rad(0)), 0.3)
  1062. RotorHandleweld.C0 = clerp(RotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1063. RearRotorHandleweld.C0 = clerp(RearRotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1064. Hitboxweld.C0 = clerp(Hitboxweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1065. end
  1066. for i = 0, 1, 0.13 do
  1067. swait()
  1068. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.33)
  1069. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(60)), 0.33)
  1070. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.33)
  1071. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.1) * angles(math.rad(85), math.rad(0), math.rad(-60)), 0.33)
  1072. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(40), math.rad(0)), 0.33)
  1073. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(40), math.rad(0)), 0.33)
  1074. LRingShoulderWeld.C0 = clerp(LRingShoulderWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.08, math.rad(0)), 0.33)
  1075. LRingMiddleWeld.C0 = clerp(LRingMiddleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / 0.05, math.rad(0)), 0.33)
  1076. LRingHandWeld.C0 = clerp(LRingHandWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.03, math.rad(0)), 0.33)
  1077. RotorHandleweld.C0 = clerp(RotorHandleweld.C0, CFrame.new(0, 0, -1.5) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1078. RearRotorHandleweld.C0 = clerp(RearRotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1079. Hitboxweld.C0 = clerp(Hitboxweld.C0, CFrame.new(0, 0, -1.5) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1080. end
  1081. CreateSound("http://www.roblox.com/asset/?id=356425259", LeftArm, 1, 2)
  1082. CreateSound("http://www.roblox.com/asset/?id=412756170", LeftArm, 1, 0.8)
  1083. for i = 0, 1, 0.05 do
  1084. swait()
  1085. SMnrgRng.Transparency = 1 - i
  1086. if SMnrgRng.Transparency <= 0.4 then
  1087. SMnrgRng.Transparency = 0.5
  1088. end
  1089. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.33)
  1090. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(60)), 0.33)
  1091. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.33)
  1092. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.1) * angles(math.rad(85), math.rad(0), math.rad(-60)), 0.33)
  1093. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(40), math.rad(0)), 0.33)
  1094. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(40), math.rad(0)), 0.33)
  1095. LRingShoulderWeld.C0 = clerp(LRingShoulderWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.08, math.rad(0)), 0.33)
  1096. LRingMiddleWeld.C0 = clerp(LRingMiddleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / 0.05, math.rad(0)), 0.33)
  1097. LRingHandWeld.C0 = clerp(LRingHandWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.03, math.rad(0)), 0.33)
  1098. RotorHandleweld.C0 = clerp(RotorHandleweld.C0, CFrame.new(0, 0, -1.5) * angles(math.rad(0), math.rad(0), math.rad(30) - donum / 0.005), 0.33)
  1099. RearRotorHandleweld.C0 = clerp(RearRotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1100. Hitboxweld.C0 = clerp(Hitboxweld.C0, CFrame.new(0, 0, -1.5) * angles(math.rad(0), math.rad(0), math.rad(30) - donum / 0.005), 0.33)
  1101. end
  1102. SMnrgRng.Transparency = 1
  1103. con:disconnect()
  1104. attack = false
  1105. end
  1106.  
  1107. attacktwo = function()
  1108. attack = true
  1109. local con = Hitbox.Touched:connect(function(hit)
  1110. Damagefunc(Hitbox, hit, 3, 7, math.random(2, 3), "Normal", RootPart, 0.2, 1)
  1111. end
  1112. )
  1113. for i = 0, 1, 0.15 do
  1114. swait()
  1115. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.33)
  1116. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(60)), 0.33)
  1117. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.33)
  1118. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.7) * angles(math.rad(85), math.rad(-20), math.rad(15)), 0.33)
  1119. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), 0.33)
  1120. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), 0.33)
  1121. LRingShoulderWeld.C0 = clerp(LRingShoulderWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.08, math.rad(0)), 0.3)
  1122. LRingMiddleWeld.C0 = clerp(LRingMiddleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / 0.05, math.rad(0)), 0.3)
  1123. LRingHandWeld.C0 = clerp(LRingHandWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.03, math.rad(0)), 0.3)
  1124. RotorHandleweld.C0 = clerp(RotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1125. RearRotorHandleweld.C0 = clerp(RearRotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1126. Hitboxweld.C0 = clerp(Hitboxweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1127. end
  1128. CreateSound("http://www.roblox.com/asset/?id=356215636", LeftArm, 1, 1)
  1129. for i = 0, 1, 0.15 do
  1130. swait()
  1131. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.35)
  1132. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(-80)), 0.35)
  1133. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.35)
  1134. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.1) * angles(math.rad(20), math.rad(-20), math.rad(-80)), 0.35)
  1135. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-10), math.rad(-30), math.rad(0)), 0.35)
  1136. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-10), math.rad(-30), math.rad(0)), 0.35)
  1137. LRingShoulderWeld.C0 = clerp(LRingShoulderWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.08, math.rad(0)), 0.3)
  1138. LRingMiddleWeld.C0 = clerp(LRingMiddleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / 0.05, math.rad(0)), 0.3)
  1139. LRingHandWeld.C0 = clerp(LRingHandWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.03, math.rad(0)), 0.3)
  1140. RotorHandleweld.C0 = clerp(RotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1141. RearRotorHandleweld.C0 = clerp(RearRotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1142. Hitboxweld.C0 = clerp(Hitboxweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1143. end
  1144. con:disconnect()
  1145. attack = false
  1146. end
  1147.  
  1148. attackthree = function()
  1149. attack = true
  1150. CreateSound("http://www.roblox.com/asset/?id=356425259", SMnrgRng, 1, 1)
  1151. for i = 0, 1, 0.03 do
  1152. do
  1153. swait()
  1154. coroutine.resume(coroutine.create(function()
  1155. for _,v in pairs(rearRotor:getChildren()) do
  1156. if v:IsA("BasePart") and v.Name ~= "Handle" then
  1157. if v.Transparency <= 0.3 then
  1158. v.Transparency = 0
  1159. else
  1160. v.Transparency = 1 - i - 0.2
  1161. end
  1162. end
  1163. end
  1164. end
  1165. ))
  1166. LGnrgRng.Transparency = 1 - i
  1167. if LGnrgRng.Transparency <= 0.4 then
  1168. LGnrgRng.Transparency = 0.5
  1169. end
  1170. SMnrgRng.Transparency = 1 - i
  1171. if SMnrgRng.Transparency <= 0.4 then
  1172. SMnrgRng.Transparency = 0.5
  1173. end
  1174. BlockEffect("Toothpaste", LeftArm.CFrame * CFrame.new(0, -1, 0), 0.5, 0.5, 0.5, 0.8, 0.8, 0.8, 0.05, 1)
  1175. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.33)
  1176. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(60)), 0.33)
  1177. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.33)
  1178. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.1) * angles(math.rad(85), math.rad(0), math.rad(-60)), 0.33)
  1179. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(40), math.rad(0)), 0.33)
  1180. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(40), math.rad(0)), 0.33)
  1181. LRingShoulderWeld.C0 = clerp(LRingShoulderWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.08, math.rad(0)), 0.3)
  1182. LRingMiddleWeld.C0 = clerp(LRingMiddleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / 0.05, math.rad(0)), 0.3)
  1183. LRingHandWeld.C0 = clerp(LRingHandWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.03, math.rad(0)), 0.3)
  1184. RotorHandleweld.C0 = clerp(RotorHandleweld.C0, CFrame.new(0, 0, -1.5) * angles(math.rad(0), math.rad(0), math.rad(30) - donum / 0.03), 0.33)
  1185. RearRotorHandleweld.C0 = clerp(RearRotorHandleweld.C0, CFrame.new(0, -5, 0) * angles(math.rad(0), math.rad(30) + donum / 0.05, math.rad(0)), 0.33)
  1186. Hitboxweld.C0 = clerp(Hitboxweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1187. end
  1188. end
  1189. CreateSound("http://roblox.com/asset/?id=315744661", LGnrgRng, 1, 1)
  1190. CreateSound("http://www.roblox.com/asset/?id=300916014", LGnrgRng, 1, 1)
  1191. RootPart.Velocity = RootPart.CFrame.lookVector * -70
  1192. SphereEffect("Toothpaste", LeftArm.CFrame * CFrame.new(0, -3, 0), 0.5, 0.5, 0.5, 0.8, 0.8, 0.8, 0.05)
  1193. MagniDamage(LGnrgRng, 8, 6, 16, 100, "Normal")
  1194. for i = 1, 10 do
  1195. BreakEffect("Toothpaste", LeftArm.CFrame * CFrame.new(0, -1, 0), 1, 3, 2)
  1196. end
  1197. for i = 0, 1, 0.13 do
  1198. swait()
  1199. coroutine.resume(coroutine.create(function()
  1200. for _,v in pairs(rearRotor:getChildren()) do
  1201. if v:IsA("BasePart") then
  1202. v.Transparency = i
  1203. end
  1204. end
  1205. end
  1206. ))
  1207. LGnrgRng.Transparency = i
  1208. SMnrgRng.Transparency = i
  1209. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-4), math.rad(0), math.rad(40)), 0.33)
  1210. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(-5), math.rad(-40)), 0.33)
  1211. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(30)), 0.33)
  1212. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.1) * angles(math.rad(120), math.rad(0), math.rad(30)), 0.33)
  1213. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-10), math.rad(-40), math.rad(5)), 0.33)
  1214. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-10), math.rad(-40), math.rad(-5)), 0.33)
  1215. LRingShoulderWeld.C0 = clerp(LRingShoulderWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.08, math.rad(0)), 0.3)
  1216. LRingMiddleWeld.C0 = clerp(LRingMiddleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / 0.05, math.rad(0)), 0.3)
  1217. LRingHandWeld.C0 = clerp(LRingHandWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.03, math.rad(0)), 0.3)
  1218. RotorHandleweld.C0 = clerp(RotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1219. RearRotorHandleweld.C0 = clerp(RearRotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1220. Hitboxweld.C0 = clerp(Hitboxweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1221. end
  1222. coroutine.resume(coroutine.create(function()
  1223. for _,v in pairs(rearRotor:getChildren()) do
  1224. if v:IsA("BasePart") then
  1225. v.Transparency = 1
  1226. end
  1227. end
  1228. end
  1229. ))
  1230. LGnrgRng.Transparency = 1
  1231. SMnrgRng.Transparency = 1
  1232. attack = false
  1233. end
  1234.  
  1235. Block = function()
  1236. attack = true
  1237. block.Value = true
  1238. Humanoid.WalkSpeed = Humanoid.WalkSpeed - 6
  1239. coroutine.resume(coroutine.create(function()
  1240. for i = 1, 0, -0.05 do
  1241. wait()
  1242. if attack ~= false then
  1243. for _,v in pairs(shield:getChildren()) do
  1244. if v:IsA("BasePart") and v.Name ~= "Handle" and v.Name ~= "Blocker" then
  1245. v.Transparency = i - 0.05
  1246. end
  1247. end
  1248. else
  1249. do
  1250. do
  1251. for _,v in pairs(shield:getChildren()) do
  1252. if v:IsA("BasePart") and v.Name ~= "Handle" and v.Name ~= "Blocker" then
  1253. v.Transparency = 1
  1254. end
  1255. end
  1256. do break end
  1257. end
  1258. end
  1259. end
  1260. end
  1261. end
  1262. ))
  1263. coroutine.resume(coroutine.create(function()
  1264. wait(0.3)
  1265. Blocker.CanCollide = true
  1266. end
  1267. ))
  1268. coroutine.resume(coroutine.create(function()
  1269. while Blocking == true do
  1270. swait(2)
  1271. subtractMana(blockDrainRate)
  1272. if Mana <= blockDrainRate then
  1273. Blocking = false
  1274. end
  1275. end
  1276. end
  1277. ))
  1278. while Blocking == true do
  1279. while Blocking == true do
  1280. swait()
  1281. if Blocking == true then
  1282. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.33)
  1283. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.33)
  1284. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -0.4) * angles(math.rad(90), math.rad(0), math.rad(-32)), 0.33)
  1285. LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, 0) * angles(math.rad(20), math.rad(15), math.rad(-70)), 0.3)
  1286. if Torsovelocity > 2 then
  1287. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(-30), math.rad(20 * math.cos(sine / 4))), 0.3)
  1288. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(-30), math.rad(20 * math.cos(sine / 4))), 0.3)
  1289. else
  1290. if Torsovelocity < 1 then
  1291. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(-30), math.rad(0)), 0.3)
  1292. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(-30), math.rad(0)), 0.3)
  1293. end
  1294. end
  1295. LRingShoulderWeld.C0 = clerp(LRingShoulderWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.08, math.rad(0)), 0.3)
  1296. LRingMiddleWeld.C0 = clerp(LRingMiddleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / 0.05, math.rad(0)), 0.3)
  1297. LRingHandWeld.C0 = clerp(LRingHandWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.03, math.rad(0)), 0.3)
  1298. RotorHandleweld.C0 = clerp(RotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1299. RearRotorHandleweld.C0 = clerp(RearRotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1300. Hitboxweld.C0 = clerp(Hitboxweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1301. end
  1302. end
  1303. if Blocking == false then
  1304. break
  1305. end
  1306. end
  1307. coroutine.resume(coroutine.create(function()
  1308. for _,v in pairs(shield:getChildren()) do
  1309. if v:IsA("BasePart") and v.Name ~= "Handle" then
  1310. v.Transparency = 1
  1311. end
  1312. end
  1313. end
  1314. ))
  1315. Humanoid.WalkSpeed = Humanoid.WalkSpeed + 6
  1316. block.Value = false
  1317. Blocker.CanCollide = false
  1318. attack = false
  1319. end
  1320.  
  1321. groundBreaker = function()
  1322. attack = true
  1323. Humanoid.WalkSpeed = 0
  1324. local AntiJump = Humanoid.Changed:connect(function()
  1325. Humanoid.Jump = false
  1326. end
  1327. )
  1328. CreateSound("http://www.roblox.com/asset/?id=412756170", LeftArm, 1, 0.8)
  1329. for i = 0, 1, 0.05 do
  1330. swait()
  1331. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.8) * angles(math.rad(40), math.rad(0), math.rad(-10)), 0.3)
  1332. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(15), math.rad(0), math.rad(18)), 0.3)
  1333. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(8)), 0.3)
  1334. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.2, 0.3) * angles(math.rad(40), math.rad(0), math.rad(-10)), 0.3)
  1335. RH.C0 = clerp(RH.C0, cn(1, -0.2, -0.3) * RHCF * angles(math.rad(-3), math.rad(0), math.rad(30)), 0.3)
  1336. LH.C0 = clerp(LH.C0, cn(-1, -0.6, -0.25) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(10)), 0.3)
  1337. LRingShoulderWeld.C0 = clerp(LRingShoulderWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.08, math.rad(0)), 0.3)
  1338. LRingMiddleWeld.C0 = clerp(LRingMiddleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / 0.05, math.rad(0)), 0.3)
  1339. LRingHandWeld.C0 = clerp(LRingHandWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.03, math.rad(0)), 0.3)
  1340. RotorHandleweld.C0 = clerp(RotorHandleweld.C0, CFrame.new(0, 0, -1.2) * angles(math.rad(0), math.rad(0), math.rad(30) - donum / 0.005), 0.33)
  1341. RearRotorHandleweld.C0 = clerp(RearRotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1342. Hitboxweld.C0 = clerp(Hitboxweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1343. end
  1344. MagniDamage(Torso, 10, 20, 30, 70, "Knockdown")
  1345. for i = 1, 10 do
  1346. BreakEffect("Toothpaste", LeftArm.CFrame * CFrame.new(0, -1, 0), 1, 3, 2)
  1347. end
  1348. local hitfloor = nil
  1349. while hitfloor == nil do
  1350. swait()
  1351. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 6, Character)
  1352. end
  1353. local hit, pos = rayCast(Hitbox.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1354. if hit ~= nil then
  1355. local Color = hit.BrickColor
  1356. local refpart = CreatePart(Character, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
  1357. refpart.Anchored = true
  1358. refpart.CFrame = CFrame.new(pos)
  1359. game:GetService("Debris"):AddItem(refpart, 1)
  1360. CreateSound("http://www.roblox.com/asset/?id=199145477", refpart, 0.8, 0.75)
  1361. CreateSound("http://www.roblox.com/asset/?id=142070127", refpart, 0.7, 0.9)
  1362. for i = 1, 10 do
  1363. local Color = hit.BrickColor
  1364. local Materials = hit.Material
  1365. local groundpart = CreatePart(Character, "SmoothPlastic", 0, 0, Color, "Ground", Vector3.new(math.random(50, 100) / 100, math.random(50, 100) / 100, math.random(50, 100) / 100))
  1366. groundpart.Anchored = false
  1367. groundpart.Material = Materials
  1368. groundpart.CanCollide = true
  1369. groundpart.Friction = 0.1
  1370. groundpart.Velocity = Vector3.new(math.random(-50, 50), math.random(25, 50), math.random(-50, 50))
  1371. groundpart.CFrame = CFrame.new(pos) * CFrame.new(math.random(-250, 250) / 100, 0.5, math.random(-250, 250) / 100) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1372. game:GetService("Debris"):AddItem(groundpart, 10)
  1373. end
  1374. for i = 1, 10 do
  1375. local Color = hit.BrickColor
  1376. local Materials = hit.Material
  1377. local actualgroundpart = CreatePart(Character, "SmoothPlastic", 0, 0, Color, "Ground", Vector3.new(math.random(100, 200) / 100, math.random(100, 200) / 100, math.random(100, 200) / 100))
  1378. actualgroundpart.Anchored = true
  1379. actualgroundpart.Material = Materials
  1380. actualgroundpart.Friction = 1
  1381. actualgroundpart.CFrame = CFrame.new(pos) * CFrame.new(math.random(-500, 500) / 100, 0, math.random(-500, 500) / 100) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1382. game:GetService("Debris"):AddItem(actualgroundpart, 10)
  1383. end
  1384. WaveEffect(hit.BrickColor, refpart.CFrame, 0.2, 0.2, 0.2, 0.5, 0.5, 0.5, 0.04)
  1385. SphereEffect(hit.BrickColor, refpart.CFrame, 0.2, 0.2, 0.2, 3, 3, 3, 0.04)
  1386. RingEffect(hit.BrickColor, refpart.CFrame * CFrame.Angles(math.random(5, 6), math.random(2, 7), math.random(3, 6)), 0.2, 0.2, 0.2, 1, 1, 1, 0.05)
  1387. end
  1388. do
  1389. for i = 0, 1, 0.05 do
  1390. swait()
  1391. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.65) * angles(math.rad(25), math.rad(0), math.rad(0)), 0.3)
  1392. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(15), math.rad(0), math.rad(30)), 0.3)
  1393. RW.C0 = clerp(RW.C0, CFrame.new(1.6, 0.4, 0) * angles(math.rad(-15), math.rad(0), math.rad(30)), 0.3)
  1394. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(-30), math.rad(-30)), 0.3)
  1395. RH.C0 = clerp(RH.C0, cn(1, -0.2, -0.3) * RHCF * angles(math.rad(-3), math.rad(0), math.rad(30)), 0.3)
  1396. LH.C0 = clerp(LH.C0, cn(-1, -0.6, -0.25) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(3)), 0.3)
  1397. LRingShoulderWeld.C0 = clerp(LRingShoulderWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.08, math.rad(0)), 0.3)
  1398. LRingMiddleWeld.C0 = clerp(LRingMiddleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / 0.05, math.rad(0)), 0.3)
  1399. LRingHandWeld.C0 = clerp(LRingHandWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.03, math.rad(0)), 0.3)
  1400. RotorHandleweld.C0 = clerp(RotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1401. RearRotorHandleweld.C0 = clerp(RearRotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1402. Hitboxweld.C0 = clerp(Hitboxweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1403. end
  1404. Humanoid.WalkSpeed = 16
  1405. AntiJump:disconnect()
  1406. attack = false
  1407. end
  1408. end
  1409.  
  1410. LaunchRail = function()
  1411. attack = true
  1412. local blocked = false
  1413. local hitPlayer = false
  1414. CreateSound("http://www.roblox.com/asset/?id=298660207", LeftArm, 1, 1)
  1415. Aim()
  1416. CreateSound("http://www.roblox.com/asset/?id=188590169", LeftArm, 1, 1)
  1417. local MainPos = LeftArm.Position
  1418. local MainPos2 = mouse.Hit.p
  1419. local spread = Vector3.new((math.random(-0, -0) + math.random()) * -0, (math.random(-0, -0) + math.random()) * -0, (math.random(-0, -0) + math.random()) * -0) * (LeftArm.Position - mouse.Hit.p).magnitude / 100
  1420. local MouseLook = cn((MainPos + MainPos2) / 2, MainPos2 + spread)
  1421. num = math.huge
  1422. coroutine.resume(coroutine.create(function(Spreaded)
  1423. repeat
  1424. wait()
  1425. local hit, pos = rayCast(MainPos, MouseLook.lookVector, 10, RootPart.Parent)
  1426. local TheHit = mouse.Hit.p
  1427. local mag = (MainPos - pos).magnitude
  1428. CylinderEffect("Toothpaste", CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 3, mag * 5, 3, 0.5, 0, 1.5, 0.1)
  1429. MainPos = MainPos + MouseLook.lookVector * 10
  1430. num = num - 1
  1431. local fakevec = pos - LeftArm.CFrame * CFrame.new(Vector3.new(0, 0.25, -1.7)).p.unit
  1432. if hit ~= nil and hit.Name ~= "Rail" then
  1433. print(hit)
  1434. num = 0
  1435. local ref = CreateWeaponPart(3, Character, "Neon", 0, 1, BrickColor.new("Institutional white"), "Reference", Vector3.new())
  1436. do
  1437. ref.Anchored = true
  1438. ref.CFrame = cn(pos)
  1439. game:GetService("Debris"):AddItem(ref, 5)
  1440. local h = nil
  1441. if hit.Parent:FindFirstChild("Humanoid") then
  1442. h = hit.Parent:FindFirstChild("Humanoid")
  1443. else
  1444. if hit.Parent.Parent:FindFirstChild("Humanoid") then
  1445. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  1446. else
  1447. if hit.Parent.Parent:FindFirstChild("Parent") and hit.Parent.Parent.Parent:FindFirstChild("Humanoid") then
  1448. h = hit.Parent.Parent.Parent:FindFirstChild("Humanoid")
  1449. end
  1450. end
  1451. end
  1452. h = nil
  1453. print(h)
  1454. if h ~= nil and h.Health > 0 then
  1455. if hit.Name == "Blocker" and hit.CanCollide == true then
  1456. blocked = true
  1457. CreateSound("http://www.roblox.com/asset/?id=199148947", hit, 1, 1)
  1458. else
  1459. hitPlayer = true
  1460. h.WalkSpeed = h.WalkSpeed - 5
  1461. coroutine.resume(coroutine.create(function()
  1462. for i = 1, 10 do
  1463. if h.Health > 0 then
  1464. wait(1)
  1465. end
  1466. end
  1467. for i = 0, 1, 0.1 do
  1468. wait()
  1469. end
  1470. h.WalkSpeed = h.WalkSpeed + 5
  1471. end
  1472. ))
  1473. end
  1474. end
  1475. if blocked == false then
  1476. if hit.Name == "Blocker" and hit.CanCollide == true then
  1477. CreateSound("http://www.roblox.com/asset/?id=199148947", hit, 1, 1)
  1478. else
  1479. if not hit.Anchored then
  1480. hit.CFrame = hit.CFrame + Vector3.new(0, 0.1, 0)
  1481. end
  1482. if hitPlayer == false then
  1483. end
  1484. if not hit.Anchored then
  1485. do
  1486. hit.Velocity = hit.Velocity + fakevec * 50
  1487. end
  1488. end
  1489. end
  1490. end
  1491. end
  1492. else
  1493. end
  1494. until num <= 0
  1495. end
  1496. ))
  1497. for i = -0, 1, 0.05 do
  1498. do
  1499. coroutine.resume(coroutine.create(function()
  1500. for _,v in pairs(rearRotor:getChildren()) do
  1501. if v:IsA("BasePart") and v.Name ~= "Handle" then
  1502. v.Transparency = i
  1503. end
  1504. end
  1505. end
  1506. ))
  1507. LGnrgRng.Transparency = i + 0.05
  1508. swait()
  1509. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(-0, -0, -0) * angles(math.rad(-0), math.rad(-0), math.rad(-50)), 0.5)
  1510. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-0), math.rad(-0), math.rad(50)), 0.5)
  1511. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0) * angles(math.rad(-10), math.rad(-0), math.rad(20)), 0.5)
  1512. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0) * angles(math.rad(90), math.rad(-0), math.rad(-50)), 0.5)
  1513. RH.C0 = clerp(RH.C0, cn(0.5, -1, -0.2) * RHCF * angles(math.rad(-2), math.rad(85), math.rad(-0)), 0.3)
  1514. LH.C0 = clerp(LH.C0, cn(-0.5, -1, 0.2) * LHCF * angles(math.rad(-2), math.rad(85), math.rad(-0)), 0.3)
  1515. LRingShoulderWeld.C0 = clerp(LRingShoulderWeld.C0, CFrame.new(-0, -0, -0) * angles(math.rad(-0), math.rad(30) - donum / 0.08, math.rad(-0)), 0.3)
  1516. LRingMiddleWeld.C0 = clerp(LRingMiddleWeld.C0, CFrame.new(-0, -0, -0) * angles(math.rad(-0), math.rad(30) + donum / 0.05, math.rad(-0)), 0.3)
  1517. LRingHandWeld.C0 = clerp(LRingHandWeld.C0, CFrame.new(-0, -0, -0) * angles(math.rad(-0), math.rad(30) - donum / 0.03, math.rad(-0)), 0.3)
  1518. RotorHandleweld.C0 = clerp(RotorHandleweld.C0, CFrame.new(-0, -0, -1.5) * angles(math.rad(-0), math.rad(-0), math.rad(30) - donum / 0.045), 0.33)
  1519. RearRotorHandleweld.C0 = clerp(RearRotorHandleweld.C0, CFrame.new(-0, -2.5, -0) * angles(math.rad(-0), math.rad(30) + donum / 0.07, math.rad(-0)), 0.33)
  1520. Hitboxweld.C0 = clerp(Hitboxweld.C0, CFrame.new(-0, -0, -0) * angles(math.rad(-0), math.rad(-0), math.rad(-0)), 0.33)
  1521. end
  1522. end
  1523. game:GetService("Debris"):AddItem(railM, 15)
  1524. Humanoid.WalkSpeed = Humanoid.WalkSpeed + 10
  1525. SMnrgRng.Transparency = 1
  1526. LGnrgRng.Transparency = 1
  1527. for _,v in pairs(rearRotor:getChildren()) do
  1528. coroutine.resume(coroutine.create(function()
  1529. if v:IsA("BasePart") and v.Name ~= "Handle" then
  1530. v.Transparency = 1
  1531. end
  1532. end
  1533. ))
  1534. end
  1535. cooldown3 = -0
  1536. attack = false
  1537. end
  1538.  
  1539. Pulse = function()
  1540. attack = true
  1541. local con = Hitbox.Touched:connect(function(hit)
  1542. Damagefunc(Hitbox, hit, 1, 3, 1, "Normal", RootPart, 0.2, 1)
  1543. end
  1544. )
  1545. CreateSound("http://www.roblox.com/asset/?id=412756170", LeftArm, 1, 0.8)
  1546. for i = 0, 1, 0.05 do
  1547. swait()
  1548. SMnrgRng.Transparency = 1 - i
  1549. if SMnrgRng.Transparency <= 0.4 then
  1550. SMnrgRng.Transparency = 0.5
  1551. end
  1552. BlockEffect("Toothpaste", LeftArm.CFrame * CFrame.new(0, -1, 0), 0.5, 0.5, 0.5, 0.8, 0.8, 0.8, 0.05, 1)
  1553. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(15), math.rad(0), math.rad(-50)), 0.3)
  1554. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(40)), 0.3)
  1555. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(20), math.rad(-20)), 0.3)
  1556. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(100), math.rad(0), math.rad(-40)), 0.3)
  1557. RH.C0 = clerp(RH.C0, cn(0.7, -1, -0.7) * RHCF * angles(math.rad(-4), math.rad(40), math.rad(10)), 0.3)
  1558. LH.C0 = clerp(LH.C0, cn(-0.7, -1, 0.7) * LHCF * angles(math.rad(-4), math.rad(40), math.rad(20)), 0.3)
  1559. LRingShoulderWeld.C0 = clerp(LRingShoulderWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.08, math.rad(0)), 0.3)
  1560. LRingMiddleWeld.C0 = clerp(LRingMiddleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / 0.05, math.rad(0)), 0.3)
  1561. LRingHandWeld.C0 = clerp(LRingHandWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.03, math.rad(0)), 0.3)
  1562. RotorHandleweld.C0 = clerp(RotorHandleweld.C0, CFrame.new(0, 0, -1.5) * angles(math.rad(0), math.rad(0), math.rad(30) - donum / 0.005), 0.33)
  1563. RearRotorHandleweld.C0 = clerp(RearRotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1564. Hitboxweld.C0 = clerp(Hitboxweld.C0, CFrame.new(0, 0, -1.5) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1565. end
  1566. con:disconnect()
  1567. local vel2 = Instance.new("BodyVelocity")
  1568. vel2.Parent = Torso
  1569. vel2.maxForce = Vector3.new(400000, 400000, 400000) * 1
  1570. vel2.velocity = RootPart.CFrame.lookVector * -90
  1571. Humanoid.Jump = true
  1572. local prt = CreatePart(Character, "SmoothPlastic", 0, 1, "Toothpaste", "Part", Vector3.new(5, 5, 5))
  1573. prt.Position = SMnrgRng.Position
  1574. prt.Anchored = true
  1575. CreateSound("http://www.roblox.com/asset/?id=300916105", prt, 1, 1)
  1576. WaveEffect("Toothpaste", prt.CFrame, 0.2, 0.2, 0.2, 0.5, 0.5, 0.5, 0.06)
  1577. SphereEffect("Toothpaste", prt.CFrame, 0.2, 0.2, 0.2, 3, 3, 3, 0.06)
  1578. RingEffect("Toothpaste", prt.CFrame * CFrame.Angles(math.random(5, 6), math.random(2, 7), math.random(3, 6)), 0.2, 0.2, 0.2, 1, 1, 1, 0.07)
  1579. MagniDamage(prt, 13, 17, 23, 13, "Knockdown")
  1580. for i = 0, 1, 0.15 do
  1581. swait()
  1582. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  1583. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(40)), 0.3)
  1584. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(20), math.rad(-20)), 0.3)
  1585. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(150), math.rad(-60), math.rad(-50)), 0.3)
  1586. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-4), math.rad(10), math.rad(10)), 0.3)
  1587. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-4), math.rad(10), math.rad(20)), 0.3)
  1588. LRingShoulderWeld.C0 = clerp(LRingShoulderWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.08, math.rad(0)), 0.3)
  1589. LRingMiddleWeld.C0 = clerp(LRingMiddleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / 0.05, math.rad(0)), 0.3)
  1590. LRingHandWeld.C0 = clerp(LRingHandWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.03, math.rad(0)), 0.3)
  1591. RotorHandleweld.C0 = clerp(RotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1592. RearRotorHandleweld.C0 = clerp(RearRotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1593. Hitboxweld.C0 = clerp(Hitboxweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1594. end
  1595. vel2:Destroy()
  1596. SMnrgRng.Transparency = 1
  1597. prt:Destroy()
  1598. attack = false
  1599. end
  1600.  
  1601. AimLaserMethod = function()
  1602. attack = true
  1603. CreateSound("http://www.roblox.com/asset/?id=445796756", LeftArm, 1, 1)
  1604. Humanoid.WalkSpeed = Humanoid.WalkSpeed - 10
  1605. local Beam = BaseLaser:Clone()
  1606. Beam.Parent = m
  1607. Beam.Name = "Laser"
  1608. Beam.Mesh.Scale = Vector3.new(1, 1, 1)
  1609. Beam.Anchored = true
  1610. RootJoint.C0 = RootCF * cn(0, 0, 0) * euler(0, 0, -0.7005)
  1611. local gyro = Create("BodyGyro")({Parent = RootPart, maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 2500, cframe = RootPart.CFrame})
  1612. coroutine.resume(coroutine.create(function()
  1613. for i = 1, 10, 0.1 do
  1614. swait()
  1615. ChargeEffect(SMnrgRng, 2, 2, 2, math.random(-10, 10), math.random(-10, 10), math.random(-10, 10), 0, 0, 0, BrickColor.new("Toothpaste"))
  1616. end
  1617. end
  1618. ))
  1619. for i = 0, 1, 0.008 do
  1620. do
  1621. swait()
  1622. local gunpos = Vector3.new(mouse.Hit.p.x, Head.Position.Y, mouse.Hit.p.z)
  1623. gyro.cframe = cn(Head.Position, gunpos)
  1624. coroutine.resume(coroutine.create(function()
  1625. for _,v in pairs(rearRotor:getChildren()) do
  1626. if v.Name ~= "Handle" and v:IsA("BasePart") then
  1627. if v.Transparency <= 0.3 then
  1628. v.Transparency = 0
  1629. else
  1630. v.Transparency = 1 - i - 0.2
  1631. end
  1632. end
  1633. end
  1634. SMnrgRng.Transparency = 1 - i
  1635. LGnrgRng.Transparency = 1 - i
  1636. if i <= 0.4 then
  1637. SMnrgRng.Transparency = 0.5
  1638. LGnrgRng.Transparency = 0.5
  1639. end
  1640. end
  1641. ))
  1642. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3)
  1643. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(40)), 0.3)
  1644. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.6, 0.4) * angles(math.rad(-15), math.rad(-50), math.rad(20)), 0.3)
  1645. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.3)
  1646. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-4), math.rad(20), math.rad(0)), 0.3)
  1647. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-4), math.rad(20), math.rad(0)), 0.3)
  1648. LRingShoulderWeld.C0 = clerp(LRingShoulderWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.08, math.rad(0)), 0.3)
  1649. LRingMiddleWeld.C0 = clerp(LRingMiddleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / 0.05, math.rad(0)), 0.3)
  1650. LRingHandWeld.C0 = clerp(LRingHandWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.03, math.rad(0)), 0.3)
  1651. RotorHandleweld.C0 = clerp(RotorHandleweld.C0, CFrame.new(0, 0, -1.5) * angles(math.rad(0), math.rad(0), math.rad(30) - donum / 0.025), 0.33)
  1652. RearRotorHandleweld.C0 = clerp(RearRotorHandleweld.C0, CFrame.new(0, -5, 0) * angles(math.rad(0), math.rad(30) + donum / 0.05, math.rad(0)), 0.33)
  1653. Hitboxweld.C0 = clerp(Hitboxweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1654. end
  1655. end
  1656. local dV = 1
  1657. local offset = nil
  1658. lapse = 0
  1659. local hitRef = CreatePart(Character, "Neon", 0, 0.4, "Toothpaste", "Reference", Vector3.new())
  1660. do
  1661. CreateMesh("SpecialMesh", hitRef, "Sphere", "", Vector3.new(), Vector3.new(8, 8, 8))
  1662. hitRef.Anchored = true
  1663. local laserLoop = CreateSound("http://www.roblox.com/asset/?id=445796828", LeftArm, 1, 1, true)
  1664. coroutine.resume(coroutine.create(function()
  1665. while vHold == true do
  1666. swait(3)
  1667. subtractMana(skill4absorbrate)
  1668. if Mana <= skill4absorbrate then
  1669. vHold = false
  1670. end
  1671. end
  1672. end
  1673. ))
  1674. while vHold==true do
  1675. if vHold == true then
  1676. swait()
  1677. dV = dV + 10
  1678. local StartPos = LeftArm.CFrame * CFrame.new(0, -1, 0)
  1679. local MainPos = LeftArm.Position
  1680. local MainPos2 = mouse.Hit.p
  1681. local spread = Vector3.new((math.random(0, 0) + math.random()) * 0, (math.random(0, 0) + math.random()) * 0, (math.random(0, 0) + math.random()) * 0) * (LeftArm.Position - mouse.Hit.p).magnitude / 100
  1682. local MouseLook = cn((MainPos + MainPos2) / 2, MainPos2 + spread)
  1683. local hit, pos = rayCast(MainPos, MouseLook.lookVector, dV, Character)
  1684. local TheHit = mouse.Hit.p
  1685. local mag = (MainPos - pos).magnitude
  1686. MainPos = MainPos + MouseLook.lookVector * 10
  1687. if hit and hit.Name:lower() == "terrain" and not hit:IsA("BasePart") then
  1688. hit:SetCell(pos.X, pos.Y + 2, pos.Z, 0, 0, 0)
  1689. end
  1690. hitRef.CFrame = StartPos * cn(0, -mag + 1, 0) * angles(0, 0, math.rad(90))
  1691. local vary = math.random(5, 10) / 100
  1692. do
  1693. SphereEffect("Toothpaste", hitRef.CFrame, 8, 8, 8, 1, 1, 1, vary)
  1694. BlockEffect("Toothpaste", hitRef.CFrame, 8, 8, 8, 0.8, 0.8, 0.8, vary, 1)
  1695. if hit ~= nil then
  1696. local h = nil
  1697. if hit.Parent:FindFirstChild("Humanoid") then
  1698. h = hit.Parent:FindFirstChild("Humanoid")
  1699. else
  1700. if hit.Parent.Parent:FindFirstChild("Humanoid") then
  1701. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  1702. else
  1703. if hit.Parent.Parent:FindFirstChild("Parent") and hit.Parent.Parent.Parent:FindFirstChild("Humanoid") then
  1704. h = hit.Parent.Parent.Parent:FindFirstChild("Humanoid")
  1705. end
  1706. end
  1707. end
  1708. h = nil
  1709. local sounds = {445796485, 445796549, 445796638}
  1710. local rnd = math.random(1, #sounds)
  1711. local hitSound = CreateSound("http://www.roblox.com/asset/?id=" .. sounds[rnd], hitRef, 1, 1)
  1712. if h and h.Health > 0 then
  1713. Damagefunc(hitRef, h, 2, 4, 0.7, "Normal", RootPart, 0.2, 1, nil, 2)
  1714. end
  1715. if hit.Anchored == false and h and h.Health <= 0 then
  1716. local bv = Instance.new("BodyVelocity", hit)
  1717. local hih = math.huge
  1718. bv.maxForce = Vector3.new(hih, hih, hih)
  1719. bv.velocity = Head.CFrame.lookVector * 100 + Vector3.new(0, -2, 0)
  1720. spawn(function()
  1721. wait()
  1722. bv:Destroy()
  1723. end
  1724. )
  1725. end
  1726. do
  1727. local bv = Instance.new("BodyVelocity", hit)
  1728. do
  1729. do
  1730. local hih = math.huge
  1731. bv.maxForce = Vector3.new(hih, hih, hih)
  1732. bv.velocity = Head.CFrame.lookVector * 100 + Vector3.new(0, -2, 0)
  1733. spawn(function()
  1734. wait()
  1735. bv:Destroy()
  1736. end
  1737. )
  1738. mag = (MainPos - pos).magnitude
  1739. mag = (MainPos - pos).magnitude
  1740. Beam.Transparency = 0.4
  1741. lapse = lapse + 1
  1742. Beam.Mesh.Scale = Vector3.new(mag + 9, 2, 2)
  1743. Beam.CFrame = StartPos * cn(0, -mag / 2 - 4.5, 0) * angles(0, 0, math.rad(90))
  1744. local gunpos = Vector3.new(mouse.Hit.p.x, Head.Position.Y, mouse.Hit.p.z)
  1745. offset = (Torso.Position.y - mouse.Hit.p.y) / 40
  1746. local mag2 = (Torso.Position - mouse.Hit.p).magnitude / 80
  1747. offset = offset / mag2
  1748. gyro.cframe = cn(Head.Position, gunpos)
  1749. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * euler(0, 0, 0.75), 0.3)
  1750. LW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * euler(offset, 0, 0), 0.5)
  1751. if Torsovelocity > 2 then
  1752. RH.C0 = clerp(RH.C0, cn(1, -1, -0.2) * RHCF * angles(math.rad(-2), math.rad(20), math.rad(15 * math.cos(sine / 6))), 0.3)
  1753. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(20), math.rad(15 * math.cos(sine / 6))), 0.3)
  1754. else
  1755. if Torsovelocity < 1 then
  1756. RH.C0 = clerp(RH.C0, cn(1, -1, -0.2) * RHCF * angles(math.rad(-2), math.rad(20), math.rad(0)), 0.3)
  1757. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(20), math.rad(0)), 0.3)
  1758. end
  1759. end
  1760. LRingShoulderWeld.C0 = clerp(LRingShoulderWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.08, math.rad(0)), 0.3)
  1761. LRingMiddleWeld.C0 = clerp(LRingMiddleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / 0.05, math.rad(0)), 0.3)
  1762. LRingHandWeld.C0 = clerp(LRingHandWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.03, math.rad(0)), 0.3)
  1763. RotorHandleweld.C0 = clerp(RotorHandleweld.C0, CFrame.new(0, 0, -1.5) * angles(math.rad(0), math.rad(0), math.rad(30) - donum / 0.005), 0.33)
  1764. RearRotorHandleweld.C0 = clerp(RearRotorHandleweld.C0, CFrame.new(0, -5, 0) * angles(math.rad(0), math.rad(30) + donum / 0.01, math.rad(0)), 0.33)
  1765. Hitboxweld.C0 = clerp(Hitboxweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1766. end
  1767. end
  1768. end
  1769. end
  1770. end
  1771. end
  1772. end
  1773. laserLoop:stop()
  1774. laserLoop.Parent = nil
  1775. CreateSound("http://www.roblox.com/asset/?id=445796907", LeftArm, 1, 1)
  1776. for i = 0, 1, 0.05 do
  1777. coroutine.resume(coroutine.create(function()
  1778. for _,v in pairs(rearRotor:getChildren()) do
  1779. if v:IsA("BasePart") and v.Name ~= "Handle" then
  1780. if i >= 0.9 then
  1781. v.Transparency = 1
  1782. else
  1783. v.Transparency = i
  1784. end
  1785. end
  1786. end
  1787. end
  1788. ))
  1789. if Beam.Transparency <= i and lapse > 1 then
  1790. Beam.Transparency = i
  1791. hitRef.Transparency = i
  1792. end
  1793. if lapse > 1 then
  1794. Beam.Transparency = 0.4
  1795. hitRef.Transparency = 0.4
  1796. end
  1797. LGnrgRng.Transparency = i + 0.05
  1798. SMnrgRng.Transparency = i + 0.05
  1799. swait()
  1800. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.5)
  1801. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.5)
  1802. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.5)
  1803. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-50)), 0.5)
  1804. RH.C0 = clerp(RH.C0, cn(1, -1, -0.2) * RHCF * angles(math.rad(-2), math.rad(20), math.rad(0)), 0.3)
  1805. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(20), math.rad(0)), 0.3)
  1806. LRingShoulderWeld.C0 = clerp(LRingShoulderWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.08, math.rad(0)), 0.3)
  1807. LRingMiddleWeld.C0 = clerp(LRingMiddleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / 0.05, math.rad(0)), 0.3)
  1808. LRingHandWeld.C0 = clerp(LRingHandWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.03, math.rad(0)), 0.3)
  1809. RotorHandleweld.C0 = clerp(RotorHandleweld.C0, CFrame.new(0, 0, -1.5) * angles(math.rad(0), math.rad(0), math.rad(30) + donum / 0.045), 0.33)
  1810. RearRotorHandleweld.C0 = clerp(RearRotorHandleweld.C0, CFrame.new(0, -5, 0) * angles(math.rad(0), math.rad(30) - donum / 0.07, math.rad(0)), 0.33)
  1811. Hitboxweld.C0 = clerp(Hitboxweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1812. end
  1813. Beam.Parent = nil
  1814. hitRef.Parent = nil
  1815. Humanoid.WalkSpeed = Humanoid.WalkSpeed + 10
  1816. gyro.Parent = nil
  1817. LW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1818. LGnrgRng.Transparency = 1
  1819. cooldown4 = 0
  1820. attack = false
  1821. end
  1822. end
  1823.  
  1824. Aim = function()
  1825. Humanoid.WalkSpeed = Humanoid.WalkSpeed - 10
  1826. for i = 0, 1, 0.2 do
  1827. swait()
  1828. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  1829. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  1830. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.5)
  1831. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.5)
  1832. RH.C0 = clerp(RH.C0, cn(0.5, -1, -0.2) * RHCF * angles(math.rad(-2), math.rad(85), math.rad(0)), 0.3)
  1833. LH.C0 = clerp(LH.C0, cn(-0.5, -1, 0.2) * LHCF * angles(math.rad(-2), math.rad(85), math.rad(0)), 0.3)
  1834. LRingShoulderWeld.C0 = clerp(LRingShoulderWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.08, math.rad(0)), 0.3)
  1835. LRingMiddleWeld.C0 = clerp(LRingMiddleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / 0.05, math.rad(0)), 0.3)
  1836. LRingHandWeld.C0 = clerp(LRingHandWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.03, math.rad(0)), 0.3)
  1837. RotorHandleweld.C0 = clerp(RotorHandleweld.C0, CFrame.new(0, 0, -1.5) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1838. RearRotorHandleweld.C0 = clerp(RearRotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1839. Hitboxweld.C0 = clerp(Hitboxweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1840. end
  1841. aim = true
  1842. RootJoint.C0 = RootCF * cn(0, 0, 0) * euler(0, 0, -1.57)
  1843. local gyro = (Create("BodyGyro")({Parent = RootPart, maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, cframe = RootPart.CFrame}))
  1844. local offset = nil
  1845. coroutine.resume(coroutine.create(function()
  1846. for i = 1, 0, -0.1 do
  1847. swait()
  1848. print"a"
  1849. end
  1850. end
  1851. ))
  1852. coroutine.resume(coroutine.create(function()
  1853. for i = 1, 0.5, -0.1 do
  1854. SMnrgRng.Transparency = i
  1855. LGnrgRng.Transparency = i
  1856. end
  1857. end
  1858. ))
  1859. coroutine.resume(coroutine.create(function()
  1860. for i = 1, 0, -0.05 do
  1861. wait()
  1862. if attack ~= false then
  1863. for _,v in pairs(rearRotor:getChildren()) do
  1864. if v:IsA("BasePart") and v.Name ~= "Handle" then
  1865. v.Transparency = i - 0.05
  1866. end
  1867. end
  1868. else
  1869. do
  1870. do
  1871. for _,v in pairs(rearRotor:getChildren()) do
  1872. if v:IsA("BasePart") and v.Name ~= "Handle" then
  1873. v.Transparency = 1
  1874. end
  1875. end
  1876. do break end
  1877. end
  1878. end
  1879. end
  1880. end
  1881. end
  1882. ))
  1883. local aimLoop = CreateSound("http://www.roblox.com/asset/?id=141268701", LeftArm, 1, 1, true)
  1884. while aim == true do
  1885. swait()
  1886. local gunpos = Vector3.new(mouse.Hit.p.x, Head.Position.Y, mouse.Hit.p.z)
  1887. offset = (Torso.Position.y - mouse.Hit.p.y) / 40
  1888. local mag = (Torso.Position - mouse.Hit.p).magnitude / 80
  1889. offset = offset / mag
  1890. gyro.cframe = cn(Head.Position, gunpos)
  1891. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * euler(0, 0, 1.57), 0.3)
  1892. LW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * euler(offset, 0, 0), 0.5)
  1893. if Torsovelocity > 2 then
  1894. RH.C0 = clerp(RH.C0, cn(0.5, -1, -0.2) * RHCF * angles(math.rad(-2), math.rad(85), math.rad(15 * math.cos(sine / 6))), 0.3)
  1895. LH.C0 = clerp(LH.C0, cn(-0.5, -1, 0.2) * LHCF * angles(math.rad(-2), math.rad(85), math.rad(15 * math.cos(sine / 6))), 0.3)
  1896. else
  1897. if Torsovelocity < 1 then
  1898. RH.C0 = clerp(RH.C0, cn(0.5, -1, -0.2) * RHCF * angles(math.rad(-2), math.rad(85), math.rad(0)), 0.3)
  1899. LH.C0 = clerp(LH.C0, cn(-0.5, -1, 0.2) * LHCF * angles(math.rad(-2), math.rad(85), math.rad(0)), 0.3)
  1900. end
  1901. end
  1902. LRingShoulderWeld.C0 = clerp(LRingShoulderWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.08, math.rad(0)), 0.3)
  1903. LRingMiddleWeld.C0 = clerp(LRingMiddleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / 0.05, math.rad(0)), 0.3)
  1904. LRingHandWeld.C0 = clerp(LRingHandWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / 0.03, math.rad(0)), 0.3)
  1905. RotorHandleweld.C0 = clerp(RotorHandleweld.C0, CFrame.new(0, 0, -1.5) * angles(math.rad(0), math.rad(0), math.rad(30) - donum / 0.025), 0.33)
  1906. RearRotorHandleweld.C0 = clerp(RearRotorHandleweld.C0, CFrame.new(0, -5, 0) * angles(math.rad(0), math.rad(30) + donum / 0.05, math.rad(0)), 0.33)
  1907. Hitboxweld.C0 = clerp(Hitboxweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  1908. end
  1909. do
  1910. aimLoop:Stop()
  1911. LW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1912. gyro:Destroy()
  1913. rail:ClearAllChildren()
  1914. offset = nil
  1915. aimLoop:Destroy()
  1916. end
  1917. end
  1918.  
  1919. subtractMana = function(k)
  1920. if k <= Mana then
  1921. Mana = Mana - k
  1922. end
  1923. end
  1924.  
  1925. combo = 0
  1926. mouse1d = function(mouse)
  1927. if attack == true and aim == false then
  1928. return
  1929. end
  1930. if attack == true and aim == true then
  1931. aim = false
  1932. return
  1933. end
  1934. hold = true
  1935. if combo == 0 then
  1936. combo = 1
  1937. attackone()
  1938. else
  1939. if combo == 1 then
  1940. combo = 2
  1941. attacktwo()
  1942. else
  1943. if combo == 2 then
  1944. combo = 0
  1945. attackthree()
  1946. end
  1947. end
  1948. end
  1949. coroutine.resume(coroutine.create(function()
  1950. for i = 1, 20 do
  1951. if attack == false or block.Value == true then
  1952. swait()
  1953. end
  1954. end
  1955. do
  1956. if attack == false or block.Value == true then
  1957. combo = 0
  1958. end
  1959. end
  1960. end
  1961. ))
  1962. end
  1963.  
  1964. mouse1u = function(mouse)
  1965. hold = false
  1966. end
  1967.  
  1968. buttonhold = false
  1969. mouse.KeyDown:connect(function(k)
  1970. k = k:lower()
  1971. if attack == false and k == "z" and co1 <= cooldown1 and skill1stam <= Mana then
  1972. cooldown1 = 0
  1973. subtractMana(skill1stam)
  1974. groundBreaker()
  1975. else
  1976. if attack == false and k == "x" and co2 <= cooldown2 and skill2stam <= Mana then
  1977. cooldown2 = 0
  1978. subtractMana(skill2stam)
  1979. Pulse()
  1980. else
  1981. if attack == false and k == "e" then
  1982. Blocking = true
  1983. Block()
  1984. else
  1985. if attack == false and k == "c" and co3 <= cooldown3 and skill3stam <= Mana then
  1986. cooldown3 = 0
  1987. subtractMana(skill3stam)
  1988. LaunchRail()
  1989. else
  1990. if attack == false and k == "v" and co4 <= cooldown4 and skill4stam <= Mana then
  1991. cooldown4 = 0
  1992. subtractMana(skill4stam)
  1993. vHold = true
  1994. AimLaserMethod()
  1995. end
  1996. end
  1997. end
  1998. end
  1999. end
  2000. end
  2001. )
  2002. mouse.KeyUp:connect(function(k)
  2003. if attack == true and k == "e" and Blocking == true then
  2004. Blocking = false
  2005. end
  2006. if attack == true and k == "v" and vHold == true then
  2007. vHold = false
  2008. end
  2009. end
  2010. )
  2011. mouse.Button1Down:connect(function()
  2012. mouse1d(mouse)
  2013. end
  2014. )
  2015. mouse.Button1Up:connect(function()
  2016. mouse1u(mouse)
  2017. end
  2018. )
  2019. numbb = 0
  2020. datnumb = 0
  2021. local Blink = 0
  2022. local BlinkEff = false
  2023. updateskills = function()
  2024. if cooldown1 <= co1 then
  2025. cooldown1 = cooldown1 + 0.033333333333333
  2026. end
  2027. if cooldown2 <= co2 then
  2028. cooldown2 = cooldown2 + 0.033333333333333
  2029. end
  2030. if cooldown3 <= co3 then
  2031. cooldown3 = cooldown3 + 0.033333333333333
  2032. end
  2033. if cooldown4 <= co4 then
  2034. cooldown4 = cooldown4 + 0.033333333333333
  2035. end
  2036. if Mana <= skill1stam then
  2037. bar4.BackgroundColor3 = Color3.new(0.4078431372549, 0.4078431372549, 0.4078431372549)
  2038. else
  2039. bar4.BackgroundColor3 = skillcolorscheme
  2040. end
  2041. if Mana <= skill2stam then
  2042. bar3.BackgroundColor3 = Color3.new(0.4078431372549, 0.4078431372549, 0.4078431372549)
  2043. else
  2044. bar3.BackgroundColor3 = skillcolorscheme
  2045. end
  2046. if Mana <= skill3stam then
  2047. bar1.BackgroundColor3 = Color3.new(0.4078431372549, 0.4078431372549, 0.4078431372549)
  2048. else
  2049. bar1.BackgroundColor3 = skillcolorscheme
  2050. end
  2051. if Mana <= skill4stam then
  2052. bar2.BackgroundColor3 = Color3.new(0.4078431372549, 0.4078431372549, 0.4078431372549)
  2053. else
  2054. bar2.BackgroundColor3 = skillcolorscheme
  2055. end
  2056. if Mana <= maxMana then
  2057. Mana = Mana + recovermana / 30
  2058. end
  2059. end
  2060.  
  2061. while wait() do
  2062. swait()
  2063. for i,v in pairs(Character:GetChildren()) do
  2064. if v:IsA("Part") then
  2065. v.Material = "SmoothPlastic"
  2066. else
  2067. if v:IsA("Hat") then
  2068. v:WaitForChild("Handle").Material = "SmoothPlastic"
  2069. end
  2070. end
  2071. end
  2072. updateskills()
  2073. healthcover:TweenSize(UDim2.new(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", 0.5)
  2074. Manacover:TweenSize(UDim2.new(1 * (Mana / maxMana), 0, 1, 0), "Out", "Quad", 0.5)
  2075. bar4:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", 0.5)
  2076. bar3:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", 0.5)
  2077. bar1:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", 0.5)
  2078. bar2:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", 0.5)
  2079. Blink = Blink + 0.55
  2080. if 15 - 5 * (Humanoid.WalkSpeed / 16) <= Blink then
  2081. Blink = 0
  2082. if BlinkEff == true then
  2083. BlinkEff = false
  2084. else
  2085. if BlinkEff == false then
  2086. BlinkEff = true
  2087. end
  2088. end
  2089. end
  2090. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2091. velocity = RootPart.Velocity.y
  2092. sine = sine + change
  2093. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  2094. if 0.5 <= donum2 then
  2095. handidle = true
  2096. else
  2097. if donum2 <= 0 then
  2098. handidle = false
  2099. end
  2100. end
  2101. if handidle == false then
  2102. donum2 = donum2 + 0.003
  2103. else
  2104. donum2 = donum2 - 0.003
  2105. end
  2106. donum = donum + 0.003
  2107. if equipped == true or equipped == false then
  2108. if 1 < RootPart.Velocity.y and hit == nil then
  2109. Anim = "Jump"
  2110. if attack == false then
  2111. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2112. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3)
  2113. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.3)
  2114. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3)
  2115. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.5, -0.3) * RHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(-20)), 0.3)
  2116. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.3)
  2117. LRingShoulderWeld.C0 = clerp(LRingShoulderWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - (donum) / 0.08, math.rad(0)), 0.3)
  2118. LRingMiddleWeld.C0 = clerp(LRingMiddleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + (donum) / 0.05, math.rad(0)), 0.3)
  2119. LRingHandWeld.C0 = clerp(LRingHandWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - (donum) / 0.03, math.rad(0)), 0.3)
  2120. RotorHandleweld.C0 = clerp(RotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  2121. RearRotorHandleweld.C0 = clerp(RearRotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  2122. Hitboxweld.C0 = clerp(Hitboxweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  2123. end
  2124. else
  2125. if RootPart.Velocity.y < -1 and hit == nil then
  2126. Anim = "Fall"
  2127. if attack == false then
  2128. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2129. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.3)
  2130. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(20)), 0.3)
  2131. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  2132. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.8, 0) * RHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  2133. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  2134. LRingShoulderWeld.C0 = clerp(LRingShoulderWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - (donum) / 0.08, math.rad(0)), 0.3)
  2135. LRingMiddleWeld.C0 = clerp(LRingMiddleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + (donum) / 0.05, math.rad(0)), 0.3)
  2136. LRingHandWeld.C0 = clerp(LRingHandWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - (donum) / 0.03, math.rad(0)), 0.3)
  2137. RotorHandleweld.C0 = clerp(RotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  2138. RearRotorHandleweld.C0 = clerp(RearRotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  2139. Hitboxweld.C0 = clerp(Hitboxweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  2140. end
  2141. else
  2142. if Torsovelocity < 1 and hit ~= nil then
  2143. Anim = "Idle"
  2144. if attack == false then
  2145. change = 1
  2146. Jumping = false
  2147. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.1 * math.cos((sine) / 15)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  2148. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  2149. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-11), math.rad(-10), math.rad(15 + 5 * math.cos((sine) / 15))), 0.3)
  2150. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25 - 3 * math.cos((sine) / 15)), math.rad(-20), math.rad(-45 - 3 * math.cos((sine) / 15))), 0.3)
  2151. RH.C0 = clerp(RH.C0, cn(1.05, -0.8 - 0.1 * math.cos((sine) / 15), 0) * RHCF * angles(math.rad(-4 - 1 * math.cos((sine) / 35)), math.rad(15), math.rad(0)), 0.3)
  2152. LH.C0 = clerp(LH.C0, cn(-1.05, -0.8 - 0.1 * math.cos((sine) / 15), 0) * LHCF * angles(math.rad(-4 - 1 * math.cos((sine) / 35)), math.rad(15), math.rad(0)), 0.3)
  2153. LRingShoulderWeld.C0 = clerp(LRingShoulderWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - (donum) / 0.08, math.rad(0)), 0.3)
  2154. LRingMiddleWeld.C0 = clerp(LRingMiddleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + (donum) / 0.05, math.rad(0)), 0.3)
  2155. LRingHandWeld.C0 = clerp(LRingHandWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - (donum) / 0.03, math.rad(0)), 0.3)
  2156. RotorHandleweld.C0 = clerp(RotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  2157. RearRotorHandleweld.C0 = clerp(RearRotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  2158. Hitboxweld.C0 = clerp(Hitboxweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  2159. end
  2160. else
  2161. if 2 < Torsovelocity and hit ~= nil then
  2162. Anim = "Walk"
  2163. if attack == false then
  2164. change = 3
  2165. Jumping = false
  2166. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10 + 1 * math.cos((sine) / 15)), math.rad(0), math.rad(0 + 3 * math.cos((sine) / 15))), 0.3)
  2167. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5 - 1 * math.cos((sine) / 15)), math.rad(0), math.rad(0 - 1 * math.cos((sine) / 15))), 0.3)
  2168. RW.C0 = clerp(RW.C0, CFrame.new(1.45 + 0.1 * math.cos((sine) / 13), 0.5, 0 - 0.1 * math.cos((sine) / 13)) * angles(math.sin(40) * math.cos((sine) / 13), math.rad(0), math.rad(10 + 1 * math.cos((sine) / 13))), 0.3)
  2169. LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, 0) * angles(math.rad(10 + 1 * math.cos((sine) / 14)), math.rad(0), math.rad(-45 + 3 * math.cos((sine) / 14))), 0.3)
  2170. RH.C0 = clerp(RH.C0, cn(1, -1, 0 - 0.5 * math.cos((sine) / 15) / 2) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(40 * math.cos((sine) / 15))), 0.3)
  2171. LH.C0 = clerp(LH.C0, cn(-1, -1, 0 + 0.5 * math.cos((sine) / 15) / 2) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(40 * math.cos((sine) / 15))), 0.3)
  2172. LRingShoulderWeld.C0 = clerp(LRingShoulderWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - (donum) / 0.08, math.rad(0)), 0.3)
  2173. LRingMiddleWeld.C0 = clerp(LRingMiddleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + (donum) / 0.05, math.rad(0)), 0.3)
  2174. LRingHandWeld.C0 = clerp(LRingHandWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - (donum) / 0.03, math.rad(0)), 0.3)
  2175. RotorHandleweld.C0 = clerp(RotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  2176. RearRotorHandleweld.C0 = clerp(RearRotorHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  2177. Hitboxweld.C0 = clerp(Hitboxweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.33)
  2178. end
  2179. end
  2180. end
  2181. end
  2182. end
  2183. end
  2184. if 0 < #Effects then
  2185. for e = 1, #Effects do
  2186. if Effects[e] ~= nil then
  2187. local Thing = Effects[e]
  2188. if Thing ~= nil then
  2189. local Part = Thing[1]
  2190. local Mode = Thing[2]
  2191. local Delay = Thing[3]
  2192. local IncX = Thing[4]
  2193. local IncY = Thing[5]
  2194. local IncZ = Thing[6]
  2195. if Thing[1].Transparency <= 1 then
  2196. if Thing[2] == "Block1" then
  2197. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2198. Mesh = Thing[1].Mesh
  2199. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2200. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2201. else
  2202. if Thing[2] == "Block2" then
  2203. Thing[1].CFrame = Thing[1].CFrame
  2204. Mesh = Thing[7]
  2205. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2206. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2207. else
  2208. if Thing[2] == "Cylinder" then
  2209. Mesh = Thing[1].Mesh
  2210. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2211. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2212. else
  2213. if Thing[2] == "Blood" then
  2214. Mesh = Thing[7]
  2215. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  2216. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2217. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2218. else
  2219. if Thing[2] == "Elec" then
  2220. Mesh = Thing[1].Mesh
  2221. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  2222. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2223. else
  2224. if Thing[2] == "Disappear" then
  2225. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2226. else
  2227. if Thing[2] == "Shatter" then
  2228. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2229. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2230. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2231. Thing[6] = Thing[6] + Thing[5]
  2232. end
  2233. end
  2234. end
  2235. end
  2236. end
  2237. end
  2238. end
  2239. else
  2240. Part.Parent = nil
  2241. table.remove(Effects, e)
  2242. end
  2243. end
  2244. end
  2245. end
  2246. end
  2247. do
  2248. do
  2249. datnumb = 0
  2250. BaseNumb = 6.28
  2251. if attack == false then
  2252. Blocker.CanCollide = false
  2253. end
  2254. end
  2255. end
  2256. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement