Advertisement
rohanboi

Universal Sin(finished)

Feb 13th, 2019
1,700
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 145.10 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5.  
  6. ----------------------------------------------------------------
  7. print([[
  8. --Amethyst sin made by Uhh idk who
  9. --FE code by Mokiros
  10. --Universal sin by RoadRings --
  11. --Pls don't leak or trade
  12. --YT: Rohan gaming https://www.youtube.com/channel/UCu7B3-LepePfl_gIeV4soEQ?view_as=subscriber--
  13. --Discord: Rohan gaming#6430
  14. -- ye this amethyst sin edit is by RoadRings
  15. --------------------------------
  16. hello good sir
  17. Don't leak pls
  18. Enjoy ;) yes I copied and paste dis
  19. --------------------------------
  20. ]])
  21.  
  22.  
  23.  
  24.  
  25. local rp = RealPlayer
  26. script.Parent = rp.Character
  27.  
  28. --RemoteEvent for communicating
  29. local Event = Instance.new("RemoteEvent")
  30. Event.Name = "UserInput_Event"
  31.  
  32. --Fake event to make stuff like Mouse.KeyDown work
  33. local function fakeEvent()
  34. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  35. t.connect = t.Connect
  36. return t
  37. end
  38.  
  39. --Creating fake input objects with fake variables
  40. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  41. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  42. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  43. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  44. end}
  45. --Merged 2 functions into one by checking amount of arguments
  46. CAS.UnbindAction = CAS.BindAction
  47.  
  48. --This function will trigger the events that have been :Connect()'ed
  49. local function te(self,ev,...)
  50. local t = m[ev]
  51. if t and t._fakeEvent then
  52. for _,f in pairs(t.Functions) do
  53. f(...)
  54. end
  55. end
  56. end
  57. m.TrigEvent = te
  58. UIS.TrigEvent = te
  59.  
  60. Event.OnServerEvent:Connect(function(plr,io)
  61. if plr~=rp then return end
  62. m.Target = io.Target
  63. m.Hit = io.Hit
  64. if not io.isMouse then
  65. local b = io.UserInputState == Enum.UserInputState.Begin
  66. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  67. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  68. end
  69. for _,t in pairs(CAS.Actions) do
  70. for _,k in pairs(t.Keys) do
  71. if k==io.KeyCode then
  72. t.Function(t.Name,io.UserInputState,io)
  73. end
  74. end
  75. end
  76. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  77. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  78. end
  79. end)
  80. Event.Parent = NLS([==[
  81. local Player = game:GetService("Players").LocalPlayer
  82. local Event = script:WaitForChild("UserInput_Event")
  83.  
  84. local Mouse = Player:GetMouse()
  85. local UIS = game:GetService("UserInputService")
  86. local input = function(io,a)
  87. if a then return end
  88. --Since InputObject is a client-side instance, we create and pass table instead
  89. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  90. end
  91. UIS.InputBegan:Connect(input)
  92. UIS.InputEnded:Connect(input)
  93.  
  94. local h,t
  95. --Give the server mouse data 30 times every second, but only if the values changed
  96. --If player is not moving their mouse, client won't fire events
  97. while wait(1/30) do
  98. if h~=Mouse.Hit or t~=Mouse.Target then
  99. h,t=Mouse.Hit,Mouse.Target
  100. Event:FireServer({isMouse=true,Target=t,Hit=h})
  101. end
  102. end]==],Player.Character)
  103.  
  104. ----Sandboxed game object that allows the usage of client-side methods and services
  105. --Real game object
  106. local _rg = game
  107.  
  108. --Metatable for fake service
  109. local fsmt = {
  110. __index = function(self,k)
  111. local s = rawget(self,"_RealService")
  112. if s then return s[k] end
  113. end,
  114. __newindex = function(self,k,v)
  115. local s = rawget(self,"_RealService")
  116. if s then s[k]=v end
  117. end,
  118. __call = function(self,...)
  119. local s = rawget(self,"_RealService")
  120. if s then return s(...) end
  121. end
  122. }
  123. local function FakeService(t,RealService)
  124. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  125. return setmetatable(t,fsmt)
  126. end
  127.  
  128. --Fake game object
  129. local g = {
  130. GetService = function(self,s)
  131. return self[s]
  132. end,
  133. Players = FakeService({
  134. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  135. },"Players"),
  136. UserInputService = FakeService(UIS,"UserInputService"),
  137. ContextActionService = FakeService(CAS,"ContextActionService"),
  138. }
  139. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  140. g.service = g.GetService
  141.  
  142. g.RunService = FakeService({
  143. RenderStepped = _rg:GetService("RunService").Heartbeat,
  144. BindToRenderStep = function(self,name,_,fun)
  145.  
  146. end,
  147. UnbindFromRenderStep = function(self,name)
  148. self._btrs[name]:Disconnect()
  149. end,
  150. },"RunService")
  151.  
  152. setmetatable(g,{
  153. __index=function(self,s)
  154. return _rg:GetService(s) or typeof(_rg[s])=="function"
  155. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  156. end,
  157. __newindex = fsmt.__newindex,
  158. __call = fsmt.__call
  159. })
  160. --Changing owner to fake player object to support owner:GetMouse()
  161. game,owner = g,g.Players.LocalPlayer
  162. end
  163.  
  164. --//====================================================\\--
  165. --|| CREATED BY SHACKLUSTER EDIT BY NAMECLAN edit2 by nobodyspecial11
  166. --\\====================================================//--
  167. local Player_Size = 1
  168. script:ClearAllChildren()
  169. wait(0.2)
  170.  
  171. Player = owner
  172. PlayerGui = Player.PlayerGui
  173. Cam = workspace.CurrentCamera
  174. Backpack = Player.Backpack
  175. Character = Player.Character
  176. Humanoid = Character.Humanoid
  177. Mouse = Player:GetMouse()
  178. RootPart = Character["HumanoidRootPart"]
  179. Torso = Character["Torso"]
  180. Head = Character["Head"]
  181. RightArm = Character["Right Arm"]
  182. LeftArm = Character["Left Arm"]
  183. RightLeg = Character["Right Leg"]
  184. LeftLeg = Character["Left Leg"]
  185. RootJoint = RootPart["RootJoint"]
  186. Neck = Torso["Neck"]
  187. RightShoulder = Torso["Right Shoulder"]
  188. LeftShoulder = Torso["Left Shoulder"]
  189. RightHip = Torso["Right Hip"]
  190. LeftHip = Torso["Left Hip"]
  191. local TIME = 0
  192. local sick = Instance.new("Sound",Torso)
  193.  
  194. IT = Instance.new
  195. CF = CFrame.new
  196. VT = Vector3.new
  197. RAD = math.rad
  198. C3 = Color3.new
  199. UD2 = UDim2.new
  200. BRICKC = BrickColor.new
  201. ANGLES = CFrame.Angles
  202. EULER = CFrame.fromEulerAnglesXYZ
  203. COS = math.cos
  204. ACOS = math.acos
  205. SIN = math.sin
  206. ASIN = math.asin
  207. ABS = math.abs
  208. MRANDOM = math.random
  209. FLOOR = math.floor
  210.  
  211. local naeeym2 = Instance.new("BillboardGui",Character)
  212. naeeym2.AlwaysOnTop = true
  213. naeeym2.Size = UDim2.new(7,35,3,15)
  214. naeeym2.StudsOffset = Vector3.new(0,2,0)
  215. naeeym2.MaxDistance = 75
  216. naeeym2.Adornee = Character.Head
  217. naeeym2.Name = "Name2"
  218. local tecks2 = Instance.new("TextLabel",naeeym2)
  219. tecks2.BackgroundTransparency = 1
  220. tecks2.TextScaled = true
  221. tecks2.BorderSizePixel = 0
  222. tecks2.Text = "Universal Sin"
  223. tecks2.Font = "ArialBold"
  224. tecks2.TextSize = 30
  225. tecks2.TextStrokeTransparency = 0
  226. tecks2.TextColor3 = Color3.fromRGB(.5,0,.5)
  227. tecks2.TextStrokeColor3 = Color3.fromRGB(.5,0,.5)
  228. tecks2.Size = UDim2.new(1,0,0.5,0)
  229. tecks2.Parent = naeeym2
  230. --//=================================\\
  231. --|| USEFUL VALUES
  232. --\\=================================//
  233.  
  234. Animation_Speed = 3
  235. local FORCERESET = false
  236. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  237. local Speed = 16
  238. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  239. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  240. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  241. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  242. local DAMAGEMULTIPLIER = 1
  243. local ANIM = "Idle"
  244. local ATTACK = false
  245. local EQUIPPED = false
  246. local HOLD = false
  247. local COMBO = 1
  248. local Rooted = false
  249. local SINE = 0
  250. local KEYHOLD = false
  251. local CHANGE = 2 / Animation_Speed
  252. local WALKINGANIM = false
  253. local VALUE1 = false
  254. local VALUE2 = false
  255. local LEFTWINGS = {}
  256. local RIGHTWINGS = {}
  257. local ROBLOXIDLEANIMATION = IT("Animation")
  258. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  259. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  260. --ROBLOXIDLEANIMATION.Parent = Humanoid
  261. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  262. WEAPONGUI.Name = "BanishV3Gui"
  263. local Weapon = IT("Model")
  264. Weapon.Name = "Adds"
  265. local Effects = IT("Folder", Weapon)
  266. Effects.Name = "Effects"
  267. local ANIMATOR = Humanoid.Animator
  268. local ANIMATE = Character:FindFirstChild("Animate")
  269. local UNANCHOR = true
  270. local TOBANISH = {}
  271. script.Parent = PlayerGui
  272.  
  273. --//=================================\\
  274. --\\=================================//
  275.  
  276.  
  277. --//=================================\\
  278. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  279. --\\=================================//
  280.  
  281. ArtificialHB = Instance.new("BindableEvent", script)
  282. ArtificialHB.Name = "ArtificialHB"
  283.  
  284. script:WaitForChild("ArtificialHB")
  285.  
  286. frame = Frame_Speed
  287. tf = 0
  288. allowframeloss = false
  289. tossremainder = false
  290. lastframe = tick()
  291. script.ArtificialHB:Fire()
  292.  
  293. game:GetService("RunService").Heartbeat:connect(function(s, p)
  294. tf = tf + s
  295. if tf >= frame then
  296. if allowframeloss then
  297. script.ArtificialHB:Fire()
  298. lastframe = tick()
  299. else
  300. for i = 1, math.floor(tf / frame) do
  301. script.ArtificialHB:Fire()
  302. end
  303. lastframe = tick()
  304. end
  305. if tossremainder then
  306. tf = 0
  307. else
  308. tf = tf - frame * math.floor(tf / frame)
  309. end
  310. end
  311. end)
  312.  
  313. --//=================================\\
  314. --\\=================================//
  315.  
  316. --//=================================\\
  317. --|| SOME FUNCTIONS
  318. --\\=================================//
  319. --Lightning({Material = "Neon", FadeIn = false, Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false, FadeTime = 15, Thicken = false})
  320. function Lightning(Table)
  321. local Color = Table.Color or C3(1,1,1)
  322. local StartPos = Table.Start or Torso.Position
  323. local EndPos = Table.End or Mouse.Hit.p
  324. local SegmentLength = Table.SegmentL or 2
  325. local Thickness = Table.Thickness or 0.1
  326. local Dissapear = Table.DoesFade or false
  327. local Parent = Table.Ignore or Character
  328. local MaxDist = Table.MaxDist or 400
  329. local Branches = Table.Branches or false
  330. local Thicken = Table.Thicken or false
  331. local FadeTime = Table.FadeTime or 15
  332. local FadeIn = Table.FadeIn or false
  333. local Material = Table.Material or "Neon"
  334. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  335. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/((SegmentLength/SegmentLength)/1.5))
  336. local LIGHTNINGMODEL = IT("Model",Effects)
  337. LIGHTNINGMODEL.Name = "Lightning"
  338. local LastBolt = nil
  339. for E = 1, DISTANCE do
  340. local ExtraSize = 0
  341. if Thicken == true then
  342. ExtraSize = (DISTANCE-E)/15
  343. end
  344. local TRANSPARENCY = 0
  345. if FadeIn == true then
  346. TRANSPARENCY = 1-(E/(DISTANCE/1.5))
  347. if TRANSPARENCY < 0 then
  348. TRANSPARENCY = 0
  349. end
  350. end
  351. local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  352. PART.Color = Color
  353. MakeForm(PART,"Cyl")
  354. if LastBolt == nil then
  355. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  356. else
  357. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,DISTANCE-E).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  358. end
  359. LastBolt = PART
  360. if Branches == true and E < (DISTANCE-5) then
  361. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  362. if CHOICE == 1 then
  363. local LASTBRANCH = nil
  364. for i = 1, MRANDOM(2,5) do
  365. local ExtraSize2 = 0
  366. if Thicken == true then
  367. ExtraSize = ((DISTANCE-E)/25)/i
  368. end
  369. local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  370. PART.Color = Color
  371. MakeForm(PART,"Cyl")
  372. if LASTBRANCH == nil then
  373. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  374. else
  375. PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  376. end
  377. LASTBRANCH = PART
  378. end
  379. end
  380. end
  381. end
  382. if Dissapear == true then
  383. coroutine.resume(coroutine.create(function()
  384. for i = 1, FadeTime do
  385. Swait()
  386. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  387. if c.ClassName == "Part" then
  388. c.Transparency = c.Transparency + (i/FadeTime)/10
  389. end
  390. end
  391. end
  392. LIGHTNINGMODEL:remove()
  393. end))
  394. elseif Dissapear == false then
  395. Debris:AddItem(LIGHTNINGMODEL,0.1)
  396. end
  397. return {Hit = HIT,Pos = HITPOS,End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  398. end
  399.  
  400. --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 9999, Branches = false})
  401. function Lightning(Table)
  402. local Color = Table.Color or C3(1,1,1)
  403. local StartPos = Table.Start or Torso.Position
  404. local EndPos = Table.End or Mouse.Hit.p
  405. local SegmentLength = Table.SegmentL or 2
  406. local Thickness = Table.Thickness or 0.1
  407. local Dissapear = Table.DoesFade or false
  408. local Parent = Table.Ignore or Character
  409. local MaxDist = Table.MaxDist or 400
  410. local Branches = Table.Branches or false
  411. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  412. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  413. local LIGHTNINGMODEL = IT("Model",Effects)
  414. LIGHTNINGMODEL.Name = "Lightning"
  415. local LastBolt = nil
  416. for E = 1, DISTANCE do
  417. local ExtraSize = (DISTANCE-E)/15
  418. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  419. PART.Color = Color
  420. MakeForm(PART,"Cyl")
  421. if LastBolt == nil then
  422. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  423. else
  424. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  425. end
  426. LastBolt = PART
  427. if Branches == true then
  428. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  429. if CHOICE == 1 then
  430. local LASTBRANCH = nil
  431. for i = 1, MRANDOM(2,5) do
  432. local ExtraSize2 = ((DISTANCE-E)/25)/i
  433. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  434. PART.Color = Color
  435. MakeForm(PART,"Cyl")
  436. if LASTBRANCH == nil then
  437. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  438. else
  439. PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  440. end
  441. LASTBRANCH = PART
  442. end
  443. end
  444. end
  445. end
  446. if Dissapear == true then
  447. coroutine.resume(coroutine.create(function()
  448. for i = 1, 10 do
  449. Swait()
  450. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  451. if c.ClassName == "Part" then
  452. c.Transparency = i/10
  453. end
  454. end
  455. end
  456. LIGHTNINGMODEL:remove()
  457. end))
  458. elseif Dissapear == false then
  459. Debris:AddItem(LIGHTNINGMODEL,0.1)
  460. end
  461. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  462. end
  463.  
  464. --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 9999, Branches = false})
  465. function Lightning(Table)
  466. local Color = Table.Color or C3(1,1,1)
  467. local StartPos = Table.Start or Torso.Position
  468. local EndPos = Table.End or Mouse.Hit.p
  469. local SegmentLength = Table.SegmentL or 2
  470. local Thickness = Table.Thickness or 0.1
  471. local Dissapear = Table.DoesFade or false
  472. local Parent = Table.Ignore or Character
  473. local MaxDist = Table.MaxDist or 400
  474. local Branches = Table.Branches or false
  475. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  476. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  477. local LIGHTNINGMODEL = IT("Model",Effects)
  478. LIGHTNINGMODEL.Name = "Lightning"
  479. local LastBolt = nil
  480. for E = 1, DISTANCE do
  481. local ExtraSize = (DISTANCE-E)/15
  482. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  483. PART.Color = Color
  484. MakeForm(PART,"Cyl")
  485. if LastBolt == nil then
  486. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  487. else
  488. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  489. end
  490. LastBolt = PART
  491. if Branches == true then
  492. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  493. if CHOICE == 1 then
  494. local LASTBRANCH = nil
  495. for i = 1, MRANDOM(2,5) do
  496. local ExtraSize2 = ((DISTANCE-E)/25)/i
  497. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  498. PART.Color = Color
  499. MakeForm(PART,"Cyl")
  500. if LASTBRANCH == nil then
  501. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  502. else
  503. PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  504. end
  505. LASTBRANCH = PART
  506. end
  507. end
  508. end
  509. end
  510. if Dissapear == true then
  511. coroutine.resume(coroutine.create(function()
  512. for i = 1, 10 do
  513. Swait()
  514. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  515. if c.ClassName == "Part" then
  516. c.Transparency = i/10
  517. end
  518. end
  519. end
  520. LIGHTNINGMODEL:remove()
  521. end))
  522. elseif Dissapear == false then
  523. Debris:AddItem(LIGHTNINGMODEL,0.1)
  524. end
  525. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  526. end
  527.  
  528. BaseLightning = IT("Part")
  529. BaseLightning.Anchored = true
  530. BaseLightning.CanCollide = false
  531. BaseLightning.Material = "Neon"
  532. local LightningBolts = {}
  533. function Zap(Table)
  534. local StartPos, TargetPos, Character, Color = Table.StartPosition, Table.TargetPosition, Table.Character, Table.Color
  535. local Duration = Table.Duration or 2
  536. local Offset = Table.Offset or 2
  537. local Individualize = Table.Individualize or false
  538. local MaxRange = Table.MaxRange or 200
  539. local SegmentLength = Table.SegmentLength or 5
  540. local Transparency = Table.Transparency or 0
  541. local Ignore = Table.Ignore or {}
  542. local SIZE = Table.SIZE or 0.3
  543. if not (StartPos and TargetPos) or not Character then
  544. return
  545. end
  546. local LightningModel = IT("Folder", Effects)
  547. LightningModel.Name = "ZAPP"
  548. for i, v in pairs({Character, LightningModel}) do
  549. table.insert(Ignore, v)
  550. end
  551. local LastPos = StartPos
  552. local Direction = CFrame.new(StartPos, TargetPos).lookVector
  553. local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Direction, MaxRange, Ignore, false)
  554. local RayLength = (StartPos - RayPos).Magnitude
  555. local Struck = false
  556. local TotalSegments = math.ceil(RayLength / SegmentLength)
  557. Direction = CFrame.new(StartPos, RayPos).lookVector
  558. local LightningBolt = IT("Model", Effects)
  559. LightningBolt.Name = "Lightning"
  560. LastBolt = LightningBolt
  561. Debris:AddItem(LightningBolt, Duration)
  562. LightningBolt.Parent = LightningModel
  563. for i = 1, TotalSegments do
  564. if not Struck then
  565. local Entropy = Vector3.new(math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset)
  566. local NewPos = StartPos + Direction * (RayLength * (i / TotalSegments)) + Entropy
  567. local SegmentVec = NewPos - LastPos
  568. local RayHit, RayPos, RayNormal = CastZapRay(LastPos, SegmentVec.Unit, SegmentVec.Magnitude, {Character, LightningModel}, false)
  569. local RayVec = LastPos - RayPos
  570. local LightningPart = BaseLightning:Clone()
  571. LightningPart.BrickColor = BrickColor.new(Color)
  572. LightningPart.Transparency = Transparency
  573. LightningPart.Size = Vector3.new(SIZE, SIZE, RayVec.Magnitude)
  574. LightningPart.CFrame = CFrame.new(LastPos, RayPos) * CFrame.new(0, 0, -(RayVec.Magnitude / 2))
  575. local CylinderMesh = IT("CylinderMesh", LightningPart)
  576. local OrigCF = LightningPart.CFrame
  577. LightningPart.Size = Vector3.new(LightningPart.Size.X, LightningPart.Size.Z, LightningPart.Size.Y)
  578. LightningPart.CFrame = OrigCF * CFrame.Angles(math.pi / 2, 0, 0)
  579. LightningPart.Parent = LightningBolt
  580. LastPos = NewPos
  581. end
  582. end
  583. return {
  584. RayHit = RayHit,
  585. RayPos = RayPos,
  586. RayNormal = RayNormal,
  587. LightningModel = LightningModel
  588. }
  589. end
  590.  
  591. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  592. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  593. end
  594.  
  595. function PositiveAngle(NUMBER)
  596. if NUMBER >= 0 then
  597. NUMBER = 0
  598. end
  599. return NUMBER
  600. end
  601.  
  602. function NegativeAngle(NUMBER)
  603. if NUMBER <= 0 then
  604. NUMBER = 0
  605. end
  606. return NUMBER
  607. end
  608.  
  609. function Swait(NUMBER)
  610. if NUMBER == 0 or NUMBER == nil then
  611. ArtificialHB.Event:wait()
  612. else
  613. for i = 1, NUMBER do
  614. ArtificialHB.Event:wait()
  615. end
  616. end
  617. end
  618.  
  619. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  620. local NEWMESH = IT(MESH)
  621. if MESH == "SpecialMesh" then
  622. NEWMESH.MeshType = MESHTYPE
  623. if MESHID ~= "nil" and MESHID ~= "" then
  624. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  625. end
  626. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  627. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  628. end
  629. end
  630. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  631. NEWMESH.Scale = SCALE
  632. NEWMESH.Parent = PARENT
  633. return NEWMESH
  634. end
  635.  
  636. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  637. local NEWPART = IT("Part")
  638. NEWPART.formFactor = FORMFACTOR
  639. NEWPART.Reflectance = REFLECTANCE
  640. NEWPART.Transparency = TRANSPARENCY
  641. NEWPART.CanCollide = false
  642. NEWPART.Locked = true
  643. NEWPART.Anchored = true
  644. if ANCHOR == false then
  645. NEWPART.Anchored = false
  646. end
  647. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  648. NEWPART.Name = NAME
  649. NEWPART.Size = SIZE
  650. NEWPART.Position = Torso.Position
  651. NEWPART.Material = MATERIAL
  652. NEWPART:BreakJoints()
  653. NEWPART.Parent = PARENT
  654. return NEWPART
  655. end
  656.  
  657. local function weldBetween(a, b)
  658. local weldd = Instance.new("ManualWeld")
  659. weldd.Part0 = a
  660. weldd.Part1 = b
  661. weldd.C0 = CFrame.new()
  662. weldd.C1 = b.CFrame:inverse() * a.CFrame
  663. weldd.Parent = a
  664. return weldd
  665. end
  666.  
  667.  
  668. function QuaternionFromCFrame(cf)
  669. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  670. local trace = m00 + m11 + m22
  671. if trace > 0 then
  672. local s = math.sqrt(1 + trace)
  673. local recip = 0.5 / s
  674. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  675. else
  676. local i = 0
  677. if m11 > m00 then
  678. i = 1
  679. end
  680. if m22 > (i == 0 and m00 or m11) then
  681. i = 2
  682. end
  683. if i == 0 then
  684. local s = math.sqrt(m00 - m11 - m22 + 1)
  685. local recip = 0.5 / s
  686. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  687. elseif i == 1 then
  688. local s = math.sqrt(m11 - m22 - m00 + 1)
  689. local recip = 0.5 / s
  690. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  691. elseif i == 2 then
  692. local s = math.sqrt(m22 - m00 - m11 + 1)
  693. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  694. end
  695. end
  696. end
  697.  
  698. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  699. local xs, ys, zs = x + x, y + y, z + z
  700. local wx, wy, wz = w * xs, w * ys, w * zs
  701. local xx = x * xs
  702. local xy = x * ys
  703. local xz = x * zs
  704. local yy = y * ys
  705. local yz = y * zs
  706. local zz = z * zs
  707. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  708. end
  709.  
  710. function QuaternionSlerp(a, b, t)
  711. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  712. local startInterp, finishInterp;
  713. if cosTheta >= 0.0001 then
  714. if (1 - cosTheta) > 0.0001 then
  715. local theta = ACOS(cosTheta)
  716. local invSinTheta = 1 / SIN(theta)
  717. startInterp = SIN((1 - t) * theta) * invSinTheta
  718. finishInterp = SIN(t * theta) * invSinTheta
  719. else
  720. startInterp = 1 - t
  721. finishInterp = t
  722. end
  723. else
  724. if (1 + cosTheta) > 0.0001 then
  725. local theta = ACOS(-cosTheta)
  726. local invSinTheta = 1 / SIN(theta)
  727. startInterp = SIN((t - 1) * theta) * invSinTheta
  728. finishInterp = SIN(t * theta) * invSinTheta
  729. else
  730. startInterp = t - 1
  731. finishInterp = t
  732. end
  733. end
  734. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  735. end
  736.  
  737. function Clerp(a, b, t)
  738. local qa = {QuaternionFromCFrame(a)}
  739. local qb = {QuaternionFromCFrame(b)}
  740. local ax, ay, az = a.x, a.y, a.z
  741. local bx, by, bz = b.x, b.y, b.z
  742. local _t = 1 - t
  743. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  744. end
  745.  
  746. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  747. local frame = IT("Frame")
  748. frame.BackgroundTransparency = TRANSPARENCY
  749. frame.BorderSizePixel = BORDERSIZEPIXEL
  750. frame.Position = POSITION
  751. frame.Size = SIZE
  752. frame.BackgroundColor3 = COLOR
  753. frame.BorderColor3 = BORDERCOLOR
  754. frame.Name = NAME
  755. frame.Parent = PARENT
  756. return frame
  757. end
  758.  
  759. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  760. local label = IT("TextLabel")
  761. label.BackgroundTransparency = 1
  762. label.Size = UD2(1, 0, 1, 0)
  763. label.Position = UD2(0, 0, 0, 0)
  764. label.TextColor3 = TEXTCOLOR
  765. label.TextStrokeTransparency = STROKETRANSPARENCY
  766. label.TextTransparency = TRANSPARENCY
  767. label.FontSize = TEXTFONTSIZE
  768. label.Font = TEXTFONT
  769. label.BorderSizePixel = BORDERSIZEPIXEL
  770. label.TextScaled = false
  771. label.Text = TEXT
  772. label.Name = NAME
  773. label.Parent = PARENT
  774. return label
  775. end
  776.  
  777. function NoOutlines(PART)
  778. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  779. end
  780.  
  781. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  782. local NEWWELD = IT(TYPE)
  783. NEWWELD.Part0 = PART0
  784. NEWWELD.Part1 = PART1
  785. NEWWELD.C0 = C0
  786. NEWWELD.C1 = C1
  787. NEWWELD.Parent = PARENT
  788. return NEWWELD
  789. end
  790.  
  791. local S = IT("Sound")
  792. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  793. local NEWSOUND = nil
  794. coroutine.resume(coroutine.create(function()
  795. NEWSOUND = S:Clone()
  796. NEWSOUND.Parent = PARENT
  797. NEWSOUND.Volume = VOLUME
  798. NEWSOUND.Pitch = PITCH
  799. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  800. NEWSOUND:play()
  801. if DOESLOOP == true then
  802. NEWSOUND.Looped = true
  803. else
  804. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  805. NEWSOUND:remove()
  806. end
  807. end))
  808. return NEWSOUND
  809. end
  810.  
  811. function CFrameFromTopBack(at, top, back)
  812. local right = top:Cross(back)
  813. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  814. end
  815.  
  816. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  817. function WACKYEFFECT(Table)
  818. local TYPE = (Table.EffectType or "Sphere")
  819. local SIZE = (Table.Size or VT(1,1,1))
  820. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  821. local TRANSPARENCY = (Table.Transparency or 0)
  822. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  823. local CFRAME = (Table.CFrame or Torso.CFrame)
  824. local MOVEDIRECTION = (Table.MoveToPos or nil)
  825. local ROTATION1 = (Table.RotationX or 0)
  826. local ROTATION2 = (Table.RotationY or 0)
  827. local ROTATION3 = (Table.RotationZ or 0)
  828. local MATERIAL = (Table.Material or "Neon")
  829. local COLOR = (Table.Color or C3(1,1,1))
  830. local TIME = (Table.Time or 45)
  831. local SOUNDID = (Table.SoundID or nil)
  832. local SOUNDPITCH = (Table.SoundPitch or nil)
  833. local SOUNDVOLUME = (Table.SoundVolume or nil)
  834. coroutine.resume(coroutine.create(function()
  835. local PLAYSSOUND = false
  836. local SOUND = nil
  837. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  838. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  839. PLAYSSOUND = true
  840. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  841. end
  842. EFFECT.Color = COLOR
  843. local MSH = nil
  844. if TYPE == "Sphere" then
  845. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  846. elseif TYPE == "Block" then
  847. MSH = IT("BlockMesh",EFFECT)
  848. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  849. elseif TYPE == "Wave" then
  850. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  851. elseif TYPE == "Ring" then
  852. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  853. elseif TYPE == "Slash" then
  854. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  855. elseif TYPE == "Round Slash" then
  856. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  857. elseif TYPE == "Swirl" then
  858. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  859. elseif TYPE == "Skull" then
  860. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  861. elseif TYPE == "Crystal" then
  862. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  863. end
  864. if MSH ~= nil then
  865. local MOVESPEED = nil
  866. if MOVEDIRECTION ~= nil then
  867. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  868. end
  869. local GROWTH = SIZE - ENDSIZE
  870. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  871. if TYPE == "Block" then
  872. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  873. else
  874. EFFECT.CFrame = CFRAME
  875. end
  876. for LOOP = 1, TIME+1 do
  877. Swait()
  878. MSH.Scale = MSH.Scale - GROWTH/TIME
  879. if TYPE == "Wave" then
  880. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  881. end
  882. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  883. if TYPE == "Block" then
  884. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  885. else
  886. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  887. end
  888. if MOVEDIRECTION ~= nil then
  889. local ORI = EFFECT.Orientation
  890. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  891. EFFECT.Orientation = ORI
  892. end
  893. end
  894. if PLAYSSOUND == false then
  895. EFFECT:remove()
  896. else
  897. SOUND.Stopped:Connect(function()
  898. EFFECT:remove()
  899. end)
  900. end
  901. else
  902. if PLAYSSOUND == false then
  903. EFFECT:remove()
  904. else
  905. repeat Swait() until SOUND.Playing == false
  906. EFFECT:remove()
  907. end
  908. end
  909. end))
  910. end
  911.  
  912. function MakeForm(PART,TYPE)
  913. if TYPE == "Cyl" then
  914. local MSH = IT("CylinderMesh",PART)
  915. elseif TYPE == "Ball" then
  916. local MSH = IT("SpecialMesh",PART)
  917. MSH.MeshType = "Sphere"
  918. elseif TYPE == "Wedge" then
  919. local MSH = IT("SpecialMesh",PART)
  920. MSH.MeshType = "Wedge"
  921. end
  922. end
  923.  
  924. function SpawnTrail(FROM,TO,BIG)
  925. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Royal purple", "Trail", VT(0,0,0))
  926. MakeForm(TRAIL,"Cyl")
  927. local DIST = (FROM - TO).Magnitude
  928. if BIG == true then
  929. TRAIL.Size = VT(0.5,DIST,0.5)
  930. else
  931. TRAIL.Size = VT(0.25,DIST,0.25)
  932. end
  933. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  934. coroutine.resume(coroutine.create(function()
  935. for i = 1, 5 do
  936. Swait()
  937. TRAIL.Transparency = TRAIL.Transparency + 0.1
  938. end
  939. TRAIL:remove()
  940. end))
  941. end
  942.  
  943. Debris = game:GetService("Debris")
  944.  
  945. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  946. local DIRECTION = CF(StartPos,EndPos).lookVector
  947. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  948. end
  949.  
  950. function turnto(position)
  951. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  952. end
  953. local asd = Instance.new("ParticleEmitter")
  954. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  955. asd.LightEmission = .1
  956. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  957. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  958. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  959. asd.Transparency = bbb
  960. asd.Size = aaa
  961. asd.ZOffset = .9
  962. asd.Acceleration = Vector3.new(0, -15, 0)
  963. asd.LockedToPart = false
  964. asd.EmissionDirection = "Back"
  965. asd.Lifetime = NumberRange.new(1, 2)
  966. asd.Rotation = NumberRange.new(-100, 100)
  967. asd.RotSpeed = NumberRange.new(-100, 100)
  968. asd.Speed = NumberRange.new(10)
  969. asd.Enabled = false
  970. asd.VelocitySpread = 999
  971.  
  972. function getbloody(victim,amount)
  973. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  974. PART.CFrame = victim.CFrame
  975. local HITPLAYERSOUNDS = {"356551938","264486467"}
  976. Debris:AddItem(PART,5)
  977. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  978. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  979. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  980. local prtcl = asd:Clone()
  981. prtcl.Parent = PART
  982. prtcl:Emit(amount*10)
  983. end
  984.  
  985. local Particle = IT("ParticleEmitter",nil)
  986. Particle.Enabled = false
  987. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  988. Particle.LightEmission = 0.5
  989. Particle.Rate = 150
  990. Particle.ZOffset = 1
  991. Particle.Rotation = NumberRange.new(-180, 180)
  992. Particle.RotSpeed = NumberRange.new(-180, 180)
  993. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  994. Particle.Color = ColorSequence.new(C3(.5,0,.5),C3(.5,0,.5))
  995.  
  996. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  997. function ParticleEmitter(Table)
  998. local PRTCL = Particle:Clone()
  999. local Speed = Table.Speed or 5
  1000. local Drag = Table.Drag or 0
  1001. local Size1 = Table.Size1 or 1
  1002. local Size2 = Table.Size2 or 5
  1003. local Lifetime1 = Table.Lifetime1 or 1
  1004. local Lifetime2 = Table.Lifetime2 or 1.5
  1005. local Parent = Table.Parent or Torso
  1006. local Emit = Table.Emit or 100
  1007. local Offset = Table.Offset or 360
  1008. local Acel = Table.Acel or VT(0,0,0)
  1009. local Enabled = Table.Enabled or false
  1010. PRTCL.Parent = Parent
  1011. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1012. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1013. PRTCL.Speed = NumberRange.new(Speed)
  1014. PRTCL.VelocitySpread = Offset
  1015. PRTCL.Drag = Drag
  1016. PRTCL.Acceleration = Acel
  1017. if Enabled == false then
  1018. PRTCL:Emit(Emit)
  1019. Debris:AddItem(PRTCL,Lifetime2)
  1020. else
  1021. PRTCL.Enabled = true
  1022. end
  1023. return PRTCL
  1024. end
  1025.  
  1026. function R_RANDOM(CFRAME,DIST)
  1027. return CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-DIST)
  1028. end
  1029.  
  1030. function CharacterFade(COLOR,TIMER,MOVEDIRECTION,PARENT)
  1031. coroutine.resume(coroutine.create(function()
  1032. local FADE = IT("Model",Effects)
  1033. if PARENT ~= nil then
  1034. FADE.Parent = PARENT
  1035. end
  1036. FADE.Name = "FadingEffect"
  1037. for _, c in pairs(Character:GetChildren()) do
  1038. if c.ClassName == "Part" then
  1039. c.CanCollide = false
  1040. local FADER = CreatePart(3, FADE, "Neon", 0, 0.75, BRICKC("Royal purple"), c.Name, c.Size, true)
  1041. FADER.CFrame = c.CFrame
  1042. FADER.Color = COLOR
  1043. if FADER.Name == "Head" then
  1044. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FADER
  1045. elseif FADER.Name == "HumanoidRootPart" then
  1046. FADE.PrimaryPart = FADER
  1047. FADER.Transparency = 1
  1048. end
  1049. end
  1050. end
  1051. local TRANS = 0.25/TIMER
  1052. local DIST = nil
  1053. if MOVEDIRECTION ~= nil then
  1054. DIST = (FADE.PrimaryPart.Position - MOVEDIRECTION).Magnitude
  1055. end
  1056. for i = 1, TIMER do
  1057. Swait()
  1058. for _, c in pairs(FADE:GetChildren()) do
  1059. if c.ClassName == "Part" then
  1060. c.Transparency = c.Transparency + TRANS
  1061. end
  1062. end
  1063. if MOVEDIRECTION ~= nil then
  1064. local ORI = FADE.PrimaryPart.Orientation
  1065. FADE:SetPrimaryPartCFrame(CF(CF(FADE.PrimaryPart.Position,MOVEDIRECTION)*CF(0,0,-DIST/TIMER).p) * ANGLES(RAD(ORI.X), RAD(ORI.Y), RAD(ORI.Z)))
  1066. end
  1067. end
  1068. FADE:remove()
  1069. end))
  1070. end
  1071.  
  1072.  
  1073. --//=================================\\
  1074. --|| WEAPON CREATION
  1075. --\\=================================//
  1076. local Back = CreatePart(3, Character, "Granite", 0, 0, "Royal purple", "Wing", VT(1,1,0.35),false)
  1077. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back, CF(0, 0.5, 1.2) * ANGLES(RAD(0),RAD(0),RAD(45)), CF(0, 0, 0))
  1078.  
  1079. local ANGLE = 35
  1080. for i = 1, 5 do
  1081. local Wing = CreatePart(3, Character, "Neon", 0, 0, "Royal purple", "Wing", VT(0.15,2+(i/2),0.15),false)
  1082. local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
  1083. local Wing2 = CreatePart(3, Character, "Granite", 0, 0, "Royal purple", "Wing", VT(0.25,1,0.25),false)
  1084. CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
  1085. ANGLE = ANGLE - 15
  1086. table.insert(LEFTWINGS,WingWeld)
  1087. end
  1088. ANGLE = 35
  1089. for i = 1, 5 do
  1090. local Wing = CreatePart(3, Character, "Neon", 0, 0, "Royal purple", "Wing", VT(0.15,2+(i/2),0.15),false)
  1091. local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
  1092. local Wing2 = CreatePart(3, Character, "Granite", 0, 0, "Royal purple", "Wing", VT(0.25,1,0.25),false)
  1093. CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
  1094. ANGLE = ANGLE - 15
  1095. table.insert(RIGHTWINGS,WingWeld)
  1096. end
  1097.  
  1098. local EyePiece1 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "EyePiece1", VT(0.6,0.1,1)/2,false)
  1099. MakeForm(EyePiece1,"Ball")
  1100. CreateWeldOrSnapOrMotor("Weld", EyePiece1, Head, EyePiece1, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  1101. local EyePiece2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "EyePiece2", VT(0.1,1,1)/2,false)
  1102. MakeForm(EyePiece2,"Ball")
  1103. CreateWeldOrSnapOrMotor("Weld", EyePiece2, Head, EyePiece2, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  1104. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Royal purple", "Hood", VT(1,1,1),false)
  1105. PRT.Color = C3(.5,0,.5)
  1106. local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
  1107. CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0))
  1108. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Royal purple", "Scarf", VT(1,1,1),false)
  1109. PRT.Color = C3(.5,0,.5)
  1110. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0))
  1111. CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
  1112. for i = 1, 16 do
  1113. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false)
  1114. FACE.Color = C3(0,0,0)
  1115. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  1116. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0))
  1117. end
  1118. local LASTPART = Head
  1119. for i = 1, 20 do
  1120. local MATH = (1-(i/25))
  1121. if LASTPART == Head then
  1122. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Royal purple", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1123. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
  1124. LASTPART = Horn
  1125. Horn.Color = C3((i*3-3)/.5,0,.5)
  1126. else
  1127. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Royal purple", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1128. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
  1129. LASTPART = Horn
  1130. Horn.Color = C3((i*3-3)/.5,0,.5)
  1131. end
  1132. end
  1133. local LASTPART = Head
  1134. for i = 1, 20 do
  1135. local MATH = (1-(i/25))
  1136. if LASTPART == Head then
  1137. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Royal purple", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1138. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0))
  1139. LASTPART = Horn
  1140. Horn.Color = C3((i*3-3)/.5,0,.5)
  1141. else
  1142. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Royal purple", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1143. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0))
  1144. LASTPART = Horn
  1145. Horn.Color = C3((i*3-3)/.5,0,.5)
  1146. end
  1147. end
  1148. local Hair = CreatePart(3, Character, "Fabric", 0, 0, "Royal purple", "Hair", VT(1,1,1),false)
  1149. local HairWeld1 = CreateWeldOrSnapOrMotor("Weld", Hair, Head, Hair, CF(0,0.1,-0.25) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1150. CreateMesh("SpecialMesh", Hair, "FileMesh", "873651376", "", VT(0.025, 0.025, 0.02), VT(0,0,0))
  1151. local Hair = CreatePart(3, Character, "Fabric", 0, 0, "Royal purple", "Hair", VT(1,1,1),false)
  1152. local HairWeld2 = CreateWeldOrSnapOrMotor("Weld", Hair, Head, Hair, CF(0,0.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1153. CreateMesh("SpecialMesh", Hair, "FileMesh", "873651376", "", VT(0.03, 0.015, 0.01), VT(0,0,-0.1))
  1154.  
  1155. local Particle = IT("ParticleEmitter",nil)
  1156. Particle.Enabled = false
  1157. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  1158. Particle.LightEmission = 0.5
  1159. Particle.Rate = 150
  1160. Particle.ZOffset = 0.2
  1161. Particle.Rotation = NumberRange.new(-180, 180)
  1162. Particle.RotSpeed = NumberRange.new(-180, 180)
  1163. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  1164. Particle.Color = ColorSequence.new(C3(.5,0,.5),C3(.5,0,.5))
  1165.  
  1166. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  1167. function ParticleEmitter(Table)
  1168. local PRTCL = Particle:Clone()
  1169. local Speed = Table.Speed or 5
  1170. local Drag = Table.Drag or 0
  1171. local Size1 = Table.Size1 or 1
  1172. local Size2 = Table.Size2 or 5
  1173. local Lifetime1 = Table.Lifetime1 or 1
  1174. local Lifetime2 = Table.Lifetime2 or 1.5
  1175. local Parent = Table.Parent or Torso
  1176. local Emit = Table.Emit or 100
  1177. local Offset = Table.Offset or 360
  1178. local Acel = Table.Acel or VT(0,0,0)
  1179. local Enabled = Table.Enabled or false
  1180. PRTCL.Parent = Parent
  1181. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1182. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1183. PRTCL.Speed = NumberRange.new(Speed)
  1184. PRTCL.VelocitySpread = Offset
  1185. PRTCL.Drag = Drag
  1186. PRTCL.Acceleration = Acel
  1187. if Enabled == false then
  1188. PRTCL:Emit(Emit)
  1189. Debris:AddItem(PRTCL,Lifetime2)
  1190. else
  1191. PRTCL.Enabled = true
  1192. end
  1193. return PRTCL
  1194. end
  1195.  
  1196.  
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  1204. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  1205. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1206. MakeForm(Part,"Wedge")
  1207. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1208. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  1209. MakeForm(Part,"Wedge")
  1210. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  1211. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  1212. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1213. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1214. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1215. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1216. MakeForm(Part,"Cyl")
  1217. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1218. for i = 1, 8 do
  1219. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1220. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1221. end
  1222. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  1223. MakeForm(Part,"Cyl")
  1224. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1225. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  1226. MakeForm(Part,"Ball")
  1227. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1228. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  1229. MakeForm(Part,"Wedge")
  1230. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  1231. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  1232. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1233. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  1234. MakeForm(Part,"Cyl")
  1235. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1236. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  1237. MakeForm(Part,"Cyl")
  1238. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1239. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1240. MakeForm(Part,"Cyl")
  1241. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1242. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1243. MakeForm(Part,"Wedge")
  1244. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1245. local LASTPART = Handle
  1246. for i = 1, 10 do
  1247. if LASTPART == Handle then
  1248. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1249. LASTPART = Part
  1250. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1251. else
  1252. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1253. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1254. LASTPART = Part
  1255. end
  1256. end
  1257.  
  1258. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  1259. MakeForm(Barrel,"Cyl")
  1260. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1261. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1262. MakeForm(Part,"Cyl")
  1263. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1264. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1265. MakeForm(Part,"Wedge")
  1266. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1267. local Hole2 = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1268. MakeForm(Hole2,"Cyl")
  1269. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole2, CF(0, 0.98, 0), CF(0, 0, 0))
  1270. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1271. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1272. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1273. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1274. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1275. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1276. coroutine.resume(coroutine.create(function()
  1277. while wait() do
  1278. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1279. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1280. end
  1281. end))
  1282.  
  1283. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole2, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  1284. --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  1285.  
  1286. for _, c in pairs(Weapon:GetDescendants()) do
  1287. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1288. c.Material = "Glass"
  1289. c.Color = C3(.5,0,.5)
  1290. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1291. c.Color = C3(.5,0,.5)
  1292. c.Material = "Neon"
  1293. end
  1294. end
  1295.  
  1296. Weapon.Parent = Character
  1297. for _, c in pairs(Weapon:GetChildren()) do
  1298. if c.ClassName == "Part" then
  1299. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1300. end
  1301. end
  1302.  
  1303. function ParticleEmitter(Table)
  1304. local PRTCL = Particle:Clone()
  1305. local Speed = Table.Speed or 5
  1306. local Drag = Table.Drag or 0
  1307. local Size1 = Table.Size1 or 1
  1308. local Size2 = Table.Size2 or 5
  1309. local Lifetime1 = Table.Lifetime1 or 1
  1310. local Lifetime2 = Table.Lifetime2 or 1.5
  1311. local Parent = Table.Parent or Torso
  1312. local Emit = Table.Emit or 100
  1313. local Offset = Table.Offset or 360
  1314. local Acel = Table.Acel or VT(0,0,0)
  1315. local Enabled = Table.Enabled or false
  1316. PRTCL.Parent = Parent
  1317. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1318. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1319. PRTCL.Speed = NumberRange.new(Speed)
  1320. PRTCL.VelocitySpread = Offset
  1321. PRTCL.Drag = Drag
  1322. PRTCL.Acceleration = Acel
  1323. if Enabled == false then
  1324. PRTCL:Emit(Emit)
  1325. Debris:AddItem(PRTCL,Lifetime2)
  1326. else
  1327. PRTCL.Enabled = true
  1328. end
  1329. return PRTCL
  1330. end
  1331.  
  1332. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  1333. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  1334. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1335. MakeForm(Part,"Wedge")
  1336. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1337. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  1338. MakeForm(Part,"Wedge")
  1339. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  1340. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  1341. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1342. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1343. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1344. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1345. MakeForm(Part,"Cyl")
  1346. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1347. for i = 1, 8 do
  1348. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1349. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1350. end
  1351. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  1352. MakeForm(Part,"Cyl")
  1353. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1354. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  1355. MakeForm(Part,"Ball")
  1356. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1357. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  1358. MakeForm(Part,"Wedge")
  1359. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  1360. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  1361. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1362. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  1363. MakeForm(Part,"Cyl")
  1364. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1365. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  1366. MakeForm(Part,"Cyl")
  1367. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1368. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1369. MakeForm(Part,"Cyl")
  1370. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1371. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1372. MakeForm(Part,"Wedge")
  1373. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1374. local LASTPART = Handle
  1375. for i = 1, 10 do
  1376. if LASTPART == Handle then
  1377. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1378. LASTPART = Part
  1379. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1380. else
  1381. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1382. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1383. LASTPART = Part
  1384. end
  1385. end
  1386.  
  1387. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  1388. MakeForm(Barrel,"Cyl")
  1389. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1390. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1391. MakeForm(Part,"Cyl")
  1392. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1393. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1394. MakeForm(Part,"Wedge")
  1395. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1396. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1397. MakeForm(Hole,"Cyl")
  1398. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  1399. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1400. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1401. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1402. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1403. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1404. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1405. coroutine.resume(coroutine.create(function()
  1406. while wait() do
  1407. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1408. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1409. end
  1410. end))
  1411.  
  1412. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  1413. --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  1414.  
  1415. for _, c in pairs(Weapon:GetDescendants()) do
  1416. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1417. c.Material = "Glass"
  1418. c.Color = C3(0.05,0.05,0.05)
  1419. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1420. c.Color = C3(.5,0,.5)
  1421. c.Material = "Neon"
  1422. end
  1423. end
  1424.  
  1425. Weapon.Parent = Character
  1426. for _, c in pairs(Weapon:GetChildren()) do
  1427. if c.ClassName == "Part" then
  1428. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1429. end
  1430. end
  1431.  
  1432. local SKILLTEXTCOLOR = C3(.5,0,.5)
  1433. local SKILLFONT = "Antique"
  1434. local SKILLTEXTSIZE = 7
  1435.  
  1436. Humanoid.Died:connect(function()
  1437. ATTACK = true
  1438. end)
  1439.  
  1440.  
  1441. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.0, 1, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1442. --[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  1443. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  1444. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  1445. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  1446. ]]
  1447. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  1448. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  1449. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  1450. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  1451. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  1452. ]]
  1453. function printbye(Name)
  1454. local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
  1455. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1456. end
  1457.  
  1458. workspace.ChildAdded:connect(function(instance)
  1459. for BANISH = 1, #TOBANISH do
  1460. if TOBANISH[BANISH] ~= nil then
  1461. if instance.Name == TOBANISH[BANISH] then
  1462. coroutine.resume(coroutine.create(function()
  1463. printbye(instance.Name)
  1464. instance:ClearAllChildren()
  1465. Debris:AddItem(instance,0.0005)
  1466. end))
  1467. end
  1468. end
  1469. end
  1470. end)
  1471.  
  1472. --//=================================\\
  1473. --|| DAMAGING
  1474. --\\=================================//
  1475.  
  1476. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1477. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1478. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1479. wave.CFrame = CFRAME
  1480. coroutine.resume(coroutine.create(function(PART)
  1481. for i = 1, WAIT do
  1482. Swait()
  1483. mesh.Scale = mesh.Scale + GROW
  1484. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1485. if DOESROT == true then
  1486. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1487. end
  1488. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1489. if wave.Transparency > 0.99 then
  1490. wave:remove()
  1491. end
  1492. end
  1493. end))
  1494. end
  1495.  
  1496. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  1497. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1498. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0,0,0))
  1499. wave.CFrame = CFRAME
  1500. coroutine.resume(coroutine.create(function(PART)
  1501. for i = 1, WAIT do
  1502. Swait()
  1503. mesh.Scale = mesh.Scale + GROW
  1504. if DOESROT == true then
  1505. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1506. end
  1507. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1508. if wave.Transparency > 0.99 then
  1509. wave:remove()
  1510. end
  1511. end
  1512. end))
  1513. end
  1514.  
  1515. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  1516. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1517. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
  1518. wave.CFrame = CFRAME
  1519. coroutine.resume(coroutine.create(function(PART)
  1520. for i = 1, WAIT do
  1521. Swait()
  1522. mesh.Scale = mesh.Scale + GROW
  1523. wave.Transparency = wave.Transparency + (1/WAIT)
  1524. if wave.Transparency > 0.99 then
  1525. wave:remove()
  1526. end
  1527. end
  1528. end))
  1529. end
  1530.  
  1531. function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
  1532. local mesh = nil
  1533. if KIND == "Base" then
  1534. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  1535. elseif KIND == "Thin" then
  1536. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  1537. elseif KIND == "Round" then
  1538. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  1539. end
  1540. wave.CFrame = CFRAME
  1541. coroutine.resume(coroutine.create(function(PART)
  1542. for i = 1, WAIT do
  1543. Swait()
  1544. mesh.Scale = mesh.Scale + GROW/10
  1545. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1546. if wave.Transparency > 0.99 then
  1547. wave:remove()
  1548. end
  1549. end
  1550. end))
  1551. end
  1552.  
  1553. function Ragdoll(Character2, CharTorso, Headless, Velocity)
  1554. local svch = Character2
  1555. Character2:BreakJoints()
  1556. local hum = Character2:findFirstChild("Humanoid")
  1557. local q = Character2:GetChildren()
  1558. local CLONE = IT("Model", Effects)
  1559. for i = 1, #q do
  1560. if q[i].ClassName == "Accessory" and Headless == true then
  1561. q[i]:remove()
  1562. elseif q[i].ClassName ~= "Humanoid" and q[i].ClassName ~= "LocalScript" and q[i].ClassName ~= "Script" and q[i].ClassName ~= "Gear" then
  1563. q[i].Parent = CLONE
  1564. elseif q[i].ClassName ~= "Humanoid" then
  1565. q[i]:remove()
  1566. end
  1567. end
  1568. local chrclone = CLONE
  1569. local ch = chrclone:GetChildren()
  1570. local i
  1571. for i = 1, #ch do
  1572. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
  1573. ch[i]:remove()
  1574. end
  1575. end
  1576. local function Scan(ch)
  1577. local e
  1578. for e = 1, #ch do
  1579. Scan(ch[e]:GetChildren())
  1580. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  1581. ch[e]:remove()
  1582. end
  1583. end
  1584. end
  1585. Character2:remove()
  1586. local NEWHUM = IT("Humanoid")
  1587. NEWHUM.Name = "Corpse"
  1588. NEWHUM.Health = 0
  1589. NEWHUM.MaxHealth = 0
  1590. NEWHUM.PlatformStand = true
  1591. NEWHUM.Parent = CLONE
  1592. NEWHUM.DisplayDistanceType = "None"
  1593. Scan(chrclone:GetChildren())
  1594. local ch = Character2:GetChildren()
  1595. local i
  1596. for i = 1, #ch do
  1597. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  1598. ch[i]:remove()
  1599. end
  1600. end
  1601.  
  1602. Character2 = chrclone
  1603. local Torso2 = Character2.Torso
  1604. local movevector = Vector3.new()
  1605. if Torso2 then
  1606. movevector = CFrame.new(CharTorso.Position, Torso2.Position).lookVector
  1607. local Head = Character2:FindFirstChild("Head")
  1608. if Head then
  1609. local Neck = Instance.new("Weld")
  1610. Neck.Name = "Neck"
  1611. Neck.Part0 = Torso2
  1612. Neck.Part1 = Head
  1613. Neck.C0 = CFrame.new(0, 1.5, 0)
  1614. Neck.C1 = CFrame.new()
  1615. Neck.Parent = Torso2
  1616. if Headless == true then
  1617. Head.Transparency = 1
  1618. Head:ClearAllChildren()
  1619. end
  1620. end
  1621. local Limb = Character2:FindFirstChild("Right Arm")
  1622. if Limb then
  1623. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  1624. local Joint = Instance.new("Glue")
  1625. Joint.Name = "RightShoulder"
  1626. Joint.Part0 = Torso2
  1627. Joint.Part1 = Limb
  1628. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1629. Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1630. Joint.Parent = Torso2
  1631. local B = Instance.new("Part")
  1632. B.TopSurface = 0
  1633. B.BottomSurface = 0
  1634. B.formFactor = "Symmetric"
  1635. B.Size = Vector3.new(1, 1, 1)
  1636. B.Transparency = 1
  1637. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1638. B.Parent = Character2
  1639. local W = Instance.new("Weld")
  1640. W.Part0 = Limb
  1641. W.Part1 = B
  1642. W.C0 = CFrame.new(0, -0.5, 0)
  1643. W.Parent = Limb
  1644. end
  1645. local Limb = Character2:FindFirstChild("Left Arm")
  1646. if Limb then
  1647. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  1648. local Joint = Instance.new("Glue")
  1649. Joint.Name = "LeftShoulder"
  1650. Joint.Part0 = Torso2
  1651. Joint.Part1 = Limb
  1652. Joint.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1653. Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1654. Joint.Parent = Torso2
  1655. local B = Instance.new("Part")
  1656. B.TopSurface = 0
  1657. B.BottomSurface = 0
  1658. B.formFactor = "Symmetric"
  1659. B.Size = Vector3.new(1, 1, 1)
  1660. B.Transparency = 1
  1661. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1662. B.Parent = Character2
  1663. local W = Instance.new("Weld")
  1664. W.Part0 = Limb
  1665. W.Part1 = B
  1666. W.C0 = CFrame.new(0, -0.5, 0)
  1667. W.Parent = Limb
  1668. end
  1669. local Limb = Character2:FindFirstChild("Right Leg")
  1670. if Limb then
  1671. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  1672. local Joint = Instance.new("Glue")
  1673. Joint.Name = "RightHip"
  1674. Joint.Part0 = Torso2
  1675. Joint.Part1 = Limb
  1676. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1677. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1678. Joint.Parent = Torso2
  1679. local B = Instance.new("Part")
  1680. B.TopSurface = 0
  1681. B.BottomSurface = 0
  1682. B.formFactor = "Symmetric"
  1683. B.Size = Vector3.new(1, 1, 1)
  1684. B.Transparency = 1
  1685. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1686. B.Parent = Character2
  1687. local W = Instance.new("Weld")
  1688. W.Part0 = Limb
  1689. W.Part1 = B
  1690. W.C0 = CFrame.new(0, -0.5, 0)
  1691. W.Parent = Limb
  1692. end
  1693. local Limb = Character2:FindFirstChild("Left Leg")
  1694. if Limb then
  1695. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  1696. local Joint = Instance.new("Glue")
  1697. Joint.Name = "LeftHip"
  1698. Joint.Part0 = Torso2
  1699. Joint.Part1 = Limb
  1700. Joint.C0 = CFrame.new(-0.5, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1701. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1702. Joint.Parent = Torso2
  1703. local B = Instance.new("Part")
  1704. B.TopSurface = 0
  1705. B.BottomSurface = 0
  1706. B.formFactor = "Symmetric"
  1707. B.Size = Vector3.new(1, 1, 1)
  1708. B.Transparency = 1
  1709. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1710. B.Parent = Character2
  1711. local W = Instance.new("Weld")
  1712. W.Part0 = Limb
  1713. W.Part1 = B
  1714. W.C0 = CFrame.new(0, -0.5, 0)
  1715. W.Parent = Limb
  1716. end
  1717. local Bar = Instance.new("Part")
  1718. Bar.TopSurface = 0
  1719. Bar.BottomSurface = 0
  1720. Bar.formFactor = "Symmetric"
  1721. Bar.Size = Vector3.new(1, 1, 1)
  1722. Bar.Transparency = 1
  1723. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  1724. Bar.Parent = Character2
  1725. local Weld = Instance.new("Weld")
  1726. Weld.Part0 = Torso2
  1727. Weld.Part1 = Bar
  1728. Weld.C0 = CFrame.new(0, 0.5, 0)
  1729. Weld.Parent = Torso2
  1730. end
  1731. Character2.Parent = Weapon
  1732. if movevector ~= Vector3.new() then
  1733. for i = 1, 10 do
  1734. Torso2.Velocity = movevector * Velocity
  1735. end
  1736. end
  1737. Character2.Name = "Corpse"
  1738. return Character2, Torso2
  1739. end
  1740.  
  1741. function Banish(Foe)
  1742. if Foe then
  1743. coroutine.resume(coroutine.create(function()
  1744. --if game.Players:FindFirstChild(Foe.Name) then
  1745. table.insert(TOBANISH,Foe.Name)
  1746. printbye(Foe.Name)
  1747. --end
  1748. Foe.Archivable = true
  1749. local CLONE = Foe:Clone()
  1750. Foe:Destroy()
  1751. CLONE.Parent = Effects
  1752. CLONE:BreakJoints()
  1753. local MATERIALS = {"Glass","Neon"}
  1754. for _, c in pairs(CLONE:GetDescendants()) do
  1755. if c:IsA("BasePart") then
  1756. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1757. CreateSound(340722848, c, 10, 1, false)
  1758. end
  1759. c.Anchored = true
  1760. c.Transparency = c.Transparency + 0.2
  1761. c.Material = MATERIALS[MRANDOM(1,2)]
  1762. c.Color = C3(.5,0,.5)
  1763. if c.ClassName == "MeshPart" then
  1764. c.TextureID = ""
  1765. end
  1766. if c:FindFirstChildOfClass("SpecialMesh") then
  1767. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1768. end
  1769. if c:FindFirstChildOfClass("Decal") then
  1770. c:FindFirstChildOfClass("Decal"):remove()
  1771. end
  1772. c.Name = "Banished"
  1773. c.CanCollide = false
  1774. else
  1775. c:remove()
  1776. end
  1777. end
  1778. local A = false
  1779. for i = 1, 35 do
  1780. if A == false then
  1781. A = true
  1782. elseif A == true then
  1783. A = false
  1784. end
  1785. for _, c in pairs(CLONE:GetDescendants()) do
  1786. if c:IsA("BasePart") then
  1787. c.Anchored = true
  1788. c.Material = MATERIALS[MRANDOM(1,2)]
  1789. c.Transparency = c.Transparency + 0.8/35
  1790. if A == false then
  1791. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1792. elseif A == true then
  1793. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1794. end
  1795. end
  1796. end
  1797. Swait()
  1798. end
  1799. CLONE:remove()
  1800. end))
  1801. end
  1802. end
  1803.  
  1804. function PuddleOfBlood(Position, MaxDrop, Model, MaxSize)
  1805. local HITFLOOR, HITPOS, NORMAL = Raycast(Position, CF(Position, Position + VT(0, -1, 0)).lookVector, MaxDrop, Model)
  1806. if HITFLOOR ~= nil and HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then
  1807. if HITFLOOR.Name == "BloodPuddle" then
  1808. local DIST = (Position - HITFLOOR.Position).Magnitude
  1809. if HITFLOOR.Size.Z <= 5 and MaxSize > HITFLOOR.Size.Z or HITFLOOR.Size.Z > 5 and MaxSize > HITFLOOR.Size.Z and DIST < HITFLOOR.Size.Z / 3 then
  1810. HITFLOOR.Size = HITFLOOR.Size + VT(0.1, 0, 0.1)
  1811. end
  1812. elseif HITFLOOR.Anchored == true then
  1813. do
  1814. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Royal purple", "BloodPuddle", VT(2, 0, 2))
  1815. BLOOD.CFrame = CF(HITPOS, HITPOS + NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))
  1816. MakeForm(BLOOD, "Cyl")
  1817. coroutine.resume(coroutine.create(function()
  1818. Swait(75)
  1819. while true do
  1820. Swait()
  1821. BLOOD.Size = BLOOD.Size - VT(0.02, 0, 0.02)
  1822. if BLOOD.Size.Z < 0.051 then
  1823. BLOOD:remove()
  1824. break
  1825. end
  1826. end
  1827. end))
  1828. end
  1829. end
  1830. end
  1831. end
  1832.  
  1833. function SprayBlood(POSITION, DIRECTION, BloodSize)
  1834. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Royal purple", "BloodPuddle", VT(1, 1, 1), false)
  1835. BLOOD.CFrame = CF(POSITION)
  1836. MakeForm(BLOOD, "Ball")
  1837. local bv = Instance.new("BodyVelocity", BLOOD)
  1838. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1839. bv.velocity = CF(POSITION, DIRECTION + VT(MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30)).lookVector * 25
  1840. bv.Name = "MOVE"
  1841. Debris:AddItem(bv, 0.05)
  1842. coroutine.resume(coroutine.create(function()
  1843. local HASTOUCHEDGROUND = false
  1844. local HIT = BLOOD.Touched:Connect(function(hit)
  1845. if hit.Anchored == true then
  1846. HASTOUCHEDGROUND = true
  1847. PuddleOfBlood(BLOOD.Position + VT(0, 1, 0), 2, BLOOD, BloodSize)
  1848. end
  1849. end)
  1850. wait(5)
  1851. if HASTOUCHEDGROUND == false then
  1852. BLOOD:remove()
  1853. end
  1854. end))
  1855. end
  1856. function ApplyDamage(Humanoid, Damage, TorsoPart)
  1857. local defence = Instance.new("BoolValue", Humanoid.Parent)
  1858. defence.Name = "HitBy" .. Player.Name
  1859. game:GetService("Debris"):AddItem(defence, 0.001)
  1860. Damage = Damage * DAMAGEMULTIPLIER
  1861. if Humanoid.Health ~= 0 then
  1862. local CritChance = MRANDOM(1, 100)
  1863. if Damage > Humanoid.Health then
  1864. Damage = math.ceil(Humanoid.Health)
  1865. if Damage == 0 then
  1866. Damage = 0.1
  1867. end
  1868. end
  1869. Humanoid.Health = Humanoid.Health - Damage
  1870. StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0))
  1871. end
  1872. end
  1873.  
  1874. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1875. local CHILDREN = workspace:GetDescendants()
  1876. for index, CHILD in pairs(CHILDREN) do
  1877. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1878. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1879. if HUM then
  1880. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1881. if TORSO then
  1882. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1883. if ISBANISH == true then
  1884. Banish(CHILD)
  1885. else
  1886. if ISBANISH == "Gravity" then
  1887. HUM.PlatformStand = true
  1888. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1889. local grav = Instance.new("BodyPosition",TORSO)
  1890. grav.D = 15
  1891. grav.P = 20000
  1892. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1893. grav.position = TORSO.Position
  1894. grav.Name = "V3BanishForce"..Player.Name
  1895. else
  1896. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1897. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1898. end
  1899. else
  1900. HUM.PlatformStand = false
  1901. end
  1902. end
  1903. elseif ISBANISH == "Gravity" then
  1904. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1905. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1906. HUM.PlatformStand = false
  1907. end
  1908. end
  1909. end
  1910. end
  1911. end
  1912. end
  1913. end
  1914.  
  1915. function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping)
  1916. local dmg = math.random(min,max)
  1917. for i,v in ipairs(workspace:GetChildren()) do
  1918. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  1919. local body = v:GetChildren()
  1920. for part = 1, #body do
  1921. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1922. if(body[part].Position - position).Magnitude < radius then
  1923. if v.ClassName == "Model" then
  1924. if v:FindFirstChildOfClass("Humanoid") then
  1925. if CanBeDodgedByJumping == true then
  1926. if body[part].Position.Y < position.Y+5 then
  1927. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  1928. end
  1929. else
  1930. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  1931. end
  1932. local bv = Instance.new("BodyVelocity")
  1933. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1934. bv.velocity = RootPart.CFrame.lookVector*maxstrength
  1935. bv.Parent = body[part]
  1936. Debris:AddItem(bv,0.2)
  1937. end
  1938. end
  1939. end
  1940. end
  1941. end
  1942. end
  1943. if v:FindFirstChild("HitBy"..Player.Name) then
  1944. v:FindFirstChild("HitBy"..Player.Name):remove()
  1945. end
  1946. end
  1947. end
  1948.  
  1949.  
  1950. --//=================================\\
  1951. --|| ATTACK FUNCTIONS AND STUFF
  1952. --\\=================================//
  1953.  
  1954. function ShadowCloak()
  1955. if ANIM ~= "Fall" and ANIM ~= "Jump" then
  1956. ATTACK = true
  1957. Rooted = false
  1958. UNANCHOR = false
  1959. FADERS = false
  1960. coroutine.resume(coroutine.create(function()
  1961. coroutine.resume(coroutine.create(function()
  1962. for i=1, 25 do
  1963. Swait()
  1964. RootPart.CFrame = RootPart.CFrame*CF(0,(25-i)/25,0)
  1965. end
  1966. end))
  1967. repeat
  1968. Swait()
  1969. BLADE.Transparency = Torso.Transparency
  1970. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1971. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(MRANDOM(-5,5)), RAD(MRANDOM(-5,5))), 1 / Animation_Speed)
  1972. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25+MRANDOM(-5,5)), RAD(-15+MRANDOM(-5,5)), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1973. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25+MRANDOM(-5,5)), RAD(15+MRANDOM(-5,5)), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1974. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.1) * ANGLES(RAD(0), RAD(85), RAD(MRANDOM(-5,5))) * ANGLES(RAD(-1), RAD(0), RAD(-12)), 1 / Animation_Speed)
  1975. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.1) * ANGLES(RAD(0), RAD(-85), RAD(MRANDOM(-5,5))) * ANGLES(RAD(-1), RAD(0), RAD(12)), 1 / Animation_Speed)
  1976. until ATTACK == false
  1977. end))
  1978. WACKYEFFECT({Time = 65, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(25,1,25), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 814168787, SoundPitch = 0.6, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 12})
  1979. WACKYEFFECT({Time = 65, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(25,1,25), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 814168787, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
  1980. for i = 1, 50 do
  1981. Swait()
  1982. CharacterFade(C3(.5,0,.5),12,R_RANDOM(Torso.CFrame,1.25).p)
  1983. for index, CHILD in pairs(Character:GetChildren()) do
  1984. if CHILD:IsA("BasePart") then
  1985. CHILD.Transparency = CHILD.Transparency + 1/50
  1986. elseif CHILD:IsA("Accessory") then
  1987. CHILD.Handle.Transparency = CHILD.Handle.Transparency + 1/50
  1988. end
  1989. end
  1990. end
  1991. for i = 1, 25 do
  1992. Swait()
  1993. CharacterFade(C3(.5,0,.5),12,R_RANDOM(Torso.CFrame,1.25).p)
  1994. end
  1995. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,12,0)) * ANGLES(RAD(0), RAD(RootPart.Orientation.Y), RAD(0))
  1996. for i = 1, 5 do
  1997. WACKYEFFECT({Time = 50, EffectType = "Round Slash", Size = VT(0,0,0), Size2 = VT(0.3,0,0.3), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 10})
  1998. end
  1999. ApplyAoE(Torso.Position,15,12,22,150,false)
  2000. CreateSound(331666014,Torso,5,1,false)
  2001. for i = 1, 12 do
  2002. Swait()
  2003. CharacterFade(C3(.5,0,.5),12,R_RANDOM(Torso.CFrame,1.25).p)
  2004. end
  2005. for i = 1, 50 do
  2006. Swait()
  2007. CharacterFade(C3(.5,0,.5),12,R_RANDOM(Torso.CFrame,1.25).p)
  2008. for index, CHILD in pairs(Character:GetChildren()) do
  2009. if CHILD:IsA("BasePart") then
  2010. CHILD.Transparency = CHILD.Transparency - 1/50
  2011. elseif CHILD:IsA("Accessory") then
  2012. CHILD.Handle.Transparency = CHILD.Handle.Transparency - 1/50
  2013. end
  2014. end
  2015. end
  2016. UNANCHOR = true
  2017. ATTACK = false
  2018. Rooted = false
  2019. FADERS = true
  2020. end
  2021. end
  2022.  
  2023. function Neck_Snap()
  2024. ATTACK = true
  2025. Rooted = false
  2026. local TARGET, HUM, WLD
  2027. local HIT = RightArm.Touched:Connect(function(hit)
  2028. if hit.Parent ~= nil and hit.Parent:FindFirstChildOfClass("Humanoid") then
  2029. local H = hit.Parent:FindFirstChildOfClass("Humanoid")
  2030. if H.Health > 0 then
  2031. local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  2032. if TORSO then
  2033. HUM = H
  2034. TARGET = TORSO
  2035. H.PlatformStand = true
  2036. CreateSound("260411131", TORSO, 10, 1)
  2037. WLD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, TORSO, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  2038. end
  2039. end
  2040. end
  2041. end)
  2042. for i = 0, 1, 0.1 / Animation_Speed do
  2043. Swait()
  2044. if TARGET ~= nil then
  2045. break
  2046. end
  2047. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  2048. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.5 / Animation_Speed)
  2049. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.45, -0.3) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2050. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2051. if ANIM == "Idle" then
  2052. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2053. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2054. elseif ANIM == "Walk" then
  2055. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2056. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2057. elseif ANIM == "Jump" or ANIM == "Fall" then
  2058. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2059. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  2060. end
  2061. end
  2062. HIT:disconnect()
  2063. if TARGET ~= nil then
  2064. if TARGET.Name == "Torso" then
  2065. for i = 0, 2, 0.1 / Animation_Speed do
  2066. Swait()
  2067. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2068. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2069. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(65), RAD(25), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2070. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2071. if ANIM == "Idle" then
  2072. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2073. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2074. elseif ANIM == "Walk" then
  2075. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2076. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2077. elseif ANIM == "Jump" or ANIM == "Fall" then
  2078. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2079. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  2080. end
  2081. end
  2082. WLD:remove()
  2083. local HEAD = TARGET.Parent:FindFirstChild("Head")
  2084. if HEAD then
  2085. UNANCHOR = false
  2086. RootPart.Anchored = true
  2087. local HD = HEAD:Clone()
  2088. HD.Name = "FakeHead"
  2089. for i = 1, 7 do
  2090. SprayBlood(TARGET.CFrame * CF(0, TARGET.Size.Y / 2, 0).p, TARGET.CFrame * CF(MRANDOM(25, 55), MRANDOM(-25, 25), MRANDOM(25, 55)).p, 15)
  2091. end
  2092. local RAGDOLL, RAGTORSO = Ragdoll(TARGET.Parent, Torso, true, 0)
  2093. local RAGWELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RAGTORSO, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  2094. HD.Parent = RAGDOLL
  2095. CreateSound("264486467", RAGTORSO, 10, 1)
  2096. local HEADWELD = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, HD, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  2097. for i = 0, 2, 0.1 / Animation_Speed do
  2098. Swait()
  2099. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2100. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2101. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2102. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(150), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2103. if ANIM == "Idle" then
  2104. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2105. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2106. elseif ANIM == "Walk" then
  2107. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2108. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2109. elseif ANIM == "Jump" or ANIM == "Fall" then
  2110. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2111. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  2112. end
  2113. end
  2114. HEADWELD:remove()
  2115. for i = 0, 0.5, 0.1 / Animation_Speed do
  2116. Swait()
  2117. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2118. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2119. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2120. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2121. if ANIM == "Idle" then
  2122. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2123. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2124. elseif ANIM == "Walk" then
  2125. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2126. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2127. elseif ANIM == "Jump" or ANIM == "Fall" then
  2128. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2129. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  2130. end
  2131. end
  2132. CreateSound("907333406", Torso, 10, 1)
  2133. for i = 0, 0.25, 0.1 / Animation_Speed do
  2134. Swait()
  2135. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2136. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2137. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2138. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2139. if ANIM == "Idle" then
  2140. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2141. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2142. elseif ANIM == "Walk" then
  2143. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2144. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2145. elseif ANIM == "Jump" or ANIM == "Fall" then
  2146. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2147. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  2148. end
  2149. end
  2150. RAGWELD:remove()
  2151. local bv = Instance.new("BodyVelocity")
  2152. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  2153. bv.velocity = CF(Torso.Position, RAGTORSO.Position).lookVector * 75
  2154. bv.Parent = RAGTORSO
  2155. Debris:AddItem(bv, 0.05)
  2156. Debris:AddItem(RAGDOLL, 5)
  2157. for i = 0, 0.15, 0.1 / Animation_Speed do
  2158. Swait()
  2159. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2160. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2161. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2162. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2163. if ANIM == "Idle" then
  2164. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2165. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2166. elseif ANIM == "Walk" then
  2167. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2168. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2169. elseif ANIM == "Jump" or ANIM == "Fall" then
  2170. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2171. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  2172. end
  2173. end
  2174. UNANCHOR = true
  2175. RootPart.Anchored = false
  2176. end
  2177. else
  2178. UNANCHOR = false
  2179. RootPart.Anchored = true
  2180. for i = 0, 0.5, 0.1 / Animation_Speed do
  2181. Swait()
  2182. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2183. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2184. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2185. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2186. if ANIM == "Idle" then
  2187. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2188. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2189. elseif ANIM == "Walk" then
  2190. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2191. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2192. elseif ANIM == "Jump" or ANIM == "Fall" then
  2193. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2194. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  2195. end
  2196. end
  2197. for i = 0, 0.25, 0.1 / Animation_Speed do
  2198. Swait()
  2199. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2200. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2201. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2202. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2203. if ANIM == "Idle" then
  2204. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2205. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2206. elseif ANIM == "Walk" then
  2207. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2208. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2209. elseif ANIM == "Jump" or ANIM == "Fall" then
  2210. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2211. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  2212. end
  2213. end
  2214. WLD:remove()
  2215. TARGET.Parent:BreakJoints()
  2216. for _, c in pairs(TARGET.Parent:GetChildren()) do
  2217. if c:IsA("BasePart") then
  2218. local bv = Instance.new("BodyVelocity")
  2219. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  2220. bv.velocity = CF(Torso.Position, c.Position).lookVector * 75
  2221. bv.Parent = c
  2222. Debris:AddItem(bv, 0.05)
  2223. end
  2224. end
  2225. for i = 0, 0.15, 0.1 / Animation_Speed do
  2226. Swait()
  2227. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2228. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2229. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2230. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2231. if ANIM == "Idle" then
  2232. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2233. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2234. elseif ANIM == "Walk" then
  2235. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2236. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2237. elseif ANIM == "Jump" or ANIM == "Fall" then
  2238. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2239. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  2240. end
  2241. end
  2242. UNANCHOR = true
  2243. RootPart.Anchored = false
  2244. end
  2245. end
  2246. ATTACK = false
  2247. Rooted = false
  2248. end
  2249.  
  2250. function Shot()
  2251. ATTACK = true
  2252. Rooted = false
  2253. for i=0, 0.05, 0.1 / Animation_Speed do
  2254. Swait()
  2255. turnto(Mouse.Hit.p)
  2256. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2257. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  2258. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2259. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2260. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2261. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2262. end
  2263. repeat
  2264. for i=0, 0.05, 0.1 / Animation_Speed do
  2265. Swait()
  2266. turnto(Mouse.Hit.p)
  2267. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2268. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  2269. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2270. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2271. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2272. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2273. end
  2274. local HIT,POS = CastProperRay(Hole2.Position, Mouse.Hit.p, 1000, Character)
  2275. SpawnTrail(Hole2.Position,POS)
  2276. if HIT ~= nil then
  2277. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  2278. Banish(HIT.Parent)
  2279. end
  2280. end
  2281. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,7.5,6), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(.5,0,.5), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2282. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(.5,0,.5), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2283. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(.5,0,.5), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2284. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(.5,0,.5), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2285. for i=0, 0.05, 0.1 / Animation_Speed do
  2286. Swait()
  2287. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2288. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  2289. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2290. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2291. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2292. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2293. end
  2294. until KEYHOLD == false
  2295. ATTACK = false
  2296. Rooted = false
  2297. end
  2298.  
  2299. function AttackTemplate()
  2300. ATTACK = true
  2301. Rooted = false
  2302. for i=0, 1, 0.1 / Animation_Speed do
  2303. Swait()
  2304. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2305. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2306. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(100), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2307. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2308. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2309. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2310. end
  2311. ATTACK = false
  2312. Rooted = false
  2313. end
  2314.  
  2315. function BulletRoller()
  2316. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2317. if HITFLOOR then
  2318. ATTACK = true
  2319. Rooted = true
  2320. local bv = Instance.new("BodyVelocity")
  2321. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2322. bv.velocity = CF(RootPart.Position,RootPart.CFrame*CF(0,1,-4).p).lookVector*175
  2323. bv.Parent = RootPart
  2324. local GYRO = IT("BodyGyro",RootPart)
  2325. GYRO.D = 2
  2326. GYRO.P = 20000
  2327. GYRO.MaxTorque = VT(0,4000000,0)
  2328. GYRO.CFrame = CF(RootPart.Position,RootPart.CFrame*CF(0,0,-5).p)
  2329. CreateSound(145486992,Torso,10,0.85,false)
  2330. for i=0, 0.05, 0.1 / Animation_Speed do
  2331. Swait()
  2332. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(65), RAD(0), RAD(-10)), 1 / Animation_Speed)
  2333. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(10)), 1 / Animation_Speed)
  2334. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(50), RAD(-20), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2335. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(20), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2336. if ANIM == "Fall" or ANIM == "Jump" then
  2337. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2338. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2339. else
  2340. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-5), RAD(80), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  2341. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  2342. end
  2343. end
  2344. bv:Remove()
  2345. local E = 360/15
  2346. for i = 1, 15 do
  2347. Swait()
  2348. WACKYEFFECT({Time = 10, EffectType = "Wave", Size = VT(8,1,8), Size2 = VT(2,15,2), Transparency = 0.9, Transparency2 = 1, CFrame = CF(RootPart.Position,HITPOS) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  2349. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(i*E), RAD(0), RAD(0)), 2 / Animation_Speed)
  2350. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
  2351. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(5), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2352. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-5), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2353. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(-35), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2354. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2355. end
  2356. Cooldown1 = true
  2357. local LANDED = nil
  2358. local POS = nil
  2359. coroutine.resume(coroutine.create(function()
  2360. repeat
  2361. Swait()
  2362. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  2363. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2364. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2365. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2366. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2367. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2368. until LANDED ~= nil
  2369. end))
  2370. repeat
  2371. Swait()
  2372. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4.2, Character)
  2373. if HITFLOOR then
  2374. LANDED = HITFLOOR
  2375. POS = HITPOS
  2376. end
  2377. until LANDED ~= nil
  2378. GYRO:remove()
  2379. Swait(4)
  2380. ManualAoE(RootPart.Position,10,20,50,0,false)
  2381. CreateSound(765590102, Torso, 2, (MRANDOM(8,12)/10)+0.3, false)
  2382. WACKYEFFECT({EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(20,20,20), Transparency = 0.5, Transparency2 = 1, CFrame = CF(Torso.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(.5,0,.5), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  2383. for i = 0, 4 do
  2384. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(0,0.33,0), Size2 = VT(8,0.11,8), Transparency = 0.4, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,-2.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-10,10), RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  2385. end
  2386. for i=0, 0.5, 0.1 / Animation_Speed do
  2387. Swait()
  2388. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -2.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed)
  2389. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2390. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(179), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2391. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(179), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2392. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  2393. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  2394. end
  2395. local AMMO = 0
  2396. repeat
  2397. AMMO = AMMO + 1
  2398. for i=0, 0.1, 0.05 / Animation_Speed do
  2399. Swait()
  2400. turnto(Mouse.Hit.p)
  2401. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -2.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed)
  2402. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0.35, 0 + ((1) - 1)) * ANGLES(RAD(-75 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2403. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(179), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2404. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.4, 0.8, 0) * ANGLES(RAD(179), RAD(0), RAD(70)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2405. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  2406. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  2407. end
  2408. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  2409. SpawnTrail(Hole.Position,POS)
  2410. if HIT ~= nil then
  2411. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  2412. Banish(HIT.Parent)
  2413. end
  2414. end
  2415. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(.5,0,.5), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2416. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(.5,0,.5), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2417. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(.5,0,.5), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2418. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(.5,0,.5), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2419. Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30
  2420. for i=0, 0.075, 0.05 / Animation_Speed do
  2421. Swait()
  2422. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -2.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed)
  2423. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0.35, 0 + ((1) - 1)) * ANGLES(RAD(-85 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2424. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(190), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2425. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.4, 0.8, 0) * ANGLES(RAD(190), RAD(0), RAD(70)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2426. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  2427. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  2428. end
  2429. until AMMO == 5
  2430. ATTACK = false
  2431. Rooted = false
  2432. wait(0.3)
  2433. Cooldown1 = false
  2434. end
  2435. end
  2436.  
  2437. local Cooldown2 = false
  2438.  
  2439. function ManualAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  2440. local CHILDREN = workspace:GetDescendants()
  2441. for index, CHILD in pairs(CHILDREN) do
  2442. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2443. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2444. if HUM then
  2445. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2446. if TORSO then
  2447. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  2448. if INSTAKILL == true then
  2449. CHILD:BreakJoints()
  2450. else
  2451. local DMG = MRANDOM(MINDMG,MAXDMG)
  2452. ManualDamage(HUM,DMG,TORSO)
  2453. end
  2454. if FLING > 0 then
  2455. for _, c in pairs(CHILD:GetChildren()) do
  2456. if c:IsA("BasePart") then
  2457. local bv = Instance.new("BodyVelocity")
  2458. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2459. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  2460. bv.Parent = c
  2461. Debris:AddItem(bv,0.05)
  2462. end
  2463. end
  2464. end
  2465. end
  2466. end
  2467. end
  2468. end
  2469. end
  2470. end
  2471.  
  2472. function Extreme_Offset()
  2473. local HITFLOOR, HITPOS = Raycast(Mouse.Hit.p + VT(0, 1, 0), CF(Mouse.Hit.p + VT(0, 1, 0), Mouse.Hit.p - VT(0, 1, 0)).lookVector, 25, Character)
  2474. if HITFLOOR then
  2475. local ORIGINPOS = VT(RootPart.Position.X, HITPOS.Y + 8, RootPart.Position.Z)
  2476. CreateSound("1295446488", Torso, 5, 1)
  2477. for i = 1, 5 do
  2478. WACKYEFFECT({
  2479. Time = MRANDOM(15, 35),
  2480. EffectType = "Round Slash",
  2481. Size = VT(0, 0, 0),
  2482. Size2 = VT(0.3, 0, 0.3),
  2483. Transparency = 0.5,
  2484. Transparency2 = 1,
  2485. CFrame = CF(Torso.Position) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(-25, 25))),
  2486. MoveToPos = nil,
  2487. RotationX = MRANDOM(-50, 50) / 10,
  2488. RotationY = MRANDOM(-50, 50) / 10,
  2489. RotationZ = MRANDOM(-50, 50) / 10,
  2490. Material = "Neon",
  2491. Color = C3(.5,0,.5),
  2492. SoundID = nil,
  2493. SoundPitch = nil,
  2494. SoundVolume = nil
  2495. })
  2496. end
  2497. ATTACK = true
  2498. Rooted = true
  2499. UNANCHOR = false
  2500. RootPart.Anchored = true
  2501. RootPart.CFrame = CF(HITPOS + VT(0, 8, 0), ORIGINPOS) * ANGLES(RAD(0), RAD(180), RAD(0))
  2502. for i = 1, 5 do
  2503. WACKYEFFECT({
  2504. Time = MRANDOM(15, 35),
  2505. EffectType = "Round Slash",
  2506. Size = VT(0, 0, 0),
  2507. Size2 = VT(0.3, 0, 0.3),
  2508. Transparency = 0.5,
  2509. Transparency2 = 1,
  2510. CFrame = CF(Torso.Position) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(-25, 25))),
  2511. MoveToPos = nil,
  2512. RotationX = MRANDOM(-50, 50) / 10,
  2513. RotationY = MRANDOM(-50, 50) / 10,
  2514. RotationZ = MRANDOM(-50, 50) / 10,
  2515. Material = "Neon",
  2516. Color = C3(.5,0,.5),
  2517. SoundID = nil,
  2518. SoundPitch = nil,
  2519. SoundVolume = nil
  2520. })
  2521. end
  2522. for i = 0, 0.2, 0.1 / Animation_Speed do
  2523. Swait()
  2524. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(150)), 2 / Animation_Speed)
  2525. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2526. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2527. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2528. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2529. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 2 / Animation_Speed)
  2530. end
  2531. for i = 0, 1, 0.1 / Animation_Speed do
  2532. Swait()
  2533. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(300)), 0.02 / Animation_Speed)
  2534. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.02 / Animation_Speed)
  2535. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.02 / Animation_Speed)
  2536. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.02 / Animation_Speed)
  2537. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.02 / Animation_Speed)
  2538. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 0.02 / Animation_Speed)
  2539. end
  2540. for i = 1, 10 do
  2541. Swait()
  2542. RootPart.CFrame = RootPart.CFrame * CF(0, -0.4, 0)
  2543. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(300)), 1.7 / Animation_Speed)
  2544. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1.7 / Animation_Speed)
  2545. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 1.7 / Animation_Speed)
  2546. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.7 / Animation_Speed)
  2547. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1.7 / Animation_Speed)
  2548. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1.7 / Animation_Speed)
  2549. end
  2550. for i = 0, 0.2, 0.1 / Animation_Speed do
  2551. Swait()
  2552. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(90)), 1.5 / Animation_Speed)
  2553. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 1.5 / Animation_Speed)
  2554. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  2555. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.5 / Animation_Speed)
  2556. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  2557. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  2558. end
  2559. local HITFLOOR, HITPOS = Raycast(RightArm.Position, CF(RightArm.Position, RightArm.Position + VT(0, -1, 0)).lookVector, 8, Character)
  2560. if HITFLOOR then
  2561. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  2562. local CHILDREN = HITFLOOR.Parent:GetDescendants()
  2563. for index, CHILD in pairs(CHILDREN) do
  2564. if CHILD:IsA("BasePart") and CHILD.Parent:FindFirstChildOfClass("Humanoid") then
  2565. for i = 1, 5 do
  2566. CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, CHILD.Size / 2, 5, MRANDOM(15, 25))
  2567. CHILD:remove()
  2568. end
  2569. end
  2570. end
  2571. local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  2572. SOUNDPART.CFrame = CF(HITPOS)
  2573. Debris:AddItem(SOUNDPART, 5)
  2574. CreateSound("130972023", SOUNDPART, 6, 3)
  2575. CreateSound("182765513", SOUNDPART, 6, 1)
  2576. WACKYEFFECT({
  2577. EffectType = "Ring",
  2578. Size = VT(0, 0, 0),
  2579. Size2 = VT(1, 1, 0),
  2580. Transparency = 0.7,
  2581. Transparency2 = 1,
  2582. CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)),
  2583. MoveToPos = nil,
  2584. RotationX = 0,
  2585. RotationY = 0,
  2586. RotationZ = 0,
  2587. Material = "Neon",
  2588. Color = C3(.5,0,.5),
  2589. SoundID = nil,
  2590. SoundPitch = nil,
  2591. SoundVolume = nil
  2592. })
  2593. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  2594. local CHILDREN = HITFLOOR.Parent.Parent:GetDescendants()
  2595. for index, CHILD in pairs(CHILDREN) do
  2596. if CHILD:IsA("BasePart") and CHILD.Parent:FindFirstChildOfClass("Humanoid") then
  2597. for i = 1, 5 do
  2598. CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, CHILD.Size / 2, 5, MRANDOM(15, 25))
  2599. CHILD:remove()
  2600. end
  2601. end
  2602. end
  2603. local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  2604. SOUNDPART.CFrame = CF(HITPOS)
  2605. Debris:AddItem(SOUNDPART, 5)
  2606. CreateSound("130972023", SOUNDPART, 6, 3)
  2607. CreateSound("182765513", SOUNDPART, 6, 1)
  2608. WACKYEFFECT({
  2609. EffectType = "Ring",
  2610. Size = VT(0, 0, 0),
  2611. Size2 = VT(1, 1, 0),
  2612. Transparency = 0.7,
  2613. Transparency2 = 1,
  2614. CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)),
  2615. MoveToPos = nil,
  2616. RotationX = 0,
  2617. RotationY = 0,
  2618. RotationZ = 0,
  2619. Material = "Neon",
  2620. Color = C3(.5,0,.5),
  2621. SoundID = nil,
  2622. SoundPitch = nil,
  2623. SoundVolume = nil
  2624. })
  2625. elseif HITFLOOR.Anchored == false then
  2626. if HITFLOOR.Parent ~= workspace then
  2627. local CHILDREN = HITFLOOR.Parent:GetDescendants()
  2628. for index, CHILD in pairs(CHILDREN) do
  2629. if CHILD:IsA("BasePart") and CHILD.Position.Y < HITPOS.Y then
  2630. for i = 1, 5 do
  2631. CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, CHILD.Size / 3, 5, MRANDOM(15, 25))
  2632. end
  2633. CHILD:remove()
  2634. end
  2635. end
  2636. else
  2637. for i = 1, 5 do
  2638. CreateFlyingDebree(HITFLOOR, CF(HITFLOOR.Position), 1, HITFLOOR.Size / 3, 5, MRANDOM(15, 25))
  2639. end
  2640. HITFLOOR:remove()
  2641. end
  2642. local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  2643. SOUNDPART.CFrame = CF(HITPOS)
  2644. Debris:AddItem(SOUNDPART, 5)
  2645. CreateSound("130972023", SOUNDPART, 10, 3)
  2646. CreateSound("178452217", SOUNDPART, 6, 1)
  2647. WACKYEFFECT({
  2648. EffectType = "Ring",
  2649. Size = VT(0, 0, 0),
  2650. Size2 = VT(1, 1, 0),
  2651. Transparency = 0.7,
  2652. Transparency2 = 1,
  2653. CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)),
  2654. MoveToPos = nil,
  2655. RotationX = 0,
  2656. RotationY = 0,
  2657. RotationZ = 0,
  2658. Material = "Neon",
  2659. Color = C3(.5,0,.5),
  2660. SoundID = nil,
  2661. SoundPitch = nil,
  2662. SoundVolume = nil
  2663. })
  2664. else
  2665. local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  2666. SOUNDPART.CFrame = CF(HITPOS)
  2667. Debris:AddItem(SOUNDPART, 5)
  2668. CreateSound("130972023", SOUNDPART, 10, 1)
  2669. CreateSound("130972023", SOUNDPART, 6, 0.7)
  2670. CreateDebreeRing(HITFLOOR, HITPOS, 5, VT(5, 5, 5), 5)
  2671. CreateDebreeRing(HITFLOOR, HITPOS, 8, VT(8, 8, 8), 5)
  2672. ApplyAoE(HITPOS, 15, 45, 75, 75, false)
  2673. ApplyAoE(HITPOS, 25, 25, 35, 35, false)
  2674. for i = 1, 5 do
  2675. CreateFlyingDebree(HITFLOOR, CF(HITPOS), 1, VT(MRANDOM(10, 30) / 10, MRANDOM(10, 30) / 10, MRANDOM(10, 30) / 10), 5, MRANDOM(75, 150))
  2676. end
  2677. for i = 1, 5 do
  2678. CreateFlyingDebree(HITFLOOR, CF(HITPOS), 1, VT(MRANDOM(10, 30) / 2, MRANDOM(10, 30) / 2, MRANDOM(10, 30) / 2), 5, MRANDOM(75, 150))
  2679. end
  2680. end
  2681. end
  2682. for i = 0, 1.2, 0.1 / Animation_Speed do
  2683. Swait()
  2684. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(90)), 1.5 / Animation_Speed)
  2685. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 1.5 / Animation_Speed)
  2686. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  2687. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.5 / Animation_Speed)
  2688. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  2689. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  2690. end
  2691. ATTACK = false
  2692. Rooted = false
  2693. UNANCHOR = true
  2694. RootPart.Anchored = false
  2695. end
  2696. end
  2697.  
  2698. function CreateDebreeRing(FLOOR, POSITION, SIZE, BLOCKSIZE, SWAIT)
  2699. if FLOOR ~= nil then
  2700. coroutine.resume(coroutine.create(function()
  2701. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0, 0, 0))
  2702. PART.CFrame = CF(POSITION)
  2703. for i = 1, 45 do
  2704. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  2705. RingPiece.Material = FLOOR.Material
  2706. RingPiece.Color = FLOOR.Color
  2707. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i * 8), RAD(0)) * CF(SIZE * 4, 0, 0) * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)))
  2708. Debris:AddItem(RingPiece, SWAIT)
  2709. end
  2710. PART:remove()
  2711. end))
  2712. end
  2713. end
  2714. function CreateFlyingDebree(FLOOR, POSITION, AMOUNT, BLOCKSIZE, SWAIT, STRENGTH)
  2715. if FLOOR ~= nil then
  2716. for i = 1, AMOUNT do
  2717. do
  2718. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  2719. DEBREE.Material = FLOOR.Material
  2720. DEBREE.Color = FLOOR.Color
  2721. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)))
  2722. DEBREE.Velocity = VT(MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH))
  2723. coroutine.resume(coroutine.create(function()
  2724. Swait(15)
  2725. DEBREE.Parent = workspace
  2726. DEBREE.CanCollide = true
  2727. Debris:AddItem(DEBREE, SWAIT)
  2728. end))
  2729. end
  2730. end
  2731. end
  2732. end
  2733.  
  2734. function RiftForm()
  2735. ATTACK = true
  2736. Rooted = false
  2737. UNANCHOR = false
  2738. RootPart.Anchored = true
  2739. for i=0, 5, 0.1 / Animation_Speed do
  2740. Swait()
  2741. RootPart.CFrame = RootPart.CFrame * CF(0,0.2,0)
  2742. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2743. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 2 / Animation_Speed)
  2744. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2745. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2746. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed)
  2747. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed)
  2748. end
  2749. CreateSound("1368598393", Effects, 10, 1)
  2750. for i=0, 2, 0.1 / Animation_Speed do
  2751. Swait()
  2752. local CFRAME = CF(Torso.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  2753. MagicSphere3(VT(0,0,0),15,CFRAME,"Royal purple",VT(0.1,0.1,5))
  2754. MagicSphere3(VT(0.1,0.1,0.1),15,CFRAME,"Royal purple",VT(0.1,0.1,5))
  2755. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2756. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 2 / Animation_Speed)
  2757. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-75)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2758. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(75)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2759. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
  2760. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
  2761. end
  2762. CreateSound("1368583274", Effects, 10, 1)
  2763. for i=0, 6, 0.1 / Animation_Speed do
  2764. Swait()
  2765. CreateRing2(VT(45,5,0)*2,false,0,45,Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really black",VT(-1,0,0))
  2766. CreateRing2(VT(45,5,0)*3,false,0,45,Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really black",VT(-1,0,0)*3)
  2767. local CFRAME = CF(Torso.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  2768. MagicSphere3(VT(0,0,0),15,CFRAME,"Royal purple",VT(0.1,0.1,55))
  2769. MagicSphere3(VT(0,0,0),15,CFRAME,"Royal purple",VT(2,2,2))
  2770. MagicSphere3(VT(0.1,0.1,0.1),15,CFRAME,"Royal Purple",VT(0.1,0.1,55))
  2771. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2772. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 2 / Animation_Speed)
  2773. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-75)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2774. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(75)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2775. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
  2776. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
  2777. end
  2778. CreateSound("907329532", Effects, 10, 0.9)
  2779. Swait(175)
  2780. CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Royal purple",VT(7,7,0))
  2781. CreateSound("1368605755", Effects, 10, 1)
  2782. CreateSound("1368637781", Effects, 10, 1)
  2783. MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Royal purple",VT(5,5,5))
  2784. for i=0, 1, 0.1 / Animation_Speed do
  2785. CreateRing2(VT(0,0,0),false,0,45,Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Royal purple",VT(4,4,0))
  2786. CreateRing2(VT(0,0,0),false,0,45,Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Royal purple",VT(5,5,0))
  2787. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2788. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 2 / Animation_Speed)
  2789. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-60), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2790. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2791. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-50)), 2 / Animation_Speed)
  2792. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(50)), 2 / Animation_Speed)
  2793. end
  2794. UNANCHOR = true
  2795. RootPart.Anchored = false
  2796. ATTACK = false
  2797. Rooted = false
  2798. end
  2799.  
  2800. function CreateRing2(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  2801. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  2802. local mesh = IT("SpecialMesh",wave)
  2803. mesh.MeshType = "FileMesh"
  2804. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2805. mesh.Scale = SIZE
  2806. mesh.Offset = VT(0,0,0)
  2807. wave.CFrame = CFRAME
  2808. coroutine.resume(coroutine.create(function(PART)
  2809. for i = 1, WAIT do
  2810. Swait()
  2811. mesh.Scale = mesh.Scale + GROW
  2812. if DOESROT == true then
  2813. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  2814. end
  2815. wave.Transparency = wave.Transparency + (0.5/WAIT)
  2816. if wave.Transparency > 0.99 then
  2817. wave:remove()
  2818. end
  2819. end
  2820. end))
  2821. end
  2822.  
  2823. function MagicSphere3(SIZE,WAIT,CFRAME,COLOR,GROW)
  2824. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  2825. local mesh = IT("SpecialMesh",wave)
  2826. mesh.MeshType = "Sphere"
  2827. mesh.Scale = SIZE
  2828. mesh.Offset = VT(0,0,0)
  2829. wave.CFrame = CFRAME
  2830. coroutine.resume(coroutine.create(function(PART)
  2831. for i = 1, WAIT do
  2832. Swait()
  2833. mesh.Scale = mesh.Scale + GROW
  2834. wave.Transparency = wave.Transparency + (1/WAIT)
  2835. if wave.Transparency > 0.99 then
  2836. wave:remove()
  2837. end
  2838. end
  2839. end))
  2840. end
  2841.  
  2842. local lightning = Instance.new("ParticleEmitter",Torso)
  2843. lightning.Texture = "http://www.roblox.com/asset/?id=348321827"
  2844. lightning.LightEmission = 0
  2845. lightning.Color = ColorSequence.new(Color3.new(5,0,.5),Color3.new(0,0,0))
  2846. lightning.LockedToPart = true
  2847. lightning.Rate = 20
  2848. lightning.Lifetime = NumberRange.new(0.1,0.10)
  2849. lightning.Rotation = NumberRange.new(0,360)
  2850. lightning.Size = NumberSequence.new(3,3,3)
  2851. lightning.Transparency = NumberSequence.new(0,0)
  2852. lightning.Speed = NumberRange.new(0,0)
  2853. lightning.RotSpeed = NumberRange.new(0,0)
  2854. lightning.ZOffset = 5
  2855. lightning.Parent = Character.Torso
  2856. lightning.Enabled = false
  2857.  
  2858. Player=game:GetService('Players').LocalPlayer
  2859. Character=Player.Character
  2860. Mouse=Player:GetMouse()
  2861. m=Instance.new('Model',Character)
  2862. local function weldBetween(a, b)
  2863. local weldd = Instance.new("ManualWeld")
  2864. weldd.Part0 = a
  2865. weldd.Part1 = b
  2866. weldd.C0 = CFrame.new()
  2867. weldd.C1 = b.CFrame:inverse() * a.CFrame
  2868. weldd.Parent = a
  2869. return weldd
  2870. end
  2871.  
  2872. it=Instance.new
  2873.  
  2874. function nooutline(part)
  2875. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  2876. end
  2877.  
  2878. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  2879. local fp=it("Part")
  2880. fp.formFactor=formfactor
  2881. fp.Parent=parent
  2882. fp.Reflectance=reflectance
  2883. fp.Transparency=transparency
  2884. fp.CanCollide=false
  2885. fp.Locked=true
  2886. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  2887. fp.Name=name
  2888. fp.Size=size
  2889. fp.Position=Character.Torso.Position
  2890. nooutline(fp)
  2891. fp.Material=material
  2892. fp:BreakJoints()
  2893. return fp
  2894. end
  2895.  
  2896. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  2897. local mesh=it(Mesh)
  2898. mesh.Parent=part
  2899. if Mesh=="SpecialMesh" then
  2900. mesh.MeshType=meshtype
  2901. mesh.MeshId=meshid
  2902. end
  2903. mesh.Offset=offset
  2904. mesh.Scale=scale
  2905. return mesh
  2906. end
  2907.  
  2908. function weld(parent,part0,part1,c0,c1)
  2909. local weld=it("Weld")
  2910. weld.Parent=parent
  2911. weld.Part0=part0
  2912. weld.Part1=part1
  2913. weld.C0=c0
  2914. weld.C1=c1
  2915. return weld
  2916. end
  2917.  
  2918. local eeeffecto = Instance.new("ParticleEmitter",Torso)
  2919. eeeffecto.Texture = "http://www.roblox.com/asset/?id=305943367"
  2920. eeeffecto.LightEmission = 0
  2921. eeeffecto.Color = ColorSequence.new(Color3.new(5,0,.5),Color3.new(0,0,0))
  2922. eeeffecto.LockedToPart = true
  2923. eeeffecto.Rate = 10
  2924. eeeffecto.Lifetime = NumberRange.new(0.1,0.1)
  2925. eeeffecto.Rotation = NumberRange.new(0,0)
  2926. eeeffecto.Size = NumberSequence.new(9,9,9)
  2927. eeeffecto.Transparency = NumberSequence.new(0,0)
  2928. eeeffecto.Speed = NumberRange.new(0,0)
  2929. eeeffecto.RotSpeed = NumberRange.new(0,0)
  2930. eeeffecto.Parent = Character.Torso
  2931. eeeffecto.Enabled = false
  2932.  
  2933. --//=================================\\
  2934. --|| ASSIGN THINGS TO KEYS
  2935. --\\=================================//
  2936.  
  2937. function MouseDown(Mouse)
  2938. if ATTACK == false then
  2939. end
  2940. end
  2941.  
  2942. function MouseUp(Mouse)
  2943. HOLD = false
  2944. end
  2945.  
  2946. function KeyDown(Key)
  2947. KEYHOLD = true
  2948. if Key == "l" and ATTACK == false then
  2949. RiftForm()
  2950. lightning.Enabled = true
  2951. eeeffecto.Enabled = true
  2952. SKILL4TEXT:remove()
  2953. SKILL3TEXT:remove()
  2954. SKILL2TEXT:remove()
  2955. SKILL1TEXT:remove()
  2956.  
  2957. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 1")
  2958. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2")
  2959. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3")
  2960. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4")
  2961. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[E]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 5")
  2962. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[X]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 6")
  2963. RiftWorld()
  2964. s:stop()
  2965. local s = Instance.new("Sound",char)
  2966. s.Name = "BGMusic"
  2967. s.SoundId = "rbxassetid://1439600000"
  2968. s.Pitch = 1.00
  2969. s.Volume = 40
  2970. s.Looped = true
  2971. s.archivable = false
  2972. s.Parent = char.Head
  2973. wait(0.1)
  2974. s:play()
  2975. end
  2976.  
  2977. if Key == "z" and ATTACK == false then
  2978. Shot()
  2979. end
  2980.  
  2981. if Key == "x" and ATTACK == false then
  2982. Neck_Snap()
  2983. end
  2984.  
  2985. if Key == "c" and ATTACK == false then
  2986. ShadowCloak()
  2987. end
  2988.  
  2989. if Key == "v" and ATTACK == false then
  2990. BulletRoller()
  2991. end
  2992.  
  2993. if Key == "b" and ATTACK == false then
  2994. Extreme_Offset()
  2995. end
  2996. end
  2997.  
  2998. function KeyUp(Key)
  2999. KEYHOLD = false
  3000. end
  3001.  
  3002. Mouse.Button1Down:connect(function(NEWKEY)
  3003. MouseDown(NEWKEY)
  3004. end)
  3005. Mouse.Button1Up:connect(function(NEWKEY)
  3006. MouseUp(NEWKEY)
  3007. end)
  3008. Mouse.KeyDown:connect(function(NEWKEY)
  3009. KeyDown(NEWKEY)
  3010. end)
  3011. Mouse.KeyUp:connect(function(NEWKEY)
  3012. KeyUp(NEWKEY)
  3013. end)
  3014.  
  3015. --//=================================\\
  3016. --\\=================================//
  3017.  
  3018.  
  3019. function unanchor()
  3020. if UNANCHOR == true then
  3021. g = Character:GetChildren()
  3022. for i = 1, #g do
  3023. if g[i].ClassName == "Part" then
  3024. g[i].Anchored = false
  3025. end
  3026. end
  3027. end
  3028. end
  3029.  
  3030.  
  3031. --//=================================\\
  3032. --|| WRAP THE WHOLE SCRIPT UP
  3033. --\\=================================//
  3034.  
  3035. Humanoid.Changed:connect(function(Jump)
  3036. if Jump == "Jump" and (Disable_Jump == true) then
  3037. Humanoid.Jump = false
  3038. end
  3039. end)
  3040.  
  3041.  
  3042.  
  3043. local CONNECT = nil
  3044.  
  3045. while true do
  3046. Swait()
  3047. ANIMATE.Parent = nil
  3048. if Character:FindFirstChildOfClass("Humanoid") == nil then
  3049. Humanoid = IT("Humanoid",Character)
  3050. end
  3051. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  3052. v:Stop();
  3053. end
  3054. SINE = SINE + CHANGE
  3055. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  3056. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  3057. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  3058. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  3059. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3060. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3061. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3062. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3063. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  3064. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3065. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3066. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3067. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3068. end
  3069. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  3070. ANIM = "Jump"
  3071. if ATTACK == false then
  3072. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3073. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3074. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3075. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  3076. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  3077. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) end
  3078. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  3079. ANIM = "Fall"
  3080. if ATTACK == false then
  3081. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3082. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3083. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3084. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  3085. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  3086. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  3087. end
  3088. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  3089. ANIM = "Idle"
  3090. if ATTACK == false then
  3091. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(41), RAD(0)), 0.25 / Animation_Speed)
  3092. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
  3093. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5 + 0.05 * SIN(SINE / 12), -0.7) * ANGLES(RAD(0), RAD(0), RAD(-95)) * ANGLES(RAD(5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3094. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3095. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3096. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3097. elseif MODE == "Ds" then
  3098. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  3099. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  3100. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.3, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(200)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3101. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-200)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3102. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3103. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3104. end
  3105. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  3106. ANIM = "Walk"
  3107. if ATTACK == false then
  3108. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  3109. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-Speed/3 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3110. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3111. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3112. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3113. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3114. end
  3115. end
  3116. unanchor()
  3117. Humanoid.MaxHealth = "inf"
  3118. Humanoid.Health = "inf"
  3119. if Rooted == false then
  3120. Disable_Jump = false
  3121. Humanoid.WalkSpeed = Speed
  3122. elseif Rooted == true then
  3123. Disable_Jump = true
  3124. Humanoid.WalkSpeed = 0
  3125. end
  3126. sick.Parent = Torso
  3127. sick:resume()
  3128. sick.Volume = 5
  3129. sick.Pitch = 1.0
  3130. sick.SoundId = "rbxassetid://1439600000"
  3131. sick.Name = "BanishV3Music"
  3132. end
  3133.  
  3134.  
  3135.  
  3136. --//=================================\\
  3137. --\\=================================//
  3138.  
  3139.  
  3140.  
  3141.  
  3142.  
  3143. --//====================================================\\--
  3144. --|| END OF SCRIPT
  3145. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement