Advertisement
Guest User

edit

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