kilcrafter

Amethyst Sin

Sep 1st, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 141.77 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, "Royal purple", "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("Royal purple"), 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, Character, "Fabric", 0, 0, "Royal purple", "Hood", VT(1,1,1),false)
  1061. PRT.Color = C3(.5,0,.5)
  1062. local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
  1063. CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0))
  1064. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Royal purple", "Scarf", VT(1,1,1),false)
  1065. PRT.Color = C3(.5,0,.5)
  1066. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0))
  1067. CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
  1068. for i = 1, 16 do
  1069. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false)
  1070. FACE.Color = C3(0,0,0)
  1071. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  1072. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0))
  1073. end
  1074. local LASTPART = Head
  1075. for i = 1, 20 do
  1076. local MATH = (1-(i/25))
  1077. if LASTPART == Head then
  1078. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Royal purple", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1079. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
  1080. LASTPART = Horn
  1081. Horn.Color = C3((i*3-3)/.5,0,.5)
  1082. else
  1083. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Royal purple", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1084. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
  1085. LASTPART = Horn
  1086. Horn.Color = C3((i*3-3)/.5,0,.5)
  1087. end
  1088. end
  1089. local LASTPART = Head
  1090. for i = 1, 20 do
  1091. local MATH = (1-(i/25))
  1092. if LASTPART == Head then
  1093. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Royal purple", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1094. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0))
  1095. LASTPART = Horn
  1096. Horn.Color = C3((i*3-3)/.5,0,.5)
  1097. else
  1098. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Royal purple", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1099. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0))
  1100. LASTPART = Horn
  1101. Horn.Color = C3((i*3-3)/.5,0,.5)
  1102. end
  1103. end
  1104. local Hair = CreatePart(3, Character, "Fabric", 0, 0, "Royal purple", "Hair", VT(1,1,1),false)
  1105. local HairWeld1 = CreateWeldOrSnapOrMotor("Weld", Hair, Head, Hair, CF(0,0.1,-0.25) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1106. CreateMesh("SpecialMesh", Hair, "FileMesh", "873651376", "", VT(0.025, 0.025, 0.02), VT(0,0,0))
  1107. local Hair = CreatePart(3, Character, "Fabric", 0, 0, "Royal purple", "Hair", VT(1,1,1),false)
  1108. local HairWeld2 = CreateWeldOrSnapOrMotor("Weld", Hair, Head, Hair, CF(0,0.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1109. CreateMesh("SpecialMesh", Hair, "FileMesh", "873651376", "", VT(0.03, 0.015, 0.01), VT(0,0,-0.1))
  1110.  
  1111. local Particle = IT("ParticleEmitter",nil)
  1112. Particle.Enabled = false
  1113. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  1114. Particle.LightEmission = 0.5
  1115. Particle.Rate = 150
  1116. Particle.ZOffset = 0.2
  1117. Particle.Rotation = NumberRange.new(-180, 180)
  1118. Particle.RotSpeed = NumberRange.new(-180, 180)
  1119. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  1120. Particle.Color = ColorSequence.new(C3(.5,0,.5),C3(.5,0,.5))
  1121.  
  1122. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  1123. function ParticleEmitter(Table)
  1124. local PRTCL = Particle:Clone()
  1125. local Speed = Table.Speed or 5
  1126. local Drag = Table.Drag or 0
  1127. local Size1 = Table.Size1 or 1
  1128. local Size2 = Table.Size2 or 5
  1129. local Lifetime1 = Table.Lifetime1 or 1
  1130. local Lifetime2 = Table.Lifetime2 or 1.5
  1131. local Parent = Table.Parent or Torso
  1132. local Emit = Table.Emit or 100
  1133. local Offset = Table.Offset or 360
  1134. local Acel = Table.Acel or VT(0,0,0)
  1135. local Enabled = Table.Enabled or false
  1136. PRTCL.Parent = Parent
  1137. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1138. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1139. PRTCL.Speed = NumberRange.new(Speed)
  1140. PRTCL.VelocitySpread = Offset
  1141. PRTCL.Drag = Drag
  1142. PRTCL.Acceleration = Acel
  1143. if Enabled == false then
  1144. PRTCL:Emit(Emit)
  1145. Debris:AddItem(PRTCL,Lifetime2)
  1146. else
  1147. PRTCL.Enabled = true
  1148. end
  1149. return PRTCL
  1150. end
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  1160. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  1161. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1162. MakeForm(Part,"Wedge")
  1163. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1164. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  1165. MakeForm(Part,"Wedge")
  1166. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  1167. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  1168. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1169. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1170. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1171. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1172. MakeForm(Part,"Cyl")
  1173. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1174. for i = 1, 8 do
  1175. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1176. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1177. end
  1178. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  1179. MakeForm(Part,"Cyl")
  1180. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1181. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  1182. MakeForm(Part,"Ball")
  1183. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1184. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  1185. MakeForm(Part,"Wedge")
  1186. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  1187. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  1188. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1189. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  1190. MakeForm(Part,"Cyl")
  1191. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1192. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  1193. MakeForm(Part,"Cyl")
  1194. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1195. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1196. MakeForm(Part,"Cyl")
  1197. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1198. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1199. MakeForm(Part,"Wedge")
  1200. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1201. local LASTPART = Handle
  1202. for i = 1, 10 do
  1203. if LASTPART == Handle then
  1204. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1205. LASTPART = Part
  1206. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1207. else
  1208. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1209. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1210. LASTPART = Part
  1211. end
  1212. end
  1213.  
  1214. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  1215. MakeForm(Barrel,"Cyl")
  1216. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1217. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1218. MakeForm(Part,"Cyl")
  1219. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1220. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1221. MakeForm(Part,"Wedge")
  1222. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1223. local Hole2 = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1224. MakeForm(Hole2,"Cyl")
  1225. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole2, CF(0, 0.98, 0), CF(0, 0, 0))
  1226. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1227. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1228. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1229. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1230. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1231. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1232. coroutine.resume(coroutine.create(function()
  1233. while wait() do
  1234. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1235. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1236. end
  1237. end))
  1238.  
  1239. 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)})
  1240. --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)})
  1241.  
  1242. for _, c in pairs(Weapon:GetDescendants()) do
  1243. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1244. c.Material = "Glass"
  1245. c.Color = C3(.5,0,.5)
  1246. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1247. c.Color = C3(.5,0,.5)
  1248. c.Material = "Neon"
  1249. end
  1250. end
  1251.  
  1252. Weapon.Parent = Character
  1253. for _, c in pairs(Weapon:GetChildren()) do
  1254. if c.ClassName == "Part" then
  1255. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1256. end
  1257. end
  1258.  
  1259. function ParticleEmitter(Table)
  1260. local PRTCL = Particle:Clone()
  1261. local Speed = Table.Speed or 5
  1262. local Drag = Table.Drag or 0
  1263. local Size1 = Table.Size1 or 1
  1264. local Size2 = Table.Size2 or 5
  1265. local Lifetime1 = Table.Lifetime1 or 1
  1266. local Lifetime2 = Table.Lifetime2 or 1.5
  1267. local Parent = Table.Parent or Torso
  1268. local Emit = Table.Emit or 100
  1269. local Offset = Table.Offset or 360
  1270. local Acel = Table.Acel or VT(0,0,0)
  1271. local Enabled = Table.Enabled or false
  1272. PRTCL.Parent = Parent
  1273. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1274. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1275. PRTCL.Speed = NumberRange.new(Speed)
  1276. PRTCL.VelocitySpread = Offset
  1277. PRTCL.Drag = Drag
  1278. PRTCL.Acceleration = Acel
  1279. if Enabled == false then
  1280. PRTCL:Emit(Emit)
  1281. Debris:AddItem(PRTCL,Lifetime2)
  1282. else
  1283. PRTCL.Enabled = true
  1284. end
  1285. return PRTCL
  1286. end
  1287.  
  1288. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  1289. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  1290. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1291. MakeForm(Part,"Wedge")
  1292. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1293. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  1294. MakeForm(Part,"Wedge")
  1295. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  1296. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  1297. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1298. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1299. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1300. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1301. MakeForm(Part,"Cyl")
  1302. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1303. for i = 1, 8 do
  1304. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1305. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1306. end
  1307. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  1308. MakeForm(Part,"Cyl")
  1309. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1310. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  1311. MakeForm(Part,"Ball")
  1312. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1313. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  1314. MakeForm(Part,"Wedge")
  1315. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  1316. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  1317. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1318. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  1319. MakeForm(Part,"Cyl")
  1320. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1321. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  1322. MakeForm(Part,"Cyl")
  1323. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1324. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1325. MakeForm(Part,"Cyl")
  1326. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1327. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1328. MakeForm(Part,"Wedge")
  1329. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1330. local LASTPART = Handle
  1331. for i = 1, 10 do
  1332. if LASTPART == Handle then
  1333. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1334. LASTPART = Part
  1335. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1336. else
  1337. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1338. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1339. LASTPART = Part
  1340. end
  1341. end
  1342.  
  1343. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  1344. MakeForm(Barrel,"Cyl")
  1345. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1346. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1347. MakeForm(Part,"Cyl")
  1348. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1349. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1350. MakeForm(Part,"Wedge")
  1351. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1352. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1353. MakeForm(Hole,"Cyl")
  1354. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  1355. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1356. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1357. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1358. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1359. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1360. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1361. coroutine.resume(coroutine.create(function()
  1362. while wait() do
  1363. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1364. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1365. end
  1366. end))
  1367.  
  1368. 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)})
  1369. --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)})
  1370.  
  1371. for _, c in pairs(Weapon:GetDescendants()) do
  1372. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1373. c.Material = "Glass"
  1374. c.Color = C3(0.05,0.05,0.05)
  1375. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1376. c.Color = C3(.5,0,.5)
  1377. c.Material = "Neon"
  1378. end
  1379. end
  1380.  
  1381. Weapon.Parent = Character
  1382. for _, c in pairs(Weapon:GetChildren()) do
  1383. if c.ClassName == "Part" then
  1384. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1385. end
  1386. end
  1387.  
  1388. local SKILLTEXTCOLOR = C3(.5,0,.5)
  1389. local SKILLFONT = "Antique"
  1390. local SKILLTEXTSIZE = 7
  1391.  
  1392. Humanoid.Died:connect(function()
  1393. ATTACK = true
  1394. end)
  1395.  
  1396.  
  1397. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.0, 1, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1398. --[[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")
  1399. 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")
  1400. 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")
  1401. 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")
  1402. ]]
  1403. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  1404. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  1405. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  1406. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  1407. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  1408. ]]
  1409. function printbye(Name)
  1410. 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, "}
  1411. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1412. end
  1413.  
  1414. workspace.ChildAdded:connect(function(instance)
  1415. for BANISH = 1, #TOBANISH do
  1416. if TOBANISH[BANISH] ~= nil then
  1417. if instance.Name == TOBANISH[BANISH] then
  1418. coroutine.resume(coroutine.create(function()
  1419. printbye(instance.Name)
  1420. instance:ClearAllChildren()
  1421. Debris:AddItem(instance,0.0005)
  1422. end))
  1423. end
  1424. end
  1425. end
  1426. end)
  1427.  
  1428. --//=================================\\
  1429. --|| DAMAGING
  1430. --\\=================================//
  1431.  
  1432. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1433. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1434. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1435. wave.CFrame = CFRAME
  1436. coroutine.resume(coroutine.create(function(PART)
  1437. for i = 1, WAIT do
  1438. Swait()
  1439. mesh.Scale = mesh.Scale + GROW
  1440. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1441. if DOESROT == true then
  1442. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1443. end
  1444. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1445. if wave.Transparency > 0.99 then
  1446. wave:remove()
  1447. end
  1448. end
  1449. end))
  1450. end
  1451.  
  1452. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  1453. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1454. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0,0,0))
  1455. wave.CFrame = CFRAME
  1456. coroutine.resume(coroutine.create(function(PART)
  1457. for i = 1, WAIT do
  1458. Swait()
  1459. mesh.Scale = mesh.Scale + GROW
  1460. if DOESROT == true then
  1461. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1462. end
  1463. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1464. if wave.Transparency > 0.99 then
  1465. wave:remove()
  1466. end
  1467. end
  1468. end))
  1469. end
  1470.  
  1471. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  1472. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1473. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
  1474. wave.CFrame = CFRAME
  1475. coroutine.resume(coroutine.create(function(PART)
  1476. for i = 1, WAIT do
  1477. Swait()
  1478. mesh.Scale = mesh.Scale + GROW
  1479. wave.Transparency = wave.Transparency + (1/WAIT)
  1480. if wave.Transparency > 0.99 then
  1481. wave:remove()
  1482. end
  1483. end
  1484. end))
  1485. end
  1486.  
  1487. function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
  1488. local mesh = nil
  1489. if KIND == "Base" then
  1490. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  1491. elseif KIND == "Thin" then
  1492. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  1493. elseif KIND == "Round" then
  1494. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  1495. end
  1496. wave.CFrame = CFRAME
  1497. coroutine.resume(coroutine.create(function(PART)
  1498. for i = 1, WAIT do
  1499. Swait()
  1500. mesh.Scale = mesh.Scale + GROW/10
  1501. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1502. if wave.Transparency > 0.99 then
  1503. wave:remove()
  1504. end
  1505. end
  1506. end))
  1507. end
  1508.  
  1509. function Ragdoll(Character2, CharTorso, Headless, Velocity)
  1510. local svch = Character2
  1511. Character2:BreakJoints()
  1512. local hum = Character2:findFirstChild("Humanoid")
  1513. local q = Character2:GetChildren()
  1514. local CLONE = IT("Model", Effects)
  1515. for i = 1, #q do
  1516. if q[i].ClassName == "Accessory" and Headless == true then
  1517. q[i]:remove()
  1518. elseif q[i].ClassName ~= "Humanoid" and q[i].ClassName ~= "LocalScript" and q[i].ClassName ~= "Script" and q[i].ClassName ~= "Gear" then
  1519. q[i].Parent = CLONE
  1520. elseif q[i].ClassName ~= "Humanoid" then
  1521. q[i]:remove()
  1522. end
  1523. end
  1524. local chrclone = CLONE
  1525. local ch = chrclone:GetChildren()
  1526. local i
  1527. for i = 1, #ch do
  1528. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
  1529. ch[i]:remove()
  1530. end
  1531. end
  1532. local function Scan(ch)
  1533. local e
  1534. for e = 1, #ch do
  1535. Scan(ch[e]:GetChildren())
  1536. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  1537. ch[e]:remove()
  1538. end
  1539. end
  1540. end
  1541. Character2:remove()
  1542. local NEWHUM = IT("Humanoid")
  1543. NEWHUM.Name = "Corpse"
  1544. NEWHUM.Health = 0
  1545. NEWHUM.MaxHealth = 0
  1546. NEWHUM.PlatformStand = true
  1547. NEWHUM.Parent = CLONE
  1548. NEWHUM.DisplayDistanceType = "None"
  1549. Scan(chrclone:GetChildren())
  1550. local ch = Character2:GetChildren()
  1551. local i
  1552. for i = 1, #ch do
  1553. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  1554. ch[i]:remove()
  1555. end
  1556. end
  1557.  
  1558. Character2 = chrclone
  1559. local Torso2 = Character2.Torso
  1560. local movevector = Vector3.new()
  1561. if Torso2 then
  1562. movevector = CFrame.new(CharTorso.Position, Torso2.Position).lookVector
  1563. local Head = Character2:FindFirstChild("Head")
  1564. if Head then
  1565. local Neck = Instance.new("Weld")
  1566. Neck.Name = "Neck"
  1567. Neck.Part0 = Torso2
  1568. Neck.Part1 = Head
  1569. Neck.C0 = CFrame.new(0, 1.5, 0)
  1570. Neck.C1 = CFrame.new()
  1571. Neck.Parent = Torso2
  1572. if Headless == true then
  1573. Head.Transparency = 1
  1574. Head:ClearAllChildren()
  1575. end
  1576. end
  1577. local Limb = Character2:FindFirstChild("Right Arm")
  1578. if Limb then
  1579. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  1580. local Joint = Instance.new("Glue")
  1581. Joint.Name = "RightShoulder"
  1582. Joint.Part0 = Torso2
  1583. Joint.Part1 = Limb
  1584. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1585. Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1586. Joint.Parent = Torso2
  1587. local B = Instance.new("Part")
  1588. B.TopSurface = 0
  1589. B.BottomSurface = 0
  1590. B.formFactor = "Symmetric"
  1591. B.Size = Vector3.new(1, 1, 1)
  1592. B.Transparency = 1
  1593. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1594. B.Parent = Character2
  1595. local W = Instance.new("Weld")
  1596. W.Part0 = Limb
  1597. W.Part1 = B
  1598. W.C0 = CFrame.new(0, -0.5, 0)
  1599. W.Parent = Limb
  1600. end
  1601. local Limb = Character2:FindFirstChild("Left Arm")
  1602. if Limb then
  1603. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  1604. local Joint = Instance.new("Glue")
  1605. Joint.Name = "LeftShoulder"
  1606. Joint.Part0 = Torso2
  1607. Joint.Part1 = Limb
  1608. Joint.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1609. Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1610. Joint.Parent = Torso2
  1611. local B = Instance.new("Part")
  1612. B.TopSurface = 0
  1613. B.BottomSurface = 0
  1614. B.formFactor = "Symmetric"
  1615. B.Size = Vector3.new(1, 1, 1)
  1616. B.Transparency = 1
  1617. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1618. B.Parent = Character2
  1619. local W = Instance.new("Weld")
  1620. W.Part0 = Limb
  1621. W.Part1 = B
  1622. W.C0 = CFrame.new(0, -0.5, 0)
  1623. W.Parent = Limb
  1624. end
  1625. local Limb = Character2:FindFirstChild("Right Leg")
  1626. if Limb then
  1627. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  1628. local Joint = Instance.new("Glue")
  1629. Joint.Name = "RightHip"
  1630. Joint.Part0 = Torso2
  1631. Joint.Part1 = Limb
  1632. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1633. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1634. Joint.Parent = Torso2
  1635. local B = Instance.new("Part")
  1636. B.TopSurface = 0
  1637. B.BottomSurface = 0
  1638. B.formFactor = "Symmetric"
  1639. B.Size = Vector3.new(1, 1, 1)
  1640. B.Transparency = 1
  1641. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1642. B.Parent = Character2
  1643. local W = Instance.new("Weld")
  1644. W.Part0 = Limb
  1645. W.Part1 = B
  1646. W.C0 = CFrame.new(0, -0.5, 0)
  1647. W.Parent = Limb
  1648. end
  1649. local Limb = Character2:FindFirstChild("Left Leg")
  1650. if Limb then
  1651. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  1652. local Joint = Instance.new("Glue")
  1653. Joint.Name = "LeftHip"
  1654. Joint.Part0 = Torso2
  1655. Joint.Part1 = Limb
  1656. Joint.C0 = CFrame.new(-0.5, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1657. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1658. Joint.Parent = Torso2
  1659. local B = Instance.new("Part")
  1660. B.TopSurface = 0
  1661. B.BottomSurface = 0
  1662. B.formFactor = "Symmetric"
  1663. B.Size = Vector3.new(1, 1, 1)
  1664. B.Transparency = 1
  1665. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1666. B.Parent = Character2
  1667. local W = Instance.new("Weld")
  1668. W.Part0 = Limb
  1669. W.Part1 = B
  1670. W.C0 = CFrame.new(0, -0.5, 0)
  1671. W.Parent = Limb
  1672. end
  1673. local Bar = Instance.new("Part")
  1674. Bar.TopSurface = 0
  1675. Bar.BottomSurface = 0
  1676. Bar.formFactor = "Symmetric"
  1677. Bar.Size = Vector3.new(1, 1, 1)
  1678. Bar.Transparency = 1
  1679. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  1680. Bar.Parent = Character2
  1681. local Weld = Instance.new("Weld")
  1682. Weld.Part0 = Torso2
  1683. Weld.Part1 = Bar
  1684. Weld.C0 = CFrame.new(0, 0.5, 0)
  1685. Weld.Parent = Torso2
  1686. end
  1687. Character2.Parent = Weapon
  1688. if movevector ~= Vector3.new() then
  1689. for i = 1, 10 do
  1690. Torso2.Velocity = movevector * Velocity
  1691. end
  1692. end
  1693. Character2.Name = "Corpse"
  1694. return Character2, Torso2
  1695. end
  1696.  
  1697. function Banish(Foe)
  1698. if Foe then
  1699. coroutine.resume(coroutine.create(function()
  1700. --if game.Players:FindFirstChild(Foe.Name) then
  1701. table.insert(TOBANISH,Foe.Name)
  1702. printbye(Foe.Name)
  1703. --end
  1704. Foe.Archivable = true
  1705. local CLONE = Foe:Clone()
  1706. Foe:Destroy()
  1707. CLONE.Parent = Effects
  1708. CLONE:BreakJoints()
  1709. local MATERIALS = {"Glass","Neon"}
  1710. for _, c in pairs(CLONE:GetDescendants()) do
  1711. if c:IsA("BasePart") then
  1712. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1713. CreateSound(340722848, c, 10, 1, false)
  1714. end
  1715. c.Anchored = true
  1716. c.Transparency = c.Transparency + 0.2
  1717. c.Material = MATERIALS[MRANDOM(1,2)]
  1718. c.Color = C3(.5,0,.5)
  1719. if c.ClassName == "MeshPart" then
  1720. c.TextureID = ""
  1721. end
  1722. if c:FindFirstChildOfClass("SpecialMesh") then
  1723. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1724. end
  1725. if c:FindFirstChildOfClass("Decal") then
  1726. c:FindFirstChildOfClass("Decal"):remove()
  1727. end
  1728. c.Name = "Banished"
  1729. c.CanCollide = false
  1730. else
  1731. c:remove()
  1732. end
  1733. end
  1734. local A = false
  1735. for i = 1, 35 do
  1736. if A == false then
  1737. A = true
  1738. elseif A == true then
  1739. A = false
  1740. end
  1741. for _, c in pairs(CLONE:GetDescendants()) do
  1742. if c:IsA("BasePart") then
  1743. c.Anchored = true
  1744. c.Material = MATERIALS[MRANDOM(1,2)]
  1745. c.Transparency = c.Transparency + 0.8/35
  1746. if A == false then
  1747. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1748. elseif A == true then
  1749. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1750. end
  1751. end
  1752. end
  1753. Swait()
  1754. end
  1755. CLONE:remove()
  1756. end))
  1757. end
  1758. end
  1759.  
  1760. function PuddleOfBlood(Position, MaxDrop, Model, MaxSize)
  1761. local HITFLOOR, HITPOS, NORMAL = Raycast(Position, CF(Position, Position + VT(0, -1, 0)).lookVector, MaxDrop, Model)
  1762. if HITFLOOR ~= nil and HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then
  1763. if HITFLOOR.Name == "BloodPuddle" then
  1764. local DIST = (Position - HITFLOOR.Position).Magnitude
  1765. 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
  1766. HITFLOOR.Size = HITFLOOR.Size + VT(0.1, 0, 0.1)
  1767. end
  1768. elseif HITFLOOR.Anchored == true then
  1769. do
  1770. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Royal purple", "BloodPuddle", VT(2, 0, 2))
  1771. BLOOD.CFrame = CF(HITPOS, HITPOS + NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))
  1772. MakeForm(BLOOD, "Cyl")
  1773. coroutine.resume(coroutine.create(function()
  1774. Swait(75)
  1775. while true do
  1776. Swait()
  1777. BLOOD.Size = BLOOD.Size - VT(0.02, 0, 0.02)
  1778. if BLOOD.Size.Z < 0.051 then
  1779. BLOOD:remove()
  1780. break
  1781. end
  1782. end
  1783. end))
  1784. end
  1785. end
  1786. end
  1787. end
  1788.  
  1789. function SprayBlood(POSITION, DIRECTION, BloodSize)
  1790. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Royal purple", "BloodPuddle", VT(1, 1, 1), false)
  1791. BLOOD.CFrame = CF(POSITION)
  1792. MakeForm(BLOOD, "Ball")
  1793. local bv = Instance.new("BodyVelocity", BLOOD)
  1794. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1795. bv.velocity = CF(POSITION, DIRECTION + VT(MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30)).lookVector * 25
  1796. bv.Name = "MOVE"
  1797. Debris:AddItem(bv, 0.05)
  1798. coroutine.resume(coroutine.create(function()
  1799. local HASTOUCHEDGROUND = false
  1800. local HIT = BLOOD.Touched:Connect(function(hit)
  1801. if hit.Anchored == true then
  1802. HASTOUCHEDGROUND = true
  1803. PuddleOfBlood(BLOOD.Position + VT(0, 1, 0), 2, BLOOD, BloodSize)
  1804. end
  1805. end)
  1806. wait(5)
  1807. if HASTOUCHEDGROUND == false then
  1808. BLOOD:remove()
  1809. end
  1810. end))
  1811. end
  1812. function ApplyDamage(Humanoid, Damage, TorsoPart)
  1813. local defence = Instance.new("BoolValue", Humanoid.Parent)
  1814. defence.Name = "HitBy" .. Player.Name
  1815. game:GetService("Debris"):AddItem(defence, 0.001)
  1816. Damage = Damage * DAMAGEMULTIPLIER
  1817. if Humanoid.Health ~= 0 then
  1818. local CritChance = MRANDOM(1, 100)
  1819. if Damage > Humanoid.Health then
  1820. Damage = math.ceil(Humanoid.Health)
  1821. if Damage == 0 then
  1822. Damage = 0.1
  1823. end
  1824. end
  1825. Humanoid.Health = Humanoid.Health - Damage
  1826. StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0))
  1827. end
  1828. end
  1829.  
  1830. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1831. local CHILDREN = workspace:GetDescendants()
  1832. for index, CHILD in pairs(CHILDREN) do
  1833. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1834. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1835. if HUM then
  1836. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1837. if TORSO then
  1838. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1839. if ISBANISH == true then
  1840. Banish(CHILD)
  1841. else
  1842. if ISBANISH == "Gravity" then
  1843. HUM.PlatformStand = true
  1844. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1845. local grav = Instance.new("BodyPosition",TORSO)
  1846. grav.D = 15
  1847. grav.P = 20000
  1848. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1849. grav.position = TORSO.Position
  1850. grav.Name = "V3BanishForce"..Player.Name
  1851. else
  1852. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1853. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1854. end
  1855. else
  1856. HUM.PlatformStand = false
  1857. end
  1858. end
  1859. elseif ISBANISH == "Gravity" then
  1860. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1861. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1862. HUM.PlatformStand = false
  1863. end
  1864. end
  1865. end
  1866. end
  1867. end
  1868. end
  1869. end
  1870.  
  1871. function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping)
  1872. local dmg = math.random(min,max)
  1873. for i,v in ipairs(workspace:GetChildren()) do
  1874. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  1875. local body = v:GetChildren()
  1876. for part = 1, #body do
  1877. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1878. if(body[part].Position - position).Magnitude < radius then
  1879. if v.ClassName == "Model" then
  1880. if v:FindFirstChildOfClass("Humanoid") then
  1881. if CanBeDodgedByJumping == true then
  1882. if body[part].Position.Y < position.Y+5 then
  1883. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  1884. end
  1885. else
  1886. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  1887. end
  1888. local bv = Instance.new("BodyVelocity")
  1889. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1890. bv.velocity = RootPart.CFrame.lookVector*maxstrength
  1891. bv.Parent = body[part]
  1892. Debris:AddItem(bv,0.2)
  1893. end
  1894. end
  1895. end
  1896. end
  1897. end
  1898. end
  1899. if v:FindFirstChild("HitBy"..Player.Name) then
  1900. v:FindFirstChild("HitBy"..Player.Name):remove()
  1901. end
  1902. end
  1903. end
  1904.  
  1905.  
  1906. --//=================================\\
  1907. --|| ATTACK FUNCTIONS AND STUFF
  1908. --\\=================================//
  1909.  
  1910. function ShadowCloak()
  1911. if ANIM ~= "Fall" and ANIM ~= "Jump" then
  1912. ATTACK = true
  1913. Rooted = false
  1914. UNANCHOR = false
  1915. FADERS = false
  1916. coroutine.resume(coroutine.create(function()
  1917. coroutine.resume(coroutine.create(function()
  1918. for i=1, 25 do
  1919. Swait()
  1920. RootPart.CFrame = RootPart.CFrame*CF(0,(25-i)/25,0)
  1921. end
  1922. end))
  1923. repeat
  1924. Swait()
  1925. BLADE.Transparency = Torso.Transparency
  1926. 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)
  1927. 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)
  1928. 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)
  1929. 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)
  1930. 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)
  1931. 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)
  1932. until ATTACK == false
  1933. end))
  1934. 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})
  1935. 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})
  1936. for i = 1, 50 do
  1937. Swait()
  1938. CharacterFade(C3(.5,0,.5),12,R_RANDOM(Torso.CFrame,1.25).p)
  1939. for index, CHILD in pairs(Character:GetChildren()) do
  1940. if CHILD:IsA("BasePart") then
  1941. CHILD.Transparency = CHILD.Transparency + 1/50
  1942. elseif CHILD:IsA("Accessory") then
  1943. CHILD.Handle.Transparency = CHILD.Handle.Transparency + 1/50
  1944. end
  1945. end
  1946. end
  1947. for i = 1, 25 do
  1948. Swait()
  1949. CharacterFade(C3(.5,0,.5),12,R_RANDOM(Torso.CFrame,1.25).p)
  1950. end
  1951. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,12,0)) * ANGLES(RAD(0), RAD(RootPart.Orientation.Y), RAD(0))
  1952. for i = 1, 5 do
  1953. 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})
  1954. end
  1955. ApplyAoE(Torso.Position,15,12,22,150,false)
  1956. CreateSound(331666014,Torso,5,1,false)
  1957. for i = 1, 12 do
  1958. Swait()
  1959. CharacterFade(C3(.5,0,.5),12,R_RANDOM(Torso.CFrame,1.25).p)
  1960. end
  1961. for i = 1, 50 do
  1962. Swait()
  1963. CharacterFade(C3(.5,0,.5),12,R_RANDOM(Torso.CFrame,1.25).p)
  1964. for index, CHILD in pairs(Character:GetChildren()) do
  1965. if CHILD:IsA("BasePart") then
  1966. CHILD.Transparency = CHILD.Transparency - 1/50
  1967. elseif CHILD:IsA("Accessory") then
  1968. CHILD.Handle.Transparency = CHILD.Handle.Transparency - 1/50
  1969. end
  1970. end
  1971. end
  1972. UNANCHOR = true
  1973. ATTACK = false
  1974. Rooted = false
  1975. FADERS = true
  1976. end
  1977. end
  1978.  
  1979. function Neck_Snap()
  1980. ATTACK = true
  1981. Rooted = false
  1982. local TARGET, HUM, WLD
  1983. local HIT = RightArm.Touched:Connect(function(hit)
  1984. if hit.Parent ~= nil and hit.Parent:FindFirstChildOfClass("Humanoid") then
  1985. local H = hit.Parent:FindFirstChildOfClass("Humanoid")
  1986. if H.Health > 0 then
  1987. local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1988. if TORSO then
  1989. HUM = H
  1990. TARGET = TORSO
  1991. H.PlatformStand = true
  1992. CreateSound("260411131", TORSO, 10, 1)
  1993. WLD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, TORSO, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  1994. end
  1995. end
  1996. end
  1997. end)
  1998. for i = 0, 1, 0.1 / Animation_Speed do
  1999. Swait()
  2000. if TARGET ~= nil then
  2001. break
  2002. end
  2003. 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)
  2004. 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)
  2005. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.45, -0.3) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2006. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2007. if ANIM == "Idle" then
  2008. 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)
  2009. 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)
  2010. elseif ANIM == "Walk" then
  2011. 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)
  2012. 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)
  2013. elseif ANIM == "Jump" or ANIM == "Fall" then
  2014. 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)
  2015. 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)
  2016. end
  2017. end
  2018. HIT:disconnect()
  2019. if TARGET ~= nil then
  2020. if TARGET.Name == "Torso" then
  2021. for i = 0, 2, 0.1 / Animation_Speed do
  2022. Swait()
  2023. 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)
  2024. 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)
  2025. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(65), RAD(25), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2026. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2027. if ANIM == "Idle" then
  2028. 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)
  2029. 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)
  2030. elseif ANIM == "Walk" then
  2031. 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)
  2032. 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)
  2033. elseif ANIM == "Jump" or ANIM == "Fall" then
  2034. 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)
  2035. 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)
  2036. end
  2037. end
  2038. WLD:remove()
  2039. local HEAD = TARGET.Parent:FindFirstChild("Head")
  2040. if HEAD then
  2041. UNANCHOR = false
  2042. RootPart.Anchored = true
  2043. local HD = HEAD:Clone()
  2044. HD.Name = "FakeHead"
  2045. for i = 1, 7 do
  2046. 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)
  2047. end
  2048. local RAGDOLL, RAGTORSO = Ragdoll(TARGET.Parent, Torso, true, 0)
  2049. local RAGWELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RAGTORSO, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  2050. HD.Parent = RAGDOLL
  2051. CreateSound("264486467", RAGTORSO, 10, 1)
  2052. local HEADWELD = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, HD, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  2053. for i = 0, 2, 0.1 / Animation_Speed do
  2054. Swait()
  2055. 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)
  2056. 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)
  2057. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2058. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(150), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2059. if ANIM == "Idle" then
  2060. 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)
  2061. 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)
  2062. elseif ANIM == "Walk" then
  2063. 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)
  2064. 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)
  2065. elseif ANIM == "Jump" or ANIM == "Fall" then
  2066. 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)
  2067. 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)
  2068. end
  2069. end
  2070. HEADWELD:remove()
  2071. for i = 0, 0.5, 0.1 / Animation_Speed do
  2072. Swait()
  2073. 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)
  2074. 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)
  2075. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2076. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2077. if ANIM == "Idle" then
  2078. 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)
  2079. 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)
  2080. elseif ANIM == "Walk" then
  2081. 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)
  2082. 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)
  2083. elseif ANIM == "Jump" or ANIM == "Fall" then
  2084. 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)
  2085. 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)
  2086. end
  2087. end
  2088. CreateSound("907333406", Torso, 10, 1)
  2089. for i = 0, 0.25, 0.1 / Animation_Speed do
  2090. Swait()
  2091. 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)
  2092. 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)
  2093. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2094. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2095. if ANIM == "Idle" then
  2096. 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)
  2097. 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)
  2098. elseif ANIM == "Walk" then
  2099. 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)
  2100. 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)
  2101. elseif ANIM == "Jump" or ANIM == "Fall" then
  2102. 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)
  2103. 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)
  2104. end
  2105. end
  2106. RAGWELD:remove()
  2107. local bv = Instance.new("BodyVelocity")
  2108. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  2109. bv.velocity = CF(Torso.Position, RAGTORSO.Position).lookVector * 75
  2110. bv.Parent = RAGTORSO
  2111. Debris:AddItem(bv, 0.05)
  2112. Debris:AddItem(RAGDOLL, 5)
  2113. for i = 0, 0.15, 0.1 / Animation_Speed do
  2114. Swait()
  2115. 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)
  2116. 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)
  2117. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2118. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2119. if ANIM == "Idle" then
  2120. 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)
  2121. 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)
  2122. elseif ANIM == "Walk" then
  2123. 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)
  2124. 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)
  2125. elseif ANIM == "Jump" or ANIM == "Fall" then
  2126. 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)
  2127. 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)
  2128. end
  2129. end
  2130. UNANCHOR = true
  2131. RootPart.Anchored = false
  2132. end
  2133. else
  2134. UNANCHOR = false
  2135. RootPart.Anchored = true
  2136. for i = 0, 0.5, 0.1 / Animation_Speed do
  2137. Swait()
  2138. 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)
  2139. 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)
  2140. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2141. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2142. if ANIM == "Idle" then
  2143. 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)
  2144. 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)
  2145. elseif ANIM == "Walk" then
  2146. 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)
  2147. 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)
  2148. elseif ANIM == "Jump" or ANIM == "Fall" then
  2149. 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)
  2150. 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)
  2151. end
  2152. end
  2153. for i = 0, 0.25, 0.1 / Animation_Speed do
  2154. Swait()
  2155. 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)
  2156. 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)
  2157. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2158. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2159. if ANIM == "Idle" then
  2160. 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)
  2161. 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)
  2162. elseif ANIM == "Walk" then
  2163. 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)
  2164. 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)
  2165. elseif ANIM == "Jump" or ANIM == "Fall" then
  2166. 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)
  2167. 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)
  2168. end
  2169. end
  2170. WLD:remove()
  2171. TARGET.Parent:BreakJoints()
  2172. for _, c in pairs(TARGET.Parent:GetChildren()) do
  2173. if c:IsA("BasePart") then
  2174. local bv = Instance.new("BodyVelocity")
  2175. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  2176. bv.velocity = CF(Torso.Position, c.Position).lookVector * 75
  2177. bv.Parent = c
  2178. Debris:AddItem(bv, 0.05)
  2179. end
  2180. end
  2181. for i = 0, 0.15, 0.1 / Animation_Speed do
  2182. Swait()
  2183. 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)
  2184. 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)
  2185. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2186. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2187. if ANIM == "Idle" then
  2188. 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)
  2189. 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)
  2190. elseif ANIM == "Walk" then
  2191. 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)
  2192. 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)
  2193. elseif ANIM == "Jump" or ANIM == "Fall" then
  2194. 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)
  2195. 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)
  2196. end
  2197. end
  2198. UNANCHOR = true
  2199. RootPart.Anchored = false
  2200. end
  2201. end
  2202. ATTACK = false
  2203. Rooted = false
  2204. end
  2205.  
  2206. function Shot()
  2207. ATTACK = true
  2208. Rooted = false
  2209. for i=0, 0.05, 0.1 / Animation_Speed do
  2210. Swait()
  2211. turnto(Mouse.Hit.p)
  2212. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2213. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  2214. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2215. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2216. 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)
  2217. 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)
  2218. end
  2219. repeat
  2220. for i=0, 0.05, 0.1 / Animation_Speed do
  2221. Swait()
  2222. turnto(Mouse.Hit.p)
  2223. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2224. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  2225. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2226. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2227. 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)
  2228. 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)
  2229. end
  2230. local HIT,POS = CastProperRay(Hole2.Position, Mouse.Hit.p, 1000, Character)
  2231. SpawnTrail(Hole2.Position,POS)
  2232. if HIT ~= nil then
  2233. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  2234. Banish(HIT.Parent)
  2235. end
  2236. end
  2237. 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})
  2238. 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})
  2239. 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})
  2240. 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})
  2241. for i=0, 0.05, 0.1 / Animation_Speed do
  2242. Swait()
  2243. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2244. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  2245. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2246. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2247. 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)
  2248. 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)
  2249. end
  2250. until KEYHOLD == false
  2251. ATTACK = false
  2252. Rooted = false
  2253. end
  2254.  
  2255. function AttackTemplate()
  2256. ATTACK = true
  2257. Rooted = false
  2258. for i=0, 1, 0.1 / Animation_Speed do
  2259. Swait()
  2260. 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)
  2261. 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)
  2262. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(100), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2263. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2264. 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)
  2265. 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)
  2266. end
  2267. ATTACK = false
  2268. Rooted = false
  2269. end
  2270.  
  2271. function BulletRoller()
  2272. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2273. if HITFLOOR then
  2274. ATTACK = true
  2275. Rooted = true
  2276. local bv = Instance.new("BodyVelocity")
  2277. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2278. bv.velocity = CF(RootPart.Position,RootPart.CFrame*CF(0,1,-4).p).lookVector*175
  2279. bv.Parent = RootPart
  2280. local GYRO = IT("BodyGyro",RootPart)
  2281. GYRO.D = 2
  2282. GYRO.P = 20000
  2283. GYRO.MaxTorque = VT(0,4000000,0)
  2284. GYRO.CFrame = CF(RootPart.Position,RootPart.CFrame*CF(0,0,-5).p)
  2285. CreateSound(145486992,Torso,10,0.85,false)
  2286. for i=0, 0.05, 0.1 / Animation_Speed do
  2287. Swait()
  2288. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(65), RAD(0), RAD(-10)), 1 / Animation_Speed)
  2289. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(10)), 1 / Animation_Speed)
  2290. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(50), RAD(-20), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2291. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(20), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2292. if ANIM == "Fall" or ANIM == "Jump" then
  2293. 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)
  2294. 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)
  2295. else
  2296. 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)
  2297. 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)
  2298. end
  2299. end
  2300. bv:Remove()
  2301. local E = 360/15
  2302. for i = 1, 15 do
  2303. Swait()
  2304. 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})
  2305. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(i*E), RAD(0), RAD(0)), 2 / Animation_Speed)
  2306. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
  2307. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(5), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2308. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-5), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2309. 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)
  2310. 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)
  2311. end
  2312. Cooldown1 = true
  2313. local LANDED = nil
  2314. local POS = nil
  2315. coroutine.resume(coroutine.create(function()
  2316. repeat
  2317. Swait()
  2318. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  2319. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2320. 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)
  2321. 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)
  2322. 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)
  2323. 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)
  2324. until LANDED ~= nil
  2325. end))
  2326. repeat
  2327. Swait()
  2328. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4.2, Character)
  2329. if HITFLOOR then
  2330. LANDED = HITFLOOR
  2331. POS = HITPOS
  2332. end
  2333. until LANDED ~= nil
  2334. GYRO:remove()
  2335. Swait(4)
  2336. ManualAoE(RootPart.Position,10,20,50,0,false)
  2337. CreateSound(765590102, Torso, 2, (MRANDOM(8,12)/10)+0.3, false)
  2338. 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})
  2339. for i = 0, 4 do
  2340. 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})
  2341. end
  2342. for i=0, 0.5, 0.1 / Animation_Speed do
  2343. Swait()
  2344. 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)
  2345. 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)
  2346. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(179), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2347. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(179), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2348. 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)
  2349. 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)
  2350. end
  2351. local AMMO = 0
  2352. repeat
  2353. AMMO = AMMO + 1
  2354. for i=0, 0.1, 0.05 / Animation_Speed do
  2355. Swait()
  2356. turnto(Mouse.Hit.p)
  2357. 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)
  2358. 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)
  2359. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(179), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2360. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.4, 0.8, 0) * ANGLES(RAD(179), RAD(0), RAD(70)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2361. 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)
  2362. 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)
  2363. end
  2364. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  2365. SpawnTrail(Hole.Position,POS)
  2366. if HIT ~= nil then
  2367. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  2368. Banish(HIT.Parent)
  2369. end
  2370. end
  2371. 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})
  2372. 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})
  2373. 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})
  2374. 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})
  2375. Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30
  2376. for i=0, 0.075, 0.05 / Animation_Speed do
  2377. Swait()
  2378. 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)
  2379. 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)
  2380. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(190), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2381. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.4, 0.8, 0) * ANGLES(RAD(190), RAD(0), RAD(70)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2382. 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)
  2383. 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)
  2384. end
  2385. until AMMO == 5
  2386. ATTACK = false
  2387. Rooted = false
  2388. wait(0.3)
  2389. Cooldown1 = false
  2390. end
  2391. end
  2392.  
  2393. local Cooldown2 = false
  2394.  
  2395. function ManualAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  2396. local CHILDREN = workspace:GetDescendants()
  2397. for index, CHILD in pairs(CHILDREN) do
  2398. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2399. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2400. if HUM then
  2401. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2402. if TORSO then
  2403. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  2404. if INSTAKILL == true then
  2405. CHILD:BreakJoints()
  2406. else
  2407. local DMG = MRANDOM(MINDMG,MAXDMG)
  2408. ManualDamage(HUM,DMG,TORSO)
  2409. end
  2410. if FLING > 0 then
  2411. for _, c in pairs(CHILD:GetChildren()) do
  2412. if c:IsA("BasePart") then
  2413. local bv = Instance.new("BodyVelocity")
  2414. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2415. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  2416. bv.Parent = c
  2417. Debris:AddItem(bv,0.05)
  2418. end
  2419. end
  2420. end
  2421. end
  2422. end
  2423. end
  2424. end
  2425. end
  2426. end
  2427.  
  2428. function Extreme_Offset()
  2429. 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)
  2430. if HITFLOOR then
  2431. local ORIGINPOS = VT(RootPart.Position.X, HITPOS.Y + 8, RootPart.Position.Z)
  2432. CreateSound("1295446488", Torso, 5, 1)
  2433. for i = 1, 5 do
  2434. WACKYEFFECT({
  2435. Time = MRANDOM(15, 35),
  2436. EffectType = "Round Slash",
  2437. Size = VT(0, 0, 0),
  2438. Size2 = VT(0.3, 0, 0.3),
  2439. Transparency = 0.5,
  2440. Transparency2 = 1,
  2441. CFrame = CF(Torso.Position) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(-25, 25))),
  2442. MoveToPos = nil,
  2443. RotationX = MRANDOM(-50, 50) / 10,
  2444. RotationY = MRANDOM(-50, 50) / 10,
  2445. RotationZ = MRANDOM(-50, 50) / 10,
  2446. Material = "Neon",
  2447. Color = C3(.5,0,.5),
  2448. SoundID = nil,
  2449. SoundPitch = nil,
  2450. SoundVolume = nil
  2451. })
  2452. end
  2453. ATTACK = true
  2454. Rooted = true
  2455. UNANCHOR = false
  2456. RootPart.Anchored = true
  2457. RootPart.CFrame = CF(HITPOS + VT(0, 8, 0), ORIGINPOS) * ANGLES(RAD(0), RAD(180), RAD(0))
  2458. for i = 1, 5 do
  2459. WACKYEFFECT({
  2460. Time = MRANDOM(15, 35),
  2461. EffectType = "Round Slash",
  2462. Size = VT(0, 0, 0),
  2463. Size2 = VT(0.3, 0, 0.3),
  2464. Transparency = 0.5,
  2465. Transparency2 = 1,
  2466. CFrame = CF(Torso.Position) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(-25, 25))),
  2467. MoveToPos = nil,
  2468. RotationX = MRANDOM(-50, 50) / 10,
  2469. RotationY = MRANDOM(-50, 50) / 10,
  2470. RotationZ = MRANDOM(-50, 50) / 10,
  2471. Material = "Neon",
  2472. Color = C3(.5,0,.5),
  2473. SoundID = nil,
  2474. SoundPitch = nil,
  2475. SoundVolume = nil
  2476. })
  2477. end
  2478. for i = 0, 0.2, 0.1 / Animation_Speed do
  2479. Swait()
  2480. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(150)), 2 / Animation_Speed)
  2481. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2482. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2483. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2484. 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)
  2485. 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)
  2486. end
  2487. for i = 0, 1, 0.1 / Animation_Speed do
  2488. Swait()
  2489. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(300)), 0.02 / Animation_Speed)
  2490. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.02 / Animation_Speed)
  2491. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.02 / Animation_Speed)
  2492. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.02 / Animation_Speed)
  2493. 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)
  2494. 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)
  2495. end
  2496. for i = 1, 10 do
  2497. Swait()
  2498. RootPart.CFrame = RootPart.CFrame * CF(0, -0.4, 0)
  2499. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(300)), 1.7 / Animation_Speed)
  2500. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1.7 / Animation_Speed)
  2501. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 1.7 / Animation_Speed)
  2502. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.7 / Animation_Speed)
  2503. 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)
  2504. 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)
  2505. end
  2506. for i = 0, 0.2, 0.1 / Animation_Speed do
  2507. Swait()
  2508. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(90)), 1.5 / Animation_Speed)
  2509. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 1.5 / Animation_Speed)
  2510. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  2511. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.5 / Animation_Speed)
  2512. 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)
  2513. 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)
  2514. end
  2515. local HITFLOOR, HITPOS = Raycast(RightArm.Position, CF(RightArm.Position, RightArm.Position + VT(0, -1, 0)).lookVector, 8, Character)
  2516. if HITFLOOR then
  2517. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  2518. local CHILDREN = HITFLOOR.Parent:GetDescendants()
  2519. for index, CHILD in pairs(CHILDREN) do
  2520. if CHILD:IsA("BasePart") and CHILD.Parent:FindFirstChildOfClass("Humanoid") then
  2521. for i = 1, 5 do
  2522. CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, CHILD.Size / 2, 5, MRANDOM(15, 25))
  2523. CHILD:remove()
  2524. end
  2525. end
  2526. end
  2527. local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  2528. SOUNDPART.CFrame = CF(HITPOS)
  2529. Debris:AddItem(SOUNDPART, 5)
  2530. CreateSound("130972023", SOUNDPART, 6, 3)
  2531. CreateSound("182765513", SOUNDPART, 6, 1)
  2532. WACKYEFFECT({
  2533. EffectType = "Ring",
  2534. Size = VT(0, 0, 0),
  2535. Size2 = VT(1, 1, 0),
  2536. Transparency = 0.7,
  2537. Transparency2 = 1,
  2538. CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)),
  2539. MoveToPos = nil,
  2540. RotationX = 0,
  2541. RotationY = 0,
  2542. RotationZ = 0,
  2543. Material = "Neon",
  2544. Color = C3(.5,0,.5),
  2545. SoundID = nil,
  2546. SoundPitch = nil,
  2547. SoundVolume = nil
  2548. })
  2549. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  2550. local CHILDREN = HITFLOOR.Parent.Parent:GetDescendants()
  2551. for index, CHILD in pairs(CHILDREN) do
  2552. if CHILD:IsA("BasePart") and CHILD.Parent:FindFirstChildOfClass("Humanoid") then
  2553. for i = 1, 5 do
  2554. CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, CHILD.Size / 2, 5, MRANDOM(15, 25))
  2555. CHILD:remove()
  2556. end
  2557. end
  2558. end
  2559. local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  2560. SOUNDPART.CFrame = CF(HITPOS)
  2561. Debris:AddItem(SOUNDPART, 5)
  2562. CreateSound("130972023", SOUNDPART, 6, 3)
  2563. CreateSound("182765513", SOUNDPART, 6, 1)
  2564. WACKYEFFECT({
  2565. EffectType = "Ring",
  2566. Size = VT(0, 0, 0),
  2567. Size2 = VT(1, 1, 0),
  2568. Transparency = 0.7,
  2569. Transparency2 = 1,
  2570. CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)),
  2571. MoveToPos = nil,
  2572. RotationX = 0,
  2573. RotationY = 0,
  2574. RotationZ = 0,
  2575. Material = "Neon",
  2576. Color = C3(.5,0,.5),
  2577. SoundID = nil,
  2578. SoundPitch = nil,
  2579. SoundVolume = nil
  2580. })
  2581. elseif HITFLOOR.Anchored == false then
  2582. if HITFLOOR.Parent ~= workspace then
  2583. local CHILDREN = HITFLOOR.Parent:GetDescendants()
  2584. for index, CHILD in pairs(CHILDREN) do
  2585. if CHILD:IsA("BasePart") and CHILD.Position.Y < HITPOS.Y then
  2586. for i = 1, 5 do
  2587. CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, CHILD.Size / 3, 5, MRANDOM(15, 25))
  2588. end
  2589. CHILD:remove()
  2590. end
  2591. end
  2592. else
  2593. for i = 1, 5 do
  2594. CreateFlyingDebree(HITFLOOR, CF(HITFLOOR.Position), 1, HITFLOOR.Size / 3, 5, MRANDOM(15, 25))
  2595. end
  2596. HITFLOOR:remove()
  2597. end
  2598. local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  2599. SOUNDPART.CFrame = CF(HITPOS)
  2600. Debris:AddItem(SOUNDPART, 5)
  2601. CreateSound("130972023", SOUNDPART, 10, 3)
  2602. CreateSound("178452217", SOUNDPART, 6, 1)
  2603. WACKYEFFECT({
  2604. EffectType = "Ring",
  2605. Size = VT(0, 0, 0),
  2606. Size2 = VT(1, 1, 0),
  2607. Transparency = 0.7,
  2608. Transparency2 = 1,
  2609. CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)),
  2610. MoveToPos = nil,
  2611. RotationX = 0,
  2612. RotationY = 0,
  2613. RotationZ = 0,
  2614. Material = "Neon",
  2615. Color = C3(.5,0,.5),
  2616. SoundID = nil,
  2617. SoundPitch = nil,
  2618. SoundVolume = nil
  2619. })
  2620. else
  2621. local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  2622. SOUNDPART.CFrame = CF(HITPOS)
  2623. Debris:AddItem(SOUNDPART, 5)
  2624. CreateSound("130972023", SOUNDPART, 10, 1)
  2625. CreateSound("130972023", SOUNDPART, 6, 0.7)
  2626. CreateDebreeRing(HITFLOOR, HITPOS, 5, VT(5, 5, 5), 5)
  2627. CreateDebreeRing(HITFLOOR, HITPOS, 8, VT(8, 8, 8), 5)
  2628. ApplyAoE(HITPOS, 15, 45, 75, 75, false)
  2629. ApplyAoE(HITPOS, 25, 25, 35, 35, false)
  2630. for i = 1, 5 do
  2631. CreateFlyingDebree(HITFLOOR, CF(HITPOS), 1, VT(MRANDOM(10, 30) / 10, MRANDOM(10, 30) / 10, MRANDOM(10, 30) / 10), 5, MRANDOM(75, 150))
  2632. end
  2633. for i = 1, 5 do
  2634. CreateFlyingDebree(HITFLOOR, CF(HITPOS), 1, VT(MRANDOM(10, 30) / 2, MRANDOM(10, 30) / 2, MRANDOM(10, 30) / 2), 5, MRANDOM(75, 150))
  2635. end
  2636. end
  2637. end
  2638. for i = 0, 1.2, 0.1 / Animation_Speed do
  2639. Swait()
  2640. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(90)), 1.5 / Animation_Speed)
  2641. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 1.5 / Animation_Speed)
  2642. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  2643. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.5 / Animation_Speed)
  2644. 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)
  2645. 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)
  2646. end
  2647. ATTACK = false
  2648. Rooted = false
  2649. UNANCHOR = true
  2650. RootPart.Anchored = false
  2651. end
  2652. end
  2653.  
  2654. function CreateDebreeRing(FLOOR, POSITION, SIZE, BLOCKSIZE, SWAIT)
  2655. if FLOOR ~= nil then
  2656. coroutine.resume(coroutine.create(function()
  2657. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0, 0, 0))
  2658. PART.CFrame = CF(POSITION)
  2659. for i = 1, 45 do
  2660. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  2661. RingPiece.Material = FLOOR.Material
  2662. RingPiece.Color = FLOOR.Color
  2663. 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)))
  2664. Debris:AddItem(RingPiece, SWAIT)
  2665. end
  2666. PART:remove()
  2667. end))
  2668. end
  2669. end
  2670. function CreateFlyingDebree(FLOOR, POSITION, AMOUNT, BLOCKSIZE, SWAIT, STRENGTH)
  2671. if FLOOR ~= nil then
  2672. for i = 1, AMOUNT do
  2673. do
  2674. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  2675. DEBREE.Material = FLOOR.Material
  2676. DEBREE.Color = FLOOR.Color
  2677. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)))
  2678. DEBREE.Velocity = VT(MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH))
  2679. coroutine.resume(coroutine.create(function()
  2680. Swait(15)
  2681. DEBREE.Parent = workspace
  2682. DEBREE.CanCollide = true
  2683. Debris:AddItem(DEBREE, SWAIT)
  2684. end))
  2685. end
  2686. end
  2687. end
  2688. end
  2689.  
  2690. function RiftForm()
  2691. ATTACK = true
  2692. Rooted = false
  2693. UNANCHOR = false
  2694. RootPart.Anchored = true
  2695. for i=0, 5, 0.1 / Animation_Speed do
  2696. Swait()
  2697. RootPart.CFrame = RootPart.CFrame * CF(0,0.2,0)
  2698. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2699. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 2 / Animation_Speed)
  2700. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2701. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2702. 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)
  2703. 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)
  2704. end
  2705. CreateSound("1368598393", Effects, 10, 1)
  2706. for i=0, 2, 0.1 / Animation_Speed do
  2707. Swait()
  2708. local CFRAME = CF(Torso.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  2709. MagicSphere3(VT(0,0,0),15,CFRAME,"Royal purple",VT(0.1,0.1,5))
  2710. MagicSphere3(VT(0.1,0.1,0.1),15,CFRAME,"Royal purple",VT(0.1,0.1,5))
  2711. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2712. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 2 / Animation_Speed)
  2713. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-75)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2714. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(75)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2715. 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)
  2716. 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)
  2717. end
  2718. CreateSound("1368583274", Effects, 10, 1)
  2719. for i=0, 6, 0.1 / Animation_Speed do
  2720. Swait()
  2721. 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))
  2722. 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)
  2723. local CFRAME = CF(Torso.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  2724. MagicSphere3(VT(0,0,0),15,CFRAME,"Royal purple",VT(0.1,0.1,55))
  2725. MagicSphere3(VT(0,0,0),15,CFRAME,"Royal purple",VT(2,2,2))
  2726. MagicSphere3(VT(0.1,0.1,0.1),15,CFRAME,"Royal Purple",VT(0.1,0.1,55))
  2727. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2728. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 2 / Animation_Speed)
  2729. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-75)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2730. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(75)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2731. 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)
  2732. 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)
  2733. end
  2734. CreateSound("907329532", Effects, 10, 0.9)
  2735. Swait(175)
  2736. CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Royal purple",VT(7,7,0))
  2737. CreateSound("1368605755", Effects, 10, 1)
  2738. CreateSound("1368637781", Effects, 10, 1)
  2739. MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Royal purple",VT(5,5,5))
  2740. for i=0, 1, 0.1 / Animation_Speed do
  2741. CreateRing2(VT(0,0,0),false,0,45,Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Royal purple",VT(4,4,0))
  2742. CreateRing2(VT(0,0,0),false,0,45,Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Royal purple",VT(5,5,0))
  2743. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2744. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 2 / Animation_Speed)
  2745. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-60), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2746. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2747. 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)
  2748. 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)
  2749. end
  2750. UNANCHOR = true
  2751. RootPart.Anchored = false
  2752. ATTACK = false
  2753. Rooted = false
  2754. end
  2755.  
  2756. function CreateRing2(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  2757. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  2758. local mesh = IT("SpecialMesh",wave)
  2759. mesh.MeshType = "FileMesh"
  2760. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2761. mesh.Scale = SIZE
  2762. mesh.Offset = VT(0,0,0)
  2763. wave.CFrame = CFRAME
  2764. coroutine.resume(coroutine.create(function(PART)
  2765. for i = 1, WAIT do
  2766. Swait()
  2767. mesh.Scale = mesh.Scale + GROW
  2768. if DOESROT == true then
  2769. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  2770. end
  2771. wave.Transparency = wave.Transparency + (0.5/WAIT)
  2772. if wave.Transparency > 0.99 then
  2773. wave:remove()
  2774. end
  2775. end
  2776. end))
  2777. end
  2778.  
  2779. function MagicSphere3(SIZE,WAIT,CFRAME,COLOR,GROW)
  2780. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  2781. local mesh = IT("SpecialMesh",wave)
  2782. mesh.MeshType = "Sphere"
  2783. mesh.Scale = SIZE
  2784. mesh.Offset = VT(0,0,0)
  2785. wave.CFrame = CFRAME
  2786. coroutine.resume(coroutine.create(function(PART)
  2787. for i = 1, WAIT do
  2788. Swait()
  2789. mesh.Scale = mesh.Scale + GROW
  2790. wave.Transparency = wave.Transparency + (1/WAIT)
  2791. if wave.Transparency > 0.99 then
  2792. wave:remove()
  2793. end
  2794. end
  2795. end))
  2796. end
  2797.  
  2798. local lightning = Instance.new("ParticleEmitter",Torso)
  2799. lightning.Texture = "http://www.roblox.com/asset/?id=348321827"
  2800. lightning.LightEmission = 0
  2801. lightning.Color = ColorSequence.new(Color3.new(5,0,.5),Color3.new(0,0,0))
  2802. lightning.LockedToPart = true
  2803. lightning.Rate = 20
  2804. lightning.Lifetime = NumberRange.new(0.1,0.10)
  2805. lightning.Rotation = NumberRange.new(0,360)
  2806. lightning.Size = NumberSequence.new(3,3,3)
  2807. lightning.Transparency = NumberSequence.new(0,0)
  2808. lightning.Speed = NumberRange.new(0,0)
  2809. lightning.RotSpeed = NumberRange.new(0,0)
  2810. lightning.ZOffset = 5
  2811. lightning.Parent = Character.Torso
  2812. lightning.Enabled = false
  2813.  
  2814. Player=game:GetService('Players').LocalPlayer
  2815. Character=Player.Character
  2816. Mouse=Player:GetMouse()
  2817. m=Instance.new('Model',Character)
  2818. local function weldBetween(a, b)
  2819. local weldd = Instance.new("ManualWeld")
  2820. weldd.Part0 = a
  2821. weldd.Part1 = b
  2822. weldd.C0 = CFrame.new()
  2823. weldd.C1 = b.CFrame:inverse() * a.CFrame
  2824. weldd.Parent = a
  2825. return weldd
  2826. end
  2827.  
  2828. it=Instance.new
  2829.  
  2830. function nooutline(part)
  2831. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  2832. end
  2833.  
  2834. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  2835. local fp=it("Part")
  2836. fp.formFactor=formfactor
  2837. fp.Parent=parent
  2838. fp.Reflectance=reflectance
  2839. fp.Transparency=transparency
  2840. fp.CanCollide=false
  2841. fp.Locked=true
  2842. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  2843. fp.Name=name
  2844. fp.Size=size
  2845. fp.Position=Character.Torso.Position
  2846. nooutline(fp)
  2847. fp.Material=material
  2848. fp:BreakJoints()
  2849. return fp
  2850. end
  2851.  
  2852. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  2853. local mesh=it(Mesh)
  2854. mesh.Parent=part
  2855. if Mesh=="SpecialMesh" then
  2856. mesh.MeshType=meshtype
  2857. mesh.MeshId=meshid
  2858. end
  2859. mesh.Offset=offset
  2860. mesh.Scale=scale
  2861. return mesh
  2862. end
  2863.  
  2864. function weld(parent,part0,part1,c0,c1)
  2865. local weld=it("Weld")
  2866. weld.Parent=parent
  2867. weld.Part0=part0
  2868. weld.Part1=part1
  2869. weld.C0=c0
  2870. weld.C1=c1
  2871. return weld
  2872. end
  2873.  
  2874. local eeeffecto = Instance.new("ParticleEmitter",Torso)
  2875. eeeffecto.Texture = "http://www.roblox.com/asset/?id=305943367"
  2876. eeeffecto.LightEmission = 0
  2877. eeeffecto.Color = ColorSequence.new(Color3.new(5,0,.5),Color3.new(0,0,0))
  2878. eeeffecto.LockedToPart = true
  2879. eeeffecto.Rate = 10
  2880. eeeffecto.Lifetime = NumberRange.new(0.1,0.1)
  2881. eeeffecto.Rotation = NumberRange.new(0,0)
  2882. eeeffecto.Size = NumberSequence.new(9,9,9)
  2883. eeeffecto.Transparency = NumberSequence.new(0,0)
  2884. eeeffecto.Speed = NumberRange.new(0,0)
  2885. eeeffecto.RotSpeed = NumberRange.new(0,0)
  2886. eeeffecto.Parent = Character.Torso
  2887. eeeffecto.Enabled = false
  2888.  
  2889. --//=================================\\
  2890. --|| ASSIGN THINGS TO KEYS
  2891. --\\=================================//
  2892.  
  2893. function MouseDown(Mouse)
  2894. if ATTACK == false then
  2895. end
  2896. end
  2897.  
  2898. function MouseUp(Mouse)
  2899. HOLD = false
  2900. end
  2901.  
  2902. function KeyDown(Key)
  2903. KEYHOLD = true
  2904. if Key == "l" and ATTACK == false then
  2905. RiftForm()
  2906. lightning.Enabled = true
  2907. eeeffecto.Enabled = true
  2908. SKILL4TEXT:remove()
  2909. SKILL3TEXT:remove()
  2910. SKILL2TEXT:remove()
  2911. SKILL1TEXT:remove()
  2912.  
  2913. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 1")
  2914. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2")
  2915. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3")
  2916. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4")
  2917. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[E]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 5")
  2918. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[X]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 6")
  2919. RiftWorld()
  2920. s:stop()
  2921. local s = Instance.new("Sound",char)
  2922. s.Name = "BGMusic"
  2923. s.SoundId = "rbxassetid://1275083876"
  2924. s.Pitch = 1
  2925. s.Volume = 40
  2926. s.Looped = true
  2927. s.archivable = false
  2928. s.Parent = char.Head
  2929. wait(0.1)
  2930. s:play()
  2931. end
  2932.  
  2933. if Key == "z" and ATTACK == false then
  2934. Shot()
  2935. end
  2936.  
  2937. if Key == "x" and ATTACK == false then
  2938. Neck_Snap()
  2939. end
  2940.  
  2941. if Key == "c" and ATTACK == false then
  2942. ShadowCloak()
  2943. end
  2944.  
  2945. if Key == "v" and ATTACK == false then
  2946. BulletRoller()
  2947. end
  2948.  
  2949. if Key == "b" and ATTACK == false then
  2950. Extreme_Offset()
  2951. end
  2952. end
  2953.  
  2954. function KeyUp(Key)
  2955. KEYHOLD = false
  2956. end
  2957.  
  2958. Mouse.Button1Down:connect(function(NEWKEY)
  2959. MouseDown(NEWKEY)
  2960. end)
  2961. Mouse.Button1Up:connect(function(NEWKEY)
  2962. MouseUp(NEWKEY)
  2963. end)
  2964. Mouse.KeyDown:connect(function(NEWKEY)
  2965. KeyDown(NEWKEY)
  2966. end)
  2967. Mouse.KeyUp:connect(function(NEWKEY)
  2968. KeyUp(NEWKEY)
  2969. end)
  2970.  
  2971. --//=================================\\
  2972. --\\=================================//
  2973.  
  2974.  
  2975. function unanchor()
  2976. if UNANCHOR == true then
  2977. g = Character:GetChildren()
  2978. for i = 1, #g do
  2979. if g[i].ClassName == "Part" then
  2980. g[i].Anchored = false
  2981. end
  2982. end
  2983. end
  2984. end
  2985.  
  2986.  
  2987. --//=================================\\
  2988. --|| WRAP THE WHOLE SCRIPT UP
  2989. --\\=================================//
  2990.  
  2991. Humanoid.Changed:connect(function(Jump)
  2992. if Jump == "Jump" and (Disable_Jump == true) then
  2993. Humanoid.Jump = false
  2994. end
  2995. end)
  2996.  
  2997. local CONNECT = nil
  2998.  
  2999. while true do
  3000. Swait()
  3001. ANIMATE.Parent = nil
  3002. if Character:FindFirstChildOfClass("Humanoid") == nil then
  3003. Humanoid = IT("Humanoid",Character)
  3004. end
  3005. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  3006. v:Stop();
  3007. end
  3008. SINE = SINE + CHANGE
  3009. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  3010. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  3011. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  3012. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  3013. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  3014. 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)
  3015. 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)
  3016. 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)
  3017. 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)
  3018. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  3019. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3020. 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)
  3021. 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)
  3022. 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)
  3023. end
  3024. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  3025. ANIM = "Jump"
  3026. if ATTACK == false then
  3027. 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)
  3028. 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)
  3029. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3030. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  3031. 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)
  3032. 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)
  3033. end
  3034. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  3035. ANIM = "Fall"
  3036. if ATTACK == false then
  3037. 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)
  3038. 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)
  3039. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3040. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  3041. 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)
  3042. 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)
  3043. end
  3044. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  3045. ANIM = "Idle"
  3046. if ATTACK == false then
  3047. 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)
  3048. 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)
  3049. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3050. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  3051. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  3052. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  3053. end
  3054. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  3055. ANIM = "Walk"
  3056. if ATTACK == false then
  3057. 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)
  3058. 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)
  3059. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3060. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  3061. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  3062. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  3063. end
  3064. end
  3065. unanchor()
  3066. Humanoid.MaxHealth = "inf"
  3067. Humanoid.Health = "inf"
  3068. if Rooted == false then
  3069. Disable_Jump = false
  3070. Humanoid.WalkSpeed = Speed
  3071. elseif Rooted == true then
  3072. Disable_Jump = true
  3073. Humanoid.WalkSpeed = 0
  3074. end
  3075. sick.Parent = Torso
  3076. sick:resume()
  3077. sick.Volume = 5
  3078. sick.Pitch = 1.2
  3079. sick.SoundId = "rbxassetid://1470848774"
  3080. sick.Name = "BanishV3Music"
  3081. end
  3082.  
  3083. --//=================================\\
  3084. --\\=================================//
  3085.  
  3086.  
  3087.  
  3088.  
  3089.  
  3090. --//====================================================\\--
  3091. --|| END OF SCRIPT
  3092. --\\====================================================//--
Add Comment
Please, Sign In to add comment