Advertisement
Hermaxs

Universal Sin

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