Advertisement
Christoffer07700Extr

kick thing

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