Advertisement
Guest_84210423435

;/

Aug 3rd, 2019
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 124.44 KB | None | 0 0
  1. Player = game.Players.LocalPlayer
  2. Character = Player.Character
  3. local naeeym2 = Instance.new("BillboardGui",Character)
  4. naeeym2.AlwaysOnTop = true
  5. naeeym2.Size = UDim2.new(7,35,3,15)
  6. naeeym2.StudsOffset = Vector3.new(0,2,0)
  7. naeeym2.MaxDistance = 75
  8. naeeym2.Adornee = Character.Head
  9. naeeym2.Name = "Name2"
  10. local tecks2 = Instance.new("TextLabel",naeeym2)
  11. tecks2.BackgroundTransparency = 1
  12. tecks2.TextScaled = true
  13. tecks2.BorderSizePixel = 0
  14. tecks2.Text = "Kickisher Gun V8"
  15. tecks2.Font = "ArialBold"
  16. tecks2.TextSize = 30
  17. glitchy = {"KIcKiSheR gun v8","kicKisHEr GuN V8","KKIICCKKIISSHHEERR GGUUNN VV88","KiCkIsHeR GuN V8","KiCkIshER GuN V8","K̶̺̺͓͇̰͍̦̘̘̇̓͒ͨ̀̅̋ͥí̡̯͔̘̤̅̾͋ͦ̍̊̄͢͡c̢͋̒̃̓҉̷͜ḳ̡͙͎̙ͫͨͧͭ̚͘̚͡҉͂̍̀͢͝ĭ̱̩̮̄̈́̋͢s̷̴̮̮̏̃̊ͨ͆̀̊̑̃h̢̢̡̰͓̎̌̊̆ͥe̸͔͑̋̓ͩ͛͛̀ͣ̅͡r̷͙͂ͪͯ͡ ̼G͛un̘̬͝ ͚͕ͪͯ̀̂̀V̵̛̛̹̰̜͚̭̦͉͎̊̓̀ͮ͂̓7̣̞̜̪̎͌͛̅̆͌̚","KIckISheR GuN V8","KiCkISheR GuN V8","...","BeGoNe","bEgOnE"}
  18. tecks2.TextStrokeTransparency = 0
  19. tecks2.TextColor3 = Color3.fromRGB(.5,0,.5)
  20. tecks2.TextStrokeColor3 = Color3.fromRGB(.5,0,.5)
  21. tecks2.Size = UDim2.new(1,0,0.5,0)
  22. tecks2.Parent = naeeym2
  23. MAINRUINCOLOR = BrickColor.Random()
  24. local ni = Color3.new(0,0,0)
  25. script.Name = "Banisher Gun V3 / 1"
  26. --//====================================================\\--
  27. --|| CREATED BY SHACKLUSTER
  28. --\\====================================================//--
  29.  
  30. script:ClearAllChildren()
  31. wait(0.2)
  32.  
  33. Player = game:GetService("Players").LocalPlayer
  34. PlayerGui = Player.PlayerGui
  35. Cam = workspace.CurrentCamera
  36. Backpack = Player.Backpack
  37. Character = Player.Character
  38. Humanoid = Character.Humanoid
  39. Mouse = Player:GetMouse()
  40. RootPart = Character["HumanoidRootPart"]
  41. Torso = Character["Torso"]
  42. Head = Character["Head"]
  43. RightArm = Character["Right Arm"]
  44. LeftArm = Character["Left Arm"]
  45. RightLeg = Character["Right Leg"]
  46. LeftLeg = Character["Left Leg"]
  47. RootJoint = RootPart["RootJoint"]
  48. Neck = Torso["Neck"]
  49. RightShoulder = Torso["Right Shoulder"]
  50. LeftShoulder = Torso["Left Shoulder"]
  51. RightHip = Torso["Right Hip"]
  52. LeftHip = Torso["Left Hip"]
  53. local TIME = 0
  54. local sick = Instance.new("Sound",Torso)
  55.  
  56. IT = Instance.new
  57. CF = CFrame.new
  58. VT = Vector3.new
  59. RAD = math.rad
  60. C3 = Color3.new
  61. UD2 = UDim2.new
  62. BRICKC = BrickColor.new
  63. ANGLES = CFrame.Angles
  64. EULER = CFrame.fromEulerAnglesXYZ
  65. COS = math.cos
  66. ACOS = math.acos
  67. SIN = math.sin
  68. ASIN = math.asin
  69. ABS = math.abs
  70. MRANDOM = math.random
  71. FLOOR = math.floor
  72.  
  73. --//=================================\\
  74. --|| USEFUL VALUES
  75. --\\=================================//
  76. local SKILLTEXTCOLOR = C3(1,1,1)
  77.  
  78. local naeeym2 = Instance.new("BillboardGui",Character)
  79. naeeym2.AlwaysOnTop = true
  80. naeeym2.Size = UDim2.new(5,35,2,35)
  81. naeeym2.StudsOffset = Vector3.new(0,2,0)
  82. naeeym2.Adornee = Character.Head
  83. naeeym2.Name = "Name"
  84. local tecks2 = Instance.new("TextLabel",naeeym2)
  85. tecks2.BackgroundTransparency = 1
  86. tecks2.TextScaled = true
  87. tecks2.BorderSizePixel = 0
  88. tecks2.Text = "Guardian of light"
  89. tecks2.Font = "Antique"
  90. tecks2.TextSize = 60
  91. tecks2.TextStrokeTransparency = 0
  92. tecks2.TextColor3 = Color3.new(0,0,0)
  93. tecks2.TextStrokeColor3 = Color3.new(0.2,0.2,0.2)
  94. tecks2.Size = UDim2.new(1,0,0.5,0)
  95. tecks2.Parent = naeeym2
  96.  
  97. Animation_Speed = 3
  98. local FORCERESET = false
  99. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  100. local Speed = 16
  101. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  102. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  103. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  104. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  105. local DAMAGEMULTIPLIER = 1
  106. local ANIM = "Idle"
  107. local ATTACK = false
  108. local EQUIPPED = false
  109. local HOLD = false
  110. local COMBO = 1
  111. local Rooted = false
  112. local SINE = 0
  113. local KEYHOLD = false
  114. local CHANGE = 2 / Animation_Speed
  115. local WALKINGANIM = false
  116. local VALUE1 = false
  117. local VALUE2 = false
  118. local ROBLOXIDLEANIMATION = IT("Animation")
  119. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  120. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  121. --ROBLOXIDLEANIMATION.Parent = Humanoid
  122. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  123. WEAPONGUI.Name = "BanishV3Gui"
  124. local Weapon = IT("Model")
  125. Weapon.Name = "Adds"
  126. local Effects = IT("Folder", Weapon)
  127. Effects.Name = "Effects"
  128. local ANIMATOR = Humanoid.Animator
  129. local ANIMATE = Character:FindFirstChild("Animate")
  130. local UNANCHOR = true
  131. local TOBANISH = {}
  132. script.Parent = PlayerGui
  133.  
  134. --//=================================\\
  135. --\\=================================//
  136.  
  137.  
  138. --//=================================\\
  139. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  140. --\\=================================//
  141.  
  142. ArtificialHB = Instance.new("BindableEvent", script)
  143. ArtificialHB.Name = "ArtificialHB"
  144.  
  145. script:WaitForChild("ArtificialHB")
  146.  
  147. frame = Frame_Speed
  148. tf = 0
  149. allowframeloss = false
  150. tossremainder = false
  151. lastframe = tick()
  152. script.ArtificialHB:Fire()
  153.  
  154. game:GetService("RunService").Heartbeat:connect(function(s, p)
  155. tf = tf + s
  156. if tf >= frame then
  157. if allowframeloss then
  158. script.ArtificialHB:Fire()
  159. lastframe = tick()
  160. else
  161. for i = 1, math.floor(tf / frame) do
  162. script.ArtificialHB:Fire()
  163. end
  164. lastframe = tick()
  165. end
  166. if tossremainder then
  167. tf = 0
  168. else
  169. tf = tf - frame * math.floor(tf / frame)
  170. end
  171. end
  172. end)
  173.  
  174. --//=================================\\
  175. --\\=================================//
  176.  
  177. --//=================================\\
  178. --|| SOME FUNCTIONS
  179. --\\=================================//
  180. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  181. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  182. end
  183.  
  184. function PositiveAngle(NUMBER)
  185. if NUMBER >= 0 then
  186. NUMBER = 0
  187. end
  188. return NUMBER
  189. end
  190.  
  191. function NegativeAngle(NUMBER)
  192. if NUMBER <= 0 then
  193. NUMBER = 0
  194. end
  195. return NUMBER
  196. end
  197.  
  198. function Swait(NUMBER)
  199. if NUMBER == 0 or NUMBER == nil then
  200. ArtificialHB.Event:wait()
  201. else
  202. for i = 1, NUMBER do
  203. ArtificialHB.Event:wait()
  204. end
  205. end
  206. end
  207.  
  208. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  209. local NEWMESH = IT(MESH)
  210. if MESH == "SpecialMesh" then
  211. NEWMESH.MeshType = MESHTYPE
  212. if MESHID ~= "nil" and MESHID ~= "" then
  213. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  214. end
  215. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  216. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  217. end
  218. end
  219. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  220. NEWMESH.Scale = SCALE
  221. NEWMESH.Parent = PARENT
  222. return NEWMESH
  223. end
  224.  
  225. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  226. local NEWPART = IT("Part")
  227. NEWPART.formFactor = FORMFACTOR
  228. NEWPART.Reflectance = REFLECTANCE
  229. NEWPART.Transparency = TRANSPARENCY
  230. NEWPART.CanCollide = false
  231. NEWPART.Locked = true
  232. NEWPART.Anchored = true
  233. if ANCHOR == false then
  234. NEWPART.Anchored = false
  235. end
  236. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  237. NEWPART.Name = NAME
  238. NEWPART.Size = SIZE
  239. NEWPART.Position = Torso.Position
  240. NEWPART.Material = MATERIAL
  241. NEWPART:BreakJoints()
  242. NEWPART.Parent = PARENT
  243. return NEWPART
  244. end
  245.  
  246. local function weldBetween(a, b)
  247. local weldd = Instance.new("ManualWeld")
  248. weldd.Part0 = a
  249. weldd.Part1 = b
  250. weldd.C0 = CFrame.new()
  251. weldd.C1 = b.CFrame:inverse() * a.CFrame
  252. weldd.Parent = a
  253. return weldd
  254. end
  255.  
  256.  
  257. function QuaternionFromCFrame(cf)
  258. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  259. local trace = m00 + m11 + m22
  260. if trace > 0 then
  261. local s = math.sqrt(1 + trace)
  262. local recip = 0.5 / s
  263. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  264. else
  265. local i = 0
  266. if m11 > m00 then
  267. i = 1
  268. end
  269. if m22 > (i == 0 and m00 or m11) then
  270. i = 2
  271. end
  272. if i == 0 then
  273. local s = math.sqrt(m00 - m11 - m22 + 1)
  274. local recip = 0.5 / s
  275. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  276. elseif i == 1 then
  277. local s = math.sqrt(m11 - m22 - m00 + 1)
  278. local recip = 0.5 / s
  279. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  280. elseif i == 2 then
  281. local s = math.sqrt(m22 - m00 - m11 + 1)
  282. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  283. end
  284. end
  285. end
  286.  
  287. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  288. local xs, ys, zs = x + x, y + y, z + z
  289. local wx, wy, wz = w * xs, w * ys, w * zs
  290. local xx = x * xs
  291. local xy = x * ys
  292. local xz = x * zs
  293. local yy = y * ys
  294. local yz = y * zs
  295. local zz = z * zs
  296. 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))
  297. end
  298.  
  299. function QuaternionSlerp(a, b, t)
  300. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  301. local startInterp, finishInterp;
  302. if cosTheta >= 0.0001 then
  303. if (1 - cosTheta) > 0.0001 then
  304. local theta = ACOS(cosTheta)
  305. local invSinTheta = 1 / SIN(theta)
  306. startInterp = SIN((1 - t) * theta) * invSinTheta
  307. finishInterp = SIN(t * theta) * invSinTheta
  308. else
  309. startInterp = 1 - t
  310. finishInterp = t
  311. end
  312. else
  313. if (1 + cosTheta) > 0.0001 then
  314. local theta = ACOS(-cosTheta)
  315. local invSinTheta = 1 / SIN(theta)
  316. startInterp = SIN((t - 1) * theta) * invSinTheta
  317. finishInterp = SIN(t * theta) * invSinTheta
  318. else
  319. startInterp = t - 1
  320. finishInterp = t
  321. end
  322. end
  323. 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
  324. end
  325.  
  326. function Clerp(a, b, t)
  327. local qa = {QuaternionFromCFrame(a)}
  328. local qb = {QuaternionFromCFrame(b)}
  329. local ax, ay, az = a.x, a.y, a.z
  330. local bx, by, bz = b.x, b.y, b.z
  331. local _t = 1 - t
  332. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  333. end
  334.  
  335. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  336. local frame = IT("Frame")
  337. frame.BackgroundTransparency = TRANSPARENCY
  338. frame.BorderSizePixel = BORDERSIZEPIXEL
  339. frame.Position = POSITION
  340. frame.Size = SIZE
  341. frame.BackgroundColor3 = COLOR
  342. frame.BorderColor3 = BORDERCOLOR
  343. frame.Name = NAME
  344. frame.Parent = PARENT
  345. return frame
  346. end
  347.  
  348. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  349. local label = IT("TextLabel")
  350. label.BackgroundTransparency = 1
  351. label.Size = UD2(1, 0, 1, 0)
  352. label.Position = UD2(0, 0, 0, 0)
  353. label.TextColor3 = TEXTCOLOR
  354. label.TextStrokeTransparency = STROKETRANSPARENCY
  355. label.TextTransparency = TRANSPARENCY
  356. label.FontSize = TEXTFONTSIZE
  357. label.Font = TEXTFONT
  358. label.BorderSizePixel = BORDERSIZEPIXEL
  359. label.TextScaled = false
  360. label.Text = TEXT
  361. label.Name = NAME
  362. label.Parent = PARENT
  363. return label
  364. end
  365.  
  366. function NoOutlines(PART)
  367. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  368. end
  369.  
  370. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  371. local NEWWELD = IT(TYPE)
  372. NEWWELD.Part0 = PART0
  373. NEWWELD.Part1 = PART1
  374. NEWWELD.C0 = C0
  375. NEWWELD.C1 = C1
  376. NEWWELD.Parent = PARENT
  377. return NEWWELD
  378. end
  379.  
  380. local S = IT("Sound")
  381. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  382. local NEWSOUND = nil
  383. coroutine.resume(coroutine.create(function()
  384. NEWSOUND = S:Clone()
  385. NEWSOUND.Parent = PARENT
  386. NEWSOUND.Volume = VOLUME
  387. NEWSOUND.Pitch = PITCH
  388. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  389. NEWSOUND:play()
  390. if DOESLOOP == true then
  391. NEWSOUND.Looped = true
  392. else
  393. repeat wait(1) until NEWSOUND.Playing == false
  394. NEWSOUND:remove()
  395. end
  396. end))
  397. return NEWSOUND
  398. end
  399.  
  400. function CFrameFromTopBack(at, top, back)
  401. local right = top:Cross(back)
  402. 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)
  403. end
  404.  
  405. --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})
  406. function WACKYEFFECT(Table)
  407. local TYPE = (Table.EffectType or "Sphere")
  408. local SIZE = (Table.Size or VT(1,1,1))
  409. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  410. local TRANSPARENCY = (Table.Transparency or 0)
  411. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  412. local CFRAME = (Table.CFrame or Torso.CFrame)
  413. local MOVEDIRECTION = (Table.MoveToPos or nil)
  414. local ROTATION1 = (Table.RotationX or 0)
  415. local ROTATION2 = (Table.RotationY or 0)
  416. local ROTATION3 = (Table.RotationZ or 0)
  417. local MATERIAL = (Table.Material or "Neon")
  418. local COLOR = (Table.Color or C3(1,1,1))
  419. local TIME = (Table.Time or 45)
  420. local SOUNDID = (Table.SoundID or nil)
  421. local SOUNDPITCH = (Table.SoundPitch or nil)
  422. local SOUNDVOLUME = (Table.SoundVolume or nil)
  423. coroutine.resume(coroutine.create(function()
  424. local PLAYSSOUND = false
  425. local SOUND = nil
  426. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  427. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  428. PLAYSSOUND = true
  429. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  430. end
  431. EFFECT.Color = COLOR
  432. local MSH = nil
  433. if TYPE == "Sphere" then
  434. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  435. elseif TYPE == "Block" then
  436. MSH = IT("BlockMesh",EFFECT)
  437. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  438. elseif TYPE == "Wave" then
  439. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  440. elseif TYPE == "Ring" then
  441. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  442. elseif TYPE == "Slash" then
  443. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  444. elseif TYPE == "Round Slash" then
  445. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  446. elseif TYPE == "Swirl" then
  447. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  448. elseif TYPE == "Skull" then
  449. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  450. elseif TYPE == "Crystal" then
  451. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  452. end
  453. if MSH ~= nil then
  454. local MOVESPEED = nil
  455. if MOVEDIRECTION ~= nil then
  456. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  457. end
  458. local GROWTH = SIZE - ENDSIZE
  459. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  460. if TYPE == "Block" then
  461. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  462. else
  463. EFFECT.CFrame = CFRAME
  464. end
  465. for LOOP = 1, TIME+1 do
  466. Swait()
  467. MSH.Scale = MSH.Scale - GROWTH/TIME
  468. if TYPE == "Wave" then
  469. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  470. end
  471. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  472. if TYPE == "Block" then
  473. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  474. else
  475. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  476. end
  477. if MOVEDIRECTION ~= nil then
  478. local ORI = EFFECT.Orientation
  479. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  480. EFFECT.Orientation = ORI
  481. end
  482. end
  483. if PLAYSSOUND == false then
  484. EFFECT:remove()
  485. else
  486. repeat Swait() until SOUND.Playing == false
  487. EFFECT:remove()
  488. end
  489. else
  490. if PLAYSSOUND == false then
  491. EFFECT:remove()
  492. else
  493. repeat Swait() until SOUND.Playing == false
  494. EFFECT:remove()
  495. end
  496. end
  497. end))
  498. end
  499.  
  500. function MakeForm(PART,TYPE)
  501. if TYPE == "Cyl" then
  502. local MSH = IT("CylinderMesh",PART)
  503. elseif TYPE == "Ball" then
  504. local MSH = IT("SpecialMesh",PART)
  505. MSH.MeshType = "Sphere"
  506. elseif TYPE == "Wedge" then
  507. local MSH = IT("SpecialMesh",PART)
  508. MSH.MeshType = "Wedge"
  509. end
  510. end
  511.  
  512. Debris = game:GetService("Debris")
  513.  
  514. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  515. local DIRECTION = CF(StartPos,EndPos).lookVector
  516. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  517. end
  518.  
  519. function CharacterFade(COLOR,TIMER)
  520. coroutine.resume(coroutine.create(function()
  521. local FADE = IT("Model",Effects)
  522. for _, c in pairs(Character:GetChildren()) do
  523. if c.ClassName == "Part" and c ~= RootPart then
  524. local FADER = c:Clone()
  525. FADER.Color = COLOR
  526. FADER.CFrame = c.CFrame
  527. FADER.Parent = FADE
  528. FADER.Anchored = true
  529. FADER.Transparency = 0.25
  530. FADER:BreakJoints()
  531. FADER.Material = "Glass"
  532. FADER:ClearAllChildren()
  533. if FADER.Name == "Head" then
  534. FADER.Size = VT(1,1,1)
  535. end
  536. end
  537. end
  538. local TRANS = 0.75/TIMER
  539. for i = 1, TIMER do
  540. Swait()
  541. for _, c in pairs(FADE:GetChildren()) do
  542. if c.ClassName == "Part" then
  543. c.Transparency = c.Transparency + TRANS
  544. end
  545. end
  546. end
  547. FADE:remove()
  548. end))
  549. end
  550.  
  551. local PE=Instance.new("ParticleEmitter")
  552. PE.LightEmission=0.3
  553. PE.Size=NumberSequence.new(0)
  554. PE.Transparency=NumberSequence.new(0,1)
  555. PE.Rotation=NumberRange.new(0,360)
  556. PE.LockedToPart = false
  557. PE.Speed = NumberRange.new(0,0,0)
  558. PE.ZOffset = 0.3
  559. PE.Rate = 999
  560. PE.VelocitySpread = 25
  561. PE.Name = "Particles"
  562.  
  563. function CreateParticles(art,accel,drag,lifetime,type,isenabledbydefault,locked,size,speed)
  564. local particle = nil
  565. coroutine.resume(coroutine.create(function(PART)
  566. particle = PE:Clone()
  567. Swait()
  568. particle.Rate = 999
  569. particle.Parent = art
  570. particle.Acceleration = accel
  571. if type == "Fire" then
  572. local EyeSizes={
  573. NumberSequenceKeypoint.new(0,size,size/2),
  574. NumberSequenceKeypoint.new(1,size/4,size/8)
  575. }
  576. particle.Size = NumberSequence.new(EyeSizes)
  577. elseif type == "Smoke" then
  578. local EyeSizes={
  579. NumberSequenceKeypoint.new(0,size/5,0),
  580. NumberSequenceKeypoint.new(1,size*2,0.5)
  581. }
  582. particle.Size = NumberSequence.new(EyeSizes)
  583. elseif type == "Solid" then
  584. local EyeSizes={
  585. NumberSequenceKeypoint.new(0,size,0),
  586. NumberSequenceKeypoint.new(1,size,0)
  587. }
  588. particle.Size = NumberSequence.new(EyeSizes)
  589. end
  590. particle.Lifetime=NumberRange.new(lifetime)
  591. particle.Drag = drag
  592. if locked == true then
  593. particle.LockedToPart = true
  594. end
  595. particle.Speed = NumberRange.new(speed*0.8,speed)
  596. particle.Texture = "http://www.roblox.com/asset/?id=1179557490"
  597. particle.Enabled = isenabledbydefault
  598. particle.Color = ColorSequence.new(Color3.new(255/255, 176/255, 0))
  599. end))
  600. return particle
  601. end
  602.  
  603. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  604. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  605. end
  606.  
  607. function PositiveAngle(NUMBER)
  608. if NUMBER >= 0 then
  609. NUMBER = 0
  610. end
  611. return NUMBER
  612. end
  613.  
  614. function NegativeAngle(NUMBER)
  615. if NUMBER <= 0 then
  616. NUMBER = 0
  617. end
  618. return NUMBER
  619. end
  620.  
  621. function Swait(NUMBER)
  622. if NUMBER == 0 or NUMBER == nil then
  623. ArtificialHB.Event:wait()
  624. else
  625. for i = 1, NUMBER do
  626. ArtificialHB.Event:wait()
  627. end
  628. end
  629. end
  630.  
  631. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  632. local NEWMESH = IT(MESH)
  633. if MESH == "SpecialMesh" then
  634. NEWMESH.MeshType = MESHTYPE
  635. if MESHID ~= "nil" and MESHID ~= "" then
  636. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  637. end
  638. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  639. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  640. end
  641. end
  642. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  643. NEWMESH.Scale = SCALE
  644. NEWMESH.Parent = PARENT
  645. return NEWMESH
  646. end
  647.  
  648. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  649. local NEWPART = IT("Part")
  650. NEWPART.formFactor = FORMFACTOR
  651. NEWPART.Reflectance = REFLECTANCE
  652. NEWPART.Transparency = TRANSPARENCY
  653. NEWPART.CanCollide = false
  654. NEWPART.Locked = true
  655. NEWPART.Anchored = true
  656. if ANCHOR == false then
  657. NEWPART.Anchored = false
  658. end
  659. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  660. NEWPART.Name = NAME
  661. NEWPART.Size = SIZE
  662. NEWPART.Position = Torso.Position
  663. NEWPART.Material = MATERIAL
  664. NEWPART:BreakJoints()
  665. NEWPART.Parent = PARENT
  666. return NEWPART
  667. end
  668.  
  669. local function weldBetween(a, b)
  670. local weldd = Instance.new("ManualWeld")
  671. weldd.Part0 = a
  672. weldd.Part1 = b
  673. weldd.C0 = CFrame.new()
  674. weldd.C1 = b.CFrame:inverse() * a.CFrame
  675. weldd.Parent = a
  676. return weldd
  677. end
  678.  
  679.  
  680. function QuaternionFromCFrame(cf)
  681. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  682. local trace = m00 + m11 + m22
  683. if trace > 0 then
  684. local s = math.sqrt(1 + trace)
  685. local recip = 0.5 / s
  686. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  687. else
  688. local i = 0
  689. if m11 > m00 then
  690. i = 1
  691. end
  692. if m22 > (i == 0 and m00 or m11) then
  693. i = 2
  694. end
  695. if i == 0 then
  696. local s = math.sqrt(m00 - m11 - m22 + 1)
  697. local recip = 0.5 / s
  698. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  699. elseif i == 1 then
  700. local s = math.sqrt(m11 - m22 - m00 + 1)
  701. local recip = 0.5 / s
  702. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  703. elseif i == 2 then
  704. local s = math.sqrt(m22 - m00 - m11 + 1)
  705. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  706. end
  707. end
  708. end
  709.  
  710. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  711. local xs, ys, zs = x + x, y + y, z + z
  712. local wx, wy, wz = w * xs, w * ys, w * zs
  713. local xx = x * xs
  714. local xy = x * ys
  715. local xz = x * zs
  716. local yy = y * ys
  717. local yz = y * zs
  718. local zz = z * zs
  719. 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))
  720. end
  721.  
  722. function QuaternionSlerp(a, b, t)
  723. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  724. local startInterp, finishInterp;
  725. if cosTheta >= 0.0001 then
  726. if (1 - cosTheta) > 0.0001 then
  727. local theta = ACOS(cosTheta)
  728. local invSinTheta = 1 / SIN(theta)
  729. startInterp = SIN((1 - t) * theta) * invSinTheta
  730. finishInterp = SIN(t * theta) * invSinTheta
  731. else
  732. startInterp = 1 - t
  733. finishInterp = t
  734. end
  735. else
  736. if (1 + cosTheta) > 0.0001 then
  737. local theta = ACOS(-cosTheta)
  738. local invSinTheta = 1 / SIN(theta)
  739. startInterp = SIN((t - 1) * theta) * invSinTheta
  740. finishInterp = SIN(t * theta) * invSinTheta
  741. else
  742. startInterp = t - 1
  743. finishInterp = t
  744. end
  745. end
  746. 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
  747. end
  748.  
  749. function Clerp(a, b, t)
  750. local qa = {QuaternionFromCFrame(a)}
  751. local qb = {QuaternionFromCFrame(b)}
  752. local ax, ay, az = a.x, a.y, a.z
  753. local bx, by, bz = b.x, b.y, b.z
  754. local _t = 1 - t
  755. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  756. end
  757.  
  758. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  759. local frame = IT("Frame")
  760. frame.BackgroundTransparency = TRANSPARENCY
  761. frame.BorderSizePixel = BORDERSIZEPIXEL
  762. frame.Position = POSITION
  763. frame.Size = SIZE
  764. frame.BackgroundColor3 = COLOR
  765. frame.BorderColor3 = BORDERCOLOR
  766. frame.Name = NAME
  767. frame.Parent = PARENT
  768. return frame
  769. end
  770.  
  771. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  772. local label = IT("TextLabel")
  773. label.BackgroundTransparency = 1
  774. label.Size = UD2(1, 0, 1, 0)
  775. label.Position = UD2(0, 0, 0, 0)
  776. label.TextColor3 = TEXTCOLOR
  777. label.TextStrokeTransparency = STROKETRANSPARENCY
  778. label.TextTransparency = TRANSPARENCY
  779. label.FontSize = TEXTFONTSIZE
  780. label.Font = TEXTFONT
  781. label.BorderSizePixel = BORDERSIZEPIXEL
  782. label.TextScaled = false
  783. label.Text = TEXT
  784. label.Name = NAME
  785. label.Parent = PARENT
  786. return label
  787. end
  788.  
  789. function NoOutlines(PART)
  790. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  791. end
  792.  
  793. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  794. local NEWWELD = IT(TYPE)
  795. NEWWELD.Part0 = PART0
  796. NEWWELD.Part1 = PART1
  797. NEWWELD.C0 = C0
  798. NEWWELD.C1 = C1
  799. NEWWELD.Parent = PARENT
  800. return NEWWELD
  801. end
  802.  
  803. local S = IT("Sound")
  804. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  805. local NEWSOUND = nil
  806. coroutine.resume(coroutine.create(function()
  807. NEWSOUND = S:Clone()
  808. NEWSOUND.Parent = PARENT
  809. NEWSOUND.Volume = VOLUME
  810. NEWSOUND.Pitch = PITCH
  811. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  812. NEWSOUND:play()
  813. if DOESLOOP == true then
  814. NEWSOUND.Looped = true
  815. else
  816. repeat wait(1) until NEWSOUND.Playing == false
  817. NEWSOUND:remove()
  818. end
  819. end))
  820. return NEWSOUND
  821. end
  822.  
  823.  
  824. local EyeSizes={
  825. NumberSequenceKeypoint.new(0,2,0),
  826. NumberSequenceKeypoint.new(1,0,0)
  827. }
  828. local EyeTrans={
  829. NumberSequenceKeypoint.new(0,0.5,0),
  830. NumberSequenceKeypoint.new(1,1,0)
  831. }
  832. local PE=Instance.new("ParticleEmitter",nil)
  833. PE.LightEmission=.8
  834. PE.Color = ColorSequence.new(BRICKC("Lime green").Color,BRICKC("Lime green").Color)
  835. PE.Size=NumberSequence.new(EyeSizes)
  836. PE.Transparency=NumberSequence.new(EyeTrans)
  837. PE.Lifetime=NumberRange.new(0.35,1)
  838. PE.Rotation=NumberRange.new(0,360)
  839. PE.Rate=100
  840. PE.VelocitySpread = 10000
  841. PE.Acceleration = Vector3.new(0,85,0)
  842. PE.Drag = 5
  843. PE.Speed = NumberRange.new(0.1,5)
  844. PE.Texture="http://www.roblox.com/asset/?id=1460745664"
  845. PE.ZOffset = 0.5
  846. PE.Name = "PE"
  847. PE.Enabled = false
  848.  
  849. function Fire(art)
  850. local PARTICLES = PE:Clone()
  851. PARTICLES.Parent = art
  852. PARTICLES.Enabled = true
  853. return PARTICLES
  854. end
  855.  
  856. function CFrameFromTopBack(at, top, back)
  857. local right = top:Cross(back)
  858. 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)
  859. end
  860.  
  861. --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})
  862. function WACKYEFFECT(Table)
  863. local TYPE = (Table.EffectType or "Sphere")
  864. local SIZE = (Table.Size or VT(1,1,1))
  865. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  866. local TRANSPARENCY = (Table.Transparency or 0)
  867. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  868. local CFRAME = (Table.CFrame or Torso.CFrame)
  869. local MOVEDIRECTION = (Table.MoveToPos or nil)
  870. local ROTATION1 = (Table.RotationX or 0)
  871. local ROTATION2 = (Table.RotationY or 0)
  872. local ROTATION3 = (Table.RotationZ or 0)
  873. local MATERIAL = (Table.Material or "Neon")
  874. local COLOR = (Table.Color or C3(1,1,1))
  875. local TIME = (Table.Time or 45)
  876. local SOUNDID = (Table.SoundID or nil)
  877. local SOUNDPITCH = (Table.SoundPitch or nil)
  878. local SOUNDVOLUME = (Table.SoundVolume or nil)
  879. coroutine.resume(coroutine.create(function()
  880. local PLAYSSOUND = false
  881. local SOUND = nil
  882. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Lime green"), "Effect", VT(1,1,1), true)
  883. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  884. PLAYSSOUND = true
  885. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  886. end
  887. EFFECT.Color = COLOR
  888. local MSH = nil
  889. if TYPE == "Sphere" then
  890. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  891. elseif TYPE == "Block" or TYPE == "Box" then
  892. MSH = IT("BlockMesh",EFFECT)
  893. MSH.Scale = SIZE
  894. elseif TYPE == "Wave" then
  895. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  896. elseif TYPE == "Ring" then
  897. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  898. elseif TYPE == "Slash" then
  899. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  900. elseif TYPE == "Round Slash" then
  901. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  902. elseif TYPE == "Swirl" then
  903. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  904. elseif TYPE == "Skull" then
  905. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  906. elseif TYPE == "Crystal" then
  907. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  908. end
  909. if MSH ~= nil then
  910. local MOVESPEED = nil
  911. if MOVEDIRECTION ~= nil then
  912. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  913. end
  914. local GROWTH = SIZE - ENDSIZE
  915. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  916. if TYPE == "Block" then
  917. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  918. else
  919. EFFECT.CFrame = CFRAME
  920. end
  921. for LOOP = 1, TIME+1 do
  922. Swait()
  923. MSH.Scale = MSH.Scale - GROWTH/TIME
  924. if TYPE == "Wave" then
  925. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  926. end
  927. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  928. if TYPE == "Block" then
  929. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  930. else
  931. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  932. end
  933. if MOVEDIRECTION ~= nil then
  934. local ORI = EFFECT.Orientation
  935. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  936. EFFECT.Orientation = ORI
  937. end
  938. end
  939. if PLAYSSOUND == false then
  940. EFFECT:remove()
  941. else
  942. repeat wait(1) until SOUND.Playing == false
  943. EFFECT:remove()
  944. end
  945. else
  946. if PLAYSSOUND == false then
  947. EFFECT:remove()
  948. else
  949. repeat Swait() until SOUND.Playing == false
  950. EFFECT:remove()
  951. end
  952. end
  953. end))
  954. end
  955.  
  956. function MakeForm(PART,TYPE)
  957. if TYPE == "Cyl" then
  958. local MSH = IT("CylinderMesh",PART)
  959. elseif TYPE == "Ball" then
  960. local MSH = IT("SpecialMesh",PART)
  961. MSH.MeshType = "Sphere"
  962. elseif TYPE == "Wedge" then
  963. local MSH = IT("SpecialMesh",PART)
  964. MSH.MeshType = "Wedge"
  965. end
  966. end
  967.  
  968. Debris = game:GetService("Debris")
  969.  
  970. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  971. local DIRECTION = CF(StartPos,EndPos).lookVector
  972. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  973. end
  974.  
  975. local HATWELD = nil
  976. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  977. PLAYMAINANIM = false
  978. if WhichPose == "Cast1" then
  979. for i=0, Time, 0.1 / Animation_Speed do
  980. Swait()
  981. if Magic == true then
  982. 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"Lime green".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  983. end
  984. if Gyro ~= nil and Gyro ~= false then
  985. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  986. end
  987. 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)
  988. 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)
  989. 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)
  990. 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)
  991. 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)
  992. 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)
  993. end
  994. elseif WhichPose == "Cast2" then
  995. for i=0, Time, 0.1 / Animation_Speed do
  996. Swait()
  997. if Magic == true then
  998. 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"Lime green".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  999. 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"Lime green".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1000. end
  1001. if Gyro ~= nil and Gyro ~= false then
  1002. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1003. end
  1004. 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)
  1005. 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)
  1006. 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)
  1007. 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)
  1008. 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)
  1009. 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)
  1010. end
  1011. elseif WhichPose == "RightArmUp" then
  1012. for i=0, Time, 0.1 / Animation_Speed do
  1013. Swait()
  1014. if Magic == true then
  1015. 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"Lime green".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1016. end
  1017. if Gyro ~= nil and Gyro ~= false then
  1018. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1019. end
  1020. 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)
  1021. 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)
  1022. 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)
  1023. 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)
  1024. 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)
  1025. 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)
  1026. end
  1027. elseif WhichPose == "Taunt" then
  1028. for i=0, Time, 0.1 / Animation_Speed do
  1029. Swait()
  1030. 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)
  1031. 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)
  1032. 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)
  1033. 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)
  1034. 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)
  1035. 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)
  1036. end
  1037. HATWELD.Part0 = RightArm
  1038. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  1039. CreateSound(137473066,Torso,10,1,false)
  1040. for i=0, Time*2, 0.1 / Animation_Speed do
  1041. Swait()
  1042. 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)
  1043. 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)
  1044. 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)
  1045. 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)
  1046. 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)
  1047. 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)
  1048. end
  1049. for i=0, Time, 0.1 / Animation_Speed do
  1050. Swait()
  1051. 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)
  1052. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  1053. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1054. 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)
  1055. 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)
  1056. 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)
  1057. 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)
  1058. end
  1059. HATWELD.Part0 = Head
  1060. HATWELD.C0 = CF(0,0.35,0)
  1061. elseif WhichPose == "Prepare key" then
  1062. for i=0, Time, 0.1 / Animation_Speed do
  1063. Swait()
  1064. if Gyro ~= nil and Gyro ~= false then
  1065. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  1066. end
  1067. 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)
  1068. 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)
  1069. 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)
  1070. 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)
  1071. 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)
  1072. 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)
  1073. end
  1074. elseif WhichPose == "Turn key" then
  1075. for i=0, Time, 0.1 / Animation_Speed do
  1076. Swait()
  1077. if Gyro ~= nil and Gyro ~= false then
  1078. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  1079. end
  1080. 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)
  1081. 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)
  1082. 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)
  1083. 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)
  1084. 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)
  1085. 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)
  1086. end
  1087. end
  1088. PLAYMAINANIM = true
  1089. end
  1090.  
  1091. --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})
  1092. function Lightning(Table)
  1093. local Color = Table.Color or C3(1,1,1)
  1094. local StartPos = Table.Start or Torso.Position
  1095. local EndPos = Table.End or Mouse.Hit.p
  1096. local SegmentLength = Table.SegmentL or 2
  1097. local Thickness = Table.Thickness or 0.1
  1098. local Dissapear = Table.DoesFade or false
  1099. local Parent = Table.Ignore or Character
  1100. local MaxDist = Table.MaxDist or 400
  1101. local Branches = Table.Branches or false
  1102. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  1103. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  1104. local LIGHTNINGMODEL = IT("Model",Effects)
  1105. LIGHTNINGMODEL.Name = "Lightning"
  1106. local LastBolt = nil
  1107. for E = 1, DISTANCE do
  1108. local ExtraSize = (DISTANCE-E)/15
  1109. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Lime green"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  1110. PART.Color = Color
  1111. MakeForm(PART,"Cyl")
  1112. if LastBolt == nil then
  1113. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  1114. else
  1115. 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)
  1116. end
  1117. LastBolt = PART
  1118. if Branches == true then
  1119. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  1120. if CHOICE == 1 then
  1121. local LASTBRANCH = nil
  1122. for i = 1, MRANDOM(2,5) do
  1123. local ExtraSize2 = ((DISTANCE-E)/25)/i
  1124. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Crimson"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  1125. PART.Color = Color
  1126. MakeForm(PART,"Cyl")
  1127. if LASTBRANCH == nil then
  1128. 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)
  1129. else
  1130. 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)
  1131. end
  1132. LASTBRANCH = PART
  1133. end
  1134. end
  1135. end
  1136. end
  1137. if Dissapear == true then
  1138. coroutine.resume(coroutine.create(function()
  1139. for i = 1, 10 do
  1140. Swait()
  1141. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  1142. if c.ClassName == "Part" then
  1143. c.Transparency = i/10
  1144. end
  1145. end
  1146. end
  1147. LIGHTNINGMODEL:remove()
  1148. end))
  1149. elseif Dissapear == false then
  1150. Debris:AddItem(LIGHTNINGMODEL,0.1)
  1151. end
  1152. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  1153. end
  1154.  
  1155. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1156. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1157. end
  1158.  
  1159. function PositiveAngle(NUMBER)
  1160. if NUMBER >= 0 then
  1161. NUMBER = 0
  1162. end
  1163. return NUMBER
  1164. end
  1165.  
  1166. function NegativeAngle(NUMBER)
  1167. if NUMBER <= 0 then
  1168. NUMBER = 0
  1169. end
  1170. return NUMBER
  1171. end
  1172.  
  1173. function Swait(NUMBER)
  1174. if NUMBER == 0 or NUMBER == nil then
  1175. ArtificialHB.Event:wait()
  1176. else
  1177. for i = 1, NUMBER do
  1178. ArtificialHB.Event:wait()
  1179. end
  1180. end
  1181. end
  1182.  
  1183. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  1184. local NEWMESH = IT(MESH)
  1185. if MESH == "SpecialMesh" then
  1186. NEWMESH.MeshType = MESHTYPE
  1187. if MESHID ~= "nil" and MESHID ~= "" then
  1188. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  1189. end
  1190. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1191. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  1192. end
  1193. end
  1194. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  1195. NEWMESH.Scale = SCALE
  1196. NEWMESH.Parent = PARENT
  1197. return NEWMESH
  1198. end
  1199.  
  1200. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  1201. local NEWPART = IT("Part")
  1202. NEWPART.formFactor = FORMFACTOR
  1203. NEWPART.Reflectance = REFLECTANCE
  1204. NEWPART.Transparency = TRANSPARENCY
  1205. NEWPART.CanCollide = false
  1206. NEWPART.Locked = true
  1207. NEWPART.Anchored = true
  1208. if ANCHOR == false then
  1209. NEWPART.Anchored = false
  1210. end
  1211. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  1212. NEWPART.Name = NAME
  1213. NEWPART.Size = SIZE
  1214. NEWPART.Position = Torso.Position
  1215. NEWPART.Material = MATERIAL
  1216. NEWPART:BreakJoints()
  1217. NEWPART.Parent = PARENT
  1218. return NEWPART
  1219. end
  1220.  
  1221. local function weldBetween(a, b)
  1222. local weldd = Instance.new("ManualWeld")
  1223. weldd.Part0 = a
  1224. weldd.Part1 = b
  1225. weldd.C0 = CFrame.new()
  1226. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1227. weldd.Parent = a
  1228. return weldd
  1229. end
  1230.  
  1231.  
  1232. function QuaternionFromCFrame(cf)
  1233. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1234. local trace = m00 + m11 + m22
  1235. if trace > 0 then
  1236. local s = math.sqrt(1 + trace)
  1237. local recip = 0.5 / s
  1238. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1239. else
  1240. local i = 0
  1241. if m11 > m00 then
  1242. i = 1
  1243. end
  1244. if m22 > (i == 0 and m00 or m11) then
  1245. i = 2
  1246. end
  1247. if i == 0 then
  1248. local s = math.sqrt(m00 - m11 - m22 + 1)
  1249. local recip = 0.5 / s
  1250. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1251. elseif i == 1 then
  1252. local s = math.sqrt(m11 - m22 - m00 + 1)
  1253. local recip = 0.5 / s
  1254. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1255. elseif i == 2 then
  1256. local s = math.sqrt(m22 - m00 - m11 + 1)
  1257. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1258. end
  1259. end
  1260. end
  1261.  
  1262. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1263. local xs, ys, zs = x + x, y + y, z + z
  1264. local wx, wy, wz = w * xs, w * ys, w * zs
  1265. local xx = x * xs
  1266. local xy = x * ys
  1267. local xz = x * zs
  1268. local yy = y * ys
  1269. local yz = y * zs
  1270. local zz = z * zs
  1271. 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))
  1272. end
  1273.  
  1274. function QuaternionSlerp(a, b, t)
  1275. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1276. local startInterp, finishInterp;
  1277. if cosTheta >= 0.0001 then
  1278. if (1 - cosTheta) > 0.0001 then
  1279. local theta = ACOS(cosTheta)
  1280. local invSinTheta = 1 / SIN(theta)
  1281. startInterp = SIN((1 - t) * theta) * invSinTheta
  1282. finishInterp = SIN(t * theta) * invSinTheta
  1283. else
  1284. startInterp = 1 - t
  1285. finishInterp = t
  1286. end
  1287. else
  1288. if (1 + cosTheta) > 0.0001 then
  1289. local theta = ACOS(-cosTheta)
  1290. local invSinTheta = 1 / SIN(theta)
  1291. startInterp = SIN((t - 1) * theta) * invSinTheta
  1292. finishInterp = SIN(t * theta) * invSinTheta
  1293. else
  1294. startInterp = t - 1
  1295. finishInterp = t
  1296. end
  1297. end
  1298. 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
  1299. end
  1300.  
  1301. function Clerp(a, b, t)
  1302. local qa = {QuaternionFromCFrame(a)}
  1303. local qb = {QuaternionFromCFrame(b)}
  1304. local ax, ay, az = a.x, a.y, a.z
  1305. local bx, by, bz = b.x, b.y, b.z
  1306. local _t = 1 - t
  1307. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1308. end
  1309.  
  1310. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1311. local frame = IT("Frame")
  1312. frame.BackgroundTransparency = TRANSPARENCY
  1313. frame.BorderSizePixel = BORDERSIZEPIXEL
  1314. frame.Position = POSITION
  1315. frame.Size = SIZE
  1316. frame.BackgroundColor3 = COLOR
  1317. frame.BorderColor3 = BORDERCOLOR
  1318. frame.Name = NAME
  1319. frame.Parent = PARENT
  1320. return frame
  1321. end
  1322.  
  1323. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1324. local label = IT("TextLabel")
  1325. label.BackgroundTransparency = 1
  1326. label.Size = UD2(1, 0, 1, 0)
  1327. label.Position = UD2(0, 0, 0, 0)
  1328. label.TextColor3 = TEXTCOLOR
  1329. label.TextStrokeTransparency = STROKETRANSPARENCY
  1330. label.TextTransparency = TRANSPARENCY
  1331. label.FontSize = TEXTFONTSIZE
  1332. label.Font = TEXTFONT
  1333. label.BorderSizePixel = BORDERSIZEPIXEL
  1334. label.TextScaled = false
  1335. label.Text = TEXT
  1336. label.Name = NAME
  1337. label.Parent = PARENT
  1338. return label
  1339. end
  1340.  
  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.  
  1345. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1346. local NEWWELD = IT(TYPE)
  1347. NEWWELD.Part0 = PART0
  1348. NEWWELD.Part1 = PART1
  1349. NEWWELD.C0 = C0
  1350. NEWWELD.C1 = C1
  1351. NEWWELD.Parent = PARENT
  1352. return NEWWELD
  1353. end
  1354.  
  1355. local S = IT("Sound")
  1356. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  1357. local NEWSOUND = nil
  1358. coroutine.resume(coroutine.create(function()
  1359. NEWSOUND = S:Clone()
  1360. NEWSOUND.Parent = PARENT
  1361. NEWSOUND.Volume = VOLUME
  1362. NEWSOUND.Pitch = PITCH
  1363. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1364. NEWSOUND:play()
  1365. if DOESLOOP == true then
  1366. NEWSOUND.Looped = true
  1367. else
  1368. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  1369. NEWSOUND:remove()
  1370. end
  1371. end))
  1372. return NEWSOUND
  1373. end
  1374.  
  1375. function CFrameFromTopBack(at, top, back)
  1376. local right = top:Cross(back)
  1377. 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)
  1378. end
  1379.  
  1380. --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})
  1381. function WACKYEFFECT(Table)
  1382. local TYPE = (Table.EffectType or "Sphere")
  1383. local SIZE = (Table.Size or VT(1,1,1))
  1384. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  1385. local TRANSPARENCY = (Table.Transparency or 0)
  1386. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1387. local CFRAME = (Table.CFrame or Torso.CFrame)
  1388. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1389. local ROTATION1 = (Table.RotationX or 0)
  1390. local ROTATION2 = (Table.RotationY or 0)
  1391. local ROTATION3 = (Table.RotationZ or 0)
  1392. local MATERIAL = (Table.Material or "Neon")
  1393. local COLOR = (Table.Color or C3(1,1,1))
  1394. local TIME = (Table.Time or 45)
  1395. local SOUNDID = (Table.SoundID or nil)
  1396. local SOUNDPITCH = (Table.SoundPitch or nil)
  1397. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1398. coroutine.resume(coroutine.create(function()
  1399. local PLAYSSOUND = false
  1400. local SOUND = nil
  1401. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  1402. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1403. PLAYSSOUND = true
  1404. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1405. end
  1406. EFFECT.Color = COLOR
  1407. local MSH = nil
  1408. if TYPE == "Sphere" then
  1409. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  1410. elseif TYPE == "Block" then
  1411. MSH = IT("BlockMesh",EFFECT)
  1412. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  1413. elseif TYPE == "Wave" then
  1414. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1415. elseif TYPE == "Ring" then
  1416. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1417. elseif TYPE == "Slash" then
  1418. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1419. elseif TYPE == "Round Slash" then
  1420. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1421. elseif TYPE == "Swirl" then
  1422. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1423. elseif TYPE == "Skull" then
  1424. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1425. elseif TYPE == "Crystal" then
  1426. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1427. end
  1428. if MSH ~= nil then
  1429. local MOVESPEED = nil
  1430. if MOVEDIRECTION ~= nil then
  1431. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1432. end
  1433. local GROWTH = SIZE - ENDSIZE
  1434. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1435. if TYPE == "Block" then
  1436. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1437. else
  1438. EFFECT.CFrame = CFRAME
  1439. end
  1440. for LOOP = 1, TIME+1 do
  1441. Swait()
  1442. MSH.Scale = MSH.Scale - GROWTH/TIME
  1443. if TYPE == "Wave" then
  1444. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  1445. end
  1446. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1447. if TYPE == "Block" then
  1448. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1449. else
  1450. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1451. end
  1452. if MOVEDIRECTION ~= nil then
  1453. local ORI = EFFECT.Orientation
  1454. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1455. EFFECT.Orientation = ORI
  1456. end
  1457. end
  1458. if PLAYSSOUND == false then
  1459. EFFECT:remove()
  1460. else
  1461. SOUND.Stopped:Connect(function()
  1462. EFFECT:remove()
  1463. end)
  1464. end
  1465. else
  1466. if PLAYSSOUND == false then
  1467. EFFECT:remove()
  1468. else
  1469. repeat Swait() until SOUND.Playing == false
  1470. EFFECT:remove()
  1471. end
  1472. end
  1473. end))
  1474. end
  1475.  
  1476. function MakeForm(PART,TYPE)
  1477. if TYPE == "Cyl" then
  1478. local MSH = IT("CylinderMesh",PART)
  1479. elseif TYPE == "Ball" then
  1480. local MSH = IT("SpecialMesh",PART)
  1481. MSH.MeshType = "Sphere"
  1482. elseif TYPE == "Wedge" then
  1483. local MSH = IT("SpecialMesh",PART)
  1484. MSH.MeshType = "Wedge"
  1485. end
  1486. end
  1487.  
  1488. function SpawnTrail(FROM,TO,BIG)
  1489. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  1490. MakeForm(TRAIL,"Cyl")
  1491. local DIST = (FROM - TO).Magnitude
  1492. if BIG == true then
  1493. TRAIL.Size = VT(0.5,DIST,0.5)
  1494. else
  1495. TRAIL.Size = VT(0.25,DIST,0.25)
  1496. end
  1497. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  1498. coroutine.resume(coroutine.create(function()
  1499. for i = 1, 5 do
  1500. Swait()
  1501. TRAIL.Transparency = TRAIL.Transparency + 0.1
  1502. end
  1503. TRAIL:remove()
  1504. end))
  1505. end
  1506.  
  1507. Debris = game:GetService("Debris")
  1508.  
  1509. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1510. local DIRECTION = CF(StartPos,EndPos).lookVector
  1511. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1512. end
  1513.  
  1514. function turnto(position)
  1515. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1516. end
  1517.  
  1518. --//=================================\\
  1519. --|| WEAPON CREATION
  1520. --\\=================================//
  1521. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eyeball", VT(0.15,0.15,0.15),false)
  1522. MakeForm(EYE,"Ball")
  1523. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.26,-0.55), CF(0, 0, 0))
  1524. local EYE2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eyeball", VT(0.15,0.15,0.15),false)
  1525. MakeForm(EYE2,"Ball")
  1526. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0))
  1527. local LASTPART = Head
  1528. for i = 1, 20 do
  1529. local MATH = (1-(i/25))
  1530. if LASTPART == Head then
  1531. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1532. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
  1533. LASTPART = Horn
  1534. Horn.Color = C3((i*3-3)/255,0,0)
  1535. else
  1536. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1537. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
  1538. LASTPART = Horn
  1539. Horn.Color = C3((i*3-3)/255,0,0)
  1540. end
  1541. end
  1542. local LASTPART = Head
  1543. for i = 1, 20 do
  1544. local MATH = (1-(i/25))
  1545. if LASTPART == Head then
  1546. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1547. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0))
  1548. LASTPART = Horn
  1549. Horn.Color = C3((i*3-3)/255,0,0)
  1550. else
  1551. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1552. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0))
  1553. LASTPART = Horn
  1554. Horn.Color = C3((i*3-3)/255,0,0)
  1555. end
  1556. end
  1557.  
  1558. local Particle = IT("ParticleEmitter",nil)
  1559. Particle.Enabled = false
  1560. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  1561. Particle.LightEmission = 0.5
  1562. Particle.Rate = 150
  1563. Particle.ZOffset = 0.2
  1564. Particle.Rotation = NumberRange.new(-180, 180)
  1565. Particle.RotSpeed = NumberRange.new(-180, 180)
  1566. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  1567. Particle.Color = ColorSequence.new(C3(255,0,0),C3(255,0,0))
  1568. local Particle2 = IT("ParticleEmitter",nil)
  1569. Particle2.Enabled = false
  1570. Particle2.Texture = "http://www.roblox.com/asset/?id=1369397597"
  1571. Particle2.Color = ColorSequence.new(C3(255,0,0),C3(255,0,0))
  1572. Particle2.LightEmission = 0
  1573. Particle2.RotSpeed = NumberRange.new(0, 180)
  1574. Particle2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  1575. Particle2.LightEmission = 1
  1576. Particle2.Rate = 20
  1577. Particle2.RotSpeed = NumberRange.new(-20, 20)
  1578. local Particle3 = IT("ParticleEmitter",nil)
  1579. Particle3.Enabled = false
  1580. Particle3.Texture = "http://www.roblox.com/asset/?id=1546470121"
  1581. Particle3.Color = ColorSequence.new(C3(255,0,0),C3(255,0,0))
  1582. Particle3.LightEmission = 0
  1583. Particle3.RotSpeed = NumberRange.new(0, 180)
  1584. Particle3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.7),NumberSequenceKeypoint.new(0.3,.9),NumberSequenceKeypoint.new(1,1)})
  1585. Particle3.LightEmission = 1
  1586. Particle3.Rate = 20
  1587. Particle3.RotSpeed = NumberRange.new(-20, 20)
  1588. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  1589. function ParticleEmitter(Table)
  1590. local PRTCL = Particle:Clone()
  1591. local Speed = Table.Speed or 5
  1592. local Drag = Table.Drag or 0
  1593. local Size1 = Table.Size1 or 1
  1594. local Size2 = Table.Size2 or 5
  1595. local Lifetime1 = Table.Lifetime1 or 1
  1596. local Lifetime2 = Table.Lifetime2 or 1.5
  1597. local Parent = Table.Parent or Torso
  1598. local Emit = Table.Emit or 100
  1599. local Offset = Table.Offset or 360
  1600. local Acel = Table.Acel or VT(0,0,0)
  1601. local Enabled = Table.Enabled or false
  1602. PRTCL.Parent = Parent
  1603. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1604. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1605. PRTCL.Speed = NumberRange.new(Speed)
  1606. PRTCL.VelocitySpread = Offset
  1607. PRTCL.Drag = Drag
  1608. PRTCL.Acceleration = Acel
  1609. if Enabled == false then
  1610. PRTCL:Emit(Emit)
  1611. Debris:AddItem(PRTCL,Lifetime2)
  1612. else
  1613. PRTCL.Enabled = true
  1614. end
  1615. return PRTCL
  1616. end
  1617. function ParticleEmitter2(Table)
  1618. local PRTCL2 = Particle2:Clone()
  1619. local LockedToPart = Table.LTP or true
  1620. local Speed = Table.Speed or 0
  1621. local Drag = Table.Drag or 0
  1622. local Size1 = Table.Size1 or 1
  1623. local Size2 = Table.Size2 or 2
  1624. local Lifetime1 = Table.Lifetime1 or 1
  1625. local Lifetime2 = Table.Lifetime2 or 1
  1626. local Parent = Table.Parent or Torso
  1627. local Emit = Table.Emit or 100
  1628. local Offset = Table.Offset or 360
  1629. local Acel = Table.Acel or VT(0,0,0)
  1630. local Enabled = Table.Enabled or false
  1631. PRTCL2.Parent = Parent
  1632. PRTCL2.Size = NumberSequence.new(Size1,Size2)
  1633. PRTCL2.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1634. PRTCL2.Speed = NumberRange.new(Speed)
  1635. PRTCL2.VelocitySpread = Offset
  1636. PRTCL2.Drag = Drag
  1637. PRTCL2.Acceleration = Acel
  1638. PRTCL2.Parent = Parent
  1639. PRTCL2.Size = NumberSequence.new(Size1,Size2)
  1640. PRTCL2.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1641. PRTCL2.Speed = NumberRange.new(Speed)
  1642. PRTCL2.VelocitySpread = Offset
  1643. PRTCL2.Drag = Drag
  1644. PRTCL2.Acceleration = Acel
  1645. PRTCL2.LockedToPart = true
  1646. if Enabled == false then
  1647. PRTCL2:Emit(Emit)
  1648. Debris:AddItem(PRTCL2,Lifetime2)
  1649. else
  1650. PRTCL2.Enabled = true
  1651. end
  1652. return PRTCL2
  1653. end
  1654. function ParticleEmitter3(Table)
  1655. local PRTCL3 = Particle2:Clone()
  1656. local Speed = Table.Speed or 0
  1657. local Drag = Table.Drag or 0
  1658. local Size1 = Table.Size1 or 1
  1659. local Size2 = Table.Size2 or 2
  1660. local Lifetime1 = Table.Lifetime1 or 1
  1661. local Lifetime2 = Table.Lifetime2 or 1
  1662. local Parent = Table.Parent or Torso
  1663. local Emit = Table.Emit or 100
  1664. local Offset = Table.Offset or 0
  1665. local Acel = Table.Acel or VT(0,0,0)
  1666. local Enabled = Table.Enabled or false
  1667. PRTCL3.Parent = Parent
  1668. PRTCL3.Size = NumberSequence.new(Size1,Size2)
  1669. PRTCL3.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1670. PRTCL3.Speed = NumberRange.new(Speed)
  1671. PRTCL3.VelocitySpread = Offset
  1672. PRTCL3.Drag = Drag
  1673. PRTCL3.Acceleration = Acel
  1674. PRTCL3.Parent = Parent
  1675. PRTCL3.Size = NumberSequence.new(Size1,Size2)
  1676. PRTCL3.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1677. PRTCL3.Speed = NumberRange.new(Speed)
  1678. PRTCL3.VelocitySpread = Offset
  1679. PRTCL3.Drag = Drag
  1680. PRTCL3.Acceleration = Acel
  1681. if Enabled == false then
  1682. PRTCL3:Emit(Emit)
  1683. Debris:AddItem(PRTCL3,Lifetime2)
  1684. else
  1685. PRTCL3.Enabled = true
  1686. end
  1687. return PRTCL3
  1688. end
  1689.  
  1690. local Particle = IT("ParticleEmitter",nil)
  1691. Particle.Enabled = false
  1692. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  1693. Particle.LightEmission = 0.5
  1694. Particle.Rate = 150
  1695. Particle.ZOffset = 0.2
  1696. Particle.Rotation = NumberRange.new(-180, 180)
  1697. Particle.RotSpeed = NumberRange.new(-180, 180)
  1698. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  1699. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  1700.  
  1701. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  1702. function ParticleEmitter(Table)
  1703. local PRTCL = Particle:Clone()
  1704. local Speed = Table.Speed or 5
  1705. local Drag = Table.Drag or 0
  1706. local Size1 = Table.Size1 or 1
  1707. local Size2 = Table.Size2 or 5
  1708. local Lifetime1 = Table.Lifetime1 or 1
  1709. local Lifetime2 = Table.Lifetime2 or 1.5
  1710. local Parent = Table.Parent or Torso
  1711. local Emit = Table.Emit or 100
  1712. local Offset = Table.Offset or 360
  1713. local Acel = Table.Acel or VT(0,0,0)
  1714. local Enabled = Table.Enabled or false
  1715. PRTCL.Parent = Parent
  1716. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1717. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1718. PRTCL.Speed = NumberRange.new(Speed)
  1719. PRTCL.VelocitySpread = Offset
  1720. PRTCL.Drag = Drag
  1721. PRTCL.Acceleration = Acel
  1722. if Enabled == false then
  1723. PRTCL:Emit(Emit)
  1724. Debris:AddItem(PRTCL,Lifetime2)
  1725. else
  1726. PRTCL.Enabled = true
  1727. end
  1728. return PRTCL
  1729. end
  1730.  
  1731. local Handle = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,1.2,0.2),false)
  1732. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0))
  1733. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.8,0.2),false)
  1734. MakeForm(Part,"Wedge")
  1735. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1736. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.6),false)
  1737. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1738. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.4,0.4,0.4),false)
  1739. MakeForm(Part,"Cyl")
  1740. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1741. for i = 1, 8 do
  1742. local Piece = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0,0.35,0.41),false)
  1743. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1744. end
  1745. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false)
  1746. MakeForm(Part,"Wedge")
  1747. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1748. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0.39,0.41,0.39),false)
  1749. MakeForm(Part,"Cyl")
  1750. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1751. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.5),false)
  1752. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1753. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.4,0.5),false)
  1754. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1755. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0,0.6),false)
  1756. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3))
  1757. local RightBarrel = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.28,5,0.28),false)
  1758. MakeForm(RightBarrel,"Cyl")
  1759. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, RightBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0))
  1760. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0,0.2,0.2),false)
  1761. MakeForm(Part,"Wedge")
  1762. CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1763. local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0.2,0,0.2),false)
  1764. MakeForm(RightHole,"Cyl")
  1765. CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, RightHole, CF(0, 2.5, 0), CF(0, 0, 0))
  1766. local Handle = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,1.2,0.2),false)
  1767. local LeftArmGraps = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0))
  1768. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.8,0.2),false)
  1769. MakeForm(Part,"Wedge")
  1770. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1771. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.6),false)
  1772. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1773. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.4,0.4,0.4),false)
  1774. MakeForm(Part,"Cyl")
  1775. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1776. for i = 1, 8 do
  1777. local Piece = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0,0.35,0.41),false)
  1778. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1779. end
  1780. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false)
  1781. MakeForm(Part,"Wedge")
  1782. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1783. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0.39,0.41,0.39),false)
  1784. MakeForm(Part,"Cyl")
  1785. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1786. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.5),false)
  1787. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1788. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.4,0.5),false)
  1789. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1790. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0,0.6),false)
  1791. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3))
  1792. local LeftBarrel = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.28,5,0.28),false)
  1793. MakeForm(LeftBarrel,"Cyl")
  1794. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, LeftBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0))
  1795. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0,0.2,0.2),false)
  1796. MakeForm(Part,"Wedge")
  1797. CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1798. local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0.2,0,0.2),false)
  1799. MakeForm(LeftHole,"Cyl")
  1800. CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, LeftHole, CF(0, 2.5, 0), CF(0, 0, 0))
  1801. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.6,0.1,1)/2,false)
  1802. MakeForm(Eye,"Ball")
  1803. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  1804. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.6,0.1,1)/2,false)
  1805. MakeForm(Eye,"Ball")
  1806. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  1807. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.1,1,1)/2,false)
  1808. MakeForm(Eye,"Ball")
  1809. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  1810. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.1,1,1)/2,false)
  1811. MakeForm(Eye,"Ball")
  1812. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  1813. local LASTPART = Handle
  1814. for i = 1, 10 do
  1815. if LASTPART == Handle then
  1816. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1817. LASTPART = Part
  1818. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1819. else
  1820. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1821. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1822. LASTPART = Part
  1823. end
  1824. end
  1825.  
  1826. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  1827. MakeForm(Barrel,"Cyl")
  1828. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1829. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1830. MakeForm(Part,"Cyl")
  1831. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1832. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1833. MakeForm(Part,"Wedge")
  1834. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1835. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1836. MakeForm(Hole,"Cyl")
  1837. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  1838. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1839. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1840. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1841. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1842. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1843. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1844. coroutine.resume(coroutine.create(function()
  1845. while wait() do
  1846. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1847. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1848. end
  1849. end))
  1850.  
  1851. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  1852. --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  1853.  
  1854. for _, c in pairs(Weapon:GetDescendants()) do
  1855. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1856. c.Material = "Glass"
  1857. c.Color = C3(0,0,0)
  1858. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1859. c.Color = C3(1,0,0)
  1860. c.Material = "Neon"
  1861. end
  1862. end
  1863.  
  1864. Weapon.Parent = Character
  1865. for _, c in pairs(Weapon:GetChildren()) do
  1866. if c.ClassName == "Part" then
  1867. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1868. end
  1869. end
  1870.  
  1871. local BODY = {}
  1872. for _, c in pairs(Character:GetDescendants()) do
  1873. if c:IsA("BasePart") and c.Name ~= "Handle" then
  1874. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  1875. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1876. end
  1877. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name})
  1878. elseif c:IsA("JointInstance") then
  1879. table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil})
  1880. end
  1881. end
  1882. function refit()
  1883. Character.Parent = workspace
  1884. for e = 1, #BODY do
  1885. if BODY[e] ~= nil then
  1886. local STUFF = BODY[e]
  1887. local PART = STUFF[1]
  1888. local PARENT = STUFF[2]
  1889. local MATERIAL = STUFF[3]
  1890. local COLOR = STUFF[4]
  1891. local TRANSPARENCY = STUFF[5]
  1892. --local SIZE = STUFF[6]
  1893. local NAME = STUFF[7]
  1894. if PART.ClassName == "Part" and PART ~= RootPart then
  1895. PART.Material = MATERIAL
  1896. PART.Transparency = TRANSPARENCY
  1897. PART.Name = NAME
  1898. end
  1899. if PART.Parent ~= PARENT then
  1900. Humanoid:remove()
  1901. PART.Parent = PARENT
  1902. Humanoid = IT("Humanoid",Character)
  1903. end
  1904. end
  1905. end
  1906. end
  1907.  
  1908. local SKILLTEXTCOLOR = C3(1,0,0)
  1909. local SKILLFONT = "Antique"
  1910. local SKILLTEXTSIZE = 7
  1911.  
  1912. Humanoid.Died:connect(function()
  1913. ATTACK = true
  1914. end)
  1915.  
  1916. 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")
  1917. --[[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")
  1918. 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")
  1919. 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")
  1920. 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")
  1921. ]]
  1922. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  1923. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  1924. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  1925. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  1926. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  1927. ]]
  1928. function printbye(Name)
  1929. 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, "}
  1930. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1931. end
  1932.  
  1933. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23-.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1934. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50+.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  1935. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  1936. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  1937. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  1938.  
  1939. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[E] Warp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  1940. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[X] Lock of truth", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  1941. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[Q] Lift", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
  1942. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[R] FINAL ATTACK", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
  1943.  
  1944. workspace.ChildAdded:connect(function(instance)
  1945. for BANISH = 1, #TOBANISH do
  1946. if TOBANISH[BANISH] ~= nil then
  1947. if instance.Name == TOBANISH[BANISH] then
  1948. coroutine.resume(coroutine.create(function()
  1949. printbye(instance.Name)
  1950. instance:ClearAllChildren()
  1951. Debris:AddItem(instance,0.0005)
  1952. end))
  1953. end
  1954. end
  1955. end
  1956. end)
  1957.  
  1958. --//=================================\\
  1959. --|| DAMAGING
  1960. --\\=================================//
  1961. function ApplyAoE(POSITION,RANGE,FLING,BURN)
  1962. local CHILDREN = workspace:GetDescendants()
  1963. for index, CHILD in pairs(CHILDREN) do
  1964. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1965. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1966. if HUM then
  1967. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1968. if TORSO then
  1969. if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
  1970. CHILD:BreakJoints()
  1971. if FLING ~= 0 then
  1972. for _, c in pairs(CHILD:GetChildren()) do
  1973. if c:IsA("BasePart") and c.Transparency == 0 then
  1974. if BURN == true then
  1975. Fire(c)
  1976. end
  1977. local bv = Instance.new("BodyVelocity")
  1978. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1979. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1980. bv.Parent = c
  1981. Debris:AddItem(bv,0.05)
  1982. end
  1983. end
  1984. end
  1985. end
  1986. end
  1987. end
  1988. end
  1989. end
  1990. end
  1991.  
  1992. function Banish(Foe)
  1993. if Foe then
  1994. coroutine.resume(coroutine.create(function()
  1995. --if game.Players:FindFirstChild(Foe.Name) then
  1996. table.insert(TOBANISH,Foe.Name)
  1997. printbye(Foe.Name)
  1998. --end
  1999. Foe.Archivable = true
  2000. local CLONE = Foe:Clone()
  2001. Foe:Destroy()
  2002. CLONE.Parent = Effects
  2003. CLONE:BreakJoints()
  2004. local MATERIALS = {"Glass","Neon"}
  2005. for _, c in pairs(CLONE:GetDescendants()) do
  2006. if c:IsA("BasePart") then
  2007. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  2008. CreateSound(340722848, c, 10, 1, false)
  2009. end
  2010. c.Anchored = true
  2011. c.Transparency = c.Transparency + 0.2
  2012. c.Material = MATERIALS[MRANDOM(1,2)]
  2013. c.Color = C3(1,0,0)
  2014. if c.ClassName == "MeshPart" then
  2015. c.TextureID = ""
  2016. end
  2017. if c:FindFirstChildOfClass("SpecialMesh") then
  2018. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  2019. end
  2020. if c:FindFirstChildOfClass("Decal") then
  2021. c:FindFirstChildOfClass("Decal"):remove()
  2022. end
  2023. c.Name = "Banished"
  2024. c.CanCollide = false
  2025. else
  2026. c:remove()
  2027. end
  2028. end
  2029. local A = false
  2030. for i = 1, 35 do
  2031. if A == false then
  2032. A = true
  2033. elseif A == true then
  2034. A = false
  2035. end
  2036. for _, c in pairs(CLONE:GetDescendants()) do
  2037. if c:IsA("BasePart") then
  2038. c.Anchored = true
  2039. c.Material = MATERIALS[MRANDOM(1,2)]
  2040. c.Transparency = c.Transparency + 0.8/35
  2041. if A == false then
  2042. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  2043. elseif A == true then
  2044. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  2045. end
  2046. end
  2047. end
  2048. Swait()
  2049. end
  2050. CLONE:remove()
  2051. end))
  2052. end
  2053. end
  2054.  
  2055. function ApplyAoE(POSITION,RANGE,ISBANISH)
  2056. local CHILDREN = workspace:GetDescendants()
  2057. for index, CHILD in pairs(CHILDREN) do
  2058. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2059. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2060. if HUM then
  2061. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2062. if TORSO then
  2063. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  2064. if ISBANISH == true then
  2065. Banish(CHILD)
  2066. else
  2067. if ISBANISH == "Gravity" then
  2068. HUM.PlatformStand = true
  2069. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  2070. local grav = Instance.new("BodyPosition",TORSO)
  2071. grav.D = 15
  2072. grav.P = 20000
  2073. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2074. grav.position = TORSO.Position
  2075. grav.Name = "V3BanishForce"..Player.Name
  2076. else
  2077. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  2078. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  2079. end
  2080. else
  2081. HUM.PlatformStand = false
  2082. end
  2083. end
  2084. elseif ISBANISH == "Gravity" then
  2085. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  2086. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  2087. HUM.PlatformStand = false
  2088. end
  2089. end
  2090. end
  2091. end
  2092. end
  2093. end
  2094. end
  2095.  
  2096. --//=================================\\
  2097. --|| ATTACK FUNCTIONS AND STUFF
  2098. --\\=================================//
  2099. Player_Size = 1
  2100.  
  2101. function FireArc(Part,ToLocation,AmountOfTime,Height,DoesCourontine)
  2102. if DoesCourontine == false then
  2103. local Direction = CF(Part.Position,ToLocation)
  2104. local Distance = (Part.Position - ToLocation).magnitude
  2105. for i = 1, AmountOfTime do
  2106. Swait()
  2107. Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
  2108. Direction = Part.CFrame
  2109. end
  2110. Part:remove()
  2111. elseif DoesCourontine == true then
  2112. coroutine.resume(coroutine.create(function()
  2113. local Direction = CF(Part.Position,ToLocation)
  2114. local Distance = (Part.Position - ToLocation).magnitude
  2115. for i = 1, AmountOfTime do
  2116. Swait()
  2117. Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
  2118. Direction = Part.CFrame
  2119. end
  2120. Part:remove()
  2121. end))
  2122. end
  2123. end
  2124.  
  2125. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  2126. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  2127. wave.Color = COLOR
  2128. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
  2129. wave.CFrame = CFRAME
  2130. coroutine.resume(coroutine.create(function(PART)
  2131. for i = 1, WAIT do
  2132. Swait()
  2133. mesh.Scale = mesh.Scale + GROW
  2134. wave.Transparency = wave.Transparency + (1/WAIT)
  2135. if wave.Transparency > 0.99 then
  2136. wave:remove()
  2137. end
  2138. end
  2139. end))
  2140. end
  2141.  
  2142. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  2143. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  2144. wave.Color = COLOR
  2145. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  2146. wave.CFrame = CFRAME
  2147. coroutine.resume(coroutine.create(function(PART)
  2148. for i = 1, WAIT do
  2149. Swait()
  2150. mesh.Scale = mesh.Scale + GROW
  2151. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  2152. if DOESROT == true then
  2153. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  2154. end
  2155. wave.Transparency = wave.Transparency + (0.5/WAIT)
  2156. if wave.Transparency > 0.99 then
  2157. wave:remove()
  2158. end
  2159. end
  2160. end))
  2161. end
  2162.  
  2163. function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
  2164. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  2165. local mesh = nil
  2166. if KIND == "Base" then
  2167. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  2168. elseif KIND == "Thin" then
  2169. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  2170. elseif KIND == "Round" then
  2171. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  2172. end
  2173. wave.CFrame = CFRAME
  2174. coroutine.resume(coroutine.create(function(PART)
  2175. for i = 1, WAIT do
  2176. Swait()
  2177. mesh.Scale = mesh.Scale + GROW/10
  2178. wave.Transparency = wave.Transparency + (0.5/WAIT)
  2179. if wave.Transparency > 0.99 then
  2180. wave:remove()
  2181. end
  2182. end
  2183. end))
  2184. end
  2185.  
  2186. function killnearest(position,range,maxstrength)
  2187. for i,v in ipairs(workspace:GetChildren()) do
  2188. local body = v:GetChildren()
  2189. for part = 1, #body do
  2190. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  2191. if(body[part].Position - position).Magnitude < range then
  2192. if v.ClassName == "Model" then
  2193. v:BreakJoints()
  2194. end
  2195. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  2196. local bv = Instance.new("BodyVelocity")
  2197. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2198. bv.velocity = CF(position,body[part].Position).lookVector*maxstrength
  2199. bv.Parent = body[part]
  2200. Debris:AddItem(bv,0.2)
  2201. end
  2202. end
  2203. end
  2204. if v.ClassName == "Part" then
  2205. if v.Anchored == false and (v.Position - position).Magnitude < range then
  2206. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  2207. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  2208. end
  2209. end
  2210. end
  2211. end
  2212.  
  2213. function Supernova()
  2214. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 7 * Player_Size, Character)
  2215. if HITFLOOR ~= nil then
  2216. local HITBODIES = {}
  2217. ATTACK = true
  2218. Rooted = true
  2219. local ABSOLUTE = CreatePart(3, Effects, "Neon", 0, 1, "Relly red", "Star", VT(0,0,0))
  2220. MakeForm(ABSOLUTE,"Ball")
  2221. CreateSound("429459101", ABSOLUTE, 10, 1)
  2222. for i=0, 4, 0.1 / Animation_Speed do
  2223. Swait()
  2224. ABSOLUTE.Size = ABSOLUTE.Size + VT(0.2,0.2,0.2)
  2225. ABSOLUTE.CFrame = RootPart.CFrame*CF(0,5+(ABSOLUTE.Size.Y/2),0)
  2226. ABSOLUTE.Transparency = ABSOLUTE.Transparency - 0.01
  2227. local CHARGE = CreatePart(3, Effects, "Neon", 0, 0, "Lime green", "Star", VT(1,1,1))
  2228. MakeForm(CHARGE,"Ball")
  2229. CHARGE.Color = C3(255,0,0)
  2230. CHARGE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15,15),-6,MRANDOM(-15,15))
  2231. FireArc(CHARGE,ABSOLUTE.Position,45,45,true)
  2232. 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)
  2233. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2234. 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)
  2235. 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)
  2236. 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)
  2237. 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)
  2238. end
  2239. CreateSound("907330103", Head, 10, 1.2)
  2240. for i = 1, 75 do
  2241. Swait()
  2242. 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)
  2243. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2244. 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)
  2245. 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)
  2246. 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)
  2247. 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)
  2248. end
  2249. coroutine.resume(coroutine.create(function()
  2250. for i = 1, 13 do
  2251. for e = 1, 8 do
  2252. Swait()
  2253. MagicSphere(VT(1,1,1),15,CF(ABSOLUTE.Position)*CF(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)),C3(255,0,0),VT(0,0,0))
  2254. CreateSwirl(ABSOLUTE.Size/2,15,CF(HITPOS),true,15,BRICKC"Reakky red".Color,VT(i,0.3,i)*2)
  2255. end
  2256. for i = 1, 5 do
  2257. Slice("Round",0,35,CF(ABSOLUTE.Position)*ANGLES(RAD(MRANDOM(-18,18)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-18,18))),C3(1,1,1),VT(i,0,i)/3)
  2258. Slice("Thin",i,55,ABSOLUTE.CFrame * CF(0,-1.1,0) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),C3(255,0,0),VT(0,0,0))
  2259. end
  2260. CreateSwirl(ABSOLUTE.Size/2,25,CF(ABSOLUTE.Position),true,-25,BRICKC"Relly red".Color,VT(i,i*2,i))
  2261. CreateSwirl(ABSOLUTE.Size/2,55,CF(ABSOLUTE.Position),true,25,C3(255,0,0),VT(i,i*2,i))
  2262. CreateSound("168586621", ABSOLUTE, 4, 0.8)
  2263. CreateSound("201858144", ABSOLUTE, 10, 0.8)
  2264. killnearest(ABSOLUTE.Position,i*18,i)
  2265. ABSOLUTE.Size = ABSOLUTE.Size*0.9
  2266. MagicSphere(ABSOLUTE.Size,25,CF(ABSOLUTE.Position),BRICKC"Relly red".Color,VT(i,i,i)/1.1)
  2267. MagicSphere(ABSOLUTE.Size,45,CF(ABSOLUTE.Position),C3(255,0,0),VT(i,i,i))
  2268. end
  2269. ABSOLUTE.Transparency = 1
  2270. Debris:AddItem(ABSOLUTE,10)
  2271. end))
  2272. ATTACK = false
  2273. Rooted = false
  2274. end
  2275. end
  2276.  
  2277.  
  2278. local ENERGYSOUND = 1417051162
  2279. local BEAMSOUND = 1417056781
  2280. local EXPLOSIONSOUND = 1417056081
  2281. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Lime green", "BraceletPart", VT(1.01,0.3,1.01),false)
  2282.  
  2283. function Charge(TIME,GYRO)
  2284. local SND = CreateSound(ENERGYSOUND,Torso,6,TIME,false)
  2285. local G = nil
  2286. if GYRO == true then
  2287. G = IT("BodyGyro",RootPart)
  2288. G.D = 250
  2289. G.P = 200000
  2290. G.MaxTorque = VT(math.huge,math.huge,math.huge)
  2291. end
  2292. for i=0, TIME, 0.1 / Animation_Speed do
  2293. Swait()
  2294. if G then
  2295. G.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2296. end
  2297. 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})
  2298. 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)
  2299. 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)
  2300. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2301. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2302. 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)
  2303. 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)
  2304. end
  2305. SND:remove()
  2306. if G then
  2307. return G
  2308. end
  2309. end
  2310.  
  2311. function Warp()
  2312. local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 100, Character)
  2313. if HITFLOOR then
  2314. CharacterFade(C3(0.5,0,0),50)
  2315. HITPOS = HITPOS + VT(0,3.5,0)
  2316. local POS = RootPart.Position
  2317. RootPart.CFrame = CF(HITPOS,CF(POS,HITPOS)*CF(0,0,-100000).p)
  2318. CreateSound(289556450,Torso,2,MRANDOM(8,13)/10,false)
  2319. end
  2320. end
  2321.  
  2322. function Prison_Key()
  2323. if Mouse.Target ~= nil then
  2324. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2325. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  2326. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  2327. local GYRO = IT("BodyGyro",RootPart)
  2328. GYRO.D = 750
  2329. GYRO.P = 20000
  2330. GYRO.MaxTorque = VT(0,40000000,0)
  2331. local grav = Instance.new("BodyPosition",TORSO)
  2332. grav.D = 15
  2333. grav.P = 20000
  2334. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2335. grav.position = TORSO.Position
  2336. local GYRO2 = IT("BodyGyro",TORSO)
  2337. GYRO2.D = 750
  2338. GYRO2.P = 20000
  2339. GYRO2.MaxTorque = VT(0,40000000,0)
  2340. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2341. grav.Name = "Jail"
  2342. local LOCKPARTS = {}
  2343. ATTACK = true
  2344. Rooted = false
  2345. local LOCK = IT("Model",Effects)
  2346. LOCK.Name = "Lock"
  2347. local LOCK2 = IT("Model",LOCK)
  2348. LOCK2.Name = "Metal"
  2349. --CREATE LOCK--
  2350. local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
  2351. LOCK.PrimaryPart = BASE
  2352. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  2353. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
  2354. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  2355. MakeForm(PRT,"Cyl")
  2356. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
  2357. PRT.Color = C3(0,0,0)
  2358. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  2359. MakeForm(PRT,"Cyl")
  2360. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
  2361. PRT.Color = C3(0,0,0)
  2362. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  2363. for i = 1, 45 do
  2364. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  2365. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  2366. end
  2367. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  2368. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  2369. LOCK2.PrimaryPart = PRT
  2370. ---------------
  2371. local CHILDREN = LOCK:GetDescendants()
  2372. for index, CHILD in pairs(CHILDREN) do
  2373. if CHILD:IsA("BasePart") then
  2374. CHILD.Transparency = 1
  2375. end
  2376. end
  2377. for i = 1, 75 do
  2378. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  2379. Swait()
  2380. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2381. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  2382. local CHILDREN = LOCK:GetDescendants()
  2383. for index, CHILD in pairs(CHILDREN) do
  2384. if CHILD:IsA("BasePart") then
  2385. CHILD.Transparency = CHILD.Transparency - 1/75
  2386. end
  2387. end
  2388. end
  2389. HUM.DisplayDistanceType = "None"
  2390. local KEY = IT("Model",Effects)
  2391. KEY.Name = "Key"
  2392. --CREATE KEY--
  2393. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Really red", "KeyBase", VT(0.1, 1, 0.1),false)
  2394. KEY.PrimaryPart = KBASE
  2395. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  2396. local WLD = weldBetween(RightArm,KBASE)
  2397. for i = 1, 45 do
  2398. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really red", "Key", VT(0.1, 0.1, 0.1),false)
  2399. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  2400. weldBetween(KBASE,PRT)
  2401. end
  2402. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really red", "Key", VT(0.3, 0.1, 0.1),false)
  2403. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  2404. weldBetween(KBASE,PRT)
  2405. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really red", "Key", VT(0.3, 0.1, 0.1),false)
  2406. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  2407. weldBetween(KBASE,PRT)
  2408. --------------
  2409. Rooted = true
  2410. Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
  2411. coroutine.resume(coroutine.create(function()
  2412. for i = 1, 10 do
  2413. Swait()
  2414. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2415. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  2416. end
  2417. CreateSound(1149318312,BASE,5,1,false)
  2418. CreateSound(160772554,BASE,3,1,false)
  2419. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  2420. for i = 1, 4 do
  2421. 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 red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2422. end
  2423. 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 red".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  2424. wait(1)
  2425. TORSO.Parent.Parent = LOCK
  2426. for i = 1, 75 do
  2427. Swait()
  2428. local CHILDREN = KEY:GetDescendants()
  2429. for index, CHILD in pairs(CHILDREN) do
  2430. if CHILD:IsA("BasePart") then
  2431. CHILD.Transparency = i/25
  2432. end
  2433. end
  2434. local CHILDREN = LOCK:GetDescendants()
  2435. for index, CHILD in pairs(CHILDREN) do
  2436. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  2437. CHILD.Transparency = CHILD.Transparency + 1/75
  2438. elseif CHILD.ClassName == "Decal" then
  2439. CHILD.Transparency = CHILD.Transparency + 1/75
  2440. end
  2441. end
  2442. end
  2443. TORSO.Parent:ClearAllChildren()
  2444. KEY:remove()
  2445. LOCK:remove()
  2446. end))
  2447. Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
  2448. GYRO:remove()
  2449. ATTACK = false
  2450. Rooted = false
  2451. end
  2452. end
  2453. end
  2454.  
  2455. function Lift()
  2456. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2457. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  2458. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  2459. if TORSO and HUM.Health > 0 then
  2460. ATTACK = true
  2461. Rooted = false
  2462. local GYRO = IT("BodyGyro",RootPart)
  2463. GYRO.D = 275
  2464. GYRO.P = 20000
  2465. GYRO.MaxTorque = VT(0,40000,0)
  2466. for i=0, 0.8, 0.1 / Animation_Speed do
  2467. Swait()
  2468. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  2469. 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)
  2470. 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)
  2471. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2472. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2473. 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)
  2474. 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)
  2475. end
  2476. local MAGIC = ParticleEmitter({Speed = 5, Drag = 3, Size1 = 1.7, Size2 = 0, Lifetime1 = 1, Lifetime2 = 3, Parent = TORSO, Emit = 100, Offset = 360, Enabled = true})
  2477. MAGIC.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
  2478. local grav = Instance.new("BodyPosition",TORSO)
  2479. grav.D = 1500
  2480. grav.P = 20000
  2481. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2482. grav.position = TORSO.Position+VT(0,15,0)
  2483. Debris:AddItem(grav,10)
  2484. Debris:AddItem(MAGIC,10)
  2485. CreateSound(902204346, Torso, 7, 1, false)
  2486. CreateSound(902204346, TORSO, 7, 1, false)
  2487. for i=0, 1, 0.1 / Animation_Speed do
  2488. Swait()
  2489. 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)
  2490. 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)
  2491. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(-45), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2492. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(125), RAD(45), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2493. 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)
  2494. 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)
  2495. end
  2496. GYRO:remove()
  2497. ATTACK = false
  2498. Rooted = false
  2499. end
  2500. end
  2501. end
  2502.  
  2503. function TAUNT1()
  2504. ATTACK = true
  2505. Rooted = false
  2506. CreateSound(865772398, Torso, 6, 1, false)
  2507. for i=0, 0.1, 0.1 / Animation_Speed do
  2508. Swait()
  2509. 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(25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2510. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2511. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2512. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(5-3 * COS(SINE / 6)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2513. end
  2514. for i=0, 1, 0.1 / Animation_Speed do
  2515. Swait()
  2516. 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(25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2517. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2518. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2519. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -0.4) * ANGLES(RAD(-25-3 * COS(SINE / 6)), RAD(25), RAD(90)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2520. end
  2521. for i=0, 1, 0.1 / Animation_Speed do
  2522. Swait()
  2523. 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(25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2524. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2525. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2526. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25-3 * COS(SINE / 6)), RAD(0), RAD(-90)) * ANGLES(RAD(0), RAD(90), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2527. end
  2528. ATTACK = false
  2529. Rooted = false
  2530. end
  2531.  
  2532. function TAUNT2()
  2533. ATTACK = true
  2534. Rooted = false
  2535. for i=0, 1, 0.1 / Animation_Speed do
  2536. Swait()
  2537. 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(25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2538. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2539. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2540. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-45), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2541. end
  2542. ATTACK = false
  2543. Rooted = false
  2544. end
  2545.  
  2546. function EMOTE()
  2547. ATTACK = true
  2548. Rooted = false
  2549. local LOOP = 0
  2550. for i=0, 0.1, 0.1 / Animation_Speed do
  2551. Swait()
  2552. 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)
  2553. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2554. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2555. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(5-3 * COS(SINE / 6)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2556. end
  2557. for i=0, 3, 0.1 / Animation_Speed do
  2558. Swait()
  2559. LOOP = LOOP + 1
  2560. 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(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2561. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2562. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2563. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.8, 0.4) * ANGLES(RAD(170), RAD(0), RAD(-25 - 25 * SIN(LOOP / 5))) * ANGLES(RAD(0), RAD(-45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2564. end
  2565. for i=0, 0.1, 0.1 / Animation_Speed do
  2566. Swait()
  2567. 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(25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2568. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2569. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2570. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(5-3 * COS(SINE / 6)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2571. end
  2572. ATTACK = false
  2573. Rooted = false
  2574. end
  2575.  
  2576. function Banisher_Bullet()
  2577. ATTACK = true
  2578. Rooted = false
  2579. for i=0, 0.01, 0.1 / Animation_Speed do
  2580. Swait()
  2581. turnto(Mouse.Hit.p)
  2582. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(7 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 1 / Animation_Speed)
  2583. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15), RAD(0)), 0.15 / Animation_Speed)
  2584. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(83), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2585. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2586. 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)
  2587. --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)
  2588. end
  2589. repeat
  2590. for i=0, 0.01, 0.1 / Animation_Speed do
  2591. Swait()
  2592. turnto(Mouse.Hit.p)
  2593. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(7 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 1 / Animation_Speed)
  2594. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15), RAD(0)), 0.15 / Animation_Speed)
  2595. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(83), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2596. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2597. 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)
  2598. --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)
  2599. end
  2600. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  2601. SpawnTrail(Hole.Position,POS)
  2602. WACKYEFFECT({Time = 25, EffectType = "Ring", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2603. WACKYEFFECT({Time = 25, EffectType = "Ring", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,1), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2604. WACKYEFFECT({Time = 25, EffectType = "Ring", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2605. WACKYEFFECT({Time = 25, EffectType = "Ring", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2606. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2607. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2608. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2609. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2610. if HIT ~= nil then
  2611. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  2612. Banish(HIT.Parent)
  2613. end
  2614. end
  2615.  
  2616. for i=0, 0.01, 0.1 / Animation_Speed do
  2617. Swait()
  2618. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(7 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 1 / Animation_Speed)
  2619. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15), RAD(0)), 0.15 / Animation_Speed)
  2620. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2621. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2622. 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)
  2623. 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)
  2624. end
  2625. until KEYHOLD == false
  2626. ATTACK = false
  2627. Rooted = false
  2628. end
  2629.  
  2630. function AttackTemplate()
  2631. ATTACK = true
  2632. Rooted = false
  2633. for i=0, 1, 0.1 / Animation_Speed do
  2634. Swait()
  2635. 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)
  2636. 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)
  2637. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2638. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2639. 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)
  2640. 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)
  2641. end
  2642. ATTACK = false
  2643. Rooted = false
  2644. end
  2645.  
  2646. --//=================================\\
  2647. --|| ASSIGN THINGS TO KEYS
  2648. --\\=================================//
  2649.  
  2650. function MouseDown(Mouse)
  2651. HOLD = true
  2652. if ATTACK == false then
  2653. end
  2654. end
  2655.  
  2656. function MouseUp(Mouse)
  2657. HOLD = false
  2658. end
  2659.  
  2660. function KeyDown(Key)
  2661. KEYHOLD = true
  2662. if Key == "z" and ATTACK == false then
  2663. Banisher_Bullet()
  2664. end
  2665.  
  2666. if Key == "b" and ATTACK == false then
  2667. end
  2668.  
  2669. if Key == "t" and ATTACK == false then
  2670. TAUNT1()
  2671. end
  2672.  
  2673. if Key == "q" and ATTACK == false then
  2674. Lift()
  2675. end
  2676.  
  2677. if Key == "e" and ATTACK == false then
  2678. Warp()
  2679. end
  2680.  
  2681. if Key == "r" and ATTACK == false then
  2682. Supernova()
  2683. end
  2684.  
  2685. if Key == "x" and ATTACK == false then
  2686. Prison_Key()
  2687. end
  2688.  
  2689. if Key == "c" and ATTACK == false then
  2690. end
  2691.  
  2692. if Key == "v" and ATTACK == false then
  2693. end
  2694.  
  2695. if Key == "x" and ATTACK == false then
  2696. end
  2697. end
  2698.  
  2699. function KeyUp(Key)
  2700. KEYHOLD = false
  2701. end
  2702.  
  2703. Mouse.Button1Down:connect(function(NEWKEY)
  2704. MouseDown(NEWKEY)
  2705. end)
  2706. Mouse.Button1Up:connect(function(NEWKEY)
  2707. MouseUp(NEWKEY)
  2708. end)
  2709. Mouse.KeyDown:connect(function(NEWKEY)
  2710. KeyDown(NEWKEY)
  2711. end)
  2712. Mouse.KeyUp:connect(function(NEWKEY)
  2713. KeyUp(NEWKEY)
  2714. end)
  2715.  
  2716. --//=================================\\
  2717. --\\=================================//
  2718.  
  2719.  
  2720. function unanchor()
  2721. if UNANCHOR == true then
  2722. g = Character:GetChildren()
  2723. for i = 1, #g do
  2724. if g[i].ClassName == "Part" then
  2725. g[i].Anchored = false
  2726. end
  2727. end
  2728. end
  2729. end
  2730.  
  2731.  
  2732. --//=================================\\
  2733. --|| WRAP THE WHOLE SCRIPT UP
  2734. --\\=================================//
  2735.  
  2736. Humanoid.Changed:connect(function(Jump)
  2737. if Jump == "Jump" and (Disable_Jump == true) then
  2738. Humanoid.Jump = false
  2739. end
  2740. end)
  2741.  
  2742. while true do
  2743. Swait()
  2744. Humanoid.HipHeight = 1.5
  2745. script.Parent = WEAPONGUI
  2746. ANIMATE.Parent = nil
  2747. if Humanoid then
  2748. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2749. IDLEANIMATION:Play()
  2750. end
  2751. SINE = SINE + CHANGE
  2752. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2753. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2754. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2755. if ATTACK == false then
  2756. if TORSOVELOCITY < 1 then
  2757. 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(25)), 1 / Animation_Speed)
  2758. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed)
  2759. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2760. 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)
  2761. 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)
  2762. 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)
  2763. elseif TORSOVELOCITY > 1 then
  2764. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
  2765. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed)
  2766. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2767. 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)
  2768. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2769. 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)
  2770. end
  2771. end
  2772. RightArmGrasp.C0 = Clerp(RightArmGrasp.C0, CF(0, -0.815+0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(90-4.5 * SIN(SINE / 12)), RAD(-1.5 * SIN(SINE / 12)), RAD(0)), 1 / Animation_Speed)
  2773. unanchor()
  2774. Humanoid.MaxHealth = "inf"
  2775. Humanoid.Health = "inf"
  2776. if Rooted == false then
  2777. Disable_Jump = false
  2778. Humanoid.WalkSpeed = Speed
  2779. elseif Rooted == true then
  2780. Disable_Jump = true
  2781. Humanoid.WalkSpeed = 0
  2782. end
  2783. for _, c in pairs(Character:GetDescendants()) do
  2784. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  2785. c.Material = "Neon"
  2786. c.Color = C3(1,1,1)
  2787. if c:FindFirstChildOfClass("SpecialMesh") then
  2788. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  2789. end
  2790. if c == Head then
  2791. if c:FindFirstChild("face") then
  2792. c.face:remove()
  2793. end
  2794. end
  2795. elseif c.ClassName == "Part" and c.Name == "Eye" then
  2796. c.Color = C3(1,0,0)
  2797. c.Material = "Neon"
  2798. elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then
  2799. c:remove()
  2800. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  2801. c:remove()
  2802. end
  2803. end
  2804. refit()
  2805. Humanoid.Name = "Deadeyes"
  2806. sick.Parent = Torso
  2807. sick:resume()
  2808. sick.Volume = 5
  2809. sick.Pitch = 1
  2810. sick.SoundId = "rbxassetid://356064698"
  2811. if Head:FindFirstChildOfClass("Sound") then
  2812. Head:FindFirstChildOfClass("Sound"):remove()
  2813. end
  2814. end
  2815.  
  2816. --//=================================\\
  2817. --\\=================================//
  2818.  
  2819.  
  2820.  
  2821.  
  2822.  
  2823. --//====================================================\\--
  2824. --|| END OF SCRIPT
  2825. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement