kaualima12

Sin script no leak pls

Sep 8th, 2019
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 103.99 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
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86. local h,t
  87. --Give the server mouse data every second frame, but only if the values changed
  88. --If player is not moving their mouse, client won't fire events
  89. local HB = game:GetService("RunService").Heartbeat
  90. while true do
  91. if h~=Mouse.Hit or t~=Mouse.Target then
  92. h,t=Mouse.Hit,Mouse.Target
  93. Event:FireServer({isMouse=true,Target=t,Hit=h})
  94. end
  95. --Wait 2 frames
  96. for i=1,2 do
  97. HB:Wait()
  98. end
  99. end]==],script)
  100.  
  101. ----Sandboxed game object that allows the usage of client-side methods and services
  102. --Real game object
  103. local RealGame = game
  104.  
  105. --Metatable for fake service
  106. local FakeService_Metatable = {
  107. __index = function(self,k)
  108. local s = rawget(self,"_RealService")
  109. if s then
  110. return typeof(s[k])=="function"
  111. and function(_,...)return s[k](s,...)end or s[k]
  112. end
  113. end,
  114. __newindex = function(self,k,v)
  115. local s = rawget(self,"_RealService")
  116. if s then s[k]=v end
  117. end
  118. }
  119. local function FakeService(t,RealService)
  120. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  121. return setmetatable(t,FakeService_Metatable)
  122. end
  123.  
  124. --Fake game object
  125. local FakeGame = {
  126. GetService = function(self,s)
  127. return rawget(self,s) or RealGame:GetService(s)
  128. end,
  129. Players = FakeService({
  130. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  131. },"Players"),
  132. UserInputService = FakeService(UIS,"UserInputService"),
  133. ContextActionService = FakeService(CAS,"ContextActionService"),
  134. RunService = FakeService({
  135. _btrs = {},
  136. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  137. BindToRenderStep = function(self,name,_,fun)
  138. self._btrs[name] = self.Heartbeat:Connect(fun)
  139. end,
  140. UnbindFromRenderStep = function(self,name)
  141. self._btrs[name]:Disconnect()
  142. end,
  143. },"RunService")
  144. }
  145. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  146. FakeGame.service = FakeGame.GetService
  147. FakeService(FakeGame,game)
  148. --Changing owner to fake player object to support owner:GetMouse()
  149. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  150. end
  151. --//====================================================\\--
  152. --|| CREATED BY SHACKLUSTER
  153. --\\====================================================//--
  154.  
  155.  
  156.  
  157. wait(0.2)
  158.  
  159.  
  160.  
  161.  
  162.  
  163. CV="Magenta"
  164. p = game.Players.LocalPlayer
  165. Render = game:service'RunService'.RenderStepped
  166. char = p.Character
  167. local txt = Instance.new("BillboardGui", char)
  168. txt.Adornee = char .Head
  169. txt.Name = "_status"
  170. txt.Size = UDim2.new(2, 0, 1.2, 0)
  171. txt.StudsOffset = Vector3.new(-9, 8, 0)
  172. local text = Instance.new("TextLabel", txt)
  173. text.Size = UDim2.new(10, 0, 7, 0)
  174. text.FontSize = "Size24"
  175. text.TextScaled = true
  176. text.TextTransparency = 0
  177. text.BackgroundTransparency = 1
  178. text.TextTransparency = 0
  179. text.TextStrokeTransparency = 0
  180. text.Font = "Bodoni"
  181.  
  182. v=Instance.new("Part")
  183. v.Name = "ColorBrick"
  184. v.Parent=p.Character
  185. v.FormFactor="Symmetric"
  186. v.Anchored=true
  187. v.CanCollide=false
  188. v.BottomSurface="Smooth"
  189. v.TopSurface="Smooth"
  190. v.Size=Vector3.new(10,5,3)
  191. v.Transparency=1
  192. v.CFrame=char.Torso.CFrame
  193. v.BrickColor=BrickColor.new(CV)
  194. v.Transparency=1
  195. text.TextColor3 = Color3.new(170,0,170)
  196. v.Shape="Block"
  197. text.Text = "Sin"
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205. Player = game:GetService("Players").LocalPlayer
  206. PlayerGui = Player.PlayerGui
  207. Cam = workspace.CurrentCamera
  208. Backpack = Player.Backpack
  209. Character = Player.Character
  210. Humanoid = Character.Humanoid
  211. Mouse = Player:GetMouse()
  212. RootPart = Character["HumanoidRootPart"]
  213. Torso = Character["Torso"]
  214. Head = Character["Head"]
  215. RightArm = Character["Right Arm"]
  216. LeftArm = Character["Left Arm"]
  217. RightLeg = Character["Right Leg"]
  218. LeftLeg = Character["Left Leg"]
  219. RootJoint = RootPart["RootJoint"]
  220. Neck = Torso["Neck"]
  221. RightShoulder = Torso["Right Shoulder"]
  222. LeftShoulder = Torso["Left Shoulder"]
  223. RightHip = Torso["Right Hip"]
  224. LeftHip = Torso["Left Hip"]
  225. local sick = Instance.new("Sound",Character)
  226. sick.SoundId = "rbxassetid://165498643"
  227. sick.Looped = true
  228. sick.Pitch = 1
  229. sick.Volume = 3
  230. sick:Play()
  231. Humanoid.DisplayDistanceType = "None"
  232.  
  233. IT = Instance.new
  234. CF = CFrame.new
  235. VT = Vector3.new
  236. RAD = math.rad
  237. C3 = Color3.new
  238. UD2 = UDim2.new
  239. BRICKC = BrickColor.new
  240. ANGLES = CFrame.Angles
  241. EULER = CFrame.fromEulerAnglesXYZ
  242. COS = math.cos
  243. ACOS = math.acos
  244. SIN = math.sin
  245. ASIN = math.asin
  246. ABS = math.abs
  247. MRANDOM = math.random
  248. FLOOR = math.floor
  249.  
  250. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  251. local NEWMESH = IT(MESH)
  252. if MESH == "SpecialMesh" then
  253. NEWMESH.MeshType = MESHTYPE
  254. if MESHID ~= "nil" and MESHID ~= "" then
  255. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  256. end
  257. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  258. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  259. end
  260. end
  261. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  262. NEWMESH.Scale = SCALE
  263. NEWMESH.Parent = PARENT
  264. return NEWMESH
  265. end
  266.  
  267. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  268. local NEWPART = IT("Part")
  269. NEWPART.formFactor = FORMFACTOR
  270. NEWPART.Reflectance = REFLECTANCE
  271. NEWPART.Transparency = TRANSPARENCY
  272. NEWPART.CanCollide = false
  273. NEWPART.Anchored = true
  274. NEWPART.Locked = true
  275. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  276. NEWPART.Name = NAME
  277. NEWPART.Size = SIZE
  278. NEWPART.Position = Torso.Position
  279. NEWPART.Material = MATERIAL
  280. NEWPART:BreakJoints()
  281. NEWPART.Parent = PARENT
  282. return NEWPART
  283. end
  284.  
  285.  
  286. --//=================================\\
  287. --|| CUSTOMIZATION
  288. --\\=================================//
  289.  
  290. Class_Name = "Sin"
  291. Weapon_Name = "Add-ons"
  292.  
  293. Custom_Colors = {
  294. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  295. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  296.  
  297. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  298. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  299. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  300. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  301. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  302.  
  303. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  304. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  305. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  306. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  307. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  308. }
  309.  
  310.  
  311. Player_Size = 1.15 --Size of the player.
  312. Animation_Speed = 1.2
  313. Attack_Animation_Speed = 2.5
  314. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  315.  
  316. local Speed = 45
  317. local Effects2 = {}
  318.  
  319. --//=================================\\
  320. --|| END OF CUSTOMIZATION
  321. --\\=================================//
  322.  
  323. local function weldBetween(a, b)
  324. local weldd = Instance.new("ManualWeld")
  325. weldd.Part0 = a
  326. weldd.Part1 = b
  327. weldd.C0 = CFrame.new()
  328. weldd.C1 = b.CFrame:inverse() * a.CFrame
  329. weldd.Parent = a
  330. return weldd
  331. end
  332.  
  333. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  334. local acs = Instance.new("Part")
  335. acs.CanCollide = false
  336. acs.Anchored = false
  337. acs.Size = Vector3.new(0,0,0)
  338. acs.CFrame = attachmentpart.CFrame
  339. acs.Parent = Character
  340. acs.BrickColor = color
  341. local meshs = Instance.new("SpecialMesh")
  342. meshs.MeshId = mesh
  343. meshs.TextureId = texture
  344. meshs.Parent = acs
  345. meshs.Scale = scale
  346. meshs.Offset = offset
  347. weldBetween(attachmentpart,acs)
  348. end
  349.  
  350. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  351. if TYPE == "Gem" then
  352. local acs = CreatePart(3, PART, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  353. acs.Anchored = false
  354. acs.CanCollide = false
  355. acs.CFrame = PART.CFrame
  356. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  357. weldBetween(PART,acs)
  358. elseif TYPE == "Skull" then
  359. local acs = CreatePart(3, PART, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  360. acs.Anchored = false
  361. acs.CanCollide = false
  362. acs.CFrame = PART.CFrame
  363. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  364. weldBetween(PART,acs)
  365. elseif TYPE == "Eye" then
  366. local acs = CreatePart(3, PART, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  367. acs.Anchored = false
  368. acs.CanCollide = false
  369. acs.CFrame = PART.CFrame
  370. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  371. weldBetween(PART,acs)
  372. end
  373. end
  374.  
  375. --//=================================\\
  376. --|| USEFUL VALUES
  377. --\\=================================//
  378.  
  379. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  380. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  381. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  382. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  383. local CO1 = 0
  384. local CO2 = 0
  385. local CO3 = 0
  386. local CO4 = 0
  387. local CHANGEDEFENSE = 0
  388. local CHANGEDAMAGE = 1e999
  389. local CHANGEMOVEMENT = 0
  390. local ANIM = "Idle"
  391. local ATTACK = false
  392. local EQUIPPED = false
  393. local HOLD = false
  394. local COMBO = 1
  395. local LASTPOINT = nil
  396. local BLCF = nil
  397. local SCFR = nil
  398. local STAGGERHITANIM = false
  399. local STAGGERANIM = false
  400. local STUNANIM = false
  401. local CRITCHANCENUMBER = 1e999
  402. local IDLENUMBER = 0
  403. local DONUMBER = 0
  404. local HANDIDLE = false
  405. local SINE = 0
  406. local CHANGE = 2 / Animation_Speed
  407. local WALKINGANIM = false
  408. local WALK = 0
  409. local DISABLEJUMPING = false
  410. local HASBEENBLOCKED = false
  411. local STUNDELAYNUMBER = 0
  412. local MANADELAYNUMBER = 0
  413. local HASJUMPED = false
  414. local punch = 1
  415. local KEYHOLD = false
  416. local SECONDARYMANADELAYNUMBER = 0
  417. local ROBLOXIDLEANIMATION = IT("Animation")
  418. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  419. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  420. --ROBLOXIDLEANIMATION.Parent = Humanoid
  421. local WEAPONGUI = IT("ScreenGui", nil)
  422. WEAPONGUI.Name = "Weapon GUI"
  423. local WEAPONTOOL = IT("HopperBin", nil)
  424. WEAPONTOOL.Name = Weapon_Name
  425. local Weapon = IT("Model")
  426. Weapon.Name = Weapon_Name
  427. local Effects = IT("Folder", Weapon)
  428. Effects.Name = "Effects"
  429. local ANIMATOR = Humanoid.Animator
  430. local ANIMATE = Character.Animate
  431. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  432. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  433. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  434. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  435. local ATTACKSOUNDS = {"159972643","159972627"}
  436. local UNANCHOR = true
  437.  
  438. --//=================================\\
  439. --\\=================================//
  440.  
  441. --//=================================\\
  442. --|| STATS
  443. --\\=================================//
  444.  
  445. if Character:FindFirstChild("Stats") ~= nil then
  446. Character:FindFirstChild("Stats").Parent = nil
  447. end
  448.  
  449. local Stats = IT("Folder", nil)
  450. Stats.Name = "Stats"
  451. local ChangeStat = IT("Folder", Stats)
  452. ChangeStat.Name = "ChangeStat"
  453. local Defense = IT("NumberValue", Stats)
  454. Defense.Name = "Defense"
  455. Defense.Value = 1e999
  456. local Movement = IT("NumberValue", Stats)
  457. Movement.Name = "Movement"
  458. Movement.Value = 1
  459. local Damage = IT("NumberValue", Stats)
  460. Damage.Name = "Damage"
  461. Damage.Value = 1e999
  462. local Mana = IT("NumberValue", Stats)
  463. Mana.Name = "Mana"
  464. Mana.Value = 0
  465. local SecondaryMana = IT("NumberValue", Stats)
  466. SecondaryMana.Name = "SecondaryMana"
  467. SecondaryMana.Value = 0
  468. local CanCrit = IT("BoolValue", Stats)
  469. CanCrit.Name = "CanCrit"
  470. CanCrit.Value = false
  471. local CritChance = IT("NumberValue", Stats)
  472. CritChance.Name = "CritChance"
  473. CritChance.Value = 20
  474. local CanPenetrateArmor = IT("BoolValue", Stats)
  475. CanPenetrateArmor.Name = "CanPenetrateArmor"
  476. CanPenetrateArmor.Value = false
  477. local AntiTeamKill = IT("BoolValue", Stats)
  478. AntiTeamKill.Name = "AntiTeamKill"
  479. AntiTeamKill.Value = false
  480. local Rooted = IT("BoolValue", Stats)
  481. Rooted.Name = "Rooted"
  482. Rooted.Value = false
  483. local Block = IT("BoolValue", Stats)
  484. Block.Name = "Block"
  485. Block.Value = false
  486. local RecentEnemy = IT("ObjectValue", Stats)
  487. RecentEnemy.Name = "RecentEnemy"
  488. RecentEnemy.Value = nil
  489. local StaggerHit = IT("BoolValue", Stats)
  490. StaggerHit.Name = "StaggerHit"
  491. StaggerHit.Value = false
  492. local Stagger = IT("BoolValue", Stats)
  493. Stagger.Name = "Stagger"
  494. Stagger.Value = false
  495. local Stun = IT("BoolValue", Stats)
  496. Stun.Name = "Stun"
  497. Stun.Value = false
  498. local StunValue = IT("NumberValue", Stats)
  499. StunValue.Name = "StunValue"
  500. StunValue.Value = 0
  501.  
  502.  
  503. --//=================================\\
  504. --\\=================================//
  505.  
  506.  
  507.  
  508.  
  509.  
  510. --//=================================\\
  511. --|| DEBUFFS / BUFFS
  512. --\\=================================//
  513.  
  514. local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
  515. DEFENSECHANGE1.Name = "ChangeDefense"
  516. DEFENSECHANGE1.Value = 0
  517.  
  518. local MOVEMENTCHANGE1 = IT("NumberValue", nil)
  519. MOVEMENTCHANGE1.Name = "ChangeMovement"
  520. MOVEMENTCHANGE1.Value = 0
  521.  
  522. --//=================================\\
  523. --\\=================================//
  524.  
  525.  
  526.  
  527.  
  528.  
  529. --//=================================\\
  530. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  531. --\\=================================//
  532.  
  533. ArtificialHB = Instance.new("BindableEvent", script)
  534. ArtificialHB.Name = "ArtificialHB"
  535.  
  536. script:WaitForChild("ArtificialHB")
  537.  
  538. frame = Frame_Speed
  539. tf = 0
  540. allowframeloss = false
  541. tossremainder = false
  542. lastframe = tick()
  543. script.ArtificialHB:Fire()
  544.  
  545. game:GetService("RunService").Heartbeat:connect(function(s, p)
  546. tf = tf + s
  547. if tf >= frame then
  548. if allowframeloss then
  549. script.ArtificialHB:Fire()
  550. lastframe = tick()
  551. else
  552. for i = 1, math.floor(tf / frame) do
  553. script.ArtificialHB:Fire()
  554. end
  555. lastframe = tick()
  556. end
  557. if tossremainder then
  558. tf = 0
  559. else
  560. tf = tf - frame * math.floor(tf / frame)
  561. end
  562. end
  563. end)
  564.  
  565. --//=================================\\
  566. --\\=================================//
  567.  
  568.  
  569.  
  570.  
  571.  
  572. --//=================================\\
  573. --|| SOME FUNCTIONS
  574. --\\=================================//
  575.  
  576. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  577. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  578. end
  579.  
  580. function PositiveAngle(NUMBER)
  581. if NUMBER >= 0 then
  582. NUMBER = 0
  583. end
  584. return NUMBER
  585. end
  586.  
  587. function NegativeAngle(NUMBER)
  588. if NUMBER <= 0 then
  589. NUMBER = 0
  590. end
  591. return NUMBER
  592. end
  593.  
  594. function Swait(NUMBER)
  595. if NUMBER == 0 or NUMBER == nil then
  596. ArtificialHB.Event:wait()
  597. else
  598. for i = 1, NUMBER do
  599. ArtificialHB.Event:wait()
  600. end
  601. end
  602. end
  603.  
  604. function QuaternionFromCFrame(cf)
  605. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  606. local trace = m00 + m11 + m22
  607. if trace > 0 then
  608. local s = math.sqrt(1 + trace)
  609. local recip = 0.5 / s
  610. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  611. else
  612. local i = 0
  613. if m11 > m00 then
  614. i = 1
  615. end
  616. if m22 > (i == 0 and m00 or m11) then
  617. i = 2
  618. end
  619. if i == 0 then
  620. local s = math.sqrt(m00 - m11 - m22 + 1)
  621. local recip = 0.5 / s
  622. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  623. elseif i == 1 then
  624. local s = math.sqrt(m11 - m22 - m00 + 1)
  625. local recip = 0.5 / s
  626. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  627. elseif i == 2 then
  628. local s = math.sqrt(m22 - m00 - m11 + 1)
  629. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  630. end
  631. end
  632. end
  633.  
  634. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  635. local xs, ys, zs = x + x, y + y, z + z
  636. local wx, wy, wz = w * xs, w * ys, w * zs
  637. local xx = x * xs
  638. local xy = x * ys
  639. local xz = x * zs
  640. local yy = y * ys
  641. local yz = y * zs
  642. local zz = z * zs
  643. 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))
  644. end
  645.  
  646. function QuaternionSlerp(a, b, t)
  647. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  648. local startInterp, finishInterp;
  649. if cosTheta >= 0.0001 then
  650. if (1 - cosTheta) > 0.0001 then
  651. local theta = ACOS(cosTheta)
  652. local invSinTheta = 1 / SIN(theta)
  653. startInterp = SIN((1 - t) * theta) * invSinTheta
  654. finishInterp = SIN(t * theta) * invSinTheta
  655. else
  656. startInterp = 1 - t
  657. finishInterp = t
  658. end
  659. else
  660. if (1 + cosTheta) > 0.0001 then
  661. local theta = ACOS(-cosTheta)
  662. local invSinTheta = 1 / SIN(theta)
  663. startInterp = SIN((t - 1) * theta) * invSinTheta
  664. finishInterp = SIN(t * theta) * invSinTheta
  665. else
  666. startInterp = t - 1
  667. finishInterp = t
  668. end
  669. end
  670. 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
  671. end
  672.  
  673. function Clerp(a, b, t)
  674. local qa = {QuaternionFromCFrame(a)}
  675. local qb = {QuaternionFromCFrame(b)}
  676. local ax, ay, az = a.x, a.y, a.z
  677. local bx, by, bz = b.x, b.y, b.z
  678. local _t = 1 - t
  679. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  680. end
  681.  
  682. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  683. local frame = IT("Frame")
  684. frame.BackgroundTransparency = TRANSPARENCY
  685. frame.BorderSizePixel = BORDERSIZEPIXEL
  686. frame.Position = POSITION
  687. frame.Size = SIZE
  688. frame.BackgroundColor3 = COLOR
  689. frame.BorderColor3 = BORDERCOLOR
  690. frame.Name = NAME
  691. frame.Parent = PARENT
  692. return frame
  693. end
  694.  
  695. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  696. local label = IT("TextLabel")
  697. label.BackgroundTransparency = 1
  698. label.Size = UD2(1, 0, 1, 0)
  699. label.Position = UD2(0, 0, 0, 0)
  700. label.TextColor3 = C3(255, 255, 255)
  701. label.TextStrokeTransparency = STROKETRANSPARENCY
  702. label.TextTransparency = TRANSPARENCY
  703. label.FontSize = TEXTFONTSIZE
  704. label.Font = TEXTFONT
  705. label.BorderSizePixel = BORDERSIZEPIXEL
  706. label.TextScaled = true
  707. label.Text = TEXT
  708. label.Name = NAME
  709. label.Parent = PARENT
  710. return label
  711. end
  712.  
  713. function NoOutlines(PART)
  714. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  715. end
  716.  
  717.  
  718. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  719. local NEWWELD = IT(TYPE)
  720. NEWWELD.Part0 = PART0
  721. NEWWELD.Part1 = PART1
  722. NEWWELD.C0 = C0
  723. NEWWELD.C1 = C1
  724. NEWWELD.Parent = PARENT
  725. return NEWWELD
  726. end
  727.  
  728. function CreateSound(ID, PARENT, VOLUME, PITCH)
  729. local NEWSOUND = IT("Sound", PARENT)
  730. NEWSOUND.Volume = VOLUME
  731. NEWSOUND.Pitch = PITCH
  732. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  733. coroutine.resume(coroutine.create(function()
  734. Swait()
  735. NEWSOUND:play()
  736. repeat Swait() until NEWSOUND.Playing == false
  737. NEWSOUND:remove()
  738. end))
  739. return NEWSOUND
  740. end
  741.  
  742. function CFrameFromTopBack(at, top, back)
  743. local right = top:Cross(back)
  744. 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)
  745. end
  746.  
  747. function Lightning(POSITION1, POSITION2, MULTIPLIERTIME, LIGHTNINGDELAY, OFFSET, BRICKCOLOR, MATERIAL, SIZE, TRANSPARENCY, LASTINGTIME)
  748. local MAGNITUDE = (POSITION1 - POSITION2).magnitude
  749. local CURRENTPOSITION = POSITION1
  750. local LIGHTNINGOFFSET = {-OFFSET, OFFSET}
  751. coroutine.resume(coroutine.create(function()
  752. for i = 1, MULTIPLIERTIME do
  753. local LIGHTNINGPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR,"Effect", VT(SIZE * Player_Size, SIZE * Player_Size, MAGNITUDE / MULTIPLIERTIME))
  754. LIGHTNINGPART.Anchored = true
  755. local LIGHTNINGOFFSET2 = VT(LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)])
  756. local LIGHTNINGPOSITION1 = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME).p + LIGHTNINGOFFSET2
  757. if MULTIPLIERTIME == i then
  758. local LIGHTNINGMAGNITUDE1 = (CURRENTPOSITION - POSITION2).magnitude
  759. LIGHTNINGPART.Size = VT(SIZE * Player_Size, SIZE * Player_Size, LIGHTNINGMAGNITUDE1)
  760. LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, -LIGHTNINGMAGNITUDE1 / 2)
  761. else
  762. LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, LIGHTNINGPOSITION1) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2)
  763. end
  764. CURRENTPOSITION=LIGHTNINGPART.CFrame * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2).p
  765. game.Debris:AddItem(LIGHTNINGPART, LASTINGTIME)
  766. coroutine.resume(coroutine.create(function()
  767. while LIGHTNINGPART.Transparency ~= 1 do
  768. --local StartTransparency = tra
  769. for i=0, 1, LASTINGTIME do
  770. Swait()
  771. LIGHTNINGPART.Transparency = LIGHTNINGPART.Transparency + (0.1 / LASTINGTIME)
  772. end
  773. end
  774. end))
  775. Swait(LIGHTNINGDELAY / Animation_Speed)
  776. end
  777. end))
  778. end
  779.  
  780. function MagicBlock(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  781. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  782. EFFECTPART.Anchored = true
  783. EFFECTPART.CFrame = CFRAME
  784. local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  785. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  786. coroutine.resume(coroutine.create(function(PART, MESH)
  787. for i = 0, 1, delay do
  788. Swait()
  789. PART.CFrame = PART.CFrame * ROTATION
  790. PART.Transparency = i
  791. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  792. end
  793. PART.Parent = nil
  794. end), EFFECTPART, EFFECTMESH)
  795. end
  796.  
  797. function MagicSphere(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  798. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  799. EFFECTPART.Anchored = true
  800. EFFECTPART.CFrame = CFRAME
  801. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Sphere", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  802. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  803. coroutine.resume(coroutine.create(function(PART, MESH)
  804. for i = 0, 1, delay do
  805. Swait()
  806. PART.CFrame = PART.CFrame * ROTATION
  807. PART.Transparency = i
  808. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  809. end
  810. PART.Parent = nil
  811. end), EFFECTPART, EFFECTMESH)
  812. end
  813.  
  814. function MagicCylinder(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  815. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  816. EFFECTPART.Anchored = true
  817. EFFECTPART.CFrame = CFRAME
  818. local EFFECTMESH = CreateMesh("CylinderMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  819. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  820. coroutine.resume(coroutine.create(function(PART, MESH)
  821. for i = 0, 1, delay do
  822. Swait()
  823. PART.CFrame = PART.CFrame * ROTATION
  824. PART.Transparency = i
  825. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  826. end
  827. PART.Parent = nil
  828. end), EFFECTPART, EFFECTMESH)
  829. end
  830.  
  831. function MagicHead(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  832. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  833. EFFECTPART.Anchored = true
  834. EFFECTPART.CFrame = CFRAME
  835. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Head", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  836. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  837. coroutine.resume(coroutine.create(function(PART, MESH)
  838. for i = 0, 1, delay do
  839. Swait()
  840. PART.CFrame = PART.CFrame * ROTATION
  841. PART.Transparency = i
  842. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  843. end
  844. PART.Parent = nil
  845. end), EFFECTPART, EFFECTMESH)
  846. end
  847.  
  848. function MagicRing(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  849. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  850. EFFECTPART.Anchored = true
  851. EFFECTPART.CFrame = CFRAME
  852. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "3270017", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  853. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  854. coroutine.resume(coroutine.create(function(PART, MESH)
  855. for i = 0, 1, delay do
  856. Swait()
  857. PART.CFrame = PART.CFrame * ROTATION
  858. PART.Transparency = i
  859. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  860. end
  861. PART.Parent = nil
  862. end), EFFECTPART, EFFECTMESH)
  863. end
  864.  
  865. function MagicWave(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  866. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  867. EFFECTPART.Anchored = true
  868. EFFECTPART.CFrame = CFRAME
  869. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "20329976", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), VT(0, 0, (-0.1 * Z1)) + (OFFSET * Player_Size))
  870. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  871. coroutine.resume(coroutine.create(function(PART, MESH)
  872. for i = 0, 1, delay do
  873. Swait()
  874. PART.CFrame = PART.CFrame * ROTATION
  875. PART.Transparency = i
  876. MESH.Offset = VT(0, 0, (-0.1 * MESH.Scale.Z))
  877. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  878. end
  879. PART.Parent = nil
  880. end), EFFECTPART, EFFECTMESH)
  881. end
  882.  
  883. function MagicCrystal(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  884. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  885. EFFECTPART.Anchored = true
  886. EFFECTPART.CFrame = CFRAME
  887. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "9756362", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  888. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  889. coroutine.resume(coroutine.create(function(PART, MESH)
  890. for i = 0, 1, delay do
  891. Swait()
  892. PART.CFrame = PART.CFrame * ROTATION
  893. PART.Transparency = i
  894. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  895. end
  896. PART.Parent = nil
  897. end), EFFECTPART, EFFECTMESH)
  898. end
  899.  
  900. function MagicSwirl(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  901. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  902. EFFECTPART.Anchored = true
  903. EFFECTPART.CFrame = CFRAME
  904. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1051557", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  905. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  906. coroutine.resume(coroutine.create(function(PART, MESH)
  907. for i = 0, 1, delay do
  908. Swait()
  909. PART.CFrame = PART.CFrame * ROTATION
  910. PART.Transparency = i
  911. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  912. end
  913. PART.Parent = nil
  914. end), EFFECTPART, EFFECTMESH)
  915. end
  916.  
  917. function MagicSharpCone(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  918. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  919. EFFECTPART.Anchored = true
  920. EFFECTPART.CFrame = CFRAME
  921. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1778999", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  922. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  923. coroutine.resume(coroutine.create(function(PART, MESH)
  924. for i = 0, 1, delay do
  925. Swait()
  926. PART.CFrame = PART.CFrame * ROTATION
  927. PART.Transparency = i
  928. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  929. end
  930. PART.Parent = nil
  931. end), EFFECTPART, EFFECTMESH)
  932. end
  933.  
  934. function MagicFlatCone(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  935. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  936. EFFECTPART.Anchored = true
  937. EFFECTPART.CFrame = CFRAME
  938. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1033714", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  939. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  940. coroutine.resume(coroutine.create(function(PART, MESH)
  941. for i = 0, 1, delay do
  942. Swait()
  943. PART.CFrame = PART.CFrame * ROTATION
  944. PART.Transparency = i
  945. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  946. end
  947. PART.Parent = nil
  948. end), EFFECTPART, EFFECTMESH)
  949. end
  950.  
  951. function MagicSpikedCrown(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  952. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  953. EFFECTPART.Anchored = true
  954. EFFECTPART.CFrame = CFRAME
  955. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1323306", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  956. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  957. coroutine.resume(coroutine.create(function(PART, MESH)
  958. for i = 0, 1, delay do
  959. Swait()
  960. PART.CFrame = PART.CFrame * ROTATION
  961. PART.Transparency = i
  962. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  963. end
  964. PART.Parent = nil
  965. end), EFFECTPART, EFFECTMESH)
  966. end
  967.  
  968. function MagicFlatCrown(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  969. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  970. EFFECTPART.Anchored = true
  971. EFFECTPART.CFrame = CFRAME
  972. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1078075", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  973. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  974. coroutine.resume(coroutine.create(function(PART, MESH)
  975. for i = 0, 1, delay do
  976. Swait()
  977. PART.CFrame = PART.CFrame * ROTATION
  978. PART.Transparency = i
  979. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  980. end
  981. PART.Parent = nil
  982. end), EFFECTPART, EFFECTMESH)
  983. end
  984.  
  985. function MagicSkull(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  986. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  987. EFFECTPART.Anchored = true
  988. EFFECTPART.CFrame = CFRAME
  989. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "4770583", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  990. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  991. coroutine.resume(coroutine.create(function(PART, MESH)
  992. for i = 0, 1, delay do
  993. Swait()
  994. PART.CFrame = PART.CFrame * ROTATION
  995. PART.Transparency = i
  996. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  997. end
  998. PART.Parent = nil
  999. end), EFFECTPART, EFFECTMESH)
  1000. end
  1001.  
  1002. function ElectricEffect(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X, Y, Z, delay)
  1003. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  1004. EFFECTPART.Anchored = true
  1005. EFFECTPART.CFrame = CFRAME
  1006. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "4770583", "", VT(X * Player_Size, Y * Player_Size, Z * Player_Size), OFFSET * Player_Size)
  1007. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1008. local XVALUE = MRANDOM()
  1009. local YVALUE = MRANDOM()
  1010. local ZVALUE = MRANDOM()
  1011. coroutine.resume(coroutine.create(function(PART, MESH, THEXVALUE, THEYVALUE, THEZVALUE)
  1012. for i = 0, 1, delay do
  1013. Swait()
  1014. PART.CFrame = PART.CFrame * ROTATION
  1015. PART.Transparency = i
  1016. THEXVALUE = THEXVALUE - 0.1 * (delay * 10)
  1017. THEYVALUE = THEYVALUE - 0.1 * (delay * 10)
  1018. THEZVALUE = THEZVALUE - 0.1 * (delay * 10)
  1019. MESH.Scale = MESH.Scale + VT(THEXVALUE * Player_Size, THEYVALUE * Player_Size, THEZVALUE * Player_Size)
  1020. end
  1021. PART.Parent = nil
  1022. end), EFFECTPART, EFFECTMESH, XVALUE, YVALUE, ZVALUE)
  1023. end
  1024.  
  1025. function TrailEffect(BRICKCOLOR, MATERIAL, CURRENTCFRAME, OLDCFRAME, MESHTYPE, REFLECTANCE, SIZE, ROTATION, X, Y, Z, delay)
  1026. local MAGNITUDECFRAME = (CURRENTCFRAME.p - OLDCFRAME.p).magnitude
  1027. if MAGNITUDECFRAME > (1 / 100) then
  1028. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT(1, MAGNITUDECFRAME, 1))
  1029. EFFECTPART.Anchored = true
  1030. EFFECTPART.CFrame = CF((CURRENTCFRAME.p + OLDCFRAME.p) / 2, OLDCFRAME.p) * ANGLES(RAD(90), 0, 0)
  1031. local THEMESHTYPE = "BlockMesh"
  1032. if MESHTYPE == "Cylinder" then
  1033. THEMESHTYPE = "CylinderMesh"
  1034. end
  1035. local EFFECTMESH = CreateMesh(THEMESHTYPE, EFFECTPART, "", "", "", VT(0 + SIZE * Player_Size, 1, 0 + SIZE * Player_Size), VT(0, 0, 0))
  1036. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1037. coroutine.resume(coroutine.create(function(PART, MESH)
  1038. for i = 0, 1, delay do
  1039. Swait()
  1040. PART.CFrame = PART.CFrame * ROTATION
  1041. PART.Transparency = i
  1042. MESH.Scale = MESH.Scale + VT(X * Player_Size, Y * Player_Size, Z * Player_Size)
  1043. end
  1044. PART.Parent = nil
  1045. end), EFFECTPART, EFFECTMESH)
  1046. end
  1047. end
  1048.  
  1049. function ClangEffect(BRICKCOLOR, MATERIAL, CFRAME, ANGLE, DURATION, SIZE, POWER, REFLECTANCE, X, Y, Z, delay)
  1050. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 1, BRICKCOLOR, "Effect", VT())
  1051. EFFECTPART.Anchored = true
  1052. EFFECTPART.CFrame = CFRAME
  1053. local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(0, 0, 0), VT(0, 0, 0))
  1054. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  1055. local THELASTPOINT = CFRAME
  1056. coroutine.resume(coroutine.create(function(PART)
  1057. for i = 1, DURATION do
  1058. Swait()
  1059. PART.CFrame = PART.CFrame * ANGLES(RAD(ANGLE), 0, 0) * CF(0, POWER * Player_Size, 0)
  1060. TrailEffect(BRICKCOLOR, MATERIAL, PART.CFrame, THELASTPOINT, "Cylinder", REFLECTANCE, SIZE * Player_Size, ANGLES(0, 0, 0), X * Player_Size, Y * Player_Size, Z * Player_Size, delay)
  1061. THELASTPOINT = PART.CFrame
  1062. end
  1063. PART.Parent = nil
  1064. end), EFFECTPART)
  1065. end
  1066.  
  1067. function CreateWave(inair,size,doesrotate,rotatedirection,waitt,part,offset)
  1068. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, Torso.BrickColor, "Effect", VT(0,0,0))
  1069. local mesh = IT("SpecialMesh",wave)
  1070. mesh.MeshType = "FileMesh"
  1071. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1072. mesh.Scale = VT(size,size,size)
  1073. mesh.Offset = VT(0,0,-size/8)
  1074. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  1075. coroutine.resume(coroutine.create(function(PART)
  1076. for i = 1, waitt do
  1077. Swait()
  1078. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  1079. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1080. if doesrotate == true then
  1081. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  1082. end
  1083. wave.Transparency = wave.Transparency + (0.5/waitt)
  1084. if wave.Transparency > 0.99 then
  1085. wave:remove()
  1086. end
  1087. end
  1088. end))
  1089. end
  1090.  
  1091. function CreateRing(inair,size,doesrotate,rotatedirection,waitt,part,offset,spin1,spin2)
  1092. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, Torso.BrickColor, "Effect", VT(0,0,0))
  1093. local mesh = IT("SpecialMesh",wave)
  1094. mesh.MeshType = "FileMesh"
  1095. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1096. mesh.Scale = VT(size,size,size)
  1097. mesh.Offset = VT(0,0,0)
  1098. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  1099. coroutine.resume(coroutine.create(function(PART)
  1100. for i = 1, waitt do
  1101. Swait()
  1102. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  1103. if doesrotate == true then
  1104. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1)
  1105. end
  1106. wave.Transparency = wave.Transparency + (0.5/waitt)
  1107. if wave.Transparency > 0.99 then
  1108. wave:remove()
  1109. end
  1110. end
  1111. end))
  1112. end
  1113.  
  1114. function CreatePentagram(size,doesrotate,rotatedirection,waitt,cframe,offset)
  1115. local sinkhole = IT("Part",Effects)
  1116. sinkhole.Size = VT(size,0,size)
  1117. sinkhole.CFrame = cframe * CF(0,offset,0)
  1118. sinkhole.Material = "Neon"
  1119. sinkhole.Color = C3(170, 0, 170)
  1120. sinkhole.Anchored = true
  1121. sinkhole.CanCollide = false
  1122. sinkhole.Transparency = 1
  1123. local decal = IT("Decal",sinkhole)
  1124. decal.Face = "Top"
  1125. decal.Texture = "http://www.roblox.com/asset/?id=177470914"
  1126. coroutine.resume(coroutine.create(function(PART)
  1127. for i = 1, waitt do
  1128. Swait()
  1129. if doesrotate == true then
  1130. sinkhole.CFrame = sinkhole.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  1131. end
  1132. if i > waitt-11 then
  1133. decal.Transparency = decal.Transparency + 0.1
  1134. end
  1135. end
  1136. sinkhole:remove()
  1137. end))
  1138. return sinkhole
  1139. end
  1140.  
  1141. --local list={}
  1142. function Triangle(Color, Material, a, b, c, delay)
  1143. local edge1 = (c - a):Dot((b - a).unit)
  1144. local edge2 = (a - b):Dot((c - b).unit)
  1145. local edge3 = (b - c):Dot((a - c).unit)
  1146. if edge1 <= (b - a).magnitude and edge1 >= 0 then
  1147. a, b, c=a, b, c
  1148. elseif edge2 <= (c - b).magnitude and edge2 >= 0 then
  1149. a, b, c=b, c, a
  1150. elseif edge3 <= (a - c).magnitude and edge3 >= 0 then
  1151. a, b, c=c, a, b
  1152. else
  1153. assert(false, "unreachable")
  1154. end
  1155. local len1 = (c - a):Dot((b - a).unit)
  1156. local len2 = (b - a).magnitude - len1
  1157. local width = (a + (b - a).unit * len1 - c).magnitude
  1158. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, - (b - a).unit)
  1159. if len1 > 1 / 100 then
  1160. local sz = VT(0.2, width, len1)
  1161. local w1 = CreatePart(3, Effects, Material, 0, 0.5, Color, "Trail", sz)
  1162. local sp = CreateMesh("SpecialMesh", w1, "Wedge", "", "", VT(0, 1, 1) * sz / w1.Size, VT(0, 0, 0))
  1163. w1.Anchored = true
  1164. w1.CFrame = maincf * ANGLES(math.pi, 0, math.pi / 2) * CF(0, width / 2, len1 / 2)
  1165. coroutine.resume(coroutine.create(function()
  1166. for i = 0.5, 1, delay * (2 / Animation_Speed) do
  1167. Swait()
  1168. w1.Transparency = i
  1169. end
  1170. w1.Parent = nil
  1171. end))
  1172. game:GetService("Debris"):AddItem(w1, 10)
  1173. --table.insert(list, w1)
  1174. end
  1175. if len2 > 1 / 100 then
  1176. local sz = VT(0.2, width, len2)
  1177. local w2 = CreatePart(3, Effects, Material, 0, 0.5, Color, "Trail", sz)
  1178. local sp = CreateMesh("SpecialMesh", w2, "Wedge", "", "", VT(0, 1, 1) * sz / w2.Size, VT(0, 0, 0))
  1179. w2.Anchored = true
  1180. w2.CFrame = maincf * ANGLES(math.pi, math.pi, -math.pi / 2) * CF(0, width / 2, -len1 - len2 / 2)
  1181. coroutine.resume(coroutine.create(function()
  1182. for i = 0.5, 1, delay * (2 / Animation_Speed) do
  1183. Swait()
  1184. w2.Transparency = i
  1185. end
  1186. w2.Parent = nil
  1187. end))
  1188. game:GetService("Debris"):AddItem(w2, 10)
  1189. --table.insert(list, w2)
  1190. end
  1191. --return unpack(list)
  1192. end
  1193.  
  1194. --[[Usage:
  1195. local Pos = Part
  1196. local Offset = Part.CFrame * CF(0, 0, 0)
  1197. local Color = "Institutional white"
  1198. local Material = "Neon"
  1199. local TheDelay = 0.01
  1200. local Height = 4
  1201. BLCF = Offset
  1202. if SCFR and (Pos.Position - SCFR.p).magnitude > 0.1 then
  1203. local a, b = Triangle(Color, Material, (SCFR * CF(0, Height / 2,0)).p, (SCFR * CF(0, -Height / 2, 0)).p, (BLCF * CF(0, Height / 2,0)).p, TheDelay)
  1204. if a then game:GetService("Debris"):AddItem(a, 1) end
  1205. if b then game:GetService("Debris"):AddItem(b, 1) end
  1206. local a, b = Triangle(Color, Material, (BLCF * CF(0, Height / 2, 0)).p, (BLCF * CF(0, -Height / 2, 0)).p, (SCFR * CF(0, -Height / 2, 0)).p, TheDelay)
  1207. if a then game:GetService("Debris"):AddItem(a, 1) end
  1208. if b then game:GetService("Debris"):AddItem(b, 1) end
  1209. SCFR = BLCF
  1210. elseif not SCFR then
  1211. SCFR = BLCF
  1212. end
  1213. --
  1214. BLCF = nil
  1215. SCFR = nil
  1216. --]]
  1217.  
  1218. --//=================================\\
  1219. --\\=================================//
  1220.  
  1221. if Player_Size ~= 1 then
  1222. RootPart.Size = RootPart.Size * Player_Size
  1223. Torso.Size = Torso.Size * Player_Size
  1224. Head.Size = Head.Size * Player_Size
  1225. RightArm.Size = RightArm.Size * Player_Size
  1226. LeftArm.Size = LeftArm.Size * Player_Size
  1227. RightLeg.Size = RightLeg.Size * Player_Size
  1228. LeftLeg.Size = LeftLeg.Size * Player_Size
  1229. RootJoint.Parent = RootPart
  1230. Neck.Parent = Torso
  1231. RightShoulder.Parent = Torso
  1232. LeftShoulder.Parent = Torso
  1233. RightHip.Parent = Torso
  1234. LeftHip.Parent = Torso
  1235.  
  1236. RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  1237. RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  1238. Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1239. Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1240. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0
  1241. LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0
  1242. --if Disable_Moving_Arms == false then
  1243. RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  1244. LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  1245. --else
  1246. --RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  1247. --LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  1248. --end
  1249. RightHip.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1250. LeftHip.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1251. RightHip.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1252. LeftHip.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1253. end
  1254.  
  1255. --//=================================\\
  1256. --|| WEAPON CREATION
  1257. --\\=================================//
  1258.  
  1259. if Player_Size ~= 1 then
  1260. for _, v in pairs (Weapon:GetChildren()) do
  1261. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  1262. local p1 = v.Part1
  1263. v.Part1 = nil
  1264. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  1265. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  1266. v.Part1 = p1
  1267. elseif v.ClassName == "Part" then
  1268. for _, b in pairs (v:GetChildren()) do
  1269. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  1270. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  1271. end
  1272. end
  1273. end
  1274. end
  1275. end
  1276.  
  1277. createaccessory(Head,"http://www.roblox.com/asset/?id=210118899","",VT(1, 1, 1),VT(0, 0.25, 0.1),BrickColor.new"Really black")
  1278.  
  1279.  
  1280. local AT1 = IT("Attachment",RightArm)
  1281. AT1.Position = VT(0,-1.15,0)
  1282. local AT2 = IT("Attachment",LeftArm)
  1283. AT2.Position = VT(0,-1.15,0)
  1284.  
  1285. Humanoid.HealthChanged:connect(function()
  1286. if Humanoid.Health ~= "inf" then
  1287. Humanoid.Health = "inf"
  1288. end
  1289. if Humanoid.MaxHealth ~= "inf" then
  1290. Humanoid.MaxHealth = "inf"
  1291. end
  1292. end)
  1293.  
  1294. local EyeSizes={
  1295. NumberSequenceKeypoint.new(0,1.2,0),
  1296. NumberSequenceKeypoint.new(1,0,0)
  1297. }
  1298. local EyeTrans={
  1299. NumberSequenceKeypoint.new(0,0.8,0),
  1300. NumberSequenceKeypoint.new(1,1,0)
  1301. }
  1302. local PE=Instance.new("ParticleEmitter")
  1303. PE.LightEmission=0
  1304. PE.Size=NumberSequence.new(EyeSizes)
  1305. PE.Transparency=NumberSequence.new(EyeTrans)
  1306. PE.Lifetime=NumberRange.new(0.35,0.35,0.35)
  1307. PE.Rotation=NumberRange.new(0,360)
  1308. PE.Rate=999
  1309. PE.Acceleration = Vector3.new(0,0,0)
  1310. PE.Drag = 5
  1311. PE.LockedToPart = false
  1312. PE.Speed = NumberRange.new(0,0,0)
  1313. PE.Rotation = NumberRange.new(-100, 100)
  1314. PE.RotSpeed = NumberRange.new(-100, 100)
  1315. PE.Texture="http://www.roblox.com/asset/?id=669492379"
  1316. PE.Color = ColorSequence.new(Color3.new(170, 0, 170))
  1317. PE.ZOffset = 0
  1318. PE.Name = "Reign"
  1319. PE.Enabled = false
  1320. PE.VelocitySpread = 10000
  1321.  
  1322. function particles(art)
  1323. local o = PE:Clone()
  1324. o.Parent = art
  1325. o.Enabled = true
  1326. return o
  1327. end
  1328.  
  1329. particles(AT1)
  1330. particles(AT2)
  1331.  
  1332. createbodypart("Gem","Magenta",Torso,VT(0, 0.2, 0.5),VT(0.6,1.5,0.5))
  1333. createbodypart("Gem","Magenta",Torso,VT(0, -0.2, 0.5),VT(0.2,1,0.5))
  1334. createbodypart("Gem","Magenta",Torso,VT(-0.3, 0.5, 0.5),VT(0.5,0.8,0.2))
  1335. createbodypart("Gem","Magenta",Torso,VT(0.3, 0.5, 0.5),VT(0.5,0.8,0.2))
  1336.  
  1337. ---ribs---
  1338. createbodypart("Gem","Magenta",Torso,VT(0.6, 0.9, -0.57),VT(0.8,0.2,0.2))
  1339. createbodypart("Gem","Magenta",Torso,VT(-0.6, 0.9, -0.57),VT(0.8,0.2,0.2))
  1340.  
  1341. createbodypart("Gem","Magenta",Torso,VT(0.7, 0.5, -0.57),VT(0.6,0.2,0.2))
  1342. createbodypart("Gem","Magenta",Torso,VT(-0.7, 0.5, -0.57),VT(0.6,0.2,0.2))
  1343.  
  1344. createbodypart("Gem","Magenta",Torso,VT(0.8, 0.2, -0.57),VT(0.4,0.2,0.2))
  1345. createbodypart("Gem","Magenta",Torso,VT(-0.8, 0.2, -0.57),VT(0.4,0.2,0.2))
  1346. ----------
  1347.  
  1348.  
  1349.  
  1350. for _, c in pairs(Weapon:GetChildren()) do
  1351. if c.ClassName == "Part" then
  1352. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1353. end
  1354. end
  1355.  
  1356. Weapon.Parent = Character
  1357.  
  1358. Humanoid.Died:connect(function()
  1359. q = workspace:GetChildren()
  1360. CreatePentagram(1500,true,-0.1,150,CF(RootPart.Position),-3)
  1361. Head.Parent = nil
  1362. Head = nil
  1363. for i = 1, #q do
  1364. local child = q[i]
  1365. if child.ClassName == "Model" and child:FindFirstChild("Humanoid") then
  1366. child:BreakJoints()
  1367. end
  1368. end
  1369. local taunt = CreateSound("135009414", workspace, 10, 1)
  1370. local effect = IT("PitchShiftSoundEffect",taunt)
  1371. effect.Octave = 0.700
  1372. ATTACK = true
  1373. end)
  1374.  
  1375. print(Class_Name.." loaded.")
  1376.  
  1377. --//=================================\\
  1378. --\\=================================//
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384. --//=================================\\
  1385. --|| DAMAGE FUNCTIONS
  1386. --\\=================================//
  1387.  
  1388. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  1389. local STATPART = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "Effect", VT())
  1390. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  1391. local BODYGYRO = IT("BodyGyro", STATPART)
  1392. local BODYPOSITION = IT("BodyPosition", STATPART)
  1393. BODYPOSITION.P = 2000
  1394. BODYPOSITION.D = 100
  1395. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  1396. if LABELTYPE == "Normal" then
  1397. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  1398. elseif LABELTYPE == "Debuff" then
  1399. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
  1400. elseif LABELTYPE == "Interruption" then
  1401. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
  1402. end
  1403. game:GetService("Debris"):AddItem(STATPART ,5)
  1404. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1405. BILLBOARDGUI.Adornee = STATPART
  1406. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1407. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1408. BILLBOARDGUI.AlwaysOnTop = true
  1409. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1410. TEXTLABEL.BackgroundTransparency = 1
  1411. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1412. TEXTLABEL.Text = TEXT
  1413. TEXTLABEL.Font = "Antique"
  1414. TEXTLABEL.FontSize="Size42"
  1415. TEXTLABEL.TextColor3 = COLOR
  1416. TEXTLABEL.TextStrokeTransparency = 1
  1417. TEXTLABEL.TextScaled = true
  1418. TEXTLABEL.TextWrapped = true
  1419. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1420. wait(0.2)
  1421. for i=1, 5 do
  1422. wait()
  1423. THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
  1424. end
  1425. wait(1.2)
  1426. for i=1, 5 do
  1427. wait()
  1428. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  1429. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  1430. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  1431. end
  1432. THEPART.Parent = nil
  1433. end),STATPART, BODYPOSITION, TEXTLABEL)
  1434. end
  1435.  
  1436.  
  1437. --//=================================\\
  1438. --|| DAMAGING
  1439. --\\=================================//
  1440.  
  1441.  
  1442.  
  1443. function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
  1444. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  1445. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1446. local dmg = math.random(min,max)
  1447. if humanoid.Health > 0 then
  1448. if beserk == true then
  1449. humanoid.Health = 0
  1450. else
  1451. CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
  1452. hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  1453. if math.random(1,100) < critrate+1 then
  1454. humanoid.Health = humanoid.Health - dmg*critmultiplier
  1455. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(1, 0, 0))
  1456. else
  1457. humanoid.Health = humanoid.Health - dmg
  1458. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
  1459. end
  1460. local defence = Instance.new("BoolValue",hit.Parent)
  1461. defence.Name = ("HitBy"..Player.Name)
  1462. game:GetService("Debris"):AddItem(defence, 0.5)
  1463. end
  1464. end
  1465. end
  1466. end
  1467.  
  1468. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping)
  1469. local dmg = math.random(min,max)
  1470. for i,v in ipairs(workspace:GetChildren()) do
  1471. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  1472. local body = v:GetChildren()
  1473. for part = 1, #body do
  1474. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1475. if(body[part].Position - position).Magnitude < radius then
  1476. if v.ClassName == "Model" then
  1477. if v:FindFirstChild("Humanoid") then
  1478. if v.Humanoid.Health ~= 0 then
  1479. if CanBeDodgedByJumping == true then
  1480. if body[part].Position.Y < position.Y+5 then
  1481. if math.random(1,100) < critrate+1 then
  1482. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  1483. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1484. else
  1485. v.Humanoid.Health = v.Humanoid.Health - dmg
  1486. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  1487. end
  1488. local defence = Instance.new("BoolValue",v)
  1489. defence.Name = ("HitBy"..Player.Name)
  1490. game:GetService("Debris"):AddItem(defence, 0.5)
  1491. end
  1492. else
  1493. if beserk == true then
  1494. v.Humanoid.Health = 0
  1495. end
  1496. if math.random(1,100) < critrate+1 then
  1497. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  1498. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1499. else
  1500. v.Humanoid.Health = v.Humanoid.Health - dmg
  1501. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  1502. end
  1503. local defence = Instance.new("BoolValue",v)
  1504. defence.Name = ("HitBy"..Player.Name)
  1505. game:GetService("Debris"):AddItem(defence, 0.5)
  1506. end
  1507. end
  1508. end
  1509. end
  1510. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1511. end
  1512. end
  1513. end
  1514. if v.ClassName == "Part" then
  1515. if v.Anchored == false and (v.Position - position).Magnitude < radius then
  1516. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1517. end
  1518. end
  1519. end
  1520. end
  1521. end
  1522.  
  1523. function killnearest(position,range,maxstrength)
  1524. for i,v in ipairs(workspace:GetChildren()) do
  1525. local body = v:GetChildren()
  1526. for part = 1, #body do
  1527. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1528. if(body[part].Position - position).Magnitude < range then
  1529. if v.ClassName == "Model" then
  1530. v:BreakJoints()
  1531. end
  1532. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  1533. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1534. end
  1535. end
  1536. end
  1537. if v.ClassName == "Part" then
  1538. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1539. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  1540. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1541. end
  1542. end
  1543. end
  1544. end
  1545.  
  1546. --//=================================\\
  1547. --|| ATTACK FUNCTIONS AND STUFF
  1548. --\\=================================//
  1549.  
  1550. Humanoid.HealthChanged:connect(function()
  1551. if Humanoid.Health == 0 then
  1552. Humanoid.MaxHealth = "inf"
  1553. Humanoid.Health = "inf"
  1554. if ATTACK == false then
  1555. if Humanoid.Health == 0 then
  1556. workspace:ClearAllChildren()
  1557. else
  1558. ViolentRoar()
  1559. end
  1560. end
  1561. end
  1562. end)
  1563.  
  1564. function clerp(a, b, t)
  1565. return a:lerp(b, t)
  1566. end
  1567.  
  1568. function newBezier(startpos, pos2, pos3, endpos, t)
  1569. local A = clerp(startpos, pos2, t)
  1570. local B = clerp(pos2, pos3, t)
  1571. local C = clerp(pos3, endpos, t)
  1572. local lerp1 = clerp(A, B, t)
  1573. local lerp2 = clerp(B, C, t)
  1574. local cubic = clerp(lerp1, lerp2, t)
  1575. return cubic
  1576. end
  1577.  
  1578. function Mortar(Target)
  1579. local newball = Instance.new("Part", workspace)
  1580. newball.Anchored = true
  1581. newball.Shape = "Ball"
  1582. newball.Material = "Neon"
  1583. newball.Size = Vector3.new(2, 2, 2)
  1584. newball.CanCollide = false
  1585. newball.CFrame = Target.CFrame
  1586. newball.BrickColor = BrickColor.new("Magenta")
  1587. newball.Transparency = 0.5
  1588. local Cys = Instance.new("SpecialMesh", newball)
  1589. Cys.MeshType = "FileMesh"
  1590. Cys.MeshId = "rbxassetid://9756362"
  1591. Cys.Scale = Vector3.new(1, 1, 1)
  1592. local onefourth = Target.Position:Lerp(Mouse.Hit.p, 0.25) + Vector3.new(math.random(-25, 25), math.random(0, 25), math.random(-25, 25))
  1593. local threefourths = Target.Position:Lerp(Mouse.Hit.p, 0.75) + Vector3.new(math.random(-25, 25), math.random(0, 25), math.random(-25, 25))
  1594. local MPos = Mouse.Hit.p
  1595. local A1 = IT("Attachment",newball)
  1596. A1.Position = Vector3.new(0, 1, 0)
  1597. local A2 = IT("Attachment",newball)
  1598. A2.Position = Vector3.new(0, -1, 0)
  1599. local Trail = IT("Trail",newball)
  1600. Trail.LightEmission = 1
  1601. Trail.FaceCamera = true
  1602. Trail.Texture = "rbxassetid://945758042"
  1603. Trail.Attachment0 = A1
  1604. Trail.Attachment1 = A2
  1605. Trail.Lifetime = 0.5
  1606. Trail.MinLength = 0
  1607. Trail.Transparency = NumberSequence.new(0.3, 1)
  1608. Trail.Color = ColorSequence.new(BrickColor.new("Magenta").Color)
  1609. coroutine.resume(coroutine.create(function()
  1610. local loop = 0
  1611. for i = 0, 1, 0.07 do
  1612. Swait()
  1613. loop = loop + 1
  1614. if loop == 1 then
  1615. CreateRing(0,3,true,-0.2,15,newball,0,0.3,-0.3)
  1616. elseif loop == 2 then
  1617. CreateRing(0,3,true,-0.2,15,newball,0,-0.3,0.3)
  1618. loop = 1
  1619. end
  1620. newball.CFrame = CFrame.new(newBezier(Target.Position, onefourth, threefourths, MPos, i))
  1621. end
  1622. killnearest(newball.Position,5,10)
  1623. MagicSphere("Magenta", "Neon", CF(newball.Position) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), 0.25, 0.25, 0.25, 7.5, 7.5, 7.5, 0.05)
  1624. MagicBlock("Magenta", "Neon", CF(newball.Position) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), 0.25, 0.25, 0.25, 7.5, 7.5,7.5, 0.05)
  1625. newball.Transparency = 1
  1626. CreateSound("971125740", newball, 10, 1)
  1627. for i = 1, 7 do
  1628. coroutine.resume(coroutine.create(function()
  1629. local ray = IT("Part",Effects)
  1630. ray.Size = VT(newball.Size.Y,newball.Size.Y/10,newball.Size.Y/10)
  1631. ray.CFrame = CFrame.new(newball.Position,Vector3.new(newball.Position.X+math.random(-360,360),newball.Position.Y+math.random(-360,360),newball.Position.Z+math.random(-360,360)))
  1632. local mesh = IT("BlockMesh",ray)
  1633. ray.Anchored = true
  1634. ray.CanCollide = false
  1635. ray.Material = newball.Material
  1636. ray.Color = newball.Color
  1637. table.insert(Effects2,{ray,"Block1",0.04,1,0,0,2})
  1638. end))
  1639. end
  1640. game:GetService("Debris"):AddItem(newball, 5)
  1641. end))
  1642. end
  1643.  
  1644. function RayCast(Position, Direction, MaxDistance, IgnoreList)
  1645. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
  1646. end
  1647.  
  1648. function JumpUp()
  1649. ATTACK = true
  1650. --Rooted = true
  1651. for i=0, 2, 0.1 / Animation_Speed do
  1652. Swait()
  1653. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.2 * Player_Size) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1654. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1655. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1656. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1657. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1658. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1659. end
  1660. CreateSound("2767090", Torso, 5, MRANDOM(7, 12) / 10)
  1661. CreateWave(0,3.5,true,0.2,150,RootPart,-2)
  1662. CreateWave(0,5,true,-0.2,150,RootPart,-2)
  1663. local bv = Instance.new("BodyVelocity")
  1664. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1665. bv.velocity = Vector3.new(0,300,0)
  1666. bv.Parent = Torso
  1667. bv.Name = "DASH"
  1668. ATTACK = false
  1669. --Rooted = false
  1670. game:GetService("Debris"):AddItem(bv, 0.5)
  1671. coroutine.resume(coroutine.create(function()
  1672. Swait(50)
  1673. HASJUMPED = false
  1674. end))
  1675. end
  1676.  
  1677.  
  1678. function attacktemplate()
  1679. ATTACK = true
  1680. for i=0, 1, 0.1 / Animation_Speed do
  1681. Swait()
  1682. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1683. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1684. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1685. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1686. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1687. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1688. end
  1689. ATTACK = false
  1690. end
  1691.  
  1692.  
  1693. function Attack1()
  1694. Rooted = true
  1695. ATTACK = true
  1696. for i=0, 1, 0.1 / Animation_Speed do
  1697. Swait()
  1698. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  1699. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(30)), 0.4 / Animation_Speed)
  1700. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(0), RAD(100)) * ANGLES(RAD(-30), RAD(80), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1701. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1702. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(5)), 0.4 / Animation_Speed)
  1703. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  1704. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  1705. break
  1706. end
  1707. end
  1708. CreatePentagram(15,true,0.1,45,CF(RootPart.Position),-3)
  1709. local paw = RightArm.Touched:Connect(function(hit)
  1710. dealdamage(hit,9999,9999,9000,false,9999,9999)
  1711. end)
  1712. local bv = Instance.new("BodyVelocity")
  1713. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1714. bv.velocity = RootPart.CFrame.lookVector * 50
  1715. bv.Parent = Torso
  1716. bv.Name = "DASH"
  1717. ATTACK = false
  1718. Rooted = false
  1719. game:GetService("Debris"):AddItem(bv, 0.05)
  1720. for i=0, 1, 0.1 / Animation_Speed do
  1721. Swait()
  1722. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(30)), 0.4 / Animation_Speed)
  1723. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  1724. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(10)) * ANGLES(RAD(-30), RAD(80), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1725. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1726. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(40), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(5)), 0.4 / Animation_Speed)
  1727. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-35), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-15)), 0.4 / Animation_Speed)
  1728. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  1729. break
  1730. end
  1731. end
  1732. COMBO = 2
  1733. paw:disconnect()
  1734. BLCF = nil
  1735. SCFR = nil
  1736. ATTACK = false
  1737. Rooted = false
  1738. end
  1739.  
  1740. function Attack2()
  1741. Rooted = true
  1742. ATTACK = true
  1743. for i=0, 1, 0.1 / Animation_Speed do
  1744. Swait()
  1745. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(20)), 0.4 / Animation_Speed)
  1746. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-10)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1747. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1748. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-55)) * ANGLES(RAD(5), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1749. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  1750. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-40), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-10)), 0.4 / Animation_Speed)
  1751. end
  1752. CreatePentagram(15,true,-0.1,45,CF(RootPart.Position),-3)
  1753. local paw = LeftArm.Touched:Connect(function(hit)
  1754. dealdamage(hit,9999,9999,9000,false,9999,9999)
  1755. end)
  1756. local bv = Instance.new("BodyVelocity")
  1757. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1758. bv.velocity = RootPart.CFrame.lookVector * 50
  1759. bv.Parent = Torso
  1760. bv.Name = "DASH"
  1761. ATTACK = false
  1762. Rooted = false
  1763. game:GetService("Debris"):AddItem(bv, 0.05)
  1764. for i=0, 1.5, 0.1 / Animation_Speed do
  1765. Swait()
  1766. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-90)), 0.4 / Animation_Speed)
  1767. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1768. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1769. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-55)) * ANGLES(RAD(5), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1770. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
  1771. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-40), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-10)), 0.4 / Animation_Speed)
  1772. end
  1773. COMBO = 3
  1774. paw:disconnect()
  1775. ATTACK = false
  1776. Rooted = false
  1777. end
  1778.  
  1779. function Attack3()
  1780. ATTACK = true
  1781. Rooted = true
  1782. for i=0, 1, 0.1 / Animation_Speed do
  1783. Swait()
  1784. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1785. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1786. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, -0.2 * Player_Size, 0.3 * Player_Size) * ANGLES(RAD(50), RAD(0), RAD(20 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1787. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1788. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1789. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1790. if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
  1791. break
  1792. end
  1793. end
  1794. for i=0, 1, 0.1 / Animation_Speed do
  1795. Swait()
  1796. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1797. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1798. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1799. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1800. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1801. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1802. end
  1803. for i=0, 1, 0.1 / Animation_Speed*7 do
  1804. Swait()
  1805. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1806. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1807. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1808. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1809. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -4.7 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(45), RAD(45), RAD(0)), 0.2 / Animation_Speed)
  1810. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed*5)
  1811. end
  1812. CreateSound("2248511", RightLeg, 2, 1)
  1813. CreateWave(0,3.5,true,0.2,25,RightLeg,-1)
  1814. CreateWave(0,3,true,-0.2,25,RightLeg,-1)
  1815. CreateWave(0,2.5,true,0.2,25,RightLeg,-1)
  1816. CreateWave(0,2,true,-0.2,25,RightLeg,-1)
  1817. AoEDamage(RightLeg.Position,15,25,30,15,false,5,3,true)
  1818. COMBO = 1
  1819. Rooted = false
  1820. ATTACK = false
  1821. end
  1822.  
  1823. function Sinnerwave()
  1824. ATTACK = true
  1825. Rooted = true
  1826. for i=0, 2, 0.1 / Animation_Speed do
  1827. Swait()
  1828. Rooted = true
  1829. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0.35 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1830. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1831. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1832. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1833. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(15)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1834. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(-5)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1835. end
  1836. Rooted = true
  1837. local Animation_Speed2 = Animation_Speed/2
  1838. for i=0, 1, 0.1 / Animation_Speed2 do
  1839. Swait()
  1840. Rooted = true
  1841. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, -0.35 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1842. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1843. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2)
  1844. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
  1845. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(-15)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1846. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(5)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1847. end
  1848. CreateWave(0,4,true,0.2,45,RootPart,-5)
  1849. CreateWave(0,4.5,true,-0.2,40,RootPart,-5)
  1850. CreateWave(0,5,true,0.2,35,RootPart,-5)
  1851. CreateWave(0,5.5,true,-0.2,30,RootPart,-5)
  1852. CreateWave(0,6,true,0.2,25,RootPart,-5)
  1853. CreateSound("971126018", Torso, 2, 1)
  1854. coroutine.resume(coroutine.create(function()
  1855. local RayHit, RayPos = RayCast(Torso.Position, Vector3.new(0, -1, 0), (10000), {Character})
  1856. local SpawnPosition = RayPos
  1857. local floor = RayHit
  1858. local needcframe = RootPart.CFrame
  1859. local LastPosition = RootPart.Position
  1860. local Delay = 1
  1861. for i = 1, 6 do
  1862. local RayHit, RayPos = RayCast(LastPosition, needcframe.lookVector, 10, {workspace})
  1863. local End = RayPos
  1864. LastPosition = End
  1865. local locatepart = Instance.new("Part",Effects)
  1866. locatepart.Size = VT(0.5,0.5,0.5)
  1867. locatepart.Position = End
  1868. locatepart.CanCollide = false
  1869. locatepart.Anchored = true
  1870. locatepart.Transparency = 1
  1871. if SpawnPosition then
  1872. if i ~= 6 then
  1873. CreateSound("971125740", locatepart, 7, 1)
  1874. AoEDamage(End,15,25,30,15,false,5,3,false)
  1875. CreateWave(0,2.5,true,-0.05,25,locatepart,-2)
  1876. CreateWave(0,2,true,0.05,25,locatepart,-2)
  1877. CreateWave(0,1.5,true,-0.05,25,locatepart,-2)
  1878. CreateWave(0,1,true,0.05,25,locatepart,-2)
  1879. else
  1880. CreateRing(0,15,true,-0.2,35,locatepart,0,0.3,0.3)
  1881. CreateRing(0,12.5,true,0.2,35,locatepart,0,0.3,-0.3)
  1882. CreateRing(0,10,true,-0.2,35,locatepart,0,-0.3,0.3)
  1883. CreateRing(0,7.5,true,0.2,35,locatepart,0,-0.3,-0.3)
  1884. CreatePentagram(85,true,-0.05,75,CF(End),0)
  1885. CreateSound("971125740", locatepart, 7, 0.5)
  1886. AoEDamage(End,25,45,60,15,false,5,3,false)
  1887. CreateWave(0,6.5,true,-0.05,45,locatepart,-2)
  1888. CreateWave(0,6,true,0.05,45,locatepart,-2)
  1889. CreateWave(0,5.5,true,-0.05,45,locatepart,-2)
  1890. CreateWave(0,5,true,0.05,45,locatepart,-2)
  1891. local particle = particles(locatepart)
  1892. particle.Enabled = false
  1893. particle.Drag = 1
  1894. particle.Lifetime=NumberRange.new(2.35,2.35,2.35)
  1895. particle.Speed = NumberRange.new(25,25,25)
  1896. particle:Emit(250)
  1897. end
  1898. end
  1899. Swait(5)
  1900. game:GetService("Debris"):AddItem(locatepart, 5)
  1901. end
  1902. end))
  1903. Swait(50)
  1904. ATTACK = false
  1905. Rooted = false
  1906. end
  1907.  
  1908. function ViolentRoar()
  1909. ATTACK = true
  1910. Rooted = true
  1911. for i=0, 2, 0.1 / Animation_Speed do
  1912. Swait()
  1913. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.2 * Player_Size) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1914. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1915. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1916. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1917. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed*5)
  1918. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed*5)
  1919. end
  1920. if Head ~= nil then
  1921. local roar = CreateSound("577131694", Head, 10, 1)
  1922. repeat
  1923. for i=0, 1.3, 0.1 / Animation_Speed do
  1924. Swait()
  1925. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  1926. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1927. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(70)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1928. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-120)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1929. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(120), RAD(-35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1930. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1931. end
  1932. killnearest(Head.Position,25,25)
  1933. CreateRing(0,6,true,-0.2,35,Head,0,0.3,-0.3)
  1934. CreateRing(0,6,true,-0.2,35,Head,0,0.3,0.3)
  1935. CreateWave(0,5.5,true,0.05,45,RootPart,-4)
  1936. if roar.Playing == true then
  1937. for i=0, 1.3, 0.1 / Animation_Speed do
  1938. Swait()
  1939. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  1940. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1941. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(120)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1942. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-70)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1943. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(-35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1944. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-120), RAD(35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1945. end
  1946. killnearest(Head.Position,25,25)
  1947. CreateRing(0,6,true,-0.2,35,Head,0,-0.3,-0.3)
  1948. CreateRing(0,6,true,-0.2,35,Head,0,-0.3,0.3)
  1949. CreateWave(0,5.5,true,-0.05,45,RootPart,-4)
  1950. end
  1951. until roar.Playing == false
  1952. end
  1953. Rooted = false
  1954. ATTACK = false
  1955. end
  1956.  
  1957. function BulletsFromAbove()
  1958. HASJUMPED = true
  1959. --Rooted = true
  1960. for i=0, 2, 0.1 / Animation_Speed do
  1961. Swait()
  1962. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.2 * Player_Size) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1963. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1964. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1965. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1966. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1967. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1968. end
  1969. CreateSound("2767090", Torso, 5, MRANDOM(7, 12) / 10)
  1970. CreateWave(0,3.5,true,0.2,150,RootPart,-2)
  1971. CreateWave(0,5,true,-0.2,150,RootPart,-2)
  1972. local bv = Instance.new("BodyVelocity")
  1973. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1974. bv.velocity = Vector3.new(0,300,0)
  1975. bv.Parent = Torso
  1976. bv.Name = "DASH"
  1977. --Rooted = false
  1978. game:GetService("Debris"):AddItem(bv, 0.5)
  1979. Swait(125)
  1980. ATTACK = true
  1981. Rooted = true
  1982. UNANCHOR = false
  1983. RootPart.Anchored = true
  1984. local BulletHolder = IT("Folder",Weapon)
  1985. BulletHolder.Name = "Bullets"
  1986. game:GetService("Debris"):AddItem(BulletHolder, 30)
  1987. for i=0, 5, 0.1 / Animation_Speed do
  1988. Swait()
  1989. Rooted = true
  1990. RootPart.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1991. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0.35 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1992. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1993. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0.5 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1994. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0.5 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1995. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(15)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1996. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(-5)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1997. end
  1998. for i = 1 ,15 do
  1999. Swait()
  2000. RootPart.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  2001. end
  2002. CreateSound("333476017", Torso, 10, 1)
  2003. for i = 1, 35 do
  2004. Swait()
  2005. RootPart.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  2006. coroutine.resume(coroutine.create(function()
  2007. local gem = IT("Part",BulletHolder)
  2008. gem.Size = VT(0.2,0.2,0.2)
  2009. gem.CFrame = Torso.CFrame * CF(math.random(-25,25),math.random(-25,25),math.random(-25,25))
  2010. gem.Anchored = true
  2011. gem.Color = C3(170, 0, 170)
  2012. local e = particles(gem)
  2013. e.LockedToPart = false
  2014. local Cys = Instance.new("SpecialMesh", gem)
  2015. Cys.MeshType = "FileMesh"
  2016. Cys.MeshId = "rbxassetid://9756362"
  2017. Cys.Scale = Vector3.new(2,2,2)
  2018. end))
  2019. end
  2020. local Animation_Speed2 = Animation_Speed/2
  2021. for i=0, 1, 0.1 / Animation_Speed2 do
  2022. Swait()
  2023. --RootPart.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  2024. Rooted = true
  2025. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, -0.35 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  2026. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  2027. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2)
  2028. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
  2029. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(-15)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  2030. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(5)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  2031. end
  2032. CreateSound("318745457", Torso, 2, 1)
  2033. coroutine.resume(coroutine.create(function()
  2034. q = BulletHolder:GetChildren()
  2035. for i = 1, #q do
  2036. local bullet = q[i]
  2037. local bv = Instance.new("BodyVelocity")
  2038. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2039. bv.velocity = RootPart.CFrame.lookVector * math.random(150,300)
  2040. bv.Parent = bullet
  2041. bv.Name = "DASH"
  2042. bullet.Anchored = false
  2043. local paw = bullet.Touched:Connect(function(hit)
  2044. if bullet.Reign.Enabled == true then
  2045. local cframe = bullet.CFrame
  2046. bullet.Anchored = true
  2047. bullet.Reign.Enabled = false
  2048. local particle = particles(bullet)
  2049. particle.Enabled = false
  2050. particle.Drag = 1
  2051. particle.Name = "poof"
  2052. particle.Lifetime=NumberRange.new(2.35,2.35,2.35)
  2053. particle.Speed = NumberRange.new(25,25,25)
  2054. particle:Emit(250)
  2055. CreateSound("438666196", bullet, 5, 1)
  2056. CreateRing(0,4,true,-0.2,35,bullet,0,0.3,-0.3)
  2057. CreateRing(0,4,true,-0.2,35,bullet,0,0.3,0.3)
  2058. CreateRing(0,6,true,-0.2,35,bullet,0,-0.3,0.3)
  2059. CreateRing(0,6,true,-0.2,35,bullet,0,-0.3,-0.3)
  2060. CreateWave(0,2.5,true,-0.05,25,bullet,-2)
  2061. CreateWave(0,2,true,0.05,25,bullet,-2)
  2062. CreateWave(0,1.5,true,-0.05,25,bullet,-2)
  2063. CreateWave(0,1,true,0.05,25,bullet,-2)
  2064. table.insert(Effects2,{bullet,"Block1",0.025,1,1,1,2})
  2065. AoEDamage(bullet.Position,25,25,30,15,false,5,3,false)
  2066. end
  2067. end)
  2068. end
  2069. end))
  2070. for i = 1, 35 do
  2071. Swait()
  2072. end
  2073. UNANCHOR = true
  2074. RootPart.Anchored = false
  2075. Rooted = false
  2076. ATTACK = false
  2077. coroutine.resume(coroutine.create(function()
  2078. Swait(50)
  2079. HASJUMPED = false
  2080. end))
  2081. end
  2082.  
  2083. function fromthedepths()
  2084. ATTACK = true
  2085. Rooted = true
  2086. for i=0, 2, 0.1 / Animation_Speed do
  2087. Swait()
  2088. turnto(Mouse.Hit.p)
  2089. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.2 * Player_Size) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2090. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2091. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2092. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2093. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  2094. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2095. end
  2096. local sinkhole = IT("Part",Effects)
  2097. sinkhole.Size = VT(85,0,85)
  2098. sinkhole.CFrame = CF(Mouse.Hit.p)
  2099. sinkhole.Material = "Neon"
  2100. sinkhole.Color = C3(170, 0, 170)
  2101. sinkhole.Anchored = true
  2102. sinkhole.CanCollide = false
  2103. sinkhole.Transparency = 1
  2104. local decal = IT("Decal",sinkhole)
  2105. decal.Face = "Top"
  2106. decal.Texture = "http://www.roblox.com/asset/?id=177470914"
  2107. repeat
  2108. Swait()
  2109. turnto(Mouse.Hit.p)
  2110. sinkhole.CFrame = CF(Mouse.Hit.p)
  2111. until KEYHOLD == false
  2112. coroutine.resume(coroutine.create(function()
  2113. local soundeffect = IT("Sound",sinkhole)
  2114. soundeffect.SoundId = "rbxassetid://487186990"
  2115. soundeffect.Looped = true
  2116. soundeffect.Volume = 10
  2117. soundeffect.Playing = true
  2118. for i = 1, 450 do
  2119. AoEDamage(sinkhole.Position,15,666,666,15,false,0,0,false)
  2120. AoEDamage(sinkhole.Position,25,65,80,15,false,5,3,true)
  2121. AoEDamage(sinkhole.Position,45,45,60,15,false,5,3,true)
  2122. Swait()
  2123. CreateWave(0,8,true,0.05,45,sinkhole,-1)
  2124. CreateWave(0,8,true,-0.05,45,sinkhole,-1)
  2125. if i > 439 then
  2126. decal.Transparency = decal.Transparency + 0.1
  2127. soundeffect.Volume = soundeffect.Volume - 1
  2128. end
  2129. end
  2130. sinkhole:remove()
  2131. end))
  2132. for i=0, 3, 0.1 / Animation_Speed do
  2133. Swait()
  2134. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2135. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2136. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2137. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2138. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(-35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2139. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2140. end
  2141. Rooted = false
  2142. ATTACK = false
  2143. end
  2144.  
  2145. function Warp()
  2146. ATTACK = true
  2147. CreateRing(0,2,true,-0.2,35,RootPart,0,0.3,0.3)
  2148. CreateRing(0,2.5,true,-0.2,35,RootPart,0,-0.3,0.3)
  2149. CreateRing(0,3,true,-0.2,35,RootPart,0,0.3,-0.3)
  2150. CreateRing(0,3.5,true,-0.2,35,RootPart,0,-0.3,-0.3)
  2151. local originalcframe = RootPart.CFrame
  2152. RootPart.CFrame = CF(VT(Mouse.Hit.p.X,Mouse.Hit.p.Y+(RootPart.Size.Y/2),Mouse.Hit.Z),originalcframe.p)
  2153. local penta = CreatePentagram(15,false,0,45,CF(RootPart.Position),-1)
  2154. CreateSound("3264923", penta, 2, 2)
  2155. ATTACK = false
  2156. end
  2157.  
  2158. --//=================================\\
  2159. --|| ASSIGN THINGS TO KEYS
  2160. --\\=================================//
  2161.  
  2162. function turnto(pos)
  2163. RootPart.CFrame = CF(RootPart.Position,VT(pos.X,RootPart.Position.Y,pos.Z))
  2164. end
  2165.  
  2166. function MouseDown(Mouse)
  2167. if ATTACK == false and HASJUMPED == false and COMBO ~= "HALT" and Rooted == false then
  2168. HOLD = true
  2169. if ATTACK == false then
  2170. if COMBO == 1 then
  2171. COMBO = "HALT"
  2172. Attack1()
  2173. elseif COMBO == 2 then
  2174. COMBO = "HALT"
  2175. Attack2()
  2176. elseif COMBO == 3 then
  2177. COMBO = "HALT"
  2178. Attack3()
  2179. end
  2180. coroutine.resume(coroutine.create(function()
  2181. for i=1, 50 do
  2182. if ATTACK == false and COMBO ~= "HALT" then
  2183. Swait()
  2184. end
  2185. end
  2186. if ATTACK == false and COMBO ~= "HALT" then
  2187. COMBO = 1
  2188. end
  2189. end))
  2190. end
  2191. end
  2192. end
  2193.  
  2194. function MouseUp(Mouse)
  2195. HOLD = false
  2196. end
  2197.  
  2198. function KeyDown(Key)
  2199. KEYHOLD = true
  2200. if Key == "e" and HASJUMPED == false and ATTACK == false then
  2201. Warp()
  2202. end
  2203. if Key == "g" and HASJUMPED == false and ATTACK == false then
  2204. fromthedepths()
  2205. end
  2206. if Key == "q" and HASJUMPED == false and ATTACK == false then
  2207. ViolentRoar()
  2208. end
  2209. if Key == "x" and HASJUMPED == false and ATTACK == false then
  2210. BulletsFromAbove()
  2211. end
  2212. if Key == "f" and HASJUMPED == false and ATTACK == false then
  2213. Sinnerwave()
  2214. end
  2215. if Key == "t" and ATTACK == false then
  2216. local taunt = CreateSound("907332670", Head, 10, 1)
  2217. local effect = IT("PitchShiftSoundEffect",taunt)
  2218. effect.Octave = 0.700
  2219. end
  2220. end
  2221.  
  2222. function KeyUp(Key)
  2223. KEYHOLD = false
  2224. end
  2225.  
  2226. Mouse.Button1Down:connect(function(NEWKEY)
  2227. MouseDown(NEWKEY)
  2228. end)
  2229. Mouse.Button1Up:connect(function(NEWKEY)
  2230. MouseUp(NEWKEY)
  2231. end)
  2232. Mouse.KeyDown:connect(function(NEWKEY)
  2233. KeyDown(NEWKEY)
  2234. end)
  2235. Mouse.KeyUp:connect(function(NEWKEY)
  2236. KeyUp(NEWKEY)
  2237. end)
  2238.  
  2239. --//=================================\\
  2240. --\\=================================//
  2241.  
  2242.  
  2243. function unanchor()
  2244. if UNANCHOR == true then
  2245. g = Character:GetChildren()
  2246. for i = 1, #g do
  2247. if g[i].ClassName == "Part" then
  2248. g[i].Anchored = false
  2249. end
  2250. end
  2251. end
  2252. end
  2253.  
  2254.  
  2255. --//=================================\\
  2256. --|| WRAP THE WHOLE SCRIPT UP
  2257. --\\=================================//
  2258.  
  2259. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  2260.  
  2261. Humanoid.Changed:connect(function(Jump)
  2262. if Jump == "Jump" then
  2263. Humanoid.Jump = false
  2264. if HASJUMPED == false and HITFLOOR ~= nil and ATTACK == false and DISABLEJUMPING == false then
  2265. HASJUMPED = true
  2266. JumpUp()
  2267. end
  2268. end
  2269. end)
  2270. Rooted = true
  2271. ANIMATE.Parent = nil
  2272. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2273. IDLEANIMATION:Play()
  2274. Swait()
  2275. Rooted = false
  2276.  
  2277. createbodypart("Eye","Magenta",Head,VT(0.25, 0, -0.65),VT(3,3,3))
  2278. createbodypart("Eye","Magenta",Head,VT(-0.25, 0, -0.65),VT(3,3,3))
  2279. createbodypart("Eye","Magenta",Head,VT(0, 0.2, -0.65),VT(5,5,3))
  2280.  
  2281. while true do
  2282. Swait()
  2283. SINE = SINE + CHANGE
  2284. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2285. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2286. HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  2287. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  2288. local WALKSPEEDVALUE = 24 / (Humanoid.WalkSpeed / 16)
  2289. if ANIM == "Walk" and ATTACK == false and TORSOVELOCITY > 1 then
  2290. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2291. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * 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)
  2292. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed*2)
  2293. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed*2)
  2294. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2295. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2296. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2297. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed*2)
  2298. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed*2)
  2299. end
  2300. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2301. ANIM = "Jump"
  2302. if ATTACK == false then
  2303. CreateWave(180,3,true,0,15,RootPart,-4)
  2304. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2305. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2306. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2307. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2308. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  2309. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2310. end
  2311. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil and ATTACK == false then
  2312. ANIM = "Fall"
  2313. if ATTACK == false then
  2314. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2315. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2316. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2317. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2318. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2319. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  2320. end
  2321. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil and ATTACK == false then
  2322. ANIM = "Idle"
  2323. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2324. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2325. --RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2326. --LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * Player_Size, 0.2 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2327. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2328. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2329. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  2330. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2331. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2332. ANIM = "Walk"
  2333. WALK = WALK + 1 / Animation_Speed
  2334. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  2335. WALK = 0
  2336. if WALKINGANIM == true then
  2337. WALKINGANIM = false
  2338. elseif WALKINGANIM == false then
  2339. WALKINGANIM = true
  2340. end
  2341. end
  2342. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2343. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2344. if ATTACK == false then
  2345. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.5 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2346. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2347. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2348. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2349. --RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2350. --LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2351. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2352. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2353. end
  2354. end
  2355. if #Effects2>0 then
  2356. for e=1,#Effects2 do
  2357. if Effects2[e]~=nil then
  2358. local Thing=Effects2[e]
  2359. if Thing~=nil then
  2360. local Part=Thing[1]
  2361. local Mode=Thing[2]
  2362. local Delay=Thing[3]
  2363. local IncX=Thing[4]
  2364. local IncY=Thing[5]
  2365. local IncZ=Thing[6]
  2366. local Part2=Thing[8]
  2367. if Thing[1].Transparency<=1 then
  2368. if Thing[2]=="Block1" then
  2369. Thing[1].CFrame=Thing[1].CFrame
  2370. Mesh=Thing[1].Mesh
  2371. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  2372. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2373. elseif Thing[2]=="Cylinder" then
  2374. Mesh=Thing[1].Mesh
  2375. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  2376. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2377. elseif Thing[2]=="Blood" then
  2378. Mesh=Thing[7]
  2379. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  2380. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  2381. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2382. elseif Thing[2]=="Elec" then
  2383. Mesh=Thing[1].Mesh
  2384. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  2385. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2386. elseif Thing[2]=="Disappear" then
  2387. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2388. end
  2389. else
  2390. Part.Parent=nil
  2391. table.remove(Effects2,e)
  2392. end
  2393. end
  2394. end
  2395. end
  2396. end
  2397. if UNANCHOR == true then
  2398. unanchor()
  2399. end
  2400. Humanoid.MaxHealth = "inf"
  2401. Humanoid.Health = "inf"
  2402. if Rooted == false then
  2403. DISABLEJUMPING = false
  2404. if ANIM == "Fall" then
  2405. Humanoid.WalkSpeed = Speed*3
  2406. else
  2407. Humanoid.WalkSpeed = Speed
  2408. end
  2409. elseif Rooted == true then
  2410. DISABLEJUMPING = true
  2411. Humanoid.WalkSpeed = 0
  2412. end
  2413. q = Character:GetChildren()
  2414. for u = 1, #q do
  2415. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  2416. q[u]:remove()
  2417. elseif q[u].ClassName == "Shirt" then
  2418. q[u]:Destroy()
  2419. elseif q[u].ClassName == "Pants" then
  2420. q[u]:Destroy()
  2421. elseif q[u].ClassName == "CharacterMesh" then
  2422. q[u]:remove()
  2423. elseif q[u].ClassName == "ShirtGraphic" then
  2424. q[u]:remove()
  2425. elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then
  2426. q[u].Color = Color3.new(0/255, 0/255, 0/255)
  2427. end
  2428. end
  2429. if Head:FindFirstChild("face") then
  2430. Head.face:remove()
  2431. end
  2432. end
  2433.  
  2434. --//=================================\\
  2435. --\\=================================//
  2436.  
  2437.  
  2438.  
  2439.  
  2440.  
  2441. --//====================================================\\--
  2442. --|| END OF SCRIPT
  2443. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment