Advertisement
wamandnj

Untitled

Oct 14th, 2018
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 214.54 KB | None | 0 0
  1. warn("Wew")
  2. print("Alo this took a day and a few hours rip me")
  3.  
  4. Player = owner
  5. Character = Player.Character
  6. local txt = Instance.new("BillboardGui", Character)
  7. txt.Adornee = Character.Head
  8. txt.Name = "_status"
  9. txt.Size = UDim2.new(2, 0, 1.2, 0)
  10. txt.StudsOffset = Vector3.new(-9, 8, 0)
  11. local text = Instance.new("TextLabel", txt)
  12. text.Size = UDim2.new(10, 0, 7, 0)
  13. text.FontSize = "Size24"
  14. text.TextScaled = true
  15. text.TextTransparency = 0
  16. text.BackgroundTransparency = 1
  17. text.TextTransparency = 0
  18. text.TextStrokeTransparency = 0
  19. text.Font = "Antique"
  20. text.TextStrokeColor3 = Color3.new(0,0,0)
  21. text.Text = "Ultimate Being"
  22. print([[
  23. -------------------------------------------------
  24. Forgotten Controls-Ultimate Being's Secret Attacks
  25. Your attack is an INSULT-1
  26. Holy Punishment-2
  27. Winter God's Love-3
  28. Devils Destructive Power-4
  29. ]])
  30. script:ClearAllChildren()
  31. wait(0.2)
  32. -- This script has been converted to FE by iPxter
  33.  
  34.  
  35. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  36. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  37. do
  38. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  39. script.Parent = Player.Character
  40.  
  41. --RemoteEvent for communicating
  42. local Event = Instance.new("RemoteEvent")
  43. Event.Name = "UserInput_Event"
  44.  
  45. --Fake event to make stuff like Mouse.KeyDown work
  46. local function fakeEvent()
  47. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  48. t.connect = t.Connect
  49. return t
  50. end
  51.  
  52. --Creating fake input objects with fake variables
  53. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  54. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  55. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  56. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  57. end}
  58. --Merged 2 functions into one by checking amount of arguments
  59. CAS.UnbindAction = CAS.BindAction
  60.  
  61. --This function will trigger the events that have been :Connect()'ed
  62. local function te(self,ev,...)
  63. local t = m[ev]
  64. if t and t._fakeEvent and t.Function then
  65. t.Function(...)
  66. end
  67. end
  68. m.TrigEvent = te
  69. UIS.TrigEvent = te
  70.  
  71. Event.OnServerEvent:Connect(function(plr,io)
  72. if plr~=Player then return end
  73. if io.isMouse then
  74. m.Target = io.Target
  75. m.Hit = io.Hit
  76. else
  77. local b = io.UserInputState == Enum.UserInputState.Begin
  78. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  79. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  80. end
  81. for _,t in pairs(CAS.Actions) do
  82. for _,k in pairs(t.Keys) do
  83. if k==io.KeyCode then
  84. t.Function(t.Name,io.UserInputState,io)
  85. end
  86. end
  87. end
  88. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  89. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  90. end
  91. end)
  92. Event.Parent = NLS([==[
  93. local Player = game:GetService("Players").LocalPlayer
  94. local Event = script:WaitForChild("UserInput_Event")
  95.  
  96. local UIS = game:GetService("UserInputService")
  97. local input = function(io,a)
  98. if a then return end
  99. --Since InputObject is a client-side instance, we create and pass table instead
  100. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  101. end
  102. UIS.InputBegan:Connect(input)
  103. UIS.InputEnded:Connect(input)
  104.  
  105. local Mouse = Player:GetMouse()
  106. local h,t
  107. --Give the server mouse data 30 times every second, but only if the values changed
  108. --If player is not moving their mouse, client won't fire events
  109. while wait(1/30) do
  110. if h~=Mouse.Hit or t~=Mouse.Target then
  111. h,t=Mouse.Hit,Mouse.Target
  112. Event:FireServer({isMouse=true,Target=t,Hit=h})
  113. end
  114. end]==],Player.Character)
  115. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  116. end
  117.  
  118. Player = owner
  119. PlayerGui = Player.PlayerGui
  120. Cam = workspace.CurrentCamera
  121. Backpack = Player.Backpack
  122. Character = Player.Character
  123. Humanoid = Character.Humanoid
  124. RootPart = Character["HumanoidRootPart"]
  125. Torso = Character["Torso"]
  126. Head = Character["Head"]
  127. RightArm = Character["Right Arm"]
  128. LeftArm = Character["Left Arm"]
  129. RightLeg = Character["Right Leg"]
  130. LeftLeg = Character["Left Leg"]
  131. RootJoint = RootPart["RootJoint"]
  132. Neck = Torso["Neck"]
  133. RightShoulder = Torso["Right Shoulder"]
  134. LeftShoulder = Torso["Left Shoulder"]
  135. RightHip = Torso["Right Hip"]
  136. LeftHip = Torso["Left Hip"]
  137. local TIME = 0
  138. local sick = Instance.new("Sound",Torso)
  139. sick.SoundId = "rbxassetid://751167162"
  140. sick.Looped = true
  141. sick.Pitch = 1
  142. sick.Volume = 10
  143. sick:Play()
  144. Player_Size = 1
  145.  
  146. IT = Instance.new
  147. CF = CFrame.new
  148. VT = Vector3.new
  149. RAD = math.rad
  150. C3 = Color3.new
  151. UD2 = UDim2.new
  152. BRICKC = BrickColor.new
  153. ANGLES = CFrame.Angles
  154. EULER = CFrame.fromEulerAnglesXYZ
  155. COS = math.cos
  156. ACOS = math.acos
  157. SIN = math.sin
  158. ASIN = math.asin
  159. ABS = math.abs
  160. MRANDOM = math.random
  161. FLOOR = math.floor
  162.  
  163. --//=================================\\
  164. --|| USEFUL VALUES
  165. --\\=================================//
  166.  
  167. Animation_Speed = 3
  168. local FORCERESET = false
  169. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  170. local Speed = 16
  171. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  172. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  173. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  174. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  175. local DAMAGEMULTIPLIER = 1
  176. local ANIM = "Idle"
  177. local ATTACK = false
  178. local EQUIPPED = false
  179. local HOLD = false
  180. local COMBO = 1
  181. local Rooted = false
  182. local SINE = 0
  183. local KEYHOLD = false
  184. local CHANGE = 2 / Animation_Speed
  185. local WALKINGANIM = false
  186. local VALUE1 = false
  187. local VALUE2 = false
  188. local ROBLOXIDLEANIMATION = IT("Animation")
  189. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  190. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  191. --ROBLOXIDLEANIMATION.Parent = Humanoid
  192. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  193. WEAPONGUI.Name = "BanishV3Gui"
  194. local Weapon = IT("Model")
  195. Weapon.Name = "Adds"
  196. local Effects = IT("Folder", Weapon)
  197. Effects.Name = "Effects"
  198. local ANIMATOR = Humanoid.Animator
  199. local ANIMATE = Character:FindFirstChild("Animate")
  200. local UNANCHOR = true
  201. local TOBANISH = {}
  202. script.Parent = PlayerGui
  203. --//=================================\\
  204. --\\=================================//
  205.  
  206.  
  207. --//=================================\\
  208. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  209. --\\=================================//
  210.  
  211. ArtificialHB = Instance.new("BindableEvent", script)
  212. ArtificialHB.Name = "ArtificialHB"
  213.  
  214. script:WaitForChild("ArtificialHB")
  215.  
  216. frame = Frame_Speed
  217. tf = 0
  218. allowframeloss = false
  219. tossremainder = false
  220. lastframe = tick()
  221. script.ArtificialHB:Fire()
  222.  
  223. game:GetService("RunService").Heartbeat:connect(function(s, p)
  224. tf = tf + s
  225. if tf >= frame then
  226. if allowframeloss then
  227. script.ArtificialHB:Fire()
  228. lastframe = tick()
  229. else
  230. for i = 1, math.floor(tf / frame) do
  231. script.ArtificialHB:Fire()
  232. end
  233. lastframe = tick()
  234. end
  235. if tossremainder then
  236. tf = 0
  237. else
  238. tf = tf - frame * math.floor(tf / frame)
  239. end
  240. end
  241. end)
  242.  
  243. --//=================================\\
  244. --\\=================================//
  245.  
  246. --//=================================\\
  247. --|| SOME FUNCTIONS
  248. --\\=================================//
  249. function GoombaStomp(OBJECT)
  250. for _, c in pairs(OBJECT:GetChildren()) do
  251. if c:IsA("BasePart") then
  252. c.Size = VT(c.Size.X,0,c.Size.Z)
  253. end
  254. end
  255. end
  256.  
  257. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  258. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  259. end
  260.  
  261. function PositiveAngle(NUMBER)
  262. if NUMBER >= 0 then
  263. NUMBER = 0
  264. end
  265. return NUMBER
  266. end
  267.  
  268. function NegativeAngle(NUMBER)
  269. if NUMBER <= 0 then
  270. NUMBER = 0
  271. end
  272. return NUMBER
  273. end
  274.  
  275. function Swait(NUMBER)
  276. if NUMBER == 0 or NUMBER == nil then
  277. ArtificialHB.Event:wait()
  278. else
  279. for i = 1, NUMBER do
  280. ArtificialHB.Event:wait()
  281. end
  282. end
  283. end
  284.  
  285. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  286. local NEWMESH = IT(MESH)
  287. if MESH == "SpecialMesh" then
  288. NEWMESH.MeshType = MESHTYPE
  289. if MESHID ~= "nil" and MESHID ~= "" then
  290. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  291. end
  292. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  293. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  294. end
  295. end
  296. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  297. NEWMESH.Scale = SCALE
  298. NEWMESH.Parent = PARENT
  299. return NEWMESH
  300. end
  301.  
  302. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  303. local NEWPART = IT("Part")
  304. NEWPART.formFactor = FORMFACTOR
  305. NEWPART.Reflectance = REFLECTANCE
  306. NEWPART.Transparency = TRANSPARENCY
  307. NEWPART.CanCollide = false
  308. NEWPART.Locked = true
  309. NEWPART.Anchored = true
  310. if ANCHOR == false then
  311. NEWPART.Anchored = false
  312. end
  313. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  314. NEWPART.Name = NAME
  315. NEWPART.Size = SIZE
  316. NEWPART.Position = Torso.Position
  317. NEWPART.Material = MATERIAL
  318. NEWPART:BreakJoints()
  319. NEWPART.Parent = PARENT
  320. return NEWPART
  321. end
  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.  
  334. function QuaternionFromCFrame(cf)
  335. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  336. local trace = m00 + m11 + m22
  337. if trace > 0 then
  338. local s = math.sqrt(1 + trace)
  339. local recip = 0.5 / s
  340. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  341. else
  342. local i = 0
  343. if m11 > m00 then
  344. i = 1
  345. end
  346. if m22 > (i == 0 and m00 or m11) then
  347. i = 2
  348. end
  349. if i == 0 then
  350. local s = math.sqrt(m00 - m11 - m22 + 1)
  351. local recip = 0.5 / s
  352. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  353. elseif i == 1 then
  354. local s = math.sqrt(m11 - m22 - m00 + 1)
  355. local recip = 0.5 / s
  356. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  357. elseif i == 2 then
  358. local s = math.sqrt(m22 - m00 - m11 + 1)
  359. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  360. end
  361. end
  362. end
  363.  
  364. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  365. local xs, ys, zs = x + x, y + y, z + z
  366. local wx, wy, wz = w * xs, w * ys, w * zs
  367. local xx = x * xs
  368. local xy = x * ys
  369. local xz = x * zs
  370. local yy = y * ys
  371. local yz = y * zs
  372. local zz = z * zs
  373. 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))
  374. end
  375.  
  376. function QuaternionSlerp(a, b, t)
  377. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  378. local startInterp, finishInterp;
  379. if cosTheta >= 0.0001 then
  380. if (1 - cosTheta) > 0.0001 then
  381. local theta = ACOS(cosTheta)
  382. local invSinTheta = 1 / SIN(theta)
  383. startInterp = SIN((1 - t) * theta) * invSinTheta
  384. finishInterp = SIN(t * theta) * invSinTheta
  385. else
  386. startInterp = 1 - t
  387. finishInterp = t
  388. end
  389. else
  390. if (1 + cosTheta) > 0.0001 then
  391. local theta = ACOS(-cosTheta)
  392. local invSinTheta = 1 / SIN(theta)
  393. startInterp = SIN((t - 1) * theta) * invSinTheta
  394. finishInterp = SIN(t * theta) * invSinTheta
  395. else
  396. startInterp = t - 1
  397. finishInterp = t
  398. end
  399. end
  400. 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
  401. end
  402.  
  403. function Clerp(a, b, t)
  404. local qa = {QuaternionFromCFrame(a)}
  405. local qb = {QuaternionFromCFrame(b)}
  406. local ax, ay, az = a.x, a.y, a.z
  407. local bx, by, bz = b.x, b.y, b.z
  408. local _t = 1 - t
  409. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  410. end
  411.  
  412. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  413. local frame = IT("Frame")
  414. frame.BackgroundTransparency = TRANSPARENCY
  415. frame.BorderSizePixel = BORDERSIZEPIXEL
  416. frame.Position = POSITION
  417. frame.Size = SIZE
  418. frame.BackgroundColor3 = COLOR
  419. frame.BorderColor3 = BORDERCOLOR
  420. frame.Name = NAME
  421. frame.Parent = PARENT
  422. return frame
  423. end
  424.  
  425. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  426. local label = IT("TextLabel")
  427. label.BackgroundTransparency = 1
  428. label.Size = UD2(1, 0, 1, 0)
  429. label.Position = UD2(0, 0, 0, 0)
  430. label.TextColor3 = TEXTCOLOR
  431. label.TextStrokeTransparency = STROKETRANSPARENCY
  432. label.TextTransparency = TRANSPARENCY
  433. label.FontSize = TEXTFONTSIZE
  434. label.Font = TEXTFONT
  435. label.BorderSizePixel = BORDERSIZEPIXEL
  436. label.TextScaled = false
  437. label.Text = TEXT
  438. label.Name = NAME
  439. label.Parent = PARENT
  440. return label
  441. end
  442.  
  443. function NoOutlines(PART)
  444. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  445. end
  446.  
  447. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  448. local NEWWELD = IT(TYPE)
  449. NEWWELD.Part0 = PART0
  450. NEWWELD.Part1 = PART1
  451. NEWWELD.C0 = C0
  452. NEWWELD.C1 = C1
  453. NEWWELD.Parent = PARENT
  454. return NEWWELD
  455. end
  456.  
  457. local S = IT("Sound")
  458. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  459. local NEWSOUND = nil
  460. coroutine.resume(coroutine.create(function()
  461. NEWSOUND = S:Clone()
  462. NEWSOUND.Parent = PARENT
  463. NEWSOUND.Volume = VOLUME
  464. NEWSOUND.Pitch = PITCH
  465. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  466. NEWSOUND:play()
  467. if DOESLOOP == true then
  468. NEWSOUND.Looped = true
  469. else
  470. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  471. NEWSOUND:remove()
  472. end
  473. end))
  474. return NEWSOUND
  475. end
  476.  
  477. function CFrameFromTopBack(at, top, back)
  478. local right = top:Cross(back)
  479. 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)
  480. end
  481.  
  482. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  483. function WACKYEFFECT(Table)
  484. local TYPE = (Table.EffectType or "Sphere")
  485. local SIZE = (Table.Size or VT(1,1,1))
  486. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  487. local TRANSPARENCY = (Table.Transparency or 0)
  488. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  489. local CFRAME = (Table.CFrame or Torso.CFrame)
  490. local MOVEDIRECTION = (Table.MoveToPos or nil)
  491. local ROTATION1 = (Table.RotationX or 0)
  492. local ROTATION2 = (Table.RotationY or 0)
  493. local ROTATION3 = (Table.RotationZ or 0)
  494. local MATERIAL = (Table.Material or "Neon")
  495. local COLOR = (Table.Color or C3(1,1,1))
  496. local TIME = (Table.Time or 45)
  497. local SOUNDID = (Table.SoundID or nil)
  498. local SOUNDPITCH = (Table.SoundPitch or nil)
  499. local SOUNDVOLUME = (Table.SoundVolume or nil)
  500. coroutine.resume(coroutine.create(function()
  501. local PLAYSSOUND = false
  502. local SOUND = nil
  503. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  504. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  505. PLAYSSOUND = true
  506. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  507. end
  508. EFFECT.Color = COLOR
  509. local MSH = nil
  510. if TYPE == "Sphere" then
  511. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  512. elseif TYPE == "Block" then
  513. MSH = IT("BlockMesh",EFFECT)
  514. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  515. elseif TYPE == "Wave" then
  516. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  517. elseif TYPE == "Ring" then
  518. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  519. elseif TYPE == "Slash" then
  520. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  521. elseif TYPE == "Round Slash" then
  522. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  523. elseif TYPE == "Swirl" then
  524. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  525. elseif TYPE == "Skull" then
  526. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  527. elseif TYPE == "Crystal" then
  528. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  529. end
  530. if MSH ~= nil then
  531. local MOVESPEED = nil
  532. if MOVEDIRECTION ~= nil then
  533. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  534. end
  535. local GROWTH = SIZE - ENDSIZE
  536. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  537. if TYPE == "Block" then
  538. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  539. else
  540. EFFECT.CFrame = CFRAME
  541. end
  542. for LOOP = 1, TIME+1 do
  543. Swait()
  544. MSH.Scale = MSH.Scale - GROWTH/TIME
  545. if TYPE == "Wave" then
  546. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  547. end
  548. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  549. if TYPE == "Block" then
  550. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  551. else
  552. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  553. end
  554. if MOVEDIRECTION ~= nil then
  555. local ORI = EFFECT.Orientation
  556. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  557. EFFECT.Orientation = ORI
  558. end
  559. end
  560. if PLAYSSOUND == false then
  561. EFFECT:remove()
  562. else
  563. SOUND.Stopped:Connect(function()
  564. EFFECT:remove()
  565. end)
  566. end
  567. else
  568. if PLAYSSOUND == false then
  569. EFFECT:remove()
  570. else
  571. repeat Swait() until SOUND.Playing == false
  572. EFFECT:remove()
  573. end
  574. end
  575. end))
  576. end
  577. function MakeForm(PART,TYPE)
  578. if TYPE == "Cyl" then
  579. local MSH = IT("CylinderMesh",PART)
  580. elseif TYPE == "Ball" then
  581. local MSH = IT("SpecialMesh",PART)
  582. MSH.MeshType = "Sphere"
  583. elseif TYPE == "Wedge" then
  584. local MSH = IT("SpecialMesh",PART)
  585. MSH.MeshType = "Wedge"
  586. end
  587. end
  588.  
  589. function SpawnTrail(FROM,TO,BIG)
  590. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  591. MakeForm(TRAIL,"Cyl")
  592. local DIST = (FROM - TO).Magnitude
  593. if BIG == true then
  594. TRAIL.Size = VT(0.5,DIST,0.5)
  595. else
  596. TRAIL.Size = VT(0.25,DIST,0.25)
  597. end
  598. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  599. coroutine.resume(coroutine.create(function()
  600. for i = 1, 5 do
  601. Swait()
  602. TRAIL.Transparency = TRAIL.Transparency + 0.1
  603. end
  604. TRAIL:remove()
  605. end))
  606. end
  607.  
  608. Debris = game:GetService("Debris")
  609.  
  610. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  611. local DIRECTION = CF(StartPos,EndPos).lookVector
  612. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  613. end
  614.  
  615. function turnto(position)
  616. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  617. end
  618. function MakeForm(PART,TYPE)
  619. if TYPE == "Cyl" then
  620. local MSH = IT("CylinderMesh",PART)
  621. elseif TYPE == "Ball" then
  622. local MSH = IT("SpecialMesh",PART)
  623. MSH.MeshType = "Sphere"
  624. elseif TYPE == "Wedge" then
  625. local MSH = IT("SpecialMesh",PART)
  626. MSH.MeshType = "Wedge"
  627. end
  628. end
  629.  
  630. function SpawnTrail(FROM,TO,BIG)
  631. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Lime green", "Trail", VT(0,0,0))
  632. MakeForm(TRAIL,"Cyl")
  633. local DIST = (FROM - TO).Magnitude
  634. if BIG == true then
  635. TRAIL.Size = VT(0.5,DIST,0.5)
  636. else
  637. TRAIL.Size = VT(0.25,DIST,0.25)
  638. end
  639. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  640. coroutine.resume(coroutine.create(function()
  641. for i = 1, 5 do
  642. Swait()
  643. TRAIL.Transparency = TRAIL.Transparency + 0.1
  644. end
  645. TRAIL:remove()
  646. end))
  647. end
  648.  
  649. Debris = game:GetService("Debris")
  650.  
  651. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  652. local DIRECTION = CF(StartPos,EndPos).lookVector
  653. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  654. end
  655.  
  656. function turnto(position)
  657. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  658. end
  659.  
  660. local asd = Instance.new("ParticleEmitter")
  661. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  662. asd.LightEmission = .1
  663. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  664. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  665. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  666. asd.Transparency = bbb
  667. asd.Size = aaa
  668. asd.ZOffset = .9
  669. asd.Acceleration = Vector3.new(0, -15, 0)
  670. asd.LockedToPart = false
  671. asd.EmissionDirection = "Back"
  672. asd.Lifetime = NumberRange.new(1, 2)
  673. asd.Rotation = NumberRange.new(-100, 100)
  674. asd.RotSpeed = NumberRange.new(-100, 100)
  675. asd.Speed = NumberRange.new(10)
  676. asd.Enabled = false
  677. asd.VelocitySpread = 999
  678.  
  679. function getbloody(victim,amount)
  680. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  681. PART.CFrame = victim.CFrame
  682. local HITPLAYERSOUNDS = {"356551938","264486467"}
  683. Debris:AddItem(PART,5)
  684. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  685. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  686. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  687. local prtcl = asd:Clone()
  688. prtcl.Parent = PART
  689. prtcl:Emit(amount*10)
  690. end
  691.  
  692. local Particle = IT("ParticleEmitter",nil)
  693. Particle.Enabled = false
  694. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  695. Particle.LightEmission = 0.5
  696. Particle.Rate = 150
  697. Particle.ZOffset = 1
  698. Particle.Rotation = NumberRange.new(-180, 180)
  699. Particle.RotSpeed = NumberRange.new(-180, 180)
  700. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  701. Particle.Color = ColorSequence.new(C3(0,1,0),C3(0.4,0,0))
  702.  
  703. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  704. function ParticleEmitter(Table)
  705. local PRTCL = Particle:Clone()
  706. local Speed = Table.Speed or 5
  707. local Drag = Table.Drag or 0
  708. local Size1 = Table.Size1 or 1
  709. local Size2 = Table.Size2 or 5
  710. local Lifetime1 = Table.Lifetime1 or 1
  711. local Lifetime2 = Table.Lifetime2 or 1.5
  712. local Parent = Table.Parent or Torso
  713. local Emit = Table.Emit or 100
  714. local Offset = Table.Offset or 360
  715. local Acel = Table.Acel or VT(0,0,0)
  716. local Enabled = Table.Enabled or false
  717. PRTCL.Parent = Parent
  718. PRTCL.Size = NumberSequence.new(Size1,Size2)
  719. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  720. PRTCL.Speed = NumberRange.new(Speed)
  721. PRTCL.VelocitySpread = Offset
  722. PRTCL.Drag = Drag
  723. PRTCL.Acceleration = Acel
  724. if Enabled == false then
  725. PRTCL:Emit(Emit)
  726. Debris:AddItem(PRTCL,Lifetime2)
  727. else
  728. PRTCL.Enabled = true
  729. end
  730. return PRTCL
  731. end
  732. function MakeForm(PART,TYPE)
  733. if TYPE == "Cyl" then
  734. local MSH = IT("CylinderMesh",PART)
  735. elseif TYPE == "Ball" then
  736. local MSH = IT("SpecialMesh",PART)
  737. MSH.MeshType = "Sphere"
  738. elseif TYPE == "Wedge" then
  739. local MSH = IT("SpecialMesh",PART)
  740. MSH.MeshType = "Wedge"
  741. end
  742. end
  743.  
  744. Debris = game:GetService("Debris")
  745.  
  746. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  747. local DIRECTION = CF(StartPos,EndPos).lookVector
  748. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  749. end
  750.  
  751. local HATWELD = nil
  752. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  753. PLAYMAINANIM = false
  754. if WhichPose == "Cast1" then
  755. for i=0, Time, 0.1 / Animation_Speed do
  756. Swait()
  757. if Magic == true then
  758. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  759. end
  760. if Gyro ~= nil and Gyro ~= false then
  761. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  762. end
  763. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed)
  764. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed)
  765. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  766. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  767. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  768. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  769. end
  770. elseif WhichPose == "Cast2" then
  771. for i=0, Time, 0.1 / Animation_Speed do
  772. Swait()
  773. if Magic == true then
  774. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  775. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  776. end
  777. if Gyro ~= nil and Gyro ~= false then
  778. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  779. end
  780. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  781. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  782. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  783. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  784. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  785. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  786. end
  787. elseif WhichPose == "RightArmUp" then
  788. for i=0, Time, 0.1 / Animation_Speed do
  789. Swait()
  790. if Magic == true then
  791. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  792. end
  793. if Gyro ~= nil and Gyro ~= false then
  794. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  795. end
  796. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed)
  797. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed)
  798. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  799. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  800. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  801. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  802. end
  803. elseif WhichPose == "Taunt" then
  804. for i=0, Time, 0.1 / Animation_Speed do
  805. Swait()
  806. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  807. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  808. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  809. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  810. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  811. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  812. end
  813. HATWELD.Part0 = RightArm
  814. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  815. CreateSound(221057812,Torso,10,1,false)
  816. for i=0, Time*2, 0.1 / Animation_Speed do
  817. Swait()
  818. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  819. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  820. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  821. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  822. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  823. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  824. end
  825. for i=0, Time, 0.1 / Animation_Speed do
  826. Swait()
  827. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  828. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  829. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  830. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  831. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  832. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  833. HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed)
  834. end
  835. HATWELD.Part0 = Head
  836. HATWELD.C0 = CF(0,0.35,0)
  837. elseif WhichPose == "Prepare key" then
  838. for i=0, Time, 0.1 / Animation_Speed do
  839. Swait()
  840. if Gyro ~= nil and Gyro ~= false then
  841. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  842. end
  843. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed)
  844. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed)
  845. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  846. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  847. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  848. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  849. end
  850. elseif WhichPose == "Turn key" then
  851. for i=0, Time, 0.1 / Animation_Speed do
  852. Swait()
  853. if Gyro ~= nil and Gyro ~= false then
  854. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  855. end
  856. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed)
  857. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed)
  858. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  859. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  860. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  861. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  862. end
  863. end
  864. PLAYMAINANIM = true
  865. end
  866.  
  867. --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false})
  868. function Lightning(Table)
  869. local Color = Table.Color or C3(1,1,1)
  870. local StartPos = Table.Start or Torso.Position
  871. local EndPos = Table.End or Mouse.Hit.p
  872. local SegmentLength = Table.SegmentL or 2
  873. local Thickness = Table.Thickness or 0.1
  874. local Dissapear = Table.DoesFade or false
  875. local Parent = Table.Ignore or Character
  876. local MaxDist = Table.MaxDist or 400
  877. local Branches = Table.Branches or false
  878. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  879. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  880. local LIGHTNINGMODEL = IT("Model",Effects)
  881. LIGHTNINGMODEL.Name = "Lightning"
  882. local LastBolt = nil
  883. for E = 1, DISTANCE do
  884. local ExtraSize = (DISTANCE-E)/15
  885. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  886. PART.Color = Color
  887. MakeForm(PART,"Cyl")
  888. if LastBolt == nil then
  889. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  890. else
  891. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  892. end
  893. LastBolt = PART
  894. if Branches == true then
  895. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  896. if CHOICE == 1 then
  897. local LASTBRANCH = nil
  898. for i = 1, MRANDOM(2,5) do
  899. local ExtraSize2 = ((DISTANCE-E)/25)/i
  900. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  901. PART.Color = Color
  902. MakeForm(PART,"Cyl")
  903. if LASTBRANCH == nil then
  904. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  905. else
  906. PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  907. end
  908. LASTBRANCH = PART
  909. end
  910. end
  911. end
  912. end
  913. if Dissapear == true then
  914. coroutine.resume(coroutine.create(function()
  915. for i = 1, 10 do
  916. Swait()
  917. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  918. if c.ClassName == "Part" then
  919. c.Transparency = i/10
  920. end
  921. end
  922. end
  923. LIGHTNINGMODEL:remove()
  924. end))
  925. elseif Dissapear == false then
  926. Debris:AddItem(LIGHTNINGMODEL,0.1)
  927. end
  928. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  929. end
  930.  
  931. --//=================================\\
  932. --|| WEAPON CREATION
  933. --\\=================================//
  934.  
  935. local A = IT("Attachment",RightBarrel)
  936. A.Position = VT(0,-2.5,0)
  937. local B = IT("Attachment",RightBarrel)
  938. B.Position = VT(0,2.5,0)
  939. local Trail = IT("Trail",RightBarrel)
  940. Trail.Attachment0 = A
  941. Trail.Attachment1 = B
  942. Trail.Lifetime = 0.2
  943. Trail.Color = ColorSequence.new(BRICKC"Really red".Color)
  944. Trail.Transparency = NumberSequence.new(0, 1)
  945. Trail.Enabled = false
  946.  
  947. for _, c in pairs(Weapon:GetDescendants()) do
  948. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  949. c.Material = "Glass"
  950. c.Color = C3(0,0,0)
  951. elseif c.ClassName == "Part" and c.Name == "Eye" then
  952. c.Color = C3(1,0,0)
  953. c.Material = "Neon"
  954. end
  955. end
  956.  
  957. Weapon.Parent = Character
  958. for _, c in pairs(Weapon:GetChildren()) do
  959. if c.ClassName == "Part" then
  960. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  961. end
  962. end
  963.  
  964. local SKILLTEXTCOLOR = C3(0,0,0)
  965. local SKILLFONT = "Antique"
  966. local SKILLTEXTSIZE = 7
  967.  
  968. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  969. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  970. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  971. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  972. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  973. local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.85, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
  974. local SKILL7FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.85, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame")
  975.  
  976. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[E] God's Prison", SKILLTEXTCOLOR, SKILLTEXTSIZE-1, SKILLFONT, 0, 2, 0, "Text 1")
  977. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[R] Devil's Strike", SKILLTEXTCOLOR, SKILLTEXTSIZE-1, SKILLFONT, 0, 2, 0, "Text 2")
  978. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[T] Devil's Bomb", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  979. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] Angel's Smite", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
  980. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[C] Devil's Escape", SKILLTEXTCOLOR, SKILLTEXTSIZE+1, SKILLFONT, 0, 2, 0, "Text 5")
  981. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[Q] Godly Rage", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 6")
  982. local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[V] Demon's ground", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7")
  983. function printbye(Name)
  984. local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
  985. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  986. end
  987.  
  988. workspace.ChildAdded:connect(function(instance)
  989. for BANISH = 1, #TOBANISH do
  990. if TOBANISH[BANISH] ~= nil then
  991. if instance.Name == TOBANISH[BANISH] then
  992. coroutine.resume(coroutine.create(function()
  993. printbye(instance.Name)
  994. instance:ClearAllChildren()
  995. Debris:AddItem(instance,0.0005)
  996. end))
  997. end
  998. end
  999. end
  1000. end)
  1001. --//=================================\\
  1002. --|| DAMAGING
  1003. --\\=================================//
  1004. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1005. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1006. end
  1007. function PositiveAngle(NUMBER)
  1008. if NUMBER >= 0 then
  1009. NUMBER = 0
  1010. end
  1011. return NUMBER
  1012. end
  1013. function NegativeAngle(NUMBER)
  1014. if NUMBER <= 0 then
  1015. NUMBER = 0
  1016. end
  1017. return NUMBER
  1018. end
  1019. function Swait(NUMBER)
  1020. if NUMBER == 0 or NUMBER == nil then
  1021. ArtificialHB.Event:wait()
  1022. else
  1023. for i = 1, NUMBER do
  1024. ArtificialHB.Event:wait()
  1025. end
  1026. end
  1027. end
  1028. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  1029. local NEWMESH = IT(MESH)
  1030. if MESH == "SpecialMesh" then
  1031. NEWMESH.MeshType = MESHTYPE
  1032. if MESHID ~= "nil" and MESHID ~= "" then
  1033. NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
  1034. end
  1035. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1036. NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
  1037. end
  1038. end
  1039. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  1040. NEWMESH.Scale = SCALE
  1041. NEWMESH.Parent = PARENT
  1042. return NEWMESH
  1043. end
  1044. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  1045. local NEWPART = IT("Part")
  1046. NEWPART.formFactor = FORMFACTOR
  1047. NEWPART.Reflectance = REFLECTANCE
  1048. NEWPART.Transparency = TRANSPARENCY
  1049. NEWPART.CanCollide = false
  1050. NEWPART.Locked = true
  1051. NEWPART.Anchored = true
  1052. if ANCHOR == false then
  1053. NEWPART.Anchored = false
  1054. end
  1055. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  1056. NEWPART.Name = NAME
  1057. NEWPART.Size = SIZE
  1058. NEWPART.Position = Torso.Position
  1059. NEWPART.Material = MATERIAL
  1060. NEWPART:BreakJoints()
  1061. NEWPART.Parent = PARENT
  1062. return NEWPART
  1063. end
  1064.  
  1065. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  1066. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1067. local mesh = IT("SpecialMesh",wave)
  1068. mesh.MeshType = "Sphere"
  1069. mesh.Scale = SIZE
  1070. mesh.Offset = VT(0,0,0)
  1071. wave.CFrame = CFRAME
  1072. coroutine.resume(coroutine.create(function(PART)
  1073. for i = 1, WAIT do
  1074. Swait()
  1075. mesh.Scale = mesh.Scale + GROW
  1076. wave.Transparency = wave.Transparency + (1/WAIT)
  1077. if wave.Transparency > 0.99 then
  1078. wave:remove()
  1079. end
  1080. end
  1081. end))
  1082. end
  1083.  
  1084. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  1085. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1086. local mesh = IT("SpecialMesh",wave)
  1087. mesh.MeshType = "FileMesh"
  1088. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1089. mesh.Scale = SIZE
  1090. mesh.Offset = VT(0,0,0)
  1091. wave.CFrame = CFRAME
  1092. coroutine.resume(coroutine.create(function(PART)
  1093. for i = 1, WAIT do
  1094. Swait()
  1095. mesh.Scale = mesh.Scale + GROW
  1096. if DOESROT == true then
  1097. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1098. end
  1099. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1100. if wave.Transparency > 0.99 then
  1101. wave:remove()
  1102. end
  1103. end
  1104. end))
  1105. end
  1106.  
  1107. function CreateRing2(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  1108. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1109. local mesh = IT("SpecialMesh",wave)
  1110. mesh.MeshType = "FileMesh"
  1111. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1112. mesh.Scale = SIZE
  1113. mesh.Offset = VT(0,0,0)
  1114. wave.CFrame = CFRAME
  1115. coroutine.resume(coroutine.create(function(PART)
  1116. for i = 1, WAIT do
  1117. Swait()
  1118. mesh.Scale = mesh.Scale + GROW
  1119. if DOESROT == true then
  1120. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1121. end
  1122. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1123. if wave.Transparency > 0.99 then
  1124. wave:remove()
  1125. end
  1126. end
  1127. end))
  1128. end
  1129.  
  1130. function MagicSphere3(SIZE,WAIT,CFRAME,COLOR,GROW)
  1131. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1132. local mesh = IT("SpecialMesh",wave)
  1133. mesh.MeshType = "Sphere"
  1134. mesh.Scale = SIZE
  1135. mesh.Offset = VT(0,0,0)
  1136. wave.CFrame = CFRAME
  1137. coroutine.resume(coroutine.create(function(PART)
  1138. for i = 1, WAIT do
  1139. Swait()
  1140. mesh.Scale = mesh.Scale + GROW
  1141. wave.Transparency = wave.Transparency + (1/WAIT)
  1142. if wave.Transparency > 0.99 then
  1143. wave:remove()
  1144. end
  1145. end
  1146. end))
  1147. end
  1148.  
  1149. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1150. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Effect", VT(0,0,0))
  1151. local mesh = IT("SpecialMesh",wave)
  1152. mesh.MeshType = "FileMesh"
  1153. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1154. mesh.Scale = SIZE
  1155. mesh.Offset = VT(0,0,-SIZE.X/8)
  1156. wave.CFrame = CFRAME
  1157. coroutine.resume(coroutine.create(function(PART)
  1158. for i = 1, WAIT do
  1159. Swait()
  1160. mesh.Scale = mesh.Scale + GROW
  1161. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1162. if DOESROT == true then
  1163. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1164. end
  1165. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1166. if wave.Transparency > 0.99 then
  1167. wave:remove()
  1168. end
  1169. end
  1170. end))
  1171. end
  1172.  
  1173. function CreateWave2(inair,size,doesrotate,rotatedirection,waitt,part,offset)
  1174. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, "Bright orange", "Effect", VT(0,0,0))
  1175. local mesh = IT("SpecialMesh",wave)
  1176. mesh.MeshType = "FileMesh"
  1177. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1178. mesh.Scale = VT(size,size,size)
  1179. mesh.Offset = VT(0,0,-size/8)
  1180. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  1181. coroutine.resume(coroutine.create(function(PART)
  1182. for i = 1, waitt do
  1183. Swait()
  1184. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  1185. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1186. if doesrotate == true then
  1187. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  1188. end
  1189. wave.Transparency = wave.Transparency + (0.5/waitt)
  1190. if wave.Transparency > 0.99 then
  1191. wave:remove()
  1192. end
  1193. end
  1194. end))
  1195. end
  1196.  
  1197. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1198. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Effect", VT(0,0,0))
  1199. local mesh = IT("SpecialMesh",wave)
  1200. mesh.MeshType = "FileMesh"
  1201. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  1202. mesh.Scale = SIZE
  1203. wave.CFrame = CFRAME
  1204. coroutine.resume(coroutine.create(function(PART)
  1205. for i = 1, WAIT do
  1206. Swait()
  1207. mesh.Scale = mesh.Scale + GROW
  1208. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1209. if DOESROT == true then
  1210. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1211. end
  1212. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1213. if wave.Transparency > 0.99 then
  1214. wave:remove()
  1215. end
  1216. end
  1217. end))
  1218. end
  1219.  
  1220. local weldBetween = function(a, b)
  1221. local weldd = Instance.new("ManualWeld")
  1222. weldd.Part0 = a
  1223. weldd.Part1 = b
  1224. weldd.C0 = CFrame.new()
  1225. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1226. weldd.Parent = a
  1227. return weldd
  1228. end
  1229. function QuaternionFromCFrame(cf)
  1230. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1231. local trace = m00 + m11 + m22
  1232. if trace > 0 then
  1233. local s = math.sqrt(1 + trace)
  1234. local recip = 0.5 / s
  1235. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1236. else
  1237. local i = 0
  1238. if m00 < m11 then
  1239. i = 1
  1240. end
  1241. if m22 > (i == 0 and m00 or m11) then
  1242. i = 2
  1243. end
  1244. if i == 0 then
  1245. local s = math.sqrt(m00 - m11 - m22 + 1)
  1246. local recip = 0.5 / s
  1247. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1248. elseif i == 1 then
  1249. local s = math.sqrt(m11 - m22 - m00 + 1)
  1250. local recip = 0.5 / s
  1251. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1252. elseif i == 2 then
  1253. local s = math.sqrt(m22 - m00 - m11 + 1)
  1254. local recip = 0.5 / s
  1255. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1256. end
  1257. end
  1258. end
  1259. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1260. local xs, ys, zs = x + x, y + y, z + z
  1261. local wx, wy, wz = w * xs, w * ys, w * zs
  1262. local xx = x * xs
  1263. local xy = x * ys
  1264. local xz = x * zs
  1265. local yy = y * ys
  1266. local yz = y * zs
  1267. local zz = z * zs
  1268. 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))
  1269. end
  1270. function QuaternionSlerp(a, b, t)
  1271. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1272. local startInterp, finishInterp
  1273. if cosTheta >= 1.0E-4 then
  1274. if 1 - cosTheta > 1.0E-4 then
  1275. local theta = ACOS(cosTheta)
  1276. local invSinTheta = 1 / SIN(theta)
  1277. startInterp = SIN((1 - t) * theta) * invSinTheta
  1278. finishInterp = SIN(t * theta) * invSinTheta
  1279. else
  1280. startInterp = 1 - t
  1281. finishInterp = t
  1282. end
  1283. elseif 1 + cosTheta > 1.0E-4 then
  1284. local theta = ACOS(-cosTheta)
  1285. local invSinTheta = 1 / SIN(theta)
  1286. startInterp = SIN((t - 1) * theta) * invSinTheta
  1287. finishInterp = SIN(t * theta) * invSinTheta
  1288. else
  1289. startInterp = t - 1
  1290. finishInterp = t
  1291. end
  1292. 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
  1293. end
  1294. function Clerp(a, b, t)
  1295. local qa = {
  1296. QuaternionFromCFrame(a)
  1297. }
  1298. local qb = {
  1299. QuaternionFromCFrame(b)
  1300. }
  1301. local ax, ay, az = a.x, a.y, a.z
  1302. local bx, by, bz = b.x, b.y, b.z
  1303. local _t = 1 - t
  1304. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1305. end
  1306.  
  1307. function clerp(startCF,endCF,alpha)
  1308. return startCF:lerp(endCF, alpha)
  1309. end
  1310.  
  1311.  
  1312. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1313. local frame = IT("Frame")
  1314. frame.BackgroundTransparency = TRANSPARENCY
  1315. frame.BorderSizePixel = BORDERSIZEPIXEL
  1316. frame.Position = POSITION
  1317. frame.Size = SIZE
  1318. frame.BackgroundColor3 = COLOR
  1319. frame.BorderColor3 = BORDERCOLOR
  1320. frame.Name = NAME
  1321. frame.Parent = PARENT
  1322. return frame
  1323. end
  1324. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1325. local label = IT("TextLabel")
  1326. label.BackgroundTransparency = 1
  1327. label.Size = UD2(1, 0, 1, 0)
  1328. label.Position = UD2(0, 0, 0, 0)
  1329. label.TextColor3 = TEXTCOLOR
  1330. label.TextStrokeTransparency = STROKETRANSPARENCY
  1331. label.TextTransparency = TRANSPARENCY
  1332. label.FontSize = TEXTFONTSIZE
  1333. label.Font = TEXTFONT
  1334. label.BorderSizePixel = BORDERSIZEPIXEL
  1335. label.TextScaled = false
  1336. label.Text = TEXT
  1337. label.Name = NAME
  1338. label.Parent = PARENT
  1339. return label
  1340. end
  1341. function NoOutlines(PART)
  1342. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  1343. end
  1344. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1345. local NEWWELD = IT(TYPE)
  1346. NEWWELD.Part0 = PART0
  1347. NEWWELD.Part1 = PART1
  1348. NEWWELD.C0 = C0
  1349. NEWWELD.C1 = C1
  1350. NEWWELD.Parent = PARENT
  1351. return NEWWELD
  1352. end
  1353. function freezenearest(position, range)
  1354. for i, v in ipairs(workspace:GetChildren()) do
  1355. local body = v:GetChildren()
  1356. for part = 1, #body do
  1357. if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude and v.ClassName == "Model" and v:FindFirstChildOfClass("Humanoid") then
  1358. v:BreakJoints()
  1359. body[part].Material = "Ice"
  1360. body[part].BrickColor = BRICKC("Really red")
  1361. body[part].Anchored = true
  1362. end
  1363. end
  1364. end
  1365. end
  1366.  
  1367. function BulletDetection(FROM,TO,BRUTAL)
  1368. local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
  1369. coroutine.resume(coroutine.create(function()
  1370. if AIMHIT ~= nil then
  1371. if AIMHIT.Parent ~= Character then
  1372. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1373. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then
  1374. if BRUTAL == true then
  1375. Kill(AIMHIT.Parent)
  1376. else
  1377. getbloody(AIMHIT,15)
  1378. AIMHIT.Parent:BreakJoints()
  1379. if AIMHIT.Name == "Head" then
  1380. AIMHIT.Name = "HEADSHOT"
  1381. AIMHIT:remove()
  1382. end
  1383. end
  1384. else
  1385. if BRUTAL == true then
  1386. Kill(AIMHIT.Parent.Parent)
  1387. else
  1388. AIMHIT.Parent.Parent:BreakJoints()
  1389. end
  1390. end
  1391. end
  1392. end
  1393. end
  1394. end))
  1395. SpawnTrail(FROM,AIMPOS)
  1396. return AIMHIT,AIMPOS,NORMAL
  1397. end
  1398.  
  1399. function Banish(Foe)
  1400. if Foe then
  1401. coroutine.resume(coroutine.create(function()
  1402. --if game.Players:FindFirstChild(Foe.Name) then
  1403. table.insert(TOBANISH,Foe.Name)
  1404. printbye(Foe.Name)
  1405. --end
  1406. Foe.Archivable = true
  1407. local CLONE = Foe:Clone()
  1408. Foe:Destroy()
  1409. CLONE.Parent = Effects
  1410. CLONE:BreakJoints()
  1411. local MATERIALS = {"Glass","Neon"}
  1412. for _, c in pairs(CLONE:GetDescendants()) do
  1413. if c:IsA("BasePart") then
  1414. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1415. CreateSound(340722848, c, 10, 1, false)
  1416. end
  1417. c.Anchored = true
  1418. c.Transparency = c.Transparency + 0.2
  1419. c.Material = MATERIALS[MRANDOM(1,2)]
  1420. c.Color = C3(0,1,0)
  1421. if c.ClassName == "MeshPart" then
  1422. c.TextureID = ""
  1423. end
  1424. if c:FindFirstChildOfClass("SpecialMesh") then
  1425. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1426. end
  1427. if c:FindFirstChildOfClass("Decal") then
  1428. c:FindFirstChildOfClass("Decal"):remove()
  1429. end
  1430. c.Name = "Banished"
  1431. c.CanCollide = false
  1432. else
  1433. c:remove()
  1434. end
  1435. end
  1436. local A = false
  1437. for i = 1, 35 do
  1438. if A == false then
  1439. A = true
  1440. elseif A == true then
  1441. A = false
  1442. end
  1443. for _, c in pairs(CLONE:GetDescendants()) do
  1444. if c:IsA("BasePart") then
  1445. c.Anchored = true
  1446. c.Material = MATERIALS[MRANDOM(1,2)]
  1447. c.Transparency = c.Transparency + 0.8/35
  1448. if A == false then
  1449. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1450. elseif A == true then
  1451. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1452. end
  1453. end
  1454. end
  1455. Swait()
  1456. end
  1457. CLONE:remove()
  1458. end))
  1459. end
  1460. end
  1461.  
  1462. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1463. local CHILDREN = workspace:GetDescendants()
  1464. for index, CHILD in pairs(CHILDREN) do
  1465. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1466. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1467. if HUM then
  1468. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1469. if TORSO then
  1470. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1471. if ISBANISH == true then
  1472. Banish(CHILD)
  1473. else
  1474. if ISBANISH == "Gravity" then
  1475. HUM.PlatformStand = true
  1476. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1477. local grav = Instance.new("BodyPosition",TORSO)
  1478. grav.D = 15
  1479. grav.P = 20000
  1480. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1481. grav.position = TORSO.Position
  1482. grav.Name = "V3BanishForce"..Player.Name
  1483. else
  1484. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1485. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1486. end
  1487. else
  1488. HUM.PlatformStand = false
  1489. end
  1490. end
  1491. elseif ISBANISH == "Gravity" then
  1492. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1493. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1494. HUM.PlatformStand = false
  1495. end
  1496. end
  1497. end
  1498. end
  1499. end
  1500. end
  1501. end
  1502.  
  1503. function Kill(Char)
  1504. local NewCharacter = IT("Model",Effects)
  1505. NewCharacter.Name = "Ow im ded ;-;"
  1506. for _, c in pairs(Char:GetDescendants()) do
  1507. if c:IsA("BasePart") and c.Transparency == 0 then
  1508. if c.Parent == Char then
  1509. getbloody(c,5)
  1510. end
  1511. c:BreakJoints()
  1512. c.Material = "Glass"
  1513. c.Color = C3(0.5,0,0)
  1514. c.CanCollide = true
  1515. c.Transparency = 0.3
  1516. if c:FindFirstChildOfClass("SpecialMesh") then
  1517. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1518. end
  1519. if c.Name == "Head" then
  1520. c:ClearAllChildren()
  1521. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1522. end
  1523. if c.ClassName == "MeshPart" then
  1524. c.TextureID = ""
  1525. end
  1526. if c:FindFirstChildOfClass("BodyPosition") then
  1527. c:FindFirstChildOfClass("BodyPosition"):remove()
  1528. end
  1529. if c:FindFirstChildOfClass("ParticleEmitter") then
  1530. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1531. end
  1532. c.Parent = NewCharacter
  1533. c.Name = "DeadPart"
  1534. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1535. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1536. end
  1537. end
  1538. Char:remove()
  1539. Debris:AddItem(NewCharacter,5)
  1540. end
  1541.  
  1542. function ApplyAoE(POSITION,RANGE,BRUTAL)
  1543. local CHILDREN = workspace:GetDescendants()
  1544. for index, CHILD in pairs(CHILDREN) do
  1545. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1546. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1547. if HUM then
  1548. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1549. if TORSO then
  1550. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1551. if BRUTAL == true then
  1552. Kill(CHILD)
  1553. else
  1554. CHILD:BreakJoints()
  1555. end
  1556. end
  1557. end
  1558. end
  1559. end
  1560. end
  1561. end
  1562.  
  1563. function BulletDetection(FROM,TO,BRUTAL)
  1564. local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
  1565. coroutine.resume(coroutine.create(function()
  1566. if AIMHIT ~= nil then
  1567. if AIMHIT.Parent ~= Character then
  1568. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1569. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then
  1570. if BRUTAL == true then
  1571. Kill(AIMHIT.Parent)
  1572. else
  1573. getbloody(AIMHIT,15)
  1574. AIMHIT.Parent:BreakJoints()
  1575. if AIMHIT.Name == "Head" then
  1576. AIMHIT.Name = "HEADSHOT"
  1577. AIMHIT:remove()
  1578. end
  1579. end
  1580. else
  1581. if BRUTAL == true then
  1582. Kill(AIMHIT.Parent.Parent)
  1583. else
  1584. AIMHIT.Parent.Parent:BreakJoints()
  1585. end
  1586. end
  1587. end
  1588. end
  1589. end
  1590. end))
  1591. SpawnTrail(FROM,AIMPOS)
  1592. return AIMHIT,AIMPOS,NORMAL
  1593. end
  1594.  
  1595. function Banish(Foe)
  1596. if Foe then
  1597. coroutine.resume(coroutine.create(function()
  1598. --if game.Players:FindFirstChild(Foe.Name) then
  1599. table.insert(TOBANISH,Foe.Name)
  1600. printbye(Foe.Name)
  1601. --end
  1602. Foe.Archivable = true
  1603. local CLONE = Foe:Clone()
  1604. Foe:Destroy()
  1605. CLONE.Parent = Effects
  1606. CLONE:BreakJoints()
  1607. local MATERIALS = {"Glass","Neon"}
  1608. for _, c in pairs(CLONE:GetDescendants()) do
  1609. if c:IsA("BasePart") then
  1610. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1611. CreateSound(340722848, c, 10, 1, false)
  1612. end
  1613. c.Anchored = true
  1614. c.Transparency = c.Transparency + 0.2
  1615. c.Material = MATERIALS[MRANDOM(1,2)]
  1616. c.Color = C3(1,0,0)
  1617. if c.ClassName == "MeshPart" then
  1618. c.TextureID = ""
  1619. end
  1620. if c:FindFirstChildOfClass("SpecialMesh") then
  1621. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1622. end
  1623. if c:FindFirstChildOfClass("Decal") then
  1624. c:FindFirstChildOfClass("Decal"):remove()
  1625. end
  1626. c.Name = "Banished"
  1627. c.CanCollide = false
  1628. else
  1629. c:remove()
  1630. end
  1631. end
  1632. local A = false
  1633. for i = 1, 35 do
  1634. if A == false then
  1635. A = true
  1636. elseif A == true then
  1637. A = false
  1638. end
  1639. for _, c in pairs(CLONE:GetDescendants()) do
  1640. if c:IsA("BasePart") then
  1641. c.Anchored = true
  1642. c.Material = MATERIALS[MRANDOM(1,2)]
  1643. c.Transparency = c.Transparency + 0.8/35
  1644. if A == false then
  1645. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1646. elseif A == true then
  1647. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1648. end
  1649. end
  1650. end
  1651. Swait()
  1652. end
  1653. CLONE:remove()
  1654. end))
  1655. end
  1656. end
  1657.  
  1658. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1659. local CHILDREN = workspace:GetDescendants()
  1660. for index, CHILD in pairs(CHILDREN) do
  1661. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1662. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1663. if HUM then
  1664. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1665. if TORSO then
  1666. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1667. if ISBANISH == true then
  1668. Banish(CHILD)
  1669. else
  1670. if ISBANISH == "Gravity" then
  1671. HUM.PlatformStand = true
  1672. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1673. local grav = Instance.new("BodyPosition",TORSO)
  1674. grav.D = 15
  1675. grav.P = 20000
  1676. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1677. grav.position = TORSO.Position
  1678. grav.Name = "V3BanishForce"..Player.Name
  1679. else
  1680. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1681. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1682. end
  1683. else
  1684. HUM.PlatformStand = false
  1685. end
  1686. end
  1687. elseif ISBANISH == "Gravity" then
  1688. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1689. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1690. HUM.PlatformStand = false
  1691. end
  1692. end
  1693. end
  1694. end
  1695. end
  1696. end
  1697. end
  1698.  
  1699. function ApplyAoE(POSITION,RANGE,BRUTAL)
  1700. local CHILDREN = workspace:GetDescendants()
  1701. for index, CHILD in pairs(CHILDREN) do
  1702. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1703. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1704. if HUM then
  1705. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1706. if TORSO then
  1707. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1708. if BRUTAL == true then
  1709. Kill(CHILD)
  1710. else
  1711. CHILD:BreakJoints()
  1712. end
  1713. end
  1714. end
  1715. end
  1716. end
  1717. end
  1718. end
  1719.  
  1720. function Kill(Char)
  1721. local NewCharacter = IT("Model",Effects)
  1722. NewCharacter.Name = "Ow im ded ;-;"
  1723. for _, c in pairs(Char:GetDescendants()) do
  1724. if c:IsA("BasePart") and c.Transparency == 0 then
  1725. if c.Parent == Char then
  1726. getbloody(c,5)
  1727. end
  1728. c:BreakJoints()
  1729. c.Material = "Glass"
  1730. c.Color = C3(1,0,0)
  1731. c.CanCollide = true
  1732. c.Transparency = 0.3
  1733. if c:FindFirstChildOfClass("SpecialMesh") then
  1734. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1735. end
  1736. if c.Name == "Head" then
  1737. c:ClearAllChildren()
  1738. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1739. end
  1740. if c.ClassName == "MeshPart" then
  1741. c.TextureID = ""
  1742. end
  1743. if c:FindFirstChildOfClass("BodyPosition") then
  1744. c:FindFirstChildOfClass("BodyPosition"):remove()
  1745. end
  1746. if c:FindFirstChildOfClass("ParticleEmitter") then
  1747. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1748. end
  1749. c.Parent = NewCharacter
  1750. c.Name = "DeadPart"
  1751. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1752. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1753. end
  1754. end
  1755. Char:remove()
  1756. Debris:AddItem(NewCharacter,5)
  1757. end
  1758.  
  1759. function ApplyClock(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  1760. local CHILDREN = workspace:GetDescendants()
  1761. for index, CHILD in pairs(CHILDREN) do
  1762. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1763. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1764. if HUM then
  1765. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1766. if TORSO then
  1767. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1768. if INSTAKILL == true then
  1769. CHILD:BreakJoints()
  1770. else
  1771. local DMG = MRANDOM(MINDMG,MAXDMG)
  1772. ApplyDamage(HUM,DMG,TORSO)
  1773. end
  1774. if FLING > 0 then
  1775. for _, c in pairs(CHILD:GetChildren()) do
  1776. if c:IsA("BasePart") then
  1777. local bv = Instance.new("BodyVelocity")
  1778. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1779. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1780. bv.Parent = c
  1781. Debris:AddItem(bv,0.05)
  1782. end
  1783. end
  1784. end
  1785. end
  1786. end
  1787. end
  1788. end
  1789. end
  1790. end
  1791.  
  1792. function SHAKECAM(POSITION, RANGE, INTENSITY, TIME)
  1793. local TORSO = Torso
  1794. local HUM = Humanoid
  1795. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
  1796. coroutine.wrap(function()
  1797. VT = Vector3.new
  1798. MRANDOM = math.random
  1799. local A = TIME
  1800. local B = INTENSITY
  1801. local C = true
  1802. local HUMANOID = Humanoid
  1803. local TIMER = A or 35
  1804. local SHAKE = B or 5
  1805. local FADE = C or true
  1806. if HUMANOID then
  1807. local FADER = SHAKE / TIMER
  1808. for i = 1, TIMER do
  1809. wait()
  1810. HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10)
  1811. end
  1812. HUMANOID.CameraOffset = VT(0, 0, 0)
  1813. end
  1814.  
  1815. end)()
  1816. end
  1817. end
  1818.  
  1819. function killnearest(position, range, maxstrength)
  1820. for i, v in ipairs(workspace:GetChildren()) do
  1821. local body = v:GetChildren()
  1822. for part = 1, #body do
  1823. if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude then
  1824. if v.ClassName == "Model" then
  1825. v:BreakJoints()
  1826. end
  1827. local bv = Instance.new("BodyVelocity")
  1828. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1829. bv.velocity = CF(position, body[part].Position).lookVector * maxstrength
  1830. bv.Parent = body[part]
  1831. Debris:AddItem(bv, 0.2)
  1832. end
  1833. end
  1834. if v.ClassName == "Part" and v.Anchored == false and range > (v.Position - position).Magnitude then
  1835. v.Velocity = CFrame.new(position, v.Position).lookVector * 5 * maxstrength
  1836. end
  1837. end
  1838. end
  1839. local DECAL = IT("Decal")
  1840. function MakeRing()
  1841. local RING = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Gold"), "MagicRing", VT(0, 0, 0), true)
  1842. local MSH = IT("BlockMesh", RING)
  1843. local TOP = DECAL:Clone()
  1844. local BOTTOM = DECAL:Clone()
  1845. TOP.Parent = RING
  1846. BOTTOM.Parent = RING
  1847. TOP.Face = "Top"
  1848. BOTTOM.Face = "Bottom"
  1849. TOP.Texture = "http://www.roblox.com/asset/?id=127817121"
  1850. BOTTOM.Texture = "http://www.roblox.com/asset/?id=127817121"
  1851. local function REMOVE()
  1852. coroutine.resume(coroutine.create(function()
  1853. local SIZE = MSH.Scale.X
  1854. for i = 1, 35 do
  1855. Swait()
  1856. MSH.Scale = MSH.Scale - VT(SIZE, 0, SIZE) / 60
  1857. TOP.Transparency = TOP.Transparency + 0.02857142857142857
  1858. BOTTOM.Transparency = BOTTOM.Transparency + 0.02857142857142857
  1859. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0))
  1860. end
  1861. RING:remove()
  1862. end))
  1863. end
  1864. return RING, MSH, REMOVE
  1865. end
  1866.  
  1867. function CreateDebreeRing1(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  1868. if FLOOR ~= nil then
  1869. coroutine.resume(coroutine.create(function()
  1870. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  1871. PART.CFrame = CF(POSITION)
  1872. for i = 1, 45 do
  1873. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  1874. RingPiece.Material = FLOOR.Material
  1875. RingPiece.Color = FLOOR.Color
  1876. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1877. Debris:AddItem(RingPiece,SWAIT)
  1878. end
  1879. PART:remove()
  1880. end))
  1881. end
  1882. end
  1883.  
  1884. function CreateFlyingDebree1(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  1885. if FLOOR ~= nil then
  1886. for i = 1, AMOUNT do
  1887. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  1888. DEBREE.Material = FLOOR.Material
  1889. DEBREE.Color = FLOOR.Color
  1890. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1891. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
  1892. coroutine.resume(coroutine.create(function()
  1893. Swait(15)
  1894. DEBREE.Parent = workspace
  1895. DEBREE.CanCollide = true
  1896. Debris:AddItem(DEBREE,SWAIT)
  1897. end))
  1898. end
  1899. end
  1900. end
  1901.  
  1902. function CreateDebreeRing2(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  1903. if FLOOR ~= nil then
  1904. coroutine.resume(coroutine.create(function()
  1905. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Really black", "DebreeCenter", VT(0,0,0))
  1906. PART.CFrame = CF(POSITION)
  1907. for i = 1, 45 do
  1908. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Really black", "DebreePart", BLOCKSIZE)
  1909. RingPiece.Material = FLOOR.Material
  1910. RingPiece.Color = FLOOR.Color
  1911. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1912. Debris:AddItem(RingPiece,SWAIT)
  1913. end
  1914. PART:remove()
  1915. end))
  1916. end
  1917. end
  1918.  
  1919. function CreateFlyingDebree2(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  1920. if FLOOR ~= nil then
  1921. for i = 1, AMOUNT do
  1922. local DEBREE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Debree", BLOCKSIZE, false)
  1923. DEBREE.Material = FLOOR.Material
  1924. DEBREE.Color = FLOOR.Color
  1925. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1926. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),STRENGTH,MRANDOM(-STRENGTH,STRENGTH))
  1927. coroutine.resume(coroutine.create(function()
  1928. Swait(15)
  1929. DEBREE.Parent = workspace
  1930. DEBREE.CanCollide = true
  1931. Debris:AddItem(DEBREE,SWAIT)
  1932. end))
  1933. end
  1934. end
  1935. end
  1936.  
  1937. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  1938. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1939. local mesh = IT("SpecialMesh",wave)
  1940. mesh.MeshType = "FileMesh"
  1941. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1942. mesh.Scale = SIZE
  1943. mesh.Offset = VT(0,0,0)
  1944. wave.CFrame = CFRAME
  1945. coroutine.resume(coroutine.create(function(PART)
  1946. for i = 1, WAIT do
  1947. Swait()
  1948. mesh.Scale = mesh.Scale + GROW
  1949. if DOESROT == true then
  1950. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1951. end
  1952. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1953. if wave.Transparency > 0.99 then
  1954. wave:remove()
  1955. end
  1956. end
  1957. end))
  1958. end
  1959.  
  1960. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  1961. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1962. local mesh = IT("SpecialMesh",wave)
  1963. mesh.MeshType = "Sphere"
  1964. mesh.Scale = SIZE
  1965. mesh.Offset = VT(0,0,0)
  1966. wave.CFrame = CFRAME
  1967. coroutine.resume(coroutine.create(function(PART)
  1968. for i = 1, WAIT do
  1969. Swait()
  1970. mesh.Scale = mesh.Scale + GROW
  1971. wave.Transparency = wave.Transparency + (1/WAIT)
  1972. if wave.Transparency > 0.99 then
  1973. wave:remove()
  1974. end
  1975. end
  1976. end))
  1977. end
  1978. function MagicSpheres(size,waitt,cframe,color)
  1979. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1))
  1980. local mesh = IT("SpecialMesh",wave)
  1981. mesh.MeshType = "Sphere"
  1982. mesh.Scale = VT(size,size,size)
  1983. mesh.Offset = VT(0,0,0)
  1984. wave.CFrame = cframe
  1985. coroutine.resume(coroutine.create(function(PART)
  1986. for i = 1, waitt do
  1987. Swait()
  1988. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  1989. wave.Transparency = wave.Transparency + (1/waitt)
  1990. if wave.Transparency > 0.99 then
  1991. wave:remove()
  1992. end
  1993. end
  1994. end))
  1995. end
  1996.  
  1997. function MagicSpheres2(size,waitt,cframe,color)
  1998. local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1))
  1999. local mesh = IT("SpecialMesh",wave)
  2000. mesh.MeshType = "Sphere"
  2001. mesh.Scale = VT(size,size,size)
  2002. mesh.Offset = VT(0,0,0)
  2003. wave.CFrame = cframe
  2004. coroutine.resume(coroutine.create(function(PART)
  2005. for i = 1, waitt do
  2006. Swait()
  2007. mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt)
  2008. wave.Transparency = wave.Transparency - (1/waitt)
  2009. end
  2010. wave:remove()
  2011. end))
  2012. end
  2013.  
  2014. function MagicBlock(size,waitt,part,offset,color)
  2015. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size))
  2016. local mesh = IT("BlockMesh",wave)
  2017. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(0),RAD(0),RAD(0))
  2018. coroutine.resume(coroutine.create(function(PART)
  2019. for i = 1, waitt do
  2020. Swait()
  2021. mesh.Scale = mesh.Scale + VT(size/15,size/15,size/15)
  2022. wave.CFrame = CF(wave.Position) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  2023. wave.Transparency = wave.Transparency + (1/waitt)
  2024. if wave.Transparency > 0.99 then
  2025. wave:remove()
  2026. end
  2027. end
  2028. end))
  2029. end
  2030. function Banish(Foe)
  2031. if Foe then
  2032. coroutine.resume(coroutine.create(function()
  2033. --if game.Players:FindFirstChild(Foe.Name) then
  2034. table.insert(TOBANISH,Foe.Name)
  2035. printbye(Foe.Name)
  2036. --end
  2037. Foe.Archivable = true
  2038. local CLONE = Foe:Clone()
  2039. Foe:Destroy()
  2040. CLONE.Parent = Effects
  2041. CLONE:BreakJoints()
  2042. local MATERIALS = {"Glass","Neon"}
  2043. for _, c in pairs(CLONE:GetDescendants()) do
  2044. if c:IsA("BasePart") then
  2045. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  2046. CreateSound(340722848, c, 10, 1, false)
  2047. end
  2048. c.Anchored = true
  2049. c.Transparency = c.Transparency + 0.2
  2050. c.Material = MATERIALS[MRANDOM(1,2)]
  2051. c.Color = C3(1,0,0)
  2052. if c.ClassName == "MeshPart" then
  2053. c.TextureID = ""
  2054. end
  2055. if c:FindFirstChildOfClass("SpecialMesh") then
  2056. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  2057. end
  2058. if c:FindFirstChildOfClass("Decal") then
  2059. c:FindFirstChildOfClass("Decal"):remove()
  2060. end
  2061. c.Name = "Banished"
  2062. c.CanCollide = false
  2063. else
  2064. c:remove()
  2065. end
  2066. end
  2067. local A = false
  2068. for i = 1, 35 do
  2069. if A == false then
  2070. A = true
  2071. elseif A == true then
  2072. A = false
  2073. end
  2074. for _, c in pairs(CLONE:GetDescendants()) do
  2075. if c:IsA("BasePart") then
  2076. c.Anchored = true
  2077. c.Material = MATERIALS[MRANDOM(1,2)]
  2078. c.Transparency = c.Transparency + 0.8/35
  2079. if A == false then
  2080. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  2081. elseif A == true then
  2082. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  2083. end
  2084. end
  2085. end
  2086. Swait()
  2087. end
  2088. CLONE:remove()
  2089. end))
  2090. end
  2091. end
  2092.  
  2093. function ApplyAoE(POSITION,RANGE,ISBANISH)
  2094. local CHILDREN = workspace:GetDescendants()
  2095. for index, CHILD in pairs(CHILDREN) do
  2096. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2097. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2098. if HUM then
  2099. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2100. if TORSO then
  2101. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  2102. if ISBANISH == true then
  2103. Banish(CHILD)
  2104. else
  2105. if ISBANISH == "Gravity" then
  2106. HUM.PlatformStand = true
  2107. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  2108. local grav = Instance.new("BodyPosition",TORSO)
  2109. grav.D = 15
  2110. grav.P = 20000
  2111. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2112. grav.position = TORSO.Position
  2113. grav.Name = "V3BanishForce"..Player.Name
  2114. else
  2115. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  2116. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  2117. end
  2118. else
  2119. HUM.PlatformStand = false
  2120. end
  2121. end
  2122. elseif ISBANISH == "Gravity" then
  2123. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  2124. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  2125. HUM.PlatformStand = false
  2126. end
  2127. end
  2128. end
  2129. end
  2130. end
  2131. end
  2132. end
  2133. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  2134. if FLOOR ~= nil then
  2135. coroutine.resume(coroutine.create(function()
  2136. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  2137. PART.CFrame = CF(POSITION)
  2138. for i = 1, 45 do
  2139. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  2140. RingPiece.Material = FLOOR.Material
  2141. RingPiece.Color = FLOOR.Color
  2142. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  2143. Debris:AddItem(RingPiece,SWAIT)
  2144. end
  2145. PART:remove()
  2146. end))
  2147. end
  2148. end
  2149. function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  2150. if FLOOR ~= nil then
  2151. for i = 1, AMOUNT do
  2152. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  2153. DEBREE.Material = FLOOR.Material
  2154. DEBREE.Color = FLOOR.Color
  2155. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  2156. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
  2157. coroutine.resume(coroutine.create(function()
  2158. Swait(15)
  2159. DEBREE.Parent = workspace
  2160. DEBREE.CanCollide = true
  2161. Debris:AddItem(DEBREE,SWAIT)
  2162. end))
  2163. end
  2164. end
  2165. end
  2166. function Debree(POS,SWAIT)
  2167. coroutine.resume(coroutine.create(function()
  2168. local HOLDER = IT("Model",Effects)
  2169. HOLDER.Name = "Debree"
  2170. local HITFLOOR = Raycast(POS, (CF(POS, POS + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  2171. MagicSphere(VT(15,1,15),SWAIT,CF(POS),"Reddish brown",VT(0,0,0))
  2172. MagicSphere(VT(13,1,13),SWAIT,CF(POS),"Reddish brown",VT(0,0,0))
  2173. MagicSphere(VT(12,1,12),SWAIT,CF(POS),"Reddish brown",VT(0,0,0))
  2174. repeat Swait() until HITFLOOR ~= nil
  2175. local O = 0
  2176. for i = 1, 18 do
  2177. local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3,3,3))
  2178. Part.CFrame = CF(CF(POS) * CF((45/4.5)-i,0,O).p) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  2179. O = O - (45/4)/5+i/4
  2180. coroutine.resume(coroutine.create(function()
  2181. Swait(SWAIT)
  2182. for i = 1, 60 do
  2183. Swait()
  2184. local RayHit, Way = CastProperRay(Part.Position,POS,0.1,workspace)
  2185. Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  2186. end
  2187. for i = 1, 50 do
  2188. Swait()
  2189. Part.Size = Part.Size * 0.9
  2190. end
  2191. end))
  2192. end
  2193. local O = 0
  2194. for i = 1, 18 do
  2195. local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3,3,3))
  2196. Part.CFrame = CF(CF(POS) * CF((45/4.5)-i,0,O).p) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  2197. O = O + (45/4)/5-i/4
  2198. coroutine.resume(coroutine.create(function()
  2199. Swait(SWAIT)
  2200. for i = 1, 60 do
  2201. Swait()
  2202. local RayHit, Way = CastProperRay(Part.Position,POS,0.1,workspace)
  2203. Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  2204. end
  2205. for i = 1, 50 do
  2206. Swait()
  2207. Part.Size = Part.Size * 0.9
  2208. end
  2209. end))
  2210. end
  2211. Swait(SWAIT+110)
  2212. HOLDER:remove()
  2213. end))
  2214. end
  2215. function Kill(Char)
  2216. local NewCharacter = IT("Model",Effects)
  2217. NewCharacter.Name = "Ow im ded ;-;"
  2218. for _, c in pairs(Char:GetDescendants()) do
  2219. if c:IsA("BasePart") and c.Transparency == 0 then
  2220. if c.Parent == Char then
  2221. getbloody(c,5)
  2222. end
  2223. c:BreakJoints()
  2224. c.Material = "Glass"
  2225. c.Color = C3(0.5,0,0)
  2226. c.CanCollide = true
  2227. c.Transparency = 0.3
  2228. if c:FindFirstChildOfClass("SpecialMesh") then
  2229. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  2230. end
  2231. if c.Name == "Head" then
  2232. c:ClearAllChildren()
  2233. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  2234. end
  2235. if c.ClassName == "MeshPart" then
  2236. c.TextureID = ""
  2237. end
  2238. if c:FindFirstChildOfClass("BodyPosition") then
  2239. c:FindFirstChildOfClass("BodyPosition"):remove()
  2240. end
  2241. if c:FindFirstChildOfClass("ParticleEmitter") then
  2242. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  2243. end
  2244. c.Parent = NewCharacter
  2245. c.Name = "DeadPart"
  2246. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  2247. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  2248. end
  2249. end
  2250. Char:remove()
  2251. Debris:AddItem(NewCharacter,5)
  2252. end
  2253. function ApplyAoE(POSITION,RANGE,BRUTAL)
  2254. local CHILDREN = workspace:GetDescendants()
  2255. for index, CHILD in pairs(CHILDREN) do
  2256. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2257. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2258. if HUM then
  2259. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2260. if TORSO then
  2261. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  2262. if BRUTAL == true then
  2263. Kill(CHILD)
  2264. else
  2265. CHILD:BreakJoints()
  2266. end
  2267. end
  2268. end
  2269. end
  2270. end
  2271. end
  2272. end
  2273. function WaveParticles(Position,Size,Color)
  2274. local BASE = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "Shockwave", VT(0,0,0), true)
  2275. BASE.CFrame = CF(Position)
  2276. local A = IT("Attachment",BASE)
  2277. local WAVE = script.Wave:Clone()
  2278. WAVE.Parent = A
  2279. WAVE.Size = NumberSequence.new(0,Size)
  2280. WAVE.Color = ColorSequence.new(Color)
  2281. Debris:AddItem(BASE,0.5)
  2282. WAVE:Emit(1)
  2283. end
  2284. function SpawnSmite(POS)
  2285. local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character)
  2286. local EMITPOS = HITPOS
  2287. if HITFLOOR ~= nil then
  2288. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  2289. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
  2290. EMITPOS = HITPOS
  2291. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  2292. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
  2293. EMITPOS = HITPOS
  2294. end
  2295. end
  2296. if HITFLOOR ~= nil then
  2297. ApplyAoE(EMITPOS,10)
  2298. WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
  2299. WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  2300. WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  2301. for i = 1, 5 do
  2302. local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12)
  2303. WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
  2304. end
  2305. end
  2306. end
  2307.  
  2308. function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS)
  2309. coroutine.resume(coroutine.create(function()
  2310. local METEOR = IT("Model",Effects)
  2311. METEOR.Name = "Meteorite"
  2312. local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
  2313. METEOR.PrimaryPart = CENTER
  2314. local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
  2315. PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  2316. for i = 1, 15 do
  2317. local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Really red", "Fire", VT(5.1,1,5.1)*SIZE)
  2318. FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  2319. end
  2320. if ISDEBREE ~= true then
  2321. METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  2322. else
  2323. METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  2324. end
  2325. local IMPACT = false
  2326. CreateSound(463593339, CENTER, 10, 0.6)
  2327. if SIZE >= 3.5 then
  2328. for i = 1, MRANDOM(3,7) do
  2329. SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p)
  2330. end
  2331. end
  2332. for i = 1, 200 do
  2333. Swait()
  2334. local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character)
  2335. if HITFLOOR == nil then
  2336. local ORI = CENTER.Orientation
  2337. METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  2338. else
  2339. if HITFLOOR.Anchored == true then
  2340. CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5)
  2341. CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175)
  2342. end
  2343. IMPACT = true
  2344. break
  2345. end
  2346. end
  2347. if IMPACT == true then
  2348. WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
  2349. WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5})
  2350. WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
  2351. ApplyAoE(CENTER.Position,30*SIZE)
  2352. end
  2353. METEOR:remove()
  2354. end))
  2355. end
  2356. function Warp(Victim,WarpToVoid)
  2357. print("Warping "..Victim.Name.."...")
  2358. Victim.Anchored = true
  2359. coroutine.resume(coroutine.create(function()
  2360. local GUI,GUI2 = CreateGUICircle(Victim)
  2361. CreateSound("1208650519", Victim, 10, 1)
  2362. for i = 1, 100 do
  2363. Swait()
  2364. GUI.Size = GUI.Size + UDim2.new(0.2,0,0.2,0)
  2365. GUI2.Rotation = GUI2.Rotation + 4
  2366. end
  2367. CastWarpOutlines(Victim.Parent)
  2368. if WarpToVoid == false then
  2369. Victim.CFrame = Victim.CFrame * CF(MRANDOM(-65,65),0,MRANDOM(-65,65))
  2370. CreateSound("1177785010", Victim, 10, 1)
  2371. local HUMANOID = Victim.Parent:FindFirstChildOfClass("Humanoid")
  2372. if HUMANOID ~= nil then
  2373. local dmg = MRANDOM(75,95)
  2374. HUMANOID.Health = HUMANOID.Health - dmg
  2375. StatLabel("Normal", Victim.CFrame * CF(0, 0 + (Victim.Size.z - 1), 0), "WARPED/"..dmg, C3(0.3, 0, 0.3))
  2376. end
  2377. for i = 1, 50 do
  2378. Swait()
  2379. GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0)
  2380. GUI2.Rotation = GUI2.Rotation - 8
  2381. end
  2382. Victim.Anchored = false
  2383. GUI:remove()
  2384. elseif WarpToVoid == true then
  2385. CastWarpOutlines(Victim.Parent)
  2386. q = Victim.Parent:GetChildren()
  2387. for i = 1, #q do
  2388. if q[i] ~= Victim then
  2389. q[i]:remove()
  2390. end
  2391. end
  2392. CreateSound("1177785010", Victim, 10, 1)
  2393. Victim.Transparency = 1
  2394. for i = 1, 50 do
  2395. Swait()
  2396. GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0)
  2397. GUI2.Rotation = GUI2.Rotation - 8
  2398. end
  2399. Victim.Parent:remove()
  2400. end
  2401. end))
  2402. end
  2403. wait(0.2)
  2404.  
  2405. Player = game:GetService("Players").LocalPlayer
  2406. PlayerGui = Player.PlayerGui
  2407. Cam = workspace.CurrentCamera
  2408. Backpack = Player.Backpack
  2409. Character = Player.Character
  2410. Humanoid = Character.Humanoid
  2411. Mouse = Player:GetMouse()
  2412. RootPart = Character["HumanoidRootPart"]
  2413. Torso = Character["Torso"]
  2414. Head = Character["Head"]
  2415. RightArm = Character["Right Arm"]
  2416. LeftArm = Character["Left Arm"]
  2417. RightLeg = Character["Right Leg"]
  2418. LeftLeg = Character["Left Leg"]
  2419. RootJoint = RootPart["RootJoint"]
  2420. Neck = Torso["Neck"]
  2421. RightShoulder = Torso["Right Shoulder"]
  2422. LeftShoulder = Torso["Left Shoulder"]
  2423. RightHip = Torso["Right Hip"]
  2424. LeftHip = Torso["Left Hip"]
  2425. local sick = Instance.new("Sound",Torso)
  2426. sick.SoundId = "rbxassetid://751167162"
  2427. sick.Looped = true
  2428. sick.Pitch = 1
  2429. sick.Volume = 3
  2430. sick:Play()
  2431.  
  2432. IT = Instance.new
  2433. CF = CFrame.new
  2434. VT = Vector3.new
  2435. RAD = math.rad
  2436. C3 = Color3.new
  2437. UD2 = UDim2.new
  2438. BRICKC = BrickColor.new
  2439. ANGLES = CFrame.Angles
  2440. EULER = CFrame.fromEulerAnglesXYZ
  2441. COS = math.cos
  2442. ACOS = math.acos
  2443. SIN = math.sin
  2444. ASIN = math.asin
  2445. ABS = math.abs
  2446. MRANDOM = math.random
  2447. FLOOR = math.floor
  2448.  
  2449. --//=================================\\
  2450. --|| SOME FUNCTIONS
  2451. --\\=================================//
  2452.  
  2453. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  2454. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  2455. end
  2456.  
  2457. function PositiveAngle(NUMBER)
  2458. if NUMBER >= 0 then
  2459. NUMBER = 0
  2460. end
  2461. return NUMBER
  2462. end
  2463.  
  2464. function NegativeAngle(NUMBER)
  2465. if NUMBER <= 0 then
  2466. NUMBER = 0
  2467. end
  2468. return NUMBER
  2469. end
  2470.  
  2471. function Swait(NUMBER)
  2472. if NUMBER == 0 or NUMBER == nil then
  2473. ArtificialHB.Event:wait()
  2474. else
  2475. for i = 1, NUMBER do
  2476. ArtificialHB.Event:wait()
  2477. end
  2478. end
  2479. end
  2480.  
  2481. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  2482. local NEWMESH = IT(MESH)
  2483. if MESH == "SpecialMesh" then
  2484. NEWMESH.MeshType = MESHTYPE
  2485. if MESHID ~= "nil" and MESHID ~= "" then
  2486. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  2487. end
  2488. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  2489. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  2490. end
  2491. end
  2492. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  2493. NEWMESH.Scale = SCALE
  2494. NEWMESH.Parent = PARENT
  2495. return NEWMESH
  2496. end
  2497.  
  2498. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  2499. local NEWPART = IT("Part")
  2500. NEWPART.formFactor = FORMFACTOR
  2501. NEWPART.Reflectance = REFLECTANCE
  2502. NEWPART.Transparency = TRANSPARENCY
  2503. NEWPART.CanCollide = false
  2504. NEWPART.Locked = true
  2505. NEWPART.Anchored = true
  2506. if ANCHOR == false then
  2507. NEWPART.Anchored = false
  2508. end
  2509. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  2510. NEWPART.Name = NAME
  2511. NEWPART.Size = SIZE
  2512. NEWPART.Position = Torso.Position
  2513. NEWPART.Material = MATERIAL
  2514. NEWPART:BreakJoints()
  2515. NEWPART.Parent = PARENT
  2516. return NEWPART
  2517. end
  2518.  
  2519. local function weldBetween(a, b)
  2520. local weldd = IT("Weld")
  2521. weldd.Part0 = a
  2522. weldd.Part1 = b
  2523. weldd.C0 = CF()
  2524. weldd.C1 = b.CFrame:inverse() * a.CFrame
  2525. weldd.Parent = a
  2526. return weldd
  2527. end
  2528.  
  2529.  
  2530. function QuaternionFromCFrame(cf)
  2531. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  2532. local trace = m00 + m11 + m22
  2533. if trace > 0 then
  2534. local s = math.sqrt(1 + trace)
  2535. local recip = 0.5 / s
  2536. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  2537. else
  2538. local i = 0
  2539. if m11 > m00 then
  2540. i = 1
  2541. end
  2542. if m22 > (i == 0 and m00 or m11) then
  2543. i = 2
  2544. end
  2545. if i == 0 then
  2546. local s = math.sqrt(m00 - m11 - m22 + 1)
  2547. local recip = 0.5 / s
  2548. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  2549. elseif i == 1 then
  2550. local s = math.sqrt(m11 - m22 - m00 + 1)
  2551. local recip = 0.5 / s
  2552. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  2553. elseif i == 2 then
  2554. local s = math.sqrt(m22 - m00 - m11 + 1)
  2555. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  2556. end
  2557. end
  2558. end
  2559.  
  2560. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  2561. local xs, ys, zs = x + x, y + y, z + z
  2562. local wx, wy, wz = w * xs, w * ys, w * zs
  2563. local xx = x * xs
  2564. local xy = x * ys
  2565. local xz = x * zs
  2566. local yy = y * ys
  2567. local yz = y * zs
  2568. local zz = z * zs
  2569. 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))
  2570. end
  2571.  
  2572. function QuaternionSlerp(a, b, t)
  2573. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  2574. local startInterp, finishInterp;
  2575. if cosTheta >= 0.0001 then
  2576. if (1 - cosTheta) > 0.0001 then
  2577. local theta = ACOS(cosTheta)
  2578. local invSinTheta = 1 / SIN(theta)
  2579. startInterp = SIN((1 - t) * theta) * invSinTheta
  2580. finishInterp = SIN(t * theta) * invSinTheta
  2581. else
  2582. startInterp = 1 - t
  2583. finishInterp = t
  2584. end
  2585. else
  2586. if (1 + cosTheta) > 0.0001 then
  2587. local theta = ACOS(-cosTheta)
  2588. local invSinTheta = 1 / SIN(theta)
  2589. startInterp = SIN((t - 1) * theta) * invSinTheta
  2590. finishInterp = SIN(t * theta) * invSinTheta
  2591. else
  2592. startInterp = t - 1
  2593. finishInterp = t
  2594. end
  2595. end
  2596. 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
  2597. end
  2598.  
  2599. function Clerp(a, b, t)
  2600. local qa = {QuaternionFromCFrame(a)}
  2601. local qb = {QuaternionFromCFrame(b)}
  2602. local ax, ay, az = a.x, a.y, a.z
  2603. local bx, by, bz = b.x, b.y, b.z
  2604. local _t = 1 - t
  2605. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  2606. end
  2607.  
  2608. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  2609. local frame = IT("Frame")
  2610. frame.BackgroundTransparency = TRANSPARENCY
  2611. frame.BorderSizePixel = BORDERSIZEPIXEL
  2612. frame.Position = POSITION
  2613. frame.Size = SIZE
  2614. frame.BackgroundColor3 = COLOR
  2615. frame.BorderColor3 = BORDERCOLOR
  2616. frame.Name = NAME
  2617. frame.Parent = PARENT
  2618. return frame
  2619. end
  2620.  
  2621. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  2622. local label = IT("TextLabel")
  2623. label.BackgroundTransparency = 1
  2624. label.Size = UD2(1, 0, 1, 0)
  2625. label.Position = UD2(0, 0, 0, 0)
  2626. label.TextColor3 = TEXTCOLOR
  2627. label.TextStrokeTransparency = STROKETRANSPARENCY
  2628. label.TextTransparency = TRANSPARENCY
  2629. label.FontSize = TEXTFONTSIZE
  2630. label.Font = TEXTFONT
  2631. label.BorderSizePixel = BORDERSIZEPIXEL
  2632. label.TextScaled = false
  2633. label.Text = TEXT
  2634. label.Name = NAME
  2635. label.Parent = PARENT
  2636. return label
  2637. end
  2638.  
  2639. function NoOutlines(PART)
  2640. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  2641. end
  2642.  
  2643. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  2644. local NEWWELD = IT(TYPE)
  2645. NEWWELD.Part0 = PART0
  2646. NEWWELD.Part1 = PART1
  2647. NEWWELD.C0 = C0
  2648. NEWWELD.C1 = C1
  2649. NEWWELD.Parent = PARENT
  2650. return NEWWELD
  2651. end
  2652.  
  2653. local S = IT("Sound")
  2654. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  2655. local NEWSOUND = nil
  2656. coroutine.resume(coroutine.create(function()
  2657. NEWSOUND = S:Clone()
  2658. NEWSOUND.Parent = PARENT
  2659. NEWSOUND.Volume = VOLUME
  2660. NEWSOUND.Pitch = PITCH
  2661. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  2662. NEWSOUND:play()
  2663. if DOESLOOP == true then
  2664. NEWSOUND.Looped = true
  2665. else
  2666. repeat wait(1) until NEWSOUND.Playing == false
  2667. NEWSOUND:remove()
  2668. end
  2669. end))
  2670. return NEWSOUND
  2671. end
  2672.  
  2673. function CFrameFromTopBack(at, top, back)
  2674. local right = top:Cross(back)
  2675. 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)
  2676. end
  2677.  
  2678. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2679. function WACKYEFFECT(Table)
  2680. local TYPE = (Table.EffectType or "Sphere")
  2681. local SIZE = (Table.Size or VT(1,1,1))
  2682. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  2683. local TRANSPARENCY = (Table.Transparency or 0)
  2684. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  2685. local CFRAME = (Table.CFrame or Torso.CFrame)
  2686. local MOVEDIRECTION = (Table.MoveToPos or nil)
  2687. local ROTATION1 = (Table.RotationX or 0)
  2688. local ROTATION2 = (Table.RotationY or 0)
  2689. local ROTATION3 = (Table.RotationZ or 0)
  2690. local MATERIAL = (Table.Material or "Neon")
  2691. local COLOR = (Table.Color or C3(1,1,1))
  2692. local TIME = (Table.Time or 45)
  2693. local SOUNDID = (Table.SoundID or nil)
  2694. local SOUNDPITCH = (Table.SoundPitch or nil)
  2695. local SOUNDVOLUME = (Table.SoundVolume or nil)
  2696. coroutine.resume(coroutine.create(function()
  2697. local PLAYSSOUND = false
  2698. local SOUND = nil
  2699. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  2700. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  2701. PLAYSSOUND = true
  2702. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  2703. end
  2704. EFFECT.Color = COLOR
  2705. local MSH = nil
  2706. if TYPE == "Sphere" then
  2707. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  2708. elseif TYPE == "Block" then
  2709. MSH = IT("BlockMesh",EFFECT)
  2710. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  2711. elseif TYPE == "Wave" then
  2712. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  2713. elseif TYPE == "Ring" then
  2714. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  2715. elseif TYPE == "Slash" then
  2716. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  2717. elseif TYPE == "Round Slash" then
  2718. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  2719. elseif TYPE == "Swirl" then
  2720. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  2721. elseif TYPE == "Skull" then
  2722. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  2723. elseif TYPE == "Crystal" then
  2724. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  2725. end
  2726. if MSH ~= nil then
  2727. local MOVESPEED = nil
  2728. if MOVEDIRECTION ~= nil then
  2729. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  2730. end
  2731. local GROWTH = SIZE - ENDSIZE
  2732. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  2733. if TYPE == "Block" then
  2734. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  2735. else
  2736. EFFECT.CFrame = CFRAME
  2737. end
  2738. for LOOP = 1, TIME+1 do
  2739. Swait()
  2740. MSH.Scale = MSH.Scale - GROWTH/TIME
  2741. if TYPE == "Wave" then
  2742. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  2743. end
  2744. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  2745. if TYPE == "Block" then
  2746. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  2747. else
  2748. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  2749. end
  2750. if MOVEDIRECTION ~= nil then
  2751. local ORI = EFFECT.Orientation
  2752. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  2753. EFFECT.Orientation = ORI
  2754. end
  2755. end
  2756. if PLAYSSOUND == false then
  2757. EFFECT:remove()
  2758. else
  2759. SOUND.Stopped:Connect(function()
  2760. EFFECT:remove()
  2761. end)
  2762. end
  2763. else
  2764. if PLAYSSOUND == false then
  2765. EFFECT:remove()
  2766. else
  2767. repeat Swait() until SOUND.Playing == false
  2768. EFFECT:remove()
  2769. end
  2770. end
  2771. end))
  2772. end
  2773.  
  2774. function MakeForm(PART,TYPE)
  2775. if TYPE == "Cyl" then
  2776. local MSH = IT("CylinderMesh",PART)
  2777. elseif TYPE == "Ball" then
  2778. local MSH = IT("SpecialMesh",PART)
  2779. MSH.MeshType = "Sphere"
  2780. elseif TYPE == "Wedge" then
  2781. local MSH = IT("SpecialMesh",PART)
  2782. MSH.MeshType = "Wedge"
  2783. end
  2784. end
  2785.  
  2786. Debris = game:GetService("Debris")
  2787.  
  2788. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  2789. local DIRECTION = CF(StartPos,EndPos).lookVector
  2790. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  2791. end
  2792.  
  2793. function turnto(position)
  2794. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  2795. end
  2796.  
  2797. function SpawnTrail(FROM,TO,BIG)
  2798. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Trail", VT(0,0,0))
  2799. MakeForm(TRAIL,"Cyl")
  2800. local DIST = (FROM - TO).Magnitude
  2801. if BIG == true then
  2802. TRAIL.Size = VT(0.5,DIST,0.5)
  2803. else
  2804. TRAIL.Size = VT(0.25,DIST,0.25)
  2805. end
  2806. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  2807. coroutine.resume(coroutine.create(function()
  2808. for i = 1, 5 do
  2809. Swait()
  2810. TRAIL.Transparency = TRAIL.Transparency + 0.1
  2811. end
  2812. TRAIL:remove()
  2813. end))
  2814. end
  2815.  
  2816. local asd = Instance.new("ParticleEmitter")
  2817. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  2818. asd.LightEmission = .1
  2819. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  2820. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  2821. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  2822. asd.Transparency = bbb
  2823. asd.Size = aaa
  2824. asd.ZOffset = .9
  2825. asd.Acceleration = Vector3.new(0, -15, 0)
  2826. asd.LockedToPart = false
  2827. asd.EmissionDirection = "Back"
  2828. asd.Lifetime = NumberRange.new(1, 2)
  2829. asd.Rotation = NumberRange.new(-100, 100)
  2830. asd.RotSpeed = NumberRange.new(-100, 100)
  2831. asd.Speed = NumberRange.new(10)
  2832. asd.Enabled = false
  2833. asd.VelocitySpread = 999
  2834.  
  2835. function getbloody(victim,amount)
  2836. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  2837. PART.CFrame = victim.CFrame
  2838. local HITPLAYERSOUNDS = {"356551938","264486467"}
  2839. Debris:AddItem(PART,5)
  2840. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  2841. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  2842. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  2843. local prtcl = asd:Clone()
  2844. prtcl.Parent = PART
  2845. prtcl:Emit(amount*10)
  2846. end
  2847.  
  2848. local Particle = IT("ParticleEmitter",nil)
  2849. Particle.Enabled = false
  2850. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  2851. Particle.LightEmission = 0.5
  2852. Particle.Rate = 150
  2853. Particle.ZOffset = 1
  2854. Particle.Rotation = NumberRange.new(-180, 180)
  2855. Particle.RotSpeed = NumberRange.new(-180, 180)
  2856. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  2857. Particle.Color = ColorSequence.new(C3(58,125,21),C3(0.4,0,0))
  2858.  
  2859. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  2860. function ParticleEmitter(Table)
  2861. local PRTCL = Particle:Clone()
  2862. local Speed = Table.Speed or 5
  2863. local Drag = Table.Drag or 0
  2864. local Size1 = Table.Size1 or 1
  2865. local Size2 = Table.Size2 or 5
  2866. local Lifetime1 = Table.Lifetime1 or 1
  2867. local Lifetime2 = Table.Lifetime2 or 1.5
  2868. local Parent = Table.Parent or Torso
  2869. local Emit = Table.Emit or 100
  2870. local Offset = Table.Offset or 360
  2871. local Acel = Table.Acel or VT(0,0,0)
  2872. local Enabled = Table.Enabled or false
  2873. PRTCL.Parent = Parent
  2874. PRTCL.Size = NumberSequence.new(Size1,Size2)
  2875. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  2876. PRTCL.Speed = NumberRange.new(Speed)
  2877. PRTCL.VelocitySpread = Offset
  2878. PRTCL.Drag = Drag
  2879. PRTCL.Acceleration = Acel
  2880. if Enabled == false then
  2881. PRTCL:Emit(Emit)
  2882. Debris:AddItem(PRTCL,Lifetime2)
  2883. else
  2884. PRTCL.Enabled = true
  2885. end
  2886. return PRTCL
  2887. end
  2888.  
  2889. if Character:FindFirstChildOfClass("Accessory") then
  2890. Character:FindFirstChildOfClass("Accessory"):remove()
  2891. elseif Character:FindFirstChildOfClass("Hat") then
  2892. Character:FindFirstChildOfClass("Hat"):remove()
  2893. end
  2894. if Head:FindFirstChild("face") then
  2895. Head.face.Texture = "rbxassetid://"
  2896. end
  2897. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "White", "Hood", VT(1,1,1),false)
  2898. PRT.Color = C3(0,0,0)
  2899. local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
  2900. CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0))
  2901. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Scarf", VT(1,1,1),false)
  2902. PRT.Color = C3(0,0,0)
  2903. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0))
  2904. CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
  2905.  
  2906. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really white", "Eye", VT(0.6,0.1,1)/2,false)
  2907. MakeForm(Eye,"Ball")
  2908. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  2909. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.6,0.1,1)/2,false)
  2910. MakeForm(Eye,"Ball")
  2911. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  2912. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really white", "Eye", VT(0.1,1,1)/2,false)
  2913. MakeForm(Eye,"Ball")
  2914. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  2915. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.1,1,1)/2,false)
  2916. MakeForm(Eye,"Ball")
  2917. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  2918.  
  2919. local Hair = CreatePart(3, Character, "Fabric", 0, 0, "White", "Hair", VT(1,1,1),false)
  2920. local HairWeld1 = CreateWeldOrSnapOrMotor("Weld", Hair, Head, Hair, CF(0,0.1,-0.25) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  2921. CreateMesh("SpecialMesh", Hair, "FileMesh", "873651376", "", VT(0.025, 0.025, 0.02), VT(0,0,0))
  2922. local Hair = CreatePart(3, Character, "Fabric", 0, 0, "White", "Hair", VT(1,1,1),false)
  2923. local HairWeld2 = CreateWeldOrSnapOrMotor("Weld", Hair, Head, Hair, CF(0,0.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  2924. CreateMesh("SpecialMesh", Hair, "FileMesh", "873651376", "", VT(0.03, 0.015, 0.01), VT(0,0,-0.1))
  2925.  
  2926. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightLeg, Emit = 100, Offset = 360, Enabled = true})
  2927. PRT.LockedToPart = true
  2928. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftLeg, Emit = 100, Offset = 360, Enabled = true})
  2929. PRT.LockedToPart = true
  2930. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.3, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = true})
  2931. PRT.LockedToPart = true
  2932. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightArm, Emit = 100, Offset = 360, Enabled = true})
  2933. PRT.LockedToPart = true
  2934. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftArm, Emit = 100, Offset = 360, Enabled = true})
  2935. PRT.LockedToPart = true
  2936.  
  2937. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping,DoesWarp,Instakill,HasChain)
  2938. local dmg = math.random(min,max)
  2939. for i,v in ipairs(workspace:GetChildren()) do
  2940. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  2941. local body = v:GetChildren()
  2942. for part = 1, #body do
  2943. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  2944. if(body[part].Position - position).Magnitude < radius then
  2945. if v.ClassName == "Model" then
  2946. if v:FindFirstChildOfClass("Humanoid") then
  2947. local HUMAN = v:FindFirstChildOfClass("Humanoid")
  2948. if HUMAN.Health ~= 0 then
  2949. if HasChain == true then
  2950. local defence = Instance.new("BoolValue",v)
  2951. defence.Name = ("HitBy"..Player.Name)
  2952. game:GetService("Debris"):AddItem(defence, 1)
  2953. coroutine.resume(coroutine.create(function()
  2954. local TORSO = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  2955. if TORSO then
  2956. --print("Found "..v.Name.."'s Torso")
  2957. local PART = IT("Part",Effects)
  2958. PART.Anchored = true
  2959. PART.CanCollide = false
  2960. PART.Transparency = 1
  2961. PART.CFrame = CF(position)
  2962. Debris:AddItem(PART,15)
  2963. local A = IT("Attachment",PART)
  2964. --TORSO.Anchored = true
  2965. local Front = CreatePart(3, Effects, "Neon", 1, 1, "Really black", "Chain head", VT(1,1,1),false)
  2966. --print("Chain start")
  2967. Front.CFrame = CF(position)
  2968. Front.CanCollide = true
  2969. CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Front, 10, 1)
  2970. local B = IT("Attachment",Front)
  2971. local ChainLink = IT("Beam",Effects)
  2972. ChainLink.Texture = "rbxassetid://1262544869"
  2973. ChainLink.TextureSpeed = 0
  2974. ChainLink.FaceCamera = true
  2975. ChainLink.Width0 = 3
  2976. ChainLink.Attachment0 = A
  2977. ChainLink.Attachment1 = B
  2978. ChainLink.TextureMode = "Static"
  2979. local bv = Instance.new("BodyVelocity")
  2980. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2981. bv.velocity = CF(Front.Position,TORSO.Position).lookVector*500
  2982. bv.Parent = Front
  2983. bv.Name = "MOVE"
  2984. --print("Chain made")
  2985. coroutine.resume(coroutine.create(function()
  2986. Swait(30)
  2987. bv:remove()
  2988. local POS = Front.Position
  2989. Front.CanCollide = false
  2990. local onefourth = POS:Lerp(position, 0.25) + Vector3.new(0,0,0)
  2991. local threefourths = POS:Lerp(position, 0.75) + Vector3.new(0,0,0)
  2992. for i = 0, 1, 0.07 do
  2993. Swait()
  2994. Front.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, position, i))
  2995. end
  2996. Front:remove()
  2997. ChainLink:remove()
  2998. end))
  2999. local harm = Front.Touched:Connect(function(hit)
  3000. impale(Front,hit)
  3001. end)
  3002. end
  3003. end))
  3004. elseif DoesWarp == true then
  3005. local defence = Instance.new("BoolValue",v)
  3006. defence.Name = ("HitBy"..Player.Name)
  3007. game:GetService("Debris"):AddItem(defence, 0.001)
  3008. local TORSO = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  3009. Warp(TORSO,Instakill)
  3010. else
  3011. if CanBeDodgedByJumping == true then
  3012. if body[part].Position.Y < position.Y+5 then
  3013. if math.random(1,100) < critrate+1 then
  3014. HUMAN.Health = HUMAN.Health - dmg*critmultiplier
  3015. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  3016. else
  3017. HUMAN.Health = HUMAN.Health - dmg
  3018. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  3019. end
  3020. local defence = Instance.new("BoolValue",v)
  3021. defence.Name = ("HitBy"..Player.Name)
  3022. game:GetService("Debris"):AddItem(defence, 0.01)
  3023. end
  3024. else
  3025. if beserk == true then
  3026. HUMAN.Health = 0
  3027. end
  3028. if math.random(1,100) < critrate+1 then
  3029. HUMAN.Health = HUMAN.Health - dmg*critmultiplier
  3030. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  3031. else
  3032. HUMAN.Health = HUMAN.Health - dmg
  3033. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  3034. end
  3035. local defence = Instance.new("BoolValue",v)
  3036. defence.Name = ("HitBy"..Player.Name)
  3037. game:GetService("Debris"):AddItem(defence, 0.01)
  3038. end
  3039. end
  3040. end
  3041. end
  3042. end
  3043. --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  3044. end
  3045. end
  3046. end
  3047. if v.ClassName == "Part" then
  3048. if v.Anchored == false and (v.Position - position).Magnitude < radius then
  3049. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  3050. end
  3051. end
  3052. end
  3053. end
  3054. end
  3055. function CreateGUICircle(TARGET)
  3056. local GUI = Instance.new("BillboardGui",Character)
  3057. GUI.Size = UDim2.new(0,0,0,0)
  3058. GUI.Adornee = TARGET
  3059. local GUI2 = IT("ImageLabel",GUI)
  3060. GUI2.BackgroundTransparency = 1
  3061. GUI2.BorderSizePixel = 0
  3062. GUI2.Size = UDim2.new(1,0,1,0)
  3063. GUI2.SizeConstraint = "RelativeYY"
  3064. GUI.AlwaysOnTop = true
  3065. GUI2.Image = "http://www.roblox.com/asset/?id=1260793696"
  3066. return GUI,GUI2
  3067. end
  3068. function CastWarpOutlines(TARGET)
  3069. coroutine.resume(coroutine.create(function()
  3070. local T = TARGET:GetChildren()
  3071. for i = 1, # T do
  3072. local child = T[i]
  3073. if child.ClassName == "Part" or child.ClassName == "MeshPart" then
  3074. local clone = child:Clone()
  3075. clone.Parent = Effects
  3076. clone.Anchored = true
  3077. clone.CanCollide = false
  3078. clone:ClearAllChildren()
  3079. clone.CFrame = child.CFrame
  3080. if clone.Name == "Head" then
  3081. clone.Size = VT(clone.Size.Y,clone.Size.Y,clone.Size.Y)
  3082. end
  3083. if clone.ClassName == "MeshPart" then
  3084. clone.TextureID = ""
  3085. end
  3086. clone.BrickColor = BRICKC"Black"
  3087. clone.Material = "Neon"
  3088. coroutine.resume(coroutine.create(function()
  3089. for i = 1, 200 do
  3090. Swait()
  3091. clone.Transparency = clone.Transparency + 0.005
  3092. clone.Size = clone.Size + VT(0.001,0.001,0.001)
  3093. end
  3094. clone:remove()
  3095. end))
  3096. end
  3097. end
  3098. end))
  3099. end
  3100. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  3101. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  3102. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  3103. local BODYGYRO = IT("BodyGyro", STATPART)
  3104. local BODYPOSITION = IT("BodyPosition", STATPART)
  3105. BODYPOSITION.P = 2000
  3106. BODYPOSITION.D = 100
  3107. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  3108. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  3109. game:GetService("Debris"):AddItem(STATPART ,5)
  3110. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  3111. BILLBOARDGUI.Adornee = STATPART
  3112. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  3113. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  3114. BILLBOARDGUI.AlwaysOnTop = false
  3115. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  3116. TEXTLABEL.BackgroundTransparency = 1
  3117. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  3118. TEXTLABEL.Text = TEXT
  3119. TEXTLABEL.Font = "SciFi"
  3120. TEXTLABEL.FontSize="Size42"
  3121. TEXTLABEL.TextColor3 = COLOR
  3122. TEXTLABEL.TextStrokeTransparency = 1
  3123. TEXTLABEL.TextScaled = true
  3124. TEXTLABEL.TextWrapped = true
  3125. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  3126. if LABELTYPE == "Normal" then
  3127. for i = 1, 20 do
  3128. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  3129. TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
  3130. end
  3131. elseif LABELTYPE == "Debuff" then
  3132. for i = 1, 20 do
  3133. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  3134. TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
  3135. end
  3136. elseif LABELTYPE == "Shock" then
  3137. local ORIGIN = STATPART.Position
  3138. for i = 1, 20 do
  3139. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  3140. TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
  3141. end
  3142. end
  3143. THEPART.Parent = nil
  3144. end),STATPART, BODYPOSITION, TEXTLABEL)
  3145. end
  3146. local PupilWeld = CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0))
  3147. MakeForm(Eye,"Ball")
  3148. --//=================================\\
  3149. --|| ATTACK FUNCTIONS AND STUFF
  3150. --\\=================================//
  3151. function Dark_Energy()
  3152. ATTACK = true
  3153. Rooted = true
  3154. Charge(2,false)
  3155. local SND = CreateSound(EXPLOSIONSOUND,RootPart,10,1,false)
  3156. local SND2 = CreateSound(ENERGYSOUND,RootPart,10,1,false)
  3157. for i = 1, 60 do
  3158. Swait()
  3159. ApplyAoE(RootPart.Position,i*1.3,10,20,-200,true)
  3160. SND.Pitch = SND.Pitch - 1/60
  3161. SND2.Pitch = SND.Pitch
  3162. WACKYEFFECT({TIME = 4, EffectType = "Wave", Size = VT(i*2,10,i*2), Size2 = VT(i*2,10,i*2), Transparency = 0.9, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3163. WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,10,0), Size2 = VT(i*2,6,i*2), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3164. WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,6,0), Size2 = VT(i*1.6,10,i*1.6), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(MRANDOM(-5,5)), RAD(i*5), RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3165. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3166. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3167. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(-45), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3168. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(45), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3169. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  3170. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  3171. end
  3172. SND:remove()
  3173. SND2:remove()
  3174. ATTACK = false
  3175. Rooted = false
  3176. end
  3177. function Perfect_Command()
  3178. ATTACK = true
  3179. Rooted = true
  3180. chatfunc("This is my TRUE power..")
  3181. CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Really black",VT(100,100,100))
  3182. CreateSound("1368605755", Effects, 10, 1)
  3183. MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Maroon",VT(500,500,500))
  3184. ApplyAoE(Torso.Position, 9999, 0, 0, 0, true)
  3185. ATTACK = false
  3186. Rooted = false
  3187. end
  3188. function Warp()
  3189. ATTACK = false
  3190. Rooted = true
  3191.  
  3192. Debree(CF(RootPart.Position)*CF(0,-2.8,0).p,75)
  3193. UNANCHOR = false
  3194.  
  3195. RootPart.Anchored = true
  3196. for i=0, 2, 0.1 / Animation_Speed do
  3197. Swait()
  3198. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -10 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3199. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3200. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  3201. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  3202. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3203. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3204. end
  3205.  
  3206. local POS = RootPart.Position
  3207. RootPart.CFrame = CF(CF(Mouse.Hit.p)*CF(0,2.8,0).p,POS)
  3208. Debree(CF(RootPart.Position)*CF(0,-2.5,0).p,150)
  3209. for i=0, 2, 0.1 / Animation_Speed do
  3210. Swait()
  3211. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3212. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3213. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  3214. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  3215. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3216. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  3217. end
  3218. UNANCHOR = true
  3219. ATTACK = false
  3220. Rooted = false
  3221. end
  3222.  
  3223. function Sheer_Cold()
  3224. local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character)
  3225. if HITFLOOR ~= nil then
  3226. local HITBODIES = {}
  3227. ATTACK = true
  3228. Rooted = true
  3229. CreateSound("1225684085", RightArm, 10, 3)
  3230. for i = 1, 120 do
  3231. Swait()
  3232. Slice("Round", 0, 45, CF(RightArm.CFrame * CF(0, MRANDOM(-3, -2), 0).p) * ANGLES(RAD(0), RAD(MRANDOM(-180, 180)), RAD(0)), "Pearl", VT(0.01, 0, 0.01) * MRANDOM(2, 3))
  3233. MagicSphere(VT(0, 0, 0), 15, CF(RightArm.CFrame * CF(0, -1.2, 0).p, RightArm.CFrame * CF(MRANDOM(-5, 5), -1.2 + MRANDOM(-25, 25), MRANDOM(-5, 5)).p), C3(0.5, 0.5, 1), VT(1, 0.1, 0.1))
  3234. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3235. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3236. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3237. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3238. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3239. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3240. end
  3241. CreateSound("160772554", RightArm, 10, 0.7)
  3242. for i = 1, 25 do
  3243. Swait()
  3244. freezenearest(RootPart.Position, 80)
  3245. Slice("Round", 0, 45, CF(RootPart.Position + VT(0, MRANDOM(-5, 15), 0)) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Pearl", VT(0.1, 0, 0.1) * MRANDOM(2, 3))
  3246. Slice("Thin", 0, 65, CF(RootPart.Position + VT(0, MRANDOM(-5, 15), 0)) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Pearl", VT(0.1, 0, 0.1) * MRANDOM(2, 3))
  3247. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3248. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3249. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3250. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3251. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3252. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3253. end
  3254. ATTACK = false
  3255. Rooted = false
  3256. end
  3257. end
  3258. function Holy_Smite()
  3259. local RING, MESH, DELET = MakeRing()
  3260. local POS = Mouse.Hit.p
  3261. RING.CFrame = CF(Mouse.Hit.p + VT(MRANDOM(-25, 25), 200, MRANDOM(-25, 25)), Mouse.Hit.p) * ANGLES(RAD(90), RAD(0), RAD(0))
  3262. for i = 1, 45 do
  3263. Swait()
  3264. MESH.Scale = MESH.Scale + VT(12, 0, 12)
  3265. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  3266. end
  3267. local HITFLOOR, HITPOS = Raycast(RING.Position, CF(RING.Position, RING.CFrame * CF(0, -1, 0).p).lookVector, 500, Character)
  3268. if HITFLOOR then
  3269. local BEAM = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Really red"), "Beam", VT(0, 0, 0), true)
  3270. MakeForm(BEAM, "Cyl")
  3271. local DIST = (RING.Position - HITPOS).Magnitude
  3272. BEAM.Size = VT(0, DIST, 0)
  3273. BEAM.CFrame = CF(RING.Position, HITPOS) * CF(0, 0, -DIST / 2) * ANGLES(RAD(90), RAD(0), RAD(0))
  3274. for i = 1, 5 do
  3275. WACKYEFFECT({
  3276. EffectType = "Wave",
  3277. Size = VT(25, 0, 25),
  3278. Size2 = VT(40, 0, 40) + VT(i * 6, i / 5, i * 6),
  3279. Transparency = 0,
  3280. Transparency2 = 1,
  3281. CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(72 * i), RAD(0)),
  3282. MoveToPos = nil,
  3283. RotationX = 0,
  3284. RotationY = 3,
  3285. RotationZ = 0,
  3286. Material = "Neon",
  3287. Color = C3(1, 1, 1),
  3288. SoundID = nil,
  3289. SoundPitch = nil,
  3290. SoundVolume = nil
  3291. })
  3292. WACKYEFFECT({
  3293. EffectType = "Round Slash",
  3294. Size = VT(3, 0, 3) / 13,
  3295. Size2 = (VT(3, 0, 3) + VT(i, 0, i)) / 5,
  3296. Transparency = 0,
  3297. Transparency2 = 1,
  3298. CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(-35, 35)), RAD(0), RAD(MRANDOM(-35, 35))),
  3299. MoveToPos = nil,
  3300. RotationX = 0,
  3301. RotationY = 0,
  3302. RotationZ = 0,
  3303. Material = "Neon",
  3304. Color = C3(1, 1, 1),
  3305. SoundID = nil,
  3306. SoundPitch = nil,
  3307. SoundVolume = nil
  3308. })
  3309. WACKYEFFECT({
  3310. Time = 35,
  3311. EffectType = "Sphere",
  3312. Size = VT(22, 22, 22),
  3313. Size2 = VT(45, 45, 45) + VT(i * 5, i * 5, i * 5),
  3314. Transparency = 0,
  3315. Transparency2 = 1,
  3316. CFrame = CF(HITPOS),
  3317. MoveToPos = nil,
  3318. RotationX = 0,
  3319. RotationY = 0,
  3320. RotationZ = 0,
  3321. Material = "Neon",
  3322. Color = C3(1, 1, 1),
  3323. SoundID = 459523898,
  3324. SoundPitch = MRANDOM(9, 12) / 10,
  3325. SoundVolume = 10
  3326. })
  3327. end
  3328. SHAKECAM(HITPOS, 100, 8, 15)
  3329. ApplyAoE(HITPOS, 50)
  3330. for i = 1, 25 do
  3331. Swait()
  3332. BEAM.Size = BEAM.Size + VT(0.5, 0, 0.5)
  3333. BEAM.Transparency = BEAM.Transparency + 0.04
  3334. end
  3335. BEAM:remove()
  3336. end
  3337. wait(0.2)
  3338. DELET()
  3339. end
  3340. function LaughV2()
  3341. chatfunc("YOUR ATTACK IS AN INSULT", BrickColor.new("Really black").Color)
  3342. CreateSound("907332525", hed, 10, 1)
  3343. end
  3344. function AttackTemplate()
  3345. ATTACK = true
  3346. Rooted = false
  3347. for i=0, 1, 0.1 / Animation_Speed do
  3348. Swait()
  3349. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3350. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3351. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3352. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  3353. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3354. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3355. end
  3356. ATTACK = false
  3357. Rooted = false
  3358. end
  3359. function Equivalent_Pain()
  3360. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  3361. if HITFLOOR then
  3362. ATTACK = true
  3363. Rooted = true
  3364. FULL = true
  3365. local GYRO = IT("BodyGyro",RootPart)
  3366. GYRO.D = 25
  3367. GYRO.P = 20000
  3368. GYRO.MaxTorque = VT(0,math.huge,0)
  3369. for i=0, 0.3, 0.1 / Animation_Speed do
  3370. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  3371. Swait()
  3372. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(-15)), 1 / Animation_Speed)
  3373. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3374. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3375. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-25), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3376. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-35)), 1 / Animation_Speed)
  3377. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(5)), 1 / Animation_Speed)
  3378. end
  3379. GYRO:remove()
  3380. CreateSound(12222200, RightArm, 10, 1)
  3381. for i=0, 0.4, 0.1 / Animation_Speed do
  3382. Swait()
  3383. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, -0.75) * ANGLES(RAD(40), RAD(0), RAD(35)), 1.5 / Animation_Speed)
  3384. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3385. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, -1.45) * ANGLES(RAD(75), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  3386. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-25), RAD(-12)) * ANGLES(RAD(-35), RAD(55), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  3387. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.5) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(65)), 1 / Animation_Speed)
  3388. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-15)), 1 / Animation_Speed)
  3389. end
  3390. CreateSound(289842971, RightArm, 10, 1)
  3391. coroutine.resume(coroutine.create(function()
  3392. local HIT,POS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(Mouse.Hit.p+VT(0,1,0), Mouse.Hit.p-VT(0,1,0))).lookVector, 45, Character)
  3393. local ECHO = POS
  3394. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  3395. HIT,POS = Raycast(ECHO+VT(0,1,0), (CF(ECHO, ECHO + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
  3396. ECHO = POS
  3397. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  3398. HIT,POS = Raycast(ECHO+VT(0,1,0), (CF(ECHO, ECHO + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
  3399. ECHO = POS
  3400. end
  3401. if ECHO.Y == HITPOS.Y then
  3402. local DISTANCE = (HITPOS - ECHO).Magnitude/3
  3403. local CFRAME = CF(HITPOS,ECHO)
  3404. local RANGE = math.ceil(DISTANCE)
  3405. for i = 1, RANGE-1 do
  3406. Swait(3)
  3407. local A = CFRAME*CF(0,0,-i*3)
  3408. ApplyAoE(A.p,4)
  3409. CreateFlyingDebree(HITFLOOR,A,2,VT(2,2,2),2,65)
  3410. end
  3411. local SIZE = 3
  3412. local POS = CFRAME*CF(0,0,-RANGE*3).p
  3413. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(55,0,55)*SIZE, Size2 = VT(55,15,55)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 0.8, SoundVolume = 10})
  3414. WACKYEFFECT({EffectType = "Sphere", Size = VT(10,250,10)*SIZE, Size2 = VT(20,1000,20)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 178452241, SoundPitch = 1, SoundVolume = 10})
  3415. WACKYEFFECT({EffectType = "Sphere", Size = VT(30,150,30)*SIZE, Size2 = VT(50,300,50)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 178452241, SoundPitch = 1, SoundVolume = 10})
  3416. for i = 1, 9 do
  3417. WACKYEFFECT({TIME = 65, EffectType = "Sphere", Size = VT(5,5,0)*SIZE, Size2 = VT(0,0,35)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS+VT(0,15*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-25*SIZE), MoveToPos = CF(POS+VT(0,15*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-55*SIZE).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 0.8, SoundVolume = 5})
  3418. end
  3419. for i = 1, 9 do
  3420. WACKYEFFECT({TIME = 65, EffectType = "Sphere", Size = VT(5,5,0)*SIZE, Size2 = VT(0,0,35)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS+VT(0,5*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-25*SIZE), MoveToPos = CF(POS+VT(0,5*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-55*SIZE).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 0.8, SoundVolume = 5})
  3421. end
  3422. ApplyAoE(POS,30*SIZE)
  3423. CreateDebreeRing(HITFLOOR,POS,30*SIZE,VT(8,8,8)*SIZE,5)
  3424. CreateDebreeRing(HITFLOOR,POS,50*SIZE,VT(2,2,2)*SIZE,5)
  3425. end
  3426. end))
  3427. for i=0, 0.6, 0.1 / Animation_Speed do
  3428. Swait()
  3429. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, -0.75) * ANGLES(RAD(40), RAD(0), RAD(35)), 1.5 / Animation_Speed)
  3430. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3431. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, -1.45) * ANGLES(RAD(75), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  3432. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-25), RAD(-12)) * ANGLES(RAD(-35), RAD(55), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  3433. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.5) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(65)), 1 / Animation_Speed)
  3434. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-15)), 1 / Animation_Speed)
  3435. end
  3436. FULL = false
  3437. ATTACK = false
  3438. Rooted = false
  3439. end
  3440. end
  3441. function Debree(POS,SWAIT)
  3442. coroutine.resume(coroutine.create(function()
  3443. local HOLDER = IT("Model",Effects)
  3444. HOLDER.Name = "Debree"
  3445. local HITFLOOR = Raycast(POS, (CF(POS, POS + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  3446. MagicSphere(VT(15,1,15),SWAIT,CF(POS),"Reddish brown",VT(0,0,0))
  3447. MagicSphere(VT(13,1,13),SWAIT,CF(POS),"Reddish brown",VT(0,0,0))
  3448. MagicSphere(VT(12,1,12),SWAIT,CF(POS),"Reddish brown",VT(0,0,0))
  3449. repeat Swait() until HITFLOOR ~= nil
  3450. local O = 0
  3451. for i = 1, 18 do
  3452. local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3,3,3))
  3453. Part.CFrame = CF(CF(POS) * CF((45/4.5)-i,0,O).p) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  3454. O = O - (45/4)/5+i/4
  3455. coroutine.resume(coroutine.create(function()
  3456. Swait(SWAIT)
  3457. for i = 1, 60 do
  3458. Swait()
  3459. local RayHit, Way = CastProperRay(Part.Position,POS,0.1,workspace)
  3460. Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  3461. end
  3462. for i = 1, 50 do
  3463. Swait()
  3464. Part.Size = Part.Size * 0.9
  3465. end
  3466. end))
  3467. end
  3468. local O = 0
  3469. for i = 1, 18 do
  3470. local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3,3,3))
  3471. Part.CFrame = CF(CF(POS) * CF((45/4.5)-i,0,O).p) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  3472. O = O + (45/4)/5-i/4
  3473. coroutine.resume(coroutine.create(function()
  3474. Swait(SWAIT)
  3475. for i = 1, 60 do
  3476. Swait()
  3477. local RayHit, Way = CastProperRay(Part.Position,POS,0.1,workspace)
  3478. Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  3479. end
  3480. for i = 1, 50 do
  3481. Swait()
  3482. Part.Size = Part.Size * 0.9
  3483. end
  3484. end))
  3485. end
  3486. Swait(SWAIT+110)
  3487. HOLDER:remove()
  3488. end))
  3489. end
  3490.  
  3491.  
  3492. function Prison_Key()
  3493. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  3494. PLAYMAINANIM = false
  3495. if WhichPose == "Cast1" then
  3496. for i=0, Time, 0.1 / Animation_Speed do
  3497. Swait()
  3498. if Magic == true then
  3499. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3500. end
  3501. if Gyro ~= nil and Gyro ~= false then
  3502. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  3503. end
  3504. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed)
  3505. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed)
  3506. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  3507. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  3508. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  3509. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  3510. end
  3511. elseif WhichPose == "Cast2" then
  3512. for i=0, Time, 0.1 / Animation_Speed do
  3513. Swait()
  3514. if Magic == true then
  3515. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3516. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3517. end
  3518. if Gyro ~= nil and Gyro ~= false then
  3519. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  3520. end
  3521. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  3522. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  3523. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  3524. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  3525. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  3526. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  3527. end
  3528. elseif WhichPose == "RightArmUp" then
  3529. for i=0, Time, 0.1 / Animation_Speed do
  3530. Swait()
  3531. if Magic == true then
  3532. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3533. end
  3534. if Gyro ~= nil and Gyro ~= false then
  3535. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  3536. end
  3537. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed)
  3538. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed)
  3539. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  3540. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  3541. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  3542. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  3543. end
  3544. elseif WhichPose == "Taunt" then
  3545. for i=0, Time, 0.1 / Animation_Speed do
  3546. Swait()
  3547. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  3548. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  3549. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  3550. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  3551. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  3552. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  3553. end
  3554. HATWELD.Part0 = RightArm
  3555. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  3556. CreateSound(221057812,Torso,10,1,false)
  3557. for i=0, Time*2, 0.1 / Animation_Speed do
  3558. Swait()
  3559. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  3560. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  3561. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  3562. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  3563. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  3564. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  3565. end
  3566. for i=0, Time, 0.1 / Animation_Speed do
  3567. Swait()
  3568. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  3569. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  3570. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  3571. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  3572. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  3573. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  3574. HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed)
  3575. end
  3576. HATWELD.Part0 = Head
  3577. HATWELD.C0 = CF(0,0.35,0)
  3578. elseif WhichPose == "Prepare key" then
  3579. for i=0, Time, 0.1 / Animation_Speed do
  3580. Swait()
  3581. if Gyro ~= nil and Gyro ~= false then
  3582. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  3583. end
  3584. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed)
  3585. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed)
  3586. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  3587. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  3588. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  3589. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  3590. end
  3591. elseif WhichPose == "Turn key" then
  3592. for i=0, Time, 0.1 / Animation_Speed do
  3593. Swait()
  3594. if Gyro ~= nil and Gyro ~= false then
  3595. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  3596. end
  3597. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed)
  3598. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed)
  3599. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  3600. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  3601. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  3602. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  3603. end
  3604. end
  3605. PLAYMAINANIM = true
  3606. end
  3607. if Mouse.Target ~= nil then
  3608. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3609. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  3610. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  3611. local GYRO = IT("BodyGyro",RootPart)
  3612. GYRO.D = 750
  3613. GYRO.P = 20000
  3614. GYRO.MaxTorque = VT(0,40000000,0)
  3615. local grav = Instance.new("BodyPosition",TORSO)
  3616. grav.D = 15
  3617. grav.P = 20000
  3618. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  3619. grav.position = TORSO.Position
  3620. local GYRO2 = IT("BodyGyro",TORSO)
  3621. GYRO2.D = 750
  3622. GYRO2.P = 20000
  3623. GYRO2.MaxTorque = VT(0,40000000,0)
  3624. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  3625. grav.Name = "Jail"
  3626. local LOCKPARTS = {}
  3627. ATTACK = true
  3628. Rooted = false
  3629. local LOCK = IT("Model",Effects)
  3630. LOCK.Name = "Lock"
  3631. local LOCK2 = IT("Model",LOCK)
  3632. LOCK2.Name = "Metal"
  3633. --CREATE LOCK--
  3634. local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
  3635. LOCK.PrimaryPart = BASE
  3636. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  3637. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
  3638. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  3639. MakeForm(PRT,"Cyl")
  3640. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
  3641. PRT.Color = C3(0,0,0)
  3642. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  3643. MakeForm(PRT,"Cyl")
  3644. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
  3645. PRT.Color = C3(0,0,0)
  3646. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  3647. for i = 1, 45 do
  3648. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  3649. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  3650. end
  3651. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  3652. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  3653. LOCK2.PrimaryPart = PRT
  3654. ---------------
  3655. local CHILDREN = LOCK:GetDescendants()
  3656. for index, CHILD in pairs(CHILDREN) do
  3657. if CHILD:IsA("BasePart") then
  3658. CHILD.Transparency = 1
  3659. end
  3660. end
  3661. for i = 1, 75 do
  3662. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  3663. Swait()
  3664. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  3665. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  3666. local CHILDREN = LOCK:GetDescendants()
  3667. for index, CHILD in pairs(CHILDREN) do
  3668. if CHILD:IsA("BasePart") then
  3669. CHILD.Transparency = CHILD.Transparency - 1/75
  3670. end
  3671. end
  3672. end
  3673. HUM.DisplayDistanceType = "None"
  3674. local KEY = IT("Model",Effects)
  3675. KEY.Name = "Key"
  3676. --CREATE KEY--
  3677. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Really black", "KeyBase", VT(0.1, 1, 0.1),false)
  3678. KEY.PrimaryPart = KBASE
  3679. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  3680. local WLD = weldBetween(RightArm,KBASE)
  3681. for i = 1, 45 do
  3682. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really black", "Key", VT(0.1, 0.1, 0.1),false)
  3683. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  3684. weldBetween(KBASE,PRT)
  3685. end
  3686. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really black", "Key", VT(0.3, 0.1, 0.1),false)
  3687. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  3688. weldBetween(KBASE,PRT)
  3689. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really black", "Key", VT(0.3, 0.1, 0.1),false)
  3690. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  3691. weldBetween(KBASE,PRT)
  3692. --------------
  3693. Rooted = true
  3694. Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
  3695. coroutine.resume(coroutine.create(function()
  3696. for i = 1, 10 do
  3697. Swait()
  3698. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  3699. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  3700. end
  3701. CreateSound(1149318312,BASE,5,1,false)
  3702. CreateSound(160772554,BASE,3,1,false)
  3703. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  3704. for i = 1, 4 do
  3705. WACKYEFFECT({Time = 35, EffectType = "Crystal", Size = VT(1,1,1), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(1,1.45,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3706. end
  3707. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  3708. wait(1)
  3709. TORSO.Parent.Parent = LOCK
  3710. for i = 1, 75 do
  3711. Swait()
  3712. local CHILDREN = KEY:GetDescendants()
  3713. for index, CHILD in pairs(CHILDREN) do
  3714. if CHILD:IsA("BasePart") then
  3715. CHILD.Transparency = i/25
  3716. end
  3717. end
  3718. local CHILDREN = LOCK:GetDescendants()
  3719. for index, CHILD in pairs(CHILDREN) do
  3720. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  3721. CHILD.Transparency = CHILD.Transparency + 1/75
  3722. elseif CHILD.ClassName == "Decal" then
  3723. CHILD.Transparency = CHILD.Transparency + 1/75
  3724. end
  3725. end
  3726. end
  3727. TORSO.Parent:ClearAllChildren()
  3728. KEY:remove()
  3729. LOCK:remove()
  3730. end))
  3731. Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
  3732. GYRO:remove()
  3733. ATTACK = false
  3734. Rooted = false
  3735. end
  3736. end
  3737. end
  3738.  
  3739. function MagicSphere2(size,waitt,cframe,color)
  3740. local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1))
  3741. local mesh = IT("SpecialMesh",wave)
  3742. mesh.MeshType = "Sphere"
  3743. mesh.Scale = VT(size,size,size)
  3744. mesh.Offset = VT(0,0,0)
  3745. wave.CFrame = cframe
  3746. coroutine.resume(coroutine.create(function(PART)
  3747. for i = 1, waitt do
  3748. Swait()
  3749. mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt)
  3750. wave.Transparency = wave.Transparency - (1/waitt)
  3751. end
  3752. wave:remove()
  3753. end))
  3754. end
  3755. function MagicSphere(size,waitt,cframe,color)
  3756. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1))
  3757. local mesh = IT("SpecialMesh",wave)
  3758. mesh.MeshType = "Sphere"
  3759. mesh.Scale = VT(size,size,size)
  3760. mesh.Offset = VT(0,0,0)
  3761. wave.CFrame = cframe
  3762. coroutine.resume(coroutine.create(function(PART)
  3763. for i = 1, waitt do
  3764. Swait()
  3765. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  3766. wave.Transparency = wave.Transparency + (1/waitt)
  3767. if wave.Transparency > 0.99 then
  3768. wave:remove()
  3769. end
  3770. end
  3771. end))
  3772. end
  3773.  
  3774. function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
  3775. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  3776. local mesh = IT("SpecialMesh",wave)
  3777. mesh.MeshType = "FileMesh"
  3778. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  3779. mesh.Scale = VT(size,size,size)
  3780. wave.CFrame = cframe
  3781. coroutine.resume(coroutine.create(function(PART)
  3782. for i = 1, waitt do
  3783. Swait()
  3784. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  3785. if doesrotate == true then
  3786. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  3787. end
  3788. wave.Transparency = wave.Transparency + (0.5/waitt)
  3789. if wave.Transparency > 0.99 then
  3790. wave:remove()
  3791. end
  3792. end
  3793. end))
  3794. end
  3795. function CheckTableForString(Table, String)
  3796. for i, v in pairs(Table) do
  3797. if string.find(string.lower(String), string.lower(v)) then
  3798. return true
  3799. end
  3800. end
  3801. return false
  3802. end
  3803.  
  3804. function CheckIntangible(Hit)
  3805. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  3806. if Hit and Hit.Parent then
  3807. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  3808. return true
  3809. end
  3810. end
  3811. return false
  3812. end
  3813.  
  3814. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  3815. local Direction = CFrame.new(StartPos, Vec).lookVector
  3816. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  3817. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  3818. if RayHit and CheckIntangible(RayHit) then
  3819. if DelayIfHit then
  3820. wait()
  3821. end
  3822. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  3823. end
  3824. return RayHit, RayPos, RayNormal
  3825. end
  3826.  
  3827. function attractnearest(postype,position,range,maxstrength,last)
  3828. if postype == "Vector" then
  3829. for i,v in ipairs(workspace:GetChildren()) do
  3830. local body = v:GetChildren()
  3831. for part = 1, #body do
  3832. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  3833. if(body[part].Position - position).Magnitude < range then
  3834. if body[part]:FindFirstChild("ATTRACT") == nil then
  3835. local bv = Instance.new("BodyVelocity")
  3836. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3837. bv.velocity = CF(body[part].Position,position).lookVector*maxstrength
  3838. bv.Parent = body[part]
  3839. bv.Name = "ATTRACT"
  3840. else
  3841. coroutine.resume(coroutine.create(function()
  3842. for i = 1, last/5 do
  3843. Swait(5)
  3844. body[part].ATTRACT.velocity = CF(body[part].Position,position).lookVector*maxstrength
  3845. end
  3846. body[part].ATTRACT:remove()
  3847. end))
  3848. end
  3849. end
  3850. end
  3851. end
  3852. if v.ClassName == "Part" then
  3853. if v.Anchored == false and (v.Position - position).Magnitude < range then
  3854. if v:FindFirstChild("ATTRACT") == nil then
  3855. local bv = Instance.new("BodyVelocity")
  3856. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3857. bv.velocity = CF(v.Position,position).lookVector*maxstrength
  3858. bv.Parent = v
  3859. bv.Name = "ATTRACT"
  3860. else
  3861. coroutine.resume(coroutine.create(function()
  3862. for i = 1, last/5 do
  3863. Swait(5)
  3864. v.ATTRACT.velocity = CF(v.Position,position).lookVector*maxstrength
  3865. end
  3866. v.ATTRACT:remove()
  3867. end))
  3868. end
  3869. end
  3870. end
  3871. end
  3872. elseif postype == "Part" then
  3873. for i,v in ipairs(workspace:GetChildren()) do
  3874. local body = v:GetChildren()
  3875. for part = 1, #body do
  3876. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  3877. if(body[part].Position - position.Position).Magnitude < range then
  3878. if body[part]:FindFirstChild("ATTRACT") == nil then
  3879. local bv = Instance.new("BodyVelocity")
  3880. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3881. bv.velocity = CF(body[part].Position,position.Position).lookVector*maxstrength
  3882. bv.Parent = body[part]
  3883. bv.Name = "ATTRACT"
  3884. else
  3885. coroutine.resume(coroutine.create(function()
  3886. for i = 1, last/5 do
  3887. Swait(5)
  3888. body[part].ATTRACT.velocity = CF(body[part].Position,position.Position).lookVector*maxstrength
  3889. end
  3890. body[part].ATTRACT:remove()
  3891. end))
  3892. end
  3893. end
  3894. end
  3895. end
  3896. if v.ClassName == "Part" then
  3897. if v.Anchored == false and (v.Position - position.Position).Magnitude < range then
  3898. if v:FindFirstChild("ATTRACT") == nil then
  3899. local bv = Instance.new("BodyVelocity")
  3900. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3901. bv.velocity = CF(v.Position,position.Position).lookVector*maxstrength
  3902. bv.Parent = v
  3903. bv.Name = "ATTRACT"
  3904. else
  3905. coroutine.resume(coroutine.create(function()
  3906. for i = 1, last/5 do
  3907. Swait(5)
  3908. v.ATTRACT.velocity = CF(v.Position,position.Position).lookVector*maxstrength
  3909. end
  3910. v.ATTRACT:remove()
  3911. end))
  3912. end
  3913. end
  3914. end
  3915. end
  3916. end
  3917. end
  3918.  
  3919. function killnearest(position,range,maxstrength)
  3920. for i,v in ipairs(workspace:GetChildren()) do
  3921. local body = v:GetChildren()
  3922. for part = 1, #body do
  3923. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  3924. if(body[part].Position - position).Magnitude < range then
  3925. if v.ClassName == "Model" then
  3926. v:BreakJoints()
  3927. end
  3928. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  3929. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  3930. end
  3931. end
  3932. end
  3933. if v.ClassName == "Part" then
  3934. if v.Anchored == false and (v.Position - position).Magnitude < range then
  3935. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  3936. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  3937. end
  3938. end
  3939. end
  3940. end
  3941.  
  3942. function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
  3943. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  3944. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0, 0, 0))
  3945. wave.CFrame = CFRAME
  3946. coroutine.resume(coroutine.create(function(PART)
  3947. for i = 1, WAIT do
  3948. Swait()
  3949. mesh.Scale = mesh.Scale + GROW
  3950. if DOESROT == true then
  3951. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  3952. end
  3953. wave.Transparency = wave.Transparency + 0.5 / WAIT
  3954. if wave.Transparency > 0.99 then
  3955. wave:remove()
  3956. end
  3957. end
  3958. end))
  3959. end
  3960. function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW)
  3961. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  3962. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0, 0, 0))
  3963. wave.CFrame = CFRAME
  3964. coroutine.resume(coroutine.create(function(PART)
  3965. for i = 1, WAIT do
  3966. Swait()
  3967. mesh.Scale = mesh.Scale + GROW
  3968. wave.Transparency = wave.Transparency + 1 / WAIT
  3969. if wave.Transparency > 0.99 then
  3970. wave:remove()
  3971. end
  3972. end
  3973. end))
  3974. end
  3975. function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW)
  3976. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  3977. local mesh
  3978. if KIND == "Base" then
  3979. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0))
  3980. elseif KIND == "Thin" then
  3981. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
  3982. elseif KIND == "Round" then
  3983. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
  3984. end
  3985. wave.CFrame = CFRAME
  3986. coroutine.resume(coroutine.create(function(PART)
  3987. for i = 1, WAIT do
  3988. Swait()
  3989. mesh.Scale = mesh.Scale + GROW / 10
  3990. wave.Transparency = wave.Transparency + 0.5 / WAIT
  3991. if wave.Transparency > 0.99 then
  3992. wave:remove()
  3993. end
  3994. end
  3995. end))
  3996. end
  3997. function AddChildrenToTable(FROM, PARENT, DIST, TABLE)
  3998. for _, c in pairs(PARENT:GetChildren()) do
  3999. if c.ClassName == "Model" then
  4000. if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
  4001. local HUMANOID = c:FindFirstChildOfClass("Humanoid")
  4002. local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
  4003. if DIST > (TORSO.Position - FROM).Magnitude then
  4004. table.insert(TABLE, c)
  4005. end
  4006. AddChildrenToTable(FROM, c, DIST, TABLE)
  4007. elseif c.ClassName == "Folder" then
  4008. AddChildrenToTable(FROM, c, DIST, TABLE)
  4009. end
  4010. end
  4011. end
  4012. end
  4013. function Execute()
  4014. ATTACK = true
  4015. Rooted = false
  4016. local Part = CreatePart(3, Character, "Neon", 0, 0, "Mid gray", "Part", VT(0,1,4),false)
  4017. Part.Color = C3(0,0,0)
  4018. MakeForm(Part,"Wedge")
  4019. Part.CanCollide = true
  4020. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(135)) *CF(0, 0.5, 0), CF(0, 0, 0))
  4021. for i=0, 1, 0.1 / Animation_Speed do
  4022. Swait()
  4023. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed)
  4024. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed)
  4025. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  4026. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  4027. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  4028. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  4029. end
  4030. Trail.Enabled = true
  4031. CreateSound(541909867, Barrel, 7, 1, false)
  4032. local TOCH = Part.Touched:Connect(function(hit)
  4033. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent ~= Character then
  4034. Kill(hit.Parent)
  4035. end
  4036. end)
  4037. for i=0, 0.35, 0.1 / Animation_Speed do
  4038. Swait()
  4039. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed)
  4040. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 1 / Animation_Speed)
  4041. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.25, -0.3) * ANGLES(RAD(50), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  4042. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  4043. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  4044. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  4045. end
  4046. TOCH:disconnect()
  4047. Trail.Enabled = false
  4048. for i=0, 0.35, 0.1 / Animation_Speed do
  4049. Swait()
  4050. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(60)), 1 / Animation_Speed)
  4051. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-55)), 1 / Animation_Speed)
  4052. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.25, -0.3) * ANGLES(RAD(50), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  4053. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  4054. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  4055. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  4056. end
  4057. Part:remove()
  4058. ATTACK = false
  4059. Rooted = false
  4060. end
  4061.  
  4062. function Angel_Smite()
  4063. local HITBODIES = {}
  4064. local CENTER = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Pearl", "CenterPart", VT(0, 0, 0))
  4065. local HITFLOOR, ECH, NORMAL = Raycast(Mouse.Hit.p + VT(0, 2, 0), CF(Mouse.Hit.p, Mouse.Hit.p + VT(0, -1, 0)).lookVector, 10000000, Character)
  4066. CENTER.CFrame = CF(ECH)
  4067. local RAY = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Laser01", VT(25, 99999, 25))
  4068. MakeForm(RAY, "Cyl")
  4069. local RAY2 = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "Laser01", VT(28, 99999, 28))
  4070. MakeForm(RAY2, "Cyl")
  4071. RAY.CFrame = CF(ECH)
  4072. RAY2.CFrame = CF(ECH)
  4073. CreateSound("1368573150", CENTER, 10, 0.8)
  4074. for i = 1, 100 do
  4075. Swait()
  4076. RAY.Transparency = RAY.Transparency - 0.01
  4077. RAY.Size = RAY.Size - VT(0.25, 0, 0.25)
  4078. RAY2.Transparency = RAY2.Transparency - 0.012
  4079. RAY2.Size = RAY2.Size - VT(0.28, 0, 0.28)
  4080. end
  4081. for i = 1, 5 do
  4082. CreateRing(VT(i / 10, i / 10, 0), false, 0, 25, CF(ECH) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), C3(MRANDOM(0, 10) / 10, 0, 0), VT(i / 5, i / 5, 0))
  4083. end
  4084. RAY:remove()
  4085. RAY2:remove()
  4086. CreateSound("1368637781", CENTER, 10, 0.8)
  4087. MagicSphere(VT(0, 0, 0), 15, CF(ECH), "Really red", VT(8, 8, 8))
  4088. MagicSphere(VT(1, 1, 1), 25, CF(ECH), "Really black", VT(8, 8, 8))
  4089. AddChildrenToTable(ECH, workspace, 80, HITBODIES)
  4090. Debris:AddItem(CENTER, 5)
  4091. CreateSound("414517163", CENTER, 10, 0.8)
  4092. for i = 1, 5 do
  4093. Slice("Round", 0, 35, CF(ECH) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Really red", VT(0.5, 0, 0.5))
  4094. end
  4095. for e = 1, #HITBODIES do
  4096. if HITBODIES[e] ~= nil then
  4097. local BOD = HITBODIES[e]
  4098. local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
  4099. if TORS then
  4100. BOD:BreakJoints()
  4101. for _, c in pairs(BOD:GetChildren()) do
  4102. if c.ClassName == "Part" or c.ClassName == "MeshPart" then
  4103. local bv = Instance.new("BodyVelocity")
  4104. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  4105. bv.velocity = CF(ECH, c.Position).lookVector * 250
  4106. bv.Parent = c
  4107. Debris:AddItem(bv, 0.2)
  4108. end
  4109. end
  4110. end
  4111. end
  4112. end
  4113. end
  4114. function swait(NUMBER)
  4115. if NUMBER == 0 or NUMBER == nil then
  4116. ArtificialHB.Event:wait()
  4117. else
  4118. for i = 1, NUMBER do
  4119. ArtificialHB.Event:wait()
  4120. end
  4121. end
  4122. end
  4123.  
  4124. function chatfunc(text)
  4125. local chat = coroutine.wrap(function()
  4126. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  4127. Character:FindFirstChild("TalkingBillBoard"):destroy()
  4128. end
  4129. local Bill = Instance.new("BillboardGui",Character)
  4130. Bill.Size = UDim2.new(0,100,0,40)
  4131. Bill.StudsOffset = Vector3.new(0,3,0)
  4132. Bill.Adornee = Character.Head
  4133. Bill.Name = "TalkingBillBoard"
  4134. local Hehe = Instance.new("TextLabel",Bill)
  4135. Hehe.BackgroundTransparency = 1
  4136. Hehe.BorderSizePixel = 0
  4137. Hehe.Text = ""
  4138. Hehe.Font = "Garamond"
  4139. Hehe.TextSize = 40
  4140. Hehe.TextStrokeTransparency = 0
  4141. Hehe.Size = UDim2.new(1,0,0.5,0)
  4142. coroutine.resume(coroutine.create(function()
  4143. while Hehe ~= nil do
  4144. swait()
  4145. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  4146. Hehe.Rotation = math.random(-5,5)
  4147. Hehe.TextColor3 = Color3.new(0,0,0)
  4148. Hehe.TextStrokeColor3 = Color3.new(0,0,0)
  4149. end
  4150. end))
  4151. for i = 1,string.len(text),1 do
  4152. swait()
  4153. Hehe.Text = string.sub(text,1,i)
  4154. end
  4155. swait(90)--Re[math.random(1, 93)]
  4156. for i = 0, 1, .025 do
  4157. swait()
  4158. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  4159. Hehe.TextStrokeTransparency = i
  4160. Hehe.TextTransparency = i
  4161. end
  4162. Bill:Destroy()
  4163. end)
  4164. chat()
  4165. end
  4166.  
  4167. function onChatted(msg)
  4168. chatfunc(msg)
  4169. end
  4170.  
  4171. Player.Chatted:connect(onChatted)
  4172.  
  4173. function chatfunc(text)
  4174. local chat = coroutine.wrap(function()
  4175. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  4176. Character:FindFirstChild("TalkingBillBoard"):destroy()
  4177. end
  4178. local Bill = Instance.new("BillboardGui",Character)
  4179. Bill.Size = UDim2.new(0,100,0,40)
  4180. Bill.StudsOffset = Vector3.new(0,3,0)
  4181. Bill.Adornee = Character.Head
  4182. Bill.Name = "TalkingBillBoard"
  4183. local Hehe = Instance.new("TextLabel",Bill)
  4184. Hehe.BackgroundTransparency = 1
  4185. Hehe.BorderSizePixel = 0
  4186. Hehe.Text = ""
  4187. Hehe.Font = "Bodoni"
  4188. Hehe.TextSize = 40
  4189. Hehe.TextStrokeTransparency = 0
  4190. Hehe.Size = UDim2.new(1,0,0.5,0)
  4191. coroutine.resume(coroutine.create(function()
  4192. while Hehe ~= nil do
  4193. swait()
  4194. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  4195. Hehe.Rotation = math.random(-5,5)
  4196. Hehe.TextColor3 = Color3.new(0,0,0)
  4197. Hehe.TextStrokeColor3 = Color3.new(0,0,0)
  4198. end
  4199. end))
  4200. for i = 1,string.len(text),1 do
  4201. swait()
  4202. Hehe.Text = string.sub(text,1,i)
  4203. end
  4204. swait(90)--Re[math.random(1, 93)]
  4205. for i = 0, 1, .025 do
  4206. swait()
  4207. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  4208. Hehe.TextStrokeTransparency = i
  4209. Hehe.TextTransparency = i
  4210. end
  4211. Bill:Destroy()
  4212. end)
  4213. chat()
  4214. end
  4215.  
  4216. function onChatted(msg)
  4217. chatfunc(msg)
  4218. end
  4219.  
  4220. Player.Chatted:connect(onChatted)
  4221.  
  4222. function Godly_Speed_And_Strength()
  4223. local HITFLOOR, HITPOS = Raycast(Mouse.Hit.p + VT(0, 1, 0), CF(Mouse.Hit.p + VT(0, 1, 0), Mouse.Hit.p - VT(0, 1, 0)).lookVector, 25, Character)
  4224. if HITFLOOR then
  4225. local ORIGINPOS = VT(RootPart.Position.X, HITPOS.Y + 8, RootPart.Position.Z)
  4226. CreateSound("1295446488", Torso, 5, 1)
  4227. for i = 1, 5 do
  4228. WACKYEFFECT({
  4229. Time = MRANDOM(15, 35),
  4230. EffectType = "Round Slash",
  4231. Size = VT(0, 0, 0),
  4232. Size2 = VT(0.3, 0, 0.3),
  4233. Transparency = 0.5,
  4234. Transparency2 = 1,
  4235. CFrame = CF(Torso.Position) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(-25, 25))),
  4236. MoveToPos = nil,
  4237. RotationX = MRANDOM(-50, 50) / 10,
  4238. RotationY = MRANDOM(-50, 50) / 10,
  4239. RotationZ = MRANDOM(-50, 50) / 10,
  4240. Material = "Neon",
  4241. Color = C3(1, 1, 1),
  4242. SoundID = nil,
  4243. SoundPitch = nil,
  4244. SoundVolume = nil
  4245. })
  4246. end
  4247. ATTACK = true
  4248. Rooted = true
  4249. UNANCHOR = false
  4250. RootPart.Anchored = true
  4251. RootPart.CFrame = CF(HITPOS + VT(0, 8, 0), ORIGINPOS) * ANGLES(RAD(0), RAD(180), RAD(0))
  4252. for i = 1, 5 do
  4253. WACKYEFFECT({
  4254. Time = MRANDOM(15, 35),
  4255. EffectType = "Round Slash",
  4256. Size = VT(0, 0, 0),
  4257. Size2 = VT(0.3, 0, 0.3),
  4258. Transparency = 0.5,
  4259. Transparency2 = 1,
  4260. CFrame = CF(Torso.Position) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(-25, 25))),
  4261. MoveToPos = nil,
  4262. RotationX = MRANDOM(-50, 50) / 10,
  4263. RotationY = MRANDOM(-50, 50) / 10,
  4264. RotationZ = MRANDOM(-50, 50) / 10,
  4265. Material = "Neon",
  4266. Color = C3(1, 1, 1),
  4267. SoundID = nil,
  4268. SoundPitch = nil,
  4269. SoundVolume = nil
  4270. })
  4271. end
  4272. for i = 0, 0.2, 0.1 / Animation_Speed do
  4273. Swait()
  4274. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(150)), 2 / Animation_Speed)
  4275. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  4276. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  4277. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  4278. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  4279. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 2 / Animation_Speed)
  4280. end
  4281. for i = 0, 1, 0.1 / Animation_Speed do
  4282. Swait()
  4283. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(300)), 0.02 / Animation_Speed)
  4284. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.02 / Animation_Speed)
  4285. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.02 / Animation_Speed)
  4286. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.02 / Animation_Speed)
  4287. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.02 / Animation_Speed)
  4288. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 0.02 / Animation_Speed)
  4289. end
  4290. for i = 1, 10 do
  4291. Swait()
  4292. RootPart.CFrame = RootPart.CFrame * CF(0, -0.4, 0)
  4293. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(300)), 1.7 / Animation_Speed)
  4294. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1.7 / Animation_Speed)
  4295. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 1.7 / Animation_Speed)
  4296. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.7 / Animation_Speed)
  4297. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1.7 / Animation_Speed)
  4298. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1.7 / Animation_Speed)
  4299. end
  4300. for i = 0, 0.2, 0.1 / Animation_Speed do
  4301. Swait()
  4302. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(90)), 1.5 / Animation_Speed)
  4303. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 1.5 / Animation_Speed)
  4304. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  4305. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.5 / Animation_Speed)
  4306. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  4307. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  4308. end
  4309. local HITFLOOR, HITPOS = Raycast(RightArm.Position, CF(RightArm.Position, RightArm.Position + VT(0, -1, 0)).lookVector, 8, Character)
  4310. if HITFLOOR then
  4311. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  4312. local CHILDREN = HITFLOOR.Parent:GetDescendants()
  4313. for index, CHILD in pairs(CHILDREN) do
  4314. if CHILD:IsA("BasePart") and CHILD.Parent:FindFirstChildOfClass("Humanoid") then
  4315. for i = 1, 5 do
  4316. CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, CHILD.Size / 2, 5, MRANDOM(15, 25))
  4317. CHILD:remove()
  4318. end
  4319. end
  4320. end
  4321. local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  4322. SOUNDPART.CFrame = CF(HITPOS)
  4323. Debris:AddItem(SOUNDPART, 5)
  4324. CreateSound("130972023", SOUNDPART, 6, 3)
  4325. CreateSound("182765513", SOUNDPART, 6, 1)
  4326. WACKYEFFECT({
  4327. EffectType = "Ring",
  4328. Size = VT(0, 0, 0),
  4329. Size2 = VT(1, 1, 0),
  4330. Transparency = 0.7,
  4331. Transparency2 = 1,
  4332. CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)),
  4333. MoveToPos = nil,
  4334. RotationX = 0,
  4335. RotationY = 0,
  4336. RotationZ = 0,
  4337. Material = "Neon",
  4338. Color = C3(1, 1, 1),
  4339. SoundID = nil,
  4340. SoundPitch = nil,
  4341. SoundVolume = nil
  4342. })
  4343. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  4344. local CHILDREN = HITFLOOR.Parent.Parent:GetDescendants()
  4345. for index, CHILD in pairs(CHILDREN) do
  4346. if CHILD:IsA("BasePart") and CHILD.Parent:FindFirstChildOfClass("Humanoid") then
  4347. for i = 1, 5 do
  4348. CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, CHILD.Size / 2, 5, MRANDOM(15, 25))
  4349. CHILD:remove()
  4350. end
  4351. end
  4352. end
  4353. local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  4354. SOUNDPART.CFrame = CF(HITPOS)
  4355. Debris:AddItem(SOUNDPART, 5)
  4356. CreateSound("130972023", SOUNDPART, 6, 3)
  4357. CreateSound("182765513", SOUNDPART, 6, 1)
  4358. WACKYEFFECT({
  4359. EffectType = "Ring",
  4360. Size = VT(0, 0, 0),
  4361. Size2 = VT(1, 1, 0),
  4362. Transparency = 0.7,
  4363. Transparency2 = 1,
  4364. CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)),
  4365. MoveToPos = nil,
  4366. RotationX = 0,
  4367. RotationY = 0,
  4368. RotationZ = 0,
  4369. Material = "Neon",
  4370. Color = C3(1, 1, 1),
  4371. SoundID = nil,
  4372. SoundPitch = nil,
  4373. SoundVolume = nil
  4374. })
  4375. elseif HITFLOOR.Anchored == false then
  4376. if HITFLOOR.Parent ~= workspace then
  4377. local CHILDREN = HITFLOOR.Parent:GetDescendants()
  4378. for index, CHILD in pairs(CHILDREN) do
  4379. if CHILD:IsA("BasePart") and CHILD.Position.Y < HITPOS.Y then
  4380. for i = 1, 5 do
  4381. CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, CHILD.Size / 3, 5, MRANDOM(15, 25))
  4382. end
  4383. CHILD:remove()
  4384. end
  4385. end
  4386. else
  4387. for i = 1, 5 do
  4388. CreateFlyingDebree(HITFLOOR, CF(HITFLOOR.Position), 1, HITFLOOR.Size / 3, 5, MRANDOM(15, 25))
  4389. end
  4390. HITFLOOR:remove()
  4391. end
  4392. local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  4393. SOUNDPART.CFrame = CF(HITPOS)
  4394. Debris:AddItem(SOUNDPART, 5)
  4395. CreateSound("130972023", SOUNDPART, 10, 3)
  4396. CreateSound("178452217", SOUNDPART, 6, 1)
  4397. WACKYEFFECT({
  4398. EffectType = "Ring",
  4399. Size = VT(0, 0, 0),
  4400. Size2 = VT(1, 1, 0),
  4401. Transparency = 0.7,
  4402. Transparency2 = 1,
  4403. CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)),
  4404. MoveToPos = nil,
  4405. RotationX = 0,
  4406. RotationY = 0,
  4407. RotationZ = 0,
  4408. Material = "Neon",
  4409. Color = C3(1, 1, 1),
  4410. SoundID = nil,
  4411. SoundPitch = nil,
  4412. SoundVolume = nil
  4413. })
  4414. else
  4415. local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  4416. SOUNDPART.CFrame = CF(HITPOS)
  4417. Debris:AddItem(SOUNDPART, 5)
  4418. CreateSound("130972023", SOUNDPART, 10, 1)
  4419. CreateSound("130972023", SOUNDPART, 6, 0.7)
  4420. CreateDebreeRing(HITFLOOR, HITPOS, 5, VT(5, 5, 5), 5)
  4421. CreateDebreeRing(HITFLOOR, HITPOS, 8, VT(8, 8, 8), 5)
  4422. ApplyAoE(HITPOS, 15, 45, 75, 75, false)
  4423. ApplyAoE(HITPOS, 25, 25, 35, 35, false)
  4424. for i = 1, 5 do
  4425. CreateFlyingDebree(HITFLOOR, CF(HITPOS), 1, VT(MRANDOM(10, 30) / 10, MRANDOM(10, 30) / 10, MRANDOM(10, 30) / 10), 5, MRANDOM(75, 150))
  4426. end
  4427. for i = 1, 5 do
  4428. CreateFlyingDebree(HITFLOOR, CF(HITPOS), 1, VT(MRANDOM(10, 30) / 2, MRANDOM(10, 30) / 2, MRANDOM(10, 30) / 2), 5, MRANDOM(75, 150))
  4429. end
  4430. end
  4431. end
  4432. for i = 0, 1.2, 0.1 / Animation_Speed do
  4433. Swait()
  4434. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(90)), 1.5 / Animation_Speed)
  4435. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 1.5 / Animation_Speed)
  4436. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  4437. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.5 / Animation_Speed)
  4438. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  4439. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  4440. end
  4441. ATTACK = false
  4442. Rooted = false
  4443. UNANCHOR = true
  4444. RootPart.Anchored = false
  4445. end
  4446. end
  4447. local ENERGYSOUND = 1417051162
  4448. local BEAMSOUND = 1417056781
  4449. local EXPLOSIONSOUND = 1417056081
  4450.  
  4451. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Dark indigo", "BraceletPart", VT(1.01,0.3,1.01),false)
  4452. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  4453. for i = 1, 3 do
  4454. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Royal purple", "BraceletPart", VT(0.2,1.02,0.2),false)
  4455. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0, 0, 0.6-0.3*i) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  4456. MakeForm(Part,"Cyl")
  4457. end
  4458. function Charge(TIME,GYRO)
  4459. local SND = CreateSound(ENERGYSOUND,Torso,6,TIME,false)
  4460. local G = nil
  4461. if GYRO == true then
  4462. G = IT("BodyGyro",RootPart)
  4463. G.D = 250
  4464. G.P = 200000
  4465. G.MaxTorque = VT(math.huge,math.huge,math.huge)
  4466. end
  4467. for i=0, TIME, 0.1 / Animation_Speed do
  4468. Swait()
  4469. if G then
  4470. G.cframe = CF(RootPart.Position,Mouse.Hit.p)
  4471. end
  4472. WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(1.2,1.2,1.2), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BasePart.CFrame, MoveToPos = BasePart.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-4).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  4473. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  4474. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  4475. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  4476. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  4477. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  4478. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  4479. end
  4480. SND:remove()
  4481. if G then
  4482. return G
  4483. end
  4484. end
  4485.  
  4486. function Morning_Star()
  4487. ATTACK = true
  4488. Rooted = true
  4489. for i=0, 1, 0.1 / Animation_Speed do
  4490. Swait()
  4491. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4492. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  4493. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  4494. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  4495. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  4496. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  4497. end
  4498. coroutine.resume(coroutine.create(function()
  4499. local POS = Mouse.Hit.p
  4500. local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,2000,0))
  4501. MakeForm(RAY,"Cyl")
  4502. local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,0,0))
  4503. MakeForm(SPHERE,"Ball")
  4504. local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(0,0,0))
  4505. MakeForm(SHIELD,"Ball")
  4506. SHIELD.CFrame = CF(POS)
  4507. RAY.CFrame = CF(POS)
  4508. SPHERE.CFrame = CF(POS)
  4509. CreateSound(440145570, SPHERE, 10, 0.8, false)
  4510. CreateSound(415700134, SPHERE, 10, 0.8, false)
  4511. for i = 1, 200 do
  4512. Swait()
  4513. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  4514. RAY.Size = RAY.Size + VT(0.05,0,0.05)
  4515. SPHERE.Size = SPHERE.Size + VT(2,2,2)
  4516. SHIELD.Size = SPHERE.Size + VT(3,3,3)
  4517. ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
  4518. end
  4519. for i = 1, 45 do
  4520. Swait()
  4521. RAY.Transparency = RAY.Transparency + 1/45
  4522. SPHERE.Transparency = RAY.Transparency
  4523. SHIELD.Transparency = SPHERE.Transparency + 1/45
  4524. end
  4525. RAY:remove()
  4526. SHIELD:remove()
  4527. SPHERE:remove()
  4528. end))
  4529. for i=0, 1, 0.1 / Animation_Speed do
  4530. Swait()
  4531. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  4532. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  4533. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  4534. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  4535. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  4536. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  4537. end
  4538. ATTACK = false
  4539. Rooted = false
  4540. end
  4541.  
  4542.  
  4543.  
  4544. function TakeOnMe()
  4545. Speed = 5
  4546. local MEME = CreateSound(1890957836, Effects, 2, 1, false)
  4547. ATTACK = true
  4548. Rooted = false
  4549. local DANCE = true
  4550. local KEY = Mouse.KeyDown:connect(function(NEWKEY)
  4551. if NEWKEY == "p" then
  4552. DANCE = false
  4553. end
  4554. end)
  4555. PLAYSONG = false
  4556. while true do
  4557. for i = 1, 15 do
  4558. Swait()
  4559. MEME.Parent = Effects
  4560. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4561. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4562. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  4563. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  4564. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.6, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4565. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, 0, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4566. end
  4567. if DANCE == false then
  4568. break
  4569. end
  4570. for i = 1, 15 do
  4571. Swait()
  4572. MEME.Parent = Effects
  4573. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4574. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4575. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  4576. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(10)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  4577. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4578. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4579. end
  4580. end
  4581. PLAYSONG = true
  4582. KEY:Disconnect()
  4583. MEME:remove()
  4584. Speed = 25
  4585. ATTACK = false
  4586. Rooted = false
  4587. end
  4588. function Smite()
  4589. ATTACK = true
  4590. Rooted = false
  4591. CreateSound(1368573150, RightArm, 3, 1.5)
  4592. for i=0, 0.6, 0.1 / Animation_Speed do
  4593. Swait()
  4594. WACKYEFFECT({TIME = 15, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  4595. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  4596. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
  4597. end
  4598. local POWER = 0
  4599. repeat
  4600. Swait()
  4601. WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  4602. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  4603. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
  4604. POWER = POWER + 0.5
  4605. if POWER >= 85 then
  4606. POWER = 85
  4607. end
  4608. until KEYHOLD == false
  4609. if POWER < 0.6 then
  4610. SpawnSmite(Mouse.Hit.p)
  4611. else
  4612. if POWER < 15 then
  4613. POWER = 15
  4614. end
  4615. SpawnMeteor(Mouse.Hit.p,POWER/15)
  4616. end
  4617. ATTACK = false
  4618. Rooted = false
  4619. end
  4620. function RTaunt()
  4621. ATTACK = true
  4622. Rooted = true
  4623. local TAUNT = CreateSound(135017578, Torso, 7, 1, false)
  4624. repeat
  4625. Swait()
  4626. TAUNT.Parent = Torso
  4627. TAUNT.Playing = true
  4628. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4629. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(-0.02, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed)
  4630. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  4631. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  4632. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4633. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4634. until TAUNT.TimePosition >= 1.25
  4635. for i=0, 1.6, 0.1 / Animation_Speed do
  4636. Swait()
  4637. TAUNT.Parent = Torso
  4638. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(5)), 1 / Animation_Speed)
  4639. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
  4640. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  4641. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  4642. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4643. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4644. end
  4645. ATTACK = false
  4646. Rooted = false
  4647. end
  4648. function Taunt()
  4649. ATTACK = true
  4650. Rooted = true
  4651. CreateSound("907330011", Head, 10, 1.1)
  4652. for i=0, 1, 0.1 / Animation_Speed do
  4653. Swait()
  4654. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  4655. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed)
  4656. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.8) * ANGLES(RAD(170), RAD(0), RAD(-30)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  4657. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  4658. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  4659. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  4660. end
  4661. for i=0, 2, 0.1 / Animation_Speed do
  4662. Swait()
  4663. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  4664. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed)
  4665. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  4666. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  4667. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  4668. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  4669. end
  4670. ATTACK = false
  4671. Rooted = false
  4672. end
  4673. function Destruction()
  4674. ATTACK = true
  4675. Rooted = true
  4676. local AIMPOS = Mouse.Hit.p
  4677. local AIM,AIMPOS = CastProperRay(AIMPOS+VT(0,1,0),AIMPOS,10000,Character)
  4678. coroutine.resume(coroutine.create(function()
  4679. local RAYS = {}
  4680. for i = 1, 4 do
  4681. local RAY = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "Ray", VT(50,2000,50))
  4682. MakeForm(RAY,"Cyl")
  4683. RAY.Mesh.Scale = VT(1,1.1,1)
  4684. table.insert(RAYS,RAY)
  4685. end
  4686. CreateSound(348663022, Effects, 2, 1.2, false)
  4687. for i = 1, 100 do
  4688. Swait()
  4689. for e = 1, #RAYS do
  4690. if RAYS[e] ~= nil then
  4691. local RAY = RAYS[e]
  4692. RAY.CFrame = CF(AIMPOS+VT(0,1000,0))*ANGLES(RAD(0),RAD(90*e),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(50-(i/2)))*CF(0,-1000,0)
  4693. RAY.Transparency = RAY.Transparency - 0.01
  4694. end
  4695. end
  4696. end
  4697. for i = 1, 20 do
  4698. Swait()
  4699. for e = 1, #RAYS do
  4700. if RAYS[e] ~= nil then
  4701. local RAY = RAYS[e]
  4702. RAY.Mesh.Scale = RAY.Mesh.Scale - VT(1/20,0,1/20)
  4703. end
  4704. end
  4705. end
  4706. wait(0.3)
  4707. for i = 1, 16 do
  4708. local POS = CF(AIMPOS)*ANGLES(RAD(0),RAD(0,360),RAD(0))*CF(0,0,MRANDOM(0,5)).p
  4709. SpawnTrail(POS+VT(0,200,0),POS)
  4710. end
  4711. for i = 1, 4 do
  4712. CreateDebreeRing2(AIM,AIMPOS-VT(0,3,0),5*i,VT(5,5,5)*i,5)
  4713. end
  4714.  
  4715. CreateFlyingDebree2(AIM,CF(AIMPOS),7,VT(3,3,3),5,185,false)
  4716. CreateFlyingDebree2(AIM,CF(AIMPOS),7,VT(6,6,6),5,285,false)
  4717. CreateSound(130972023, Effects, 2, 1, false)
  4718. local POS = Mouse.Hit.p
  4719. local RAY = CreatePart(3, Effects, "Neon", 0, 0, "White", "Strike", VT(0,0,0))
  4720. MakeForm(RAY,"Cyl")
  4721. local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "White", "Strike", VT(130,130,130))
  4722. MakeForm(SPHERE,"Ball")
  4723. local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(120,120,120))
  4724. MakeForm(SHIELD,"Ball")
  4725. SHIELD.CFrame = CF(AIMPOS)
  4726. RAY.CFrame = CF(AIMPOS)
  4727. SPHERE.CFrame = CF(AIMPOS)
  4728. local CFRAME = CF(SPHERE.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  4729. CreateSound(415700134, SPHERE, 10, 0.8, false)
  4730. for i = 1, 200 do
  4731. Swait()
  4732. WACKYEFFECT({EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = CF(SPHERE.Position+VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))), MoveToPos = CF(RAY.Position), RotationX = MRANDOM(-15,15), RotationY = MRANDOM(-15,15), RotationZ = MRANDOM(-15,15), Material = "Neon", Color = C3(1,1,1), SoundID = "444667859", SoundPitch = 2, SoundVolume = nil})
  4733. MagicSphere(VT(0,0,0),45,SPHERE.CFrame,"Really black",VT(5,20,5))
  4734. RAY.Size = RAY.Size + VT(0,0,0)
  4735. SPHERE.Size = SPHERE.Size + VT(0.05,0.05,0.05)
  4736. SHIELD.Size = SPHERE.Size + VT(0.05,0.05,0.05)
  4737. ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
  4738. end
  4739. for i = 1, 45 do
  4740. Swait()
  4741. RAY.Transparency = RAY.Transparency + 1/45
  4742. SPHERE.Transparency = RAY.Transparency
  4743. SHIELD.Transparency = SPHERE.Transparency + 1/45
  4744. end
  4745. RAY:remove()
  4746. SHIELD:remove()
  4747. SPHERE:remove()
  4748. end))
  4749. ATTACK = false
  4750. Rooted = false
  4751. end
  4752. local asd = Instance.new("ParticleEmitter")
  4753. asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  4754. asd.LightEmission = .1
  4755. asd.Size = NumberSequence.new(0.2)
  4756. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  4757. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  4758. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  4759. asd.Transparency = bbb
  4760. asd.Size = aaa
  4761. asd.ZOffset = .9
  4762. asd.Acceleration = Vector3.new(0, -15, 0)
  4763. asd.LockedToPart = false
  4764. asd.EmissionDirection = "Back"
  4765. asd.Lifetime = NumberRange.new(1, 2)
  4766. asd.Rotation = NumberRange.new(-100, 100)
  4767. asd.RotSpeed = NumberRange.new(-100, 100)
  4768. asd.Speed = NumberRange.new(25,35)
  4769. asd.Enabled = false
  4770. asd.VelocitySpread = 5
  4771.  
  4772. function getbloody(victim,amount)
  4773. local PART = IT("Part",Effects)
  4774. PART.Transparency = 1
  4775. PART.Size = victim.Size
  4776. PART.Anchored = true
  4777. PART.CanCollide = false
  4778. PART.CFrame = CF(victim.Position,Torso.Position)
  4779. local HITPLAYERSOUNDS = {"356551938","264486467"}
  4780. Debris:AddItem(PART,5)
  4781. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  4782. local prtcl = asd:Clone()
  4783. prtcl.Parent = PART
  4784. prtcl:Emit(amount*10)
  4785. end
  4786.  
  4787. function impale(chain,hit)
  4788. if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") then
  4789. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  4790. if humanoid.Health ~= 0 then
  4791. hit.Parent:BreakJoints()
  4792. getbloody(hit,15)
  4793. local prtcl = asd:Clone()
  4794. prtcl.Parent = chain
  4795. prtcl.Enabled = true
  4796. prtcl.Speed = NumberRange.new(0)
  4797. prtcl.Size = NumberSequence.new(0.2)
  4798. end
  4799. end
  4800. end
  4801.  
  4802. function clerp(a, b, t)
  4803. return a:lerp(b, t)
  4804. end
  4805.  
  4806. function newBezier(startpos, pos2, pos3, endpos, t)
  4807. local A = clerp(startpos, pos2, t)
  4808. local B = clerp(pos2, pos3, t)
  4809. local C = clerp(pos3, endpos, t)
  4810. local lerp1 = clerp(A, B, t)
  4811. local lerp2 = clerp(B, C, t)
  4812. local cubic = clerp(lerp1, lerp2, t)
  4813. return cubic
  4814. end
  4815. function Meteor_Shower()
  4816. ATTACK = true
  4817. Rooted = false
  4818. CreateSound(1368573150, RightArm, 3, 0.8)
  4819. CreateSound(649634100, Torso, 10, 0.8)
  4820. for i=0, 1.2, 0.1 / Animation_Speed do
  4821. Swait()
  4822. WACKYEFFECT({TIME = 15, EffectType = "Block", Size = VT(3,3,3)/2, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  4823. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  4824. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
  4825. end
  4826. local POS = Mouse.Hit.p
  4827. CreateSound(463593339, Effects, 3, 1)
  4828. coroutine.resume(coroutine.create(function()
  4829. for i = 1, 35 do
  4830. wait(MRANDOM(5,150)/100)
  4831. SpawnMeteor(CF(POS) * ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(0,1500)/10).p,MRANDOM(10,25)/10)
  4832. end
  4833. end))
  4834. ATTACK = false
  4835. Rooted = false
  4836. end
  4837.  
  4838. Lighting = game.Lighting
  4839. skybox = Instance.new("Sky", Lighting)
  4840.  
  4841. skybox.SkyboxBk = "rbxassetid://1928350162"
  4842. skybox.SkyboxDn = "rbxassetid://1928348152"
  4843. skybox.SkyboxFt = "rbxassetid://1928348152"
  4844. skybox.SkyboxLf = "rbxassetid://1928350162"
  4845. skybox.SkyboxRt = "rbxassetid://1928350162"
  4846. skybox.SkyboxUp = "rbxassetid://1928350162"
  4847.  
  4848. --//=================================\\
  4849. --|| ASSIGN THINGS TO KEYS
  4850. --\\=================================//
  4851.  
  4852. function MouseDown(Mouse)
  4853. if ATTACK == false then
  4854. Click()
  4855. end
  4856. end
  4857. function MouseDown(Mouse)
  4858. HOLD = true
  4859. if ATTACK == false then
  4860. end
  4861. end
  4862.  
  4863. function MouseUp(Mouse)
  4864. HOLD = false
  4865. end
  4866.  
  4867. function KeyDown(Key)
  4868. KEYHOLD = true
  4869. if Key == "v" and ATTACK == false then
  4870. Equivalent_Pain()
  4871. end
  4872.  
  4873. if Key == "b" and ATTACK == false then
  4874. RTaunt()
  4875. end
  4876.  
  4877. if Key == "n" and ATTACK == false then
  4878. TakeOnMe()
  4879. end
  4880.  
  4881. if Key == "q" and ATTACK == false then
  4882. Meteor_Shower()
  4883. end
  4884.  
  4885. if Key == "t" and ATTACK == false then
  4886. Taunt()
  4887. end
  4888.  
  4889. if Key == "x" and ATTACK == false then
  4890. Smite()
  4891. end
  4892.  
  4893. if Key == "c" and ATTACK == false then
  4894. Warp()
  4895. end
  4896. if Key == "e" and ATTACK == false then
  4897. Prison_Key()
  4898. end
  4899. if Key == "r" and ATTACK == false then
  4900. Destruction()
  4901. end
  4902. if Key == "t" and ATTACK == false then
  4903. Morning_Star()
  4904. end
  4905. if Key == "1" and ATTACK == false then
  4906. LaughV2()
  4907. end
  4908. if Key == "2" and ATTACK == false then
  4909. Holy_Smite()
  4910. end
  4911. if Key == "3" and ATTACK == false then
  4912. Sheer_Cold()
  4913. end
  4914. if Key == "4" and ATTACK == false then
  4915. Perfect_Command()
  4916. end
  4917. end
  4918.  
  4919. function KeyUp(Key)
  4920. KEYHOLD = false
  4921. end
  4922.  
  4923. Mouse.Button1Down:connect(function(NEWKEY)
  4924. MouseDown(NEWKEY)
  4925. end)
  4926. Mouse.Button1Up:connect(function(NEWKEY)
  4927. MouseUp(NEWKEY)
  4928. end)
  4929. Mouse.KeyDown:connect(function(NEWKEY)
  4930. KeyDown(NEWKEY)
  4931. end)
  4932. Mouse.KeyUp:connect(function(NEWKEY)
  4933. KeyUp(NEWKEY)
  4934. end)
  4935.  
  4936. --//=================================\\
  4937. --\\=================================//
  4938.  
  4939.  
  4940. function unanchor()
  4941. if UNANCHOR == true then
  4942. g = Character:GetChildren()
  4943. for i = 1, #g do
  4944. if g[i].ClassName == "Part" then
  4945. g[i].Anchored = false
  4946. end
  4947. end
  4948. end
  4949. end
  4950.  
  4951.  
  4952.  
  4953. --//=================================\\
  4954. --|| WRAP THE WHOLE SCRIPT UP
  4955. --\\=================================//
  4956. function Lerp(a, b, t) -- Linear interpolation
  4957. return a + (b - a)*t
  4958. end
  4959.  
  4960. Humanoid.Changed:connect(function(Jump)
  4961. if Jump == "Jump" and (Disable_Jump == true) then
  4962. Humanoid.Jump = false
  4963. end
  4964. end)
  4965.  
  4966. while true do
  4967. Swait()
  4968. script.Parent = WEAPONGUI
  4969. ANIMATE.Parent = nil
  4970. if Humanoid then
  4971. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  4972. IDLEANIMATION:Play()
  4973. end
  4974. SINE = SINE + CHANGE
  4975. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  4976. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  4977. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  4978. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  4979. ANIM = "Jump"
  4980. if ATTACK == false then
  4981. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  4982. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  4983. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  4984. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  4985. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  4986. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  4987. end
  4988. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  4989. ANIM = "Fall"
  4990. if ATTACK == false then
  4991. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  4992. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  4993. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  4994. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  4995. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  4996. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  4997. end
  4998. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  4999. ANIM = "Idle"
  5000. if ATTACK == false then
  5001. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  5002. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  5003. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  5004. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  5005. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  5006. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  5007. end
  5008.  
  5009. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  5010. ANIM = "Walk"
  5011. --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)
  5012. --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)
  5013. if ATTACK == false then
  5014. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed*3)
  5015. 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)
  5016. 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)
  5017. 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)
  5018. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  5019. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  5020. end
  5021. end
  5022. unanchor()
  5023. Humanoid.MaxHealth = "inf"
  5024. Humanoid.Health = "inf"
  5025. if Rooted == false then
  5026. Disable_Jump = false
  5027. Humanoid.WalkSpeed = Speed
  5028. elseif Rooted == true then
  5029. Disable_Jump = true
  5030. Humanoid.WalkSpeed = 0
  5031. end
  5032. Humanoid.Name = "Ultimate God"
  5033. sick.Parent = Torso
  5034. sick:resume()
  5035. sick.Volume = 5
  5036. sick.Pitch = 1
  5037. if Head:FindFirstChildOfClass("Sound") then
  5038. Head:FindFirstChildOfClass("Sound"):remove()
  5039. end
  5040. end
  5041.  
  5042.  
  5043. --//=================================\\
  5044. --\\=================================//
  5045.  
  5046.  
  5047. --//====================================================\\--
  5048. --|| END OF SCRIPT
  5049. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement