ericdesouza

Triggered Guest V2

Mar 24th, 2018
433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 68.21 KB | None | 0 0
  1. --GK gun
  2. --Edited by ericdesouza
  3. --Triggered Guest V2 script
  4. --Gun Fixed
  5.  
  6. wait(0.2)
  7. char = game.Players.LocalPlayer.Character
  8. Player = game:GetService("Players").LocalPlayer
  9. PlayerGui = Player.PlayerGui
  10. Cam = workspace.CurrentCamera
  11. Backpack = Player.Backpack
  12. Character = Player.Character
  13. Humanoid = Character.Humanoid
  14. Mouse = Player:GetMouse()
  15. RootPart = Character.HumanoidRootPart
  16. Torso = Character.Torso
  17. Head = Character.Head
  18. RightArm = Character["Right Arm"]
  19. LeftArm = Character["Left Arm"]
  20. RightLeg = Character["Right Leg"]
  21. LeftLeg = Character["Left Leg"]
  22. RootJoint = RootPart.RootJoint
  23. Neck = Torso.Neck
  24. RightShoulder = Torso["Right Shoulder"]
  25. LeftShoulder = Torso["Left Shoulder"]
  26. RightHip = Torso["Right Hip"]
  27. LeftHip = Torso["Left Hip"]
  28. local LastBolt
  29. local LightningBolts = {}
  30. local GunPoint
  31. IT = Instance.new
  32. CF = CFrame.new
  33. VT = Vector3.new
  34. RAD = math.rad
  35. C3 = Color3.new
  36. UD2 = UDim2.new
  37. BRICKC = BrickColor.new
  38. ANGLES = CFrame.Angles
  39. EULER = CFrame.fromEulerAnglesXYZ
  40. COS = math.cos
  41. ACOS = math.acos
  42. SIN = math.sin
  43. ASIN = math.asin
  44. ABS = math.abs
  45. MRANDOM = math.random
  46. FLOOR = math.floor
  47. local hum = char.Humanoid
  48.  
  49. Player = game:GetService("Players").LocalPlayer
  50. Character = Player.Character
  51. RightArm = Character["Right Arm"]
  52. LeftArm = Character["Left Arm"]
  53. vt = Vector3.new
  54. bc = BrickColor.new
  55. wit = bc("Teal").Color
  56.  
  57. function particles(art,enabled)
  58. local EyeSizes={
  59. NumberSequenceKeypoint.new(0,.8,0),
  60. NumberSequenceKeypoint.new(1,0,0)
  61. }
  62. local EyeTrans={
  63. NumberSequenceKeypoint.new(0,0,0),
  64. NumberSequenceKeypoint.new(1,1,0)
  65. }
  66. local PE=Instance.new("ParticleEmitter",art)
  67. PE.LightEmission=0.5
  68. PE.Transparency = NumberSequence.new(0.5)
  69. PE.Size=NumberSequence.new(EyeSizes)
  70. PE.Transparency=NumberSequence.new(EyeTrans)
  71. PE.Lifetime=NumberRange.new(2,3)
  72. PE.Rate=360
  73. PE.Speed = NumberRange.new(0,0,0)
  74. PE.Texture="rbxassetid://226025088"
  75. PE.ZOffset = 0
  76. PE.Name = "PE"
  77. PE.Enabled = enabled
  78. end
  79.  
  80. particles(RightArm,true)
  81. particles(LeftArm,true)
  82. particles(RightLeg,true)
  83. particles(LeftLeg,true)
  84. particles(Torso,true)
  85. particles(Head,true)
  86.  
  87.  
  88.  
  89. function onTouch(part)
  90.  
  91. local humanoid = part.Parent:findFirstChild("Humanoid")
  92. local model = part.Parent
  93. local torso = part.Parent:findFirstChild("Torso")
  94. local head = part.Parent:findFirstChild("Head")
  95. local leftleg = part.Parent:findFirstChild("Left Leg")
  96. local rightleg = part.Parent:findFirstChild("Right Leg")
  97. local leftarm = part.Parent:findFirstChild("Left Arm")
  98. local rightarm = part.Parent:findFirstChild("Right Arm")
  99.  
  100.  
  101. if (humanoid ~=nil) then
  102.  
  103. --humanoid.Health = 0
  104.  
  105. head.BrickColor = BrickColor.new("Teal")
  106. torso.BrickColor = BrickColor.new("Teal")
  107. leftleg.BrickColor = BrickColor.new("Teal")
  108. rightleg.BrickColor = BrickColor.new("Teal")
  109. rightarm.BrickColor = BrickColor.new("Teal")
  110. leftarm.BrickColor = BrickColor.new("Teal")
  111. humanoid.Sit = false
  112. wait(0.5)
  113. torso.Anchored = false
  114. humanoid.Health = 0.00000000000000000000001
  115. wait(3)
  116.  
  117. e=Instance.new('Part', model)
  118. e.Size = Vector3.new(2.25,2.25,2.25)
  119. e.Transparency = 1
  120. e.Anchored = false
  121. e.CFrame = CFrame.new(head.Position)
  122.  
  123.  
  124.  
  125. wait(5)
  126. humanoid.Health = -999999999999999999999999.99999999999
  127. q=Instance.new('ParticleEmitter', e)
  128. q.Size = NumberSequence.new(0.5)
  129. q.Rate = 50000
  130. q.Transparency = NumberSequence.new(0.5)
  131. q.Speed = NumberRange.new(7)
  132. q.VelocitySpread = 100000
  133. q.Lifetime = NumberRange.new(1)
  134. q.Texture = 'rbxassetid://226025088'
  135.  
  136. torso.Anchored = false
  137. rightleg.Anchored = false
  138. leftleg.Anchored = false
  139. rightarm.Anchored = false
  140. leftarm.Anchored = false
  141. ded = Instance.new("Sound")
  142. ded.Parent = torso
  143. ded.SoundId = "rbxassetid://131060226"
  144. ded.Volume = 1
  145. ded.Looped = false
  146. wait()
  147. ded:Play()
  148.  
  149.  
  150.  
  151.  
  152. end
  153.  
  154. end
  155.  
  156.  
  157.  
  158. char.Torso.Touched:connect(onTouch)
  159.  
  160.  
  161. hum.Died:connect(function()
  162. humanoid.Health = -99999 --workspace:ClearAllChildren()
  163. end)
  164.  
  165. workspace.Gravity = 10
  166. sky = Instance.new("Sky",game.Lighting)
  167. sky.SkyboxBk = "rbxassetid://102396956"
  168. sky.SkyboxFt = "rbxassetid://102396956"
  169. sky.SkyboxLf = "rbxassetid://102396956"
  170. sky.SkyboxRt = "rbxassetid://102396956"
  171. sky.SkyboxUp = "rbxassetid://102396956"
  172. sky.SkyboxDn = "rbxassetid://102396956"
  173.  
  174. sky.SunTextureId = "rbxassetid://380529823"
  175. sky.MoonTextureId = "rbxassetid://286708119"
  176.  
  177. sky.SunAngularSize = 70
  178. sky.MoonAngularSize = 70
  179.  
  180. sky.StarCount = 0
  181.  
  182. function ScatterEff(part)
  183. local eff1 = Instance.new("ParticleEmitter",part)
  184. eff1.Size = NumberSequence.new(.1)
  185. eff1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.9,0),NumberSequenceKeypoint.new(1,1)})
  186. eff1.LightEmission = 1
  187. eff1.Lifetime = NumberRange.new(1)
  188. eff1.Speed = NumberRange.new(1)
  189. eff1.Rate = 100
  190. eff1.VelocitySpread = 10000
  191. eff1.Texture = "rbxassetid://99062417"
  192. eff1.Color = ColorSequence.new(Color3.new(0,128,128))
  193. local eff2 = Instance.new("ParticleEmitter",part)
  194. eff2.Size = NumberSequence.new(.1)
  195. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.9,0),NumberSequenceKeypoint.new(1,1)})
  196. eff2.LightEmission = 1
  197. eff2.Lifetime = NumberRange.new(5,2)
  198. eff2.Speed = NumberRange.new(1)
  199. eff2.Rate = 100
  200. eff2.VelocitySpread = 10000
  201. eff2.Texture = "rbxassetid://99062417"
  202. eff2.Color = ColorSequence.new(Color3.new(0,128,128))
  203. end
  204.  
  205. function BurningEff(part)
  206. local eff1 = Instance.new("ParticleEmitter",part)
  207. eff1.Size = NumberSequence.new(.1)
  208. eff1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
  209. eff1.LightEmission = 1
  210. eff1.Lifetime = NumberRange.new(5,2)
  211. eff1.Speed = NumberRange.new(0)
  212. eff1.Rate = 100
  213. eff1.Texture = "rbxassetid://99062417"
  214. eff1.Acceleration = Vector3.new(0,10,0)
  215. eff1.Color = ColorSequence.new(Color3.new(0,128,128))
  216. local eff2 = Instance.new("ParticleEmitter",part)
  217. eff2.Size = NumberSequence.new(.1)
  218. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
  219. eff2.LightEmission = 1
  220. eff2.Lifetime = NumberRange.new(1)
  221. eff2.Speed = NumberRange.new(0)
  222. eff2.Rate = 100
  223. eff2.Texture = "rbxassetid://99062417"
  224. eff2.Acceleration = Vector3.new(0,10,0)
  225. eff2.Color = ColorSequence.new(Color3.new(0,128,128))
  226. local eff3 = Instance.new("ParticleEmitter",part)
  227. eff3.Size = NumberSequence.new(1)
  228. eff3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  229. eff3.LightEmission = 1
  230. eff3.Lifetime = NumberRange.new(5,2)
  231. eff3.Speed = NumberRange.new(0)
  232. eff3.Rate = 100
  233. eff3.Texture = "rbxasset://textures/particles/fire_main.dds"
  234. eff3.Acceleration = Vector3.new(0,10,0)
  235. eff3.Color = ColorSequence.new(Color3.new(0,128,128))
  236. end
  237.  
  238. spawn(function()
  239. local bb=Instance.new("BillboardGui", Head )bb.AlwaysOnTop=true bb.Size=UDim2.new(1,0,1,0)bb.StudsOffset=Vector3.new(0,4.5,0)
  240. local t=Instance.new("TextLabel",bb)t.Size=UDim2.new(1,0,1,0)t.Text="Triggered Guest"t.TextColor3=Color3.new(0,128,128)t.TextStrokeTransparency=.5
  241. t.BackgroundTransparency=1 t.TextSize=40 t.Font="Garamond"
  242. while wait()do
  243. bb.StudsOffset=Vector3.new(math.random(-50,50)/50,4.5+ math.random(-80,80)/50,math.random(-130,130)/50)
  244. end
  245. end)
  246.  
  247. for i,v in pairs(char:GetChildren()) do
  248. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "CharacterMesh" then
  249. v:Destroy()
  250. end
  251. end
  252. local Shirt = Instance.new("Shirt",char)
  253. Shirt.ShirtTemplate = "rbxassetid://57282083"
  254. -- Bodycolors!
  255. spawn(function()
  256. while wait() do
  257. Head.BrickColor = BrickColor.new("White")
  258. RightArm.BrickColor = BrickColor.new("Really black")
  259. LeftArm.BrickColor = BrickColor.new("Really black")
  260. Torso.BrickColor = BrickColor.new("Really black")
  261. RightLeg.BrickColor = BrickColor.new("Really black")
  262. LeftLeg.BrickColor = BrickColor.new("Really black")
  263. end
  264. end)
  265. for i,v in pairs(char:GetChildren()) do
  266. if v.ClassName == "Accessory" or v.ClassName == "Hat" then
  267. v:Destroy()
  268. end
  269. end
  270. local hat = Instance.new("Part",char.Head)
  271. hat.Name = "Robloxclassicred"
  272. local hatmesh = Instance.new("FileMesh",hat)
  273. hatmesh.MeshId = "http://www.roblox.com/asset/?id=46834172"
  274. hatmesh.TextureId = "http://www.roblox.com/asset/?id=47991609"
  275. hatmesh.Scale = Vector3.new(1.05, 1.05, 1.05)
  276. local hatweld = Instance.new("Weld",hat)
  277. hatweld.Part0 = hat
  278. hatweld.Part1 = char.Head
  279. hatweld.C0 = CFrame.new(0.00257301331, -0.508233547, 0.112071037, 0.998388648, 0, -0.0567459799, 0, 1, 0, 0.0567459799, 0, 0.998388648)
  280. hat.CanCollide = false
  281.  
  282. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  283. local NEWMESH = IT(MESH)
  284. if MESH == "SpecialMesh" then
  285. NEWMESH.MeshType = MESHTYPE
  286. if MESHID ~= "nil" and MESHID ~= "" then
  287. NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
  288. end
  289. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  290. NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
  291. end
  292. end
  293. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  294. NEWMESH.Scale = SCALE
  295. NEWMESH.Parent = PARENT
  296. return NEWMESH
  297. end
  298. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  299. local NEWPART = IT("Part")
  300. NEWPART.formFactor = FORMFACTOR
  301. NEWPART.Reflectance = REFLECTANCE
  302. NEWPART.Transparency = TRANSPARENCY
  303. NEWPART.CanCollide = false
  304. NEWPART.Locked = true
  305. NEWPART.Anchored = true
  306. if ANCHOR == false then
  307. NEWPART.Anchored = false
  308. end
  309. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  310. NEWPART.Name = NAME
  311. NEWPART.Size = SIZE
  312. NEWPART.Position = Torso.Position
  313. NEWPART.Material = MATERIAL
  314. NEWPART:BreakJoints()
  315. NEWPART.Parent = PARENT
  316. return NEWPART
  317. end
  318. Player_Size = 1
  319. Animation_Speed = 2
  320. Frame_Speed = 1 / 20 -- (1 / 10) OR (1 / 20)
  321. local Speed = 11
  322. local Effects2 = {}
  323. local weldBetween = function(a, b)
  324. local weldd = Instance.new("ManualWeld")
  325. weldd.Part0 = a
  326. weldd.Part1 = b
  327. weldd.C0 = CFrame.new()
  328. weldd.C1 = b.CFrame:inverse() * a.CFrame
  329. weldd.Parent = a
  330. return weldd
  331. end
  332. function createaccessory(attachmentpart, mesh, texture, scale, offset, color)
  333. local acs = Instance.new("Part")
  334. acs.CanCollide = false
  335. acs.Anchored = false
  336. acs.Size = Vector3.new(0, 0, 0)
  337. acs.CFrame = attachmentpart.CFrame
  338. acs.Parent = Character
  339. acs.BrickColor = color
  340. local meshs = Instance.new("SpecialMesh")
  341. meshs.MeshId = mesh
  342. meshs.TextureId = texture
  343. meshs.Parent = acs
  344. meshs.Scale = scale
  345. meshs.Offset = offset
  346. weldBetween(attachmentpart, acs)
  347. end
  348. function createbodypart(TYPE, COLOR, PART, OFFSET, SIZE)
  349. if TYPE == "Gem" then
  350. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0, 0, 0))
  351. acs.Anchored = false
  352. acs.CanCollide = false
  353. acs.CFrame = PART.CFrame
  354. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  355. weldBetween(PART, acs)
  356. elseif TYPE == "Skull" then
  357. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0, 0, 0))
  358. acs.Anchored = false
  359. acs.CanCollide = false
  360. acs.CFrame = PART.CFrame
  361. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  362. weldBetween(PART, acs)
  363. elseif TYPE == "Eye" then
  364. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0, 0, 0))
  365. acs.Anchored = false
  366. acs.CanCollide = false
  367. acs.CFrame = PART.CFrame
  368. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  369. weldBetween(PART, acs)
  370. end
  371. end
  372. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  373. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  374. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  375. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  376. local CHANGEDEFENSE = 0
  377. local CHANGEDAMAGE = 0
  378. local CHANGEMOVEMENT = 0
  379. local ANIM = "Idle"
  380. local ATTACK = false
  381. local EQUIPPED = false
  382. local HOLD = false
  383. local COMBO = 1
  384. local Rooted = false
  385. local SINE = 0
  386. local KEYHOLD = false
  387. local CHANGE = 2 / Animation_Speed
  388. local WALKINGANIM = false
  389. local WALK = 0
  390. local VALUE1 = false
  391. local VALUE2 = false
  392. local ROBLOXIDLEANIMATION = IT("Animation")
  393. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  394. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  395. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  396. WEAPONGUI.Name = "Weapon GUI"
  397. local Weapon = IT("Model")
  398. Weapon.Name = "Adds"
  399. local Delete = IT("Model", Character)
  400. Delete.Name = "Those who must be banished."
  401. local Effects = IT("Folder", Weapon)
  402. Effects.Name = "Effects"
  403. local ANIMATOR = Humanoid.Animator
  404. local ANIMATE = Character.Animate
  405. local HITPLAYERSOUNDS = {
  406. "263032172",
  407. "263032182",
  408. "263032200",
  409. "263032221",
  410. "263032252",
  411. "263033191"
  412. }
  413. local HITARMORSOUNDS = {
  414. "199149321",
  415. "199149338",
  416. "199149367",
  417. "199149409",
  418. "199149452"
  419. }
  420. local HITWEAPONSOUNDS = {
  421. "199148971",
  422. "199149025",
  423. "199149072",
  424. "199149109",
  425. "199149119"
  426. }
  427. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  428. local UNANCHOR = true
  429. local SKILLTEXTCOLOR = C3(0, 128, 128)
  430. ArtificialHB = Instance.new("BindableEvent", script)
  431. ArtificialHB.Name = "ArtificialHB"
  432. script:WaitForChild("ArtificialHB")
  433. frame = Frame_Speed
  434. tf = 0
  435. allowframeloss = false
  436. tossremainder = false
  437. lastframe = tick()
  438. script.ArtificialHB:Fire()
  439. game:GetService("RunService").Heartbeat:connect(function(s, p)
  440. tf = tf + s
  441. if tf >= frame then
  442. if allowframeloss then
  443. script.ArtificialHB:Fire()
  444. lastframe = tick()
  445. else
  446. for i = 1, math.floor(tf / frame) do
  447. script.ArtificialHB:Fire()
  448. end
  449. lastframe = tick()
  450. end
  451. if tossremainder then
  452. tf = 0
  453. else
  454. tf = tf - frame * math.floor(tf / frame)
  455. end
  456. end
  457. end)
  458. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  459. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  460. end
  461. function PositiveAngle(NUMBER)
  462. if NUMBER >= 0 then
  463. NUMBER = 0
  464. end
  465. return NUMBER
  466. end
  467. function NegativeAngle(NUMBER)
  468. if NUMBER <= 0 then
  469. NUMBER = 0
  470. end
  471. return NUMBER
  472. end
  473. function Swait(NUMBER)
  474. if NUMBER == 0 or NUMBER == nil then
  475. ArtificialHB.Event:wait()
  476. else
  477. for i = 1, NUMBER do
  478. ArtificialHB.Event:wait()
  479. end
  480. end
  481. end
  482. function QuaternionFromCFrame(cf)
  483. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  484. local trace = m00 + m11 + m22
  485. if trace > 0 then
  486. local s = math.sqrt(1 + trace)
  487. local recip = 0.5 / s
  488. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  489. else
  490. local i = 0
  491. if m00 < m11 then
  492. i = 1
  493. end
  494. if m22 > (i == 0 and m00 or m11) then
  495. i = 2
  496. end
  497. if i == 0 then
  498. local s = math.sqrt(m00 - m11 - m22 + 1)
  499. local recip = 0.5 / s
  500. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  501. elseif i == 1 then
  502. local s = math.sqrt(m11 - m22 - m00 + 1)
  503. local recip = 0.5 / s
  504. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  505. elseif i == 2 then
  506. local s = math.sqrt(m22 - m00 - m11 + 1)
  507. local recip = 0.5 / s
  508. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  509. end
  510. end
  511. end
  512. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  513. local xs, ys, zs = x + x, y + y, z + z
  514. local wx, wy, wz = w * xs, w * ys, w * zs
  515. local xx = x * xs
  516. local xy = x * ys
  517. local xz = x * zs
  518. local yy = y * ys
  519. local yz = y * zs
  520. local zz = z * zs
  521. 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))
  522. end
  523. function QuaternionSlerp(a, b, t)
  524. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  525. local startInterp, finishInterp
  526. if cosTheta >= 1.0E-4 then
  527. if 1 - cosTheta > 1.0E-4 then
  528. local theta = ACOS(cosTheta)
  529. local invSinTheta = 1 / SIN(theta)
  530. startInterp = SIN((1 - t) * theta) * invSinTheta
  531. finishInterp = SIN(t * theta) * invSinTheta
  532. else
  533. startInterp = 1 - t
  534. finishInterp = t
  535. end
  536. elseif 1 + cosTheta > 1.0E-4 then
  537. local theta = ACOS(-cosTheta)
  538. local invSinTheta = 1 / SIN(theta)
  539. startInterp = SIN((t - 1) * theta) * invSinTheta
  540. finishInterp = SIN(t * theta) * invSinTheta
  541. else
  542. startInterp = t - 1
  543. finishInterp = t
  544. end
  545. 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
  546. end
  547. function Clerp(a, b, t)
  548. local qa = {
  549. QuaternionFromCFrame(a)
  550. }
  551. local qb = {
  552. QuaternionFromCFrame(b)
  553. }
  554. local ax, ay, az = a.x, a.y, a.z
  555. local bx, by, bz = b.x, b.y, b.z
  556. local _t = 1 - t
  557. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  558. end
  559. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  560. local frame = IT("Frame")
  561. frame.BackgroundTransparency = TRANSPARENCY
  562. frame.BorderSizePixel = BORDERSIZEPIXEL
  563. frame.Position = POSITION
  564. frame.Size = SIZE
  565. frame.BackgroundColor3 = COLOR
  566. frame.BorderColor3 = BORDERCOLOR
  567. frame.Name = NAME
  568. frame.Parent = PARENT
  569. return frame
  570. end
  571. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  572. local label = IT("TextLabel")
  573. label.BackgroundTransparency = 1
  574. label.Size = UD2(1, 0, 1, 0)
  575. label.Position = UD2(0, 0, 0, 0)
  576. label.TextColor3 = TEXTCOLOR
  577. label.TextStrokeTransparency = STROKETRANSPARENCY
  578. label.TextTransparency = TRANSPARENCY
  579. label.FontSize = TEXTFONTSIZE
  580. label.Font = TEXTFONT
  581. label.BorderSizePixel = BORDERSIZEPIXEL
  582. label.TextScaled = false
  583. label.Text = TEXT
  584. label.Name = NAME
  585. label.Parent = PARENT
  586. return label
  587. end
  588. function NoOutlines(PART)
  589. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  590. end
  591. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  592. local NEWWELD = IT(TYPE)
  593. NEWWELD.Part0 = PART0
  594. NEWWELD.Part1 = PART1
  595. NEWWELD.C0 = C0
  596. NEWWELD.C1 = C1
  597. NEWWELD.Parent = PARENT
  598. return NEWWELD
  599. end
  600. local SOUND = IT("Sound", nil)
  601. function CreateSound(ID, PARENT, VOLUME, PITCH)
  602. local NEWSOUND
  603. coroutine.resume(coroutine.create(function()
  604. NEWSOUND = SOUND:Clone()
  605. NEWSOUND.Parent = PARENT
  606. NEWSOUND.Volume = VOLUME
  607. NEWSOUND.Pitch = PITCH
  608. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
  609. NEWSOUND:play()
  610. repeat
  611. Swait()
  612. until NEWSOUND.Playing == false
  613. NEWSOUND:remove()
  614. end))
  615. return NEWSOUND
  616. end
  617. function CFrameFromTopBack(at, top, back)
  618. local right = top:Cross(back)
  619. 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)
  620. end
  621. function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  622. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  623. local mesh = IT("SpecialMesh", wave)
  624. mesh.MeshType = "FileMesh"
  625. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  626. mesh.Scale = SIZE
  627. mesh.Offset = VT(0, 0, -SIZE.X / 8)
  628. wave.CFrame = CFRAME
  629. coroutine.resume(coroutine.create(function(PART)
  630. for i = 1, WAIT do
  631. Swait()
  632. mesh.Scale = mesh.Scale + GROW
  633. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  634. if DOESROT == true then
  635. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  636. end
  637. wave.Transparency = wave.Transparency + 0.5 / WAIT
  638. if wave.Transparency > 0.99 then
  639. wave:remove()
  640. end
  641. end
  642. end))
  643. end
  644. function CreateCrown(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  645. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  646. local mesh = IT("SpecialMesh", wave)
  647. mesh.MeshType = "FileMesh"
  648. mesh.MeshId = "http://www.roblox.com/asset/?id=1078075"
  649. mesh.Scale = SIZE
  650. mesh.Offset = VT(0, 0, -SIZE.X / 8)
  651. wave.CFrame = CFRAME
  652. coroutine.resume(coroutine.create(function(PART)
  653. for i = 1, WAIT do
  654. Swait()
  655. mesh.Scale = mesh.Scale + GROW
  656. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  657. if DOESROT == true then
  658. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  659. end
  660. wave.Transparency = wave.Transparency + 0.5 / WAIT
  661. if wave.Transparency > 0.99 then
  662. wave:remove()
  663. end
  664. end
  665. end))
  666. end
  667. function CreateIceCrown(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  668. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  669. local mesh = IT("SpecialMesh", wave)
  670. mesh.MeshType = "FileMesh"
  671. mesh.MeshId = "http://www.roblox.com/asset/?id=1323306"
  672. mesh.Scale = SIZE
  673. mesh.Offset = VT(0, 0, -SIZE.X / 8)
  674. wave.CFrame = CFRAME
  675. coroutine.resume(coroutine.create(function(PART)
  676. for i = 1, WAIT do
  677. Swait()
  678. mesh.Scale = mesh.Scale + GROW
  679. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  680. if DOESROT == true then
  681. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  682. end
  683. wave.Transparency = wave.Transparency + 0.5 / WAIT
  684. if wave.Transparency > 0.99 then
  685. wave:remove()
  686. end
  687. end
  688. end))
  689. end
  690. function CreateSpikeball(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  691. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  692. local mesh = IT("SpecialMesh", wave)
  693. mesh.MeshType = "FileMesh"
  694. mesh.MeshId = "http://www.roblox.com/asset/?id=9982590"
  695. mesh.Scale = SIZE
  696. mesh.Offset = VT(0, 0, -SIZE.X / 8)
  697. wave.CFrame = CFRAME
  698. coroutine.resume(coroutine.create(function(PART)
  699. for i = 1, WAIT do
  700. Swait()
  701. mesh.Scale = mesh.Scale + GROW
  702. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  703. if DOESROT == true then
  704. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  705. end
  706. wave.Transparency = wave.Transparency + 0.5 / WAIT
  707. if wave.Transparency > 0.99 then
  708. wave:remove()
  709. end
  710. end
  711. end))
  712. end
  713. function CreateSwirl(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  714. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  715. local mesh = IT("SpecialMesh", wave)
  716. mesh.MeshType = "FileMesh"
  717. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  718. mesh.Scale = SIZE
  719. wave.CFrame = CFRAME
  720. coroutine.resume(coroutine.create(function(PART)
  721. for i = 1, WAIT do
  722. Swait()
  723. mesh.Scale = mesh.Scale + GROW
  724. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  725. if DOESROT == true then
  726. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  727. end
  728. wave.Transparency = wave.Transparency + 0.5 / WAIT
  729. if wave.Transparency > 0.99 then
  730. wave:remove()
  731. end
  732. end
  733. end))
  734. end
  735. function CreateTornado(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
  736. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  737. local mesh = IT("SpecialMesh", wave)
  738. mesh.MeshType = "FileMesh"
  739. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  740. mesh.Scale = SIZE
  741. wave.CFrame = CFRAME
  742. coroutine.resume(coroutine.create(function(PART)
  743. for i = 1, WAIT do
  744. Swait()
  745. mesh.Scale = mesh.Scale + GROW
  746. if DOESROT == true then
  747. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  748. end
  749. wave.Transparency = wave.Transparency + 0.5 / WAIT
  750. if wave.Transparency > 0.99 then
  751. wave:remove()
  752. end
  753. end
  754. end))
  755. end
  756. function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
  757. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  758. local mesh = IT("SpecialMesh", wave)
  759. mesh.MeshType = "FileMesh"
  760. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  761. mesh.Scale = SIZE
  762. mesh.Offset = VT(0, 0, 0)
  763. wave.CFrame = CFRAME
  764. coroutine.resume(coroutine.create(function(PART)
  765. for i = 1, WAIT do
  766. Swait()
  767. mesh.Scale = mesh.Scale + GROW
  768. if DOESROT == true then
  769. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  770. end
  771. wave.Transparency = wave.Transparency + 0.5 / WAIT
  772. if wave.Transparency > 0.99 then
  773. wave:remove()
  774. end
  775. end
  776. end))
  777. end
  778. function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW)
  779. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  780. local mesh = IT("SpecialMesh", wave)
  781. mesh.MeshType = "Sphere"
  782. mesh.Scale = SIZE
  783. mesh.Offset = VT(0, 0, 0)
  784. wave.CFrame = CFRAME
  785. coroutine.resume(coroutine.create(function(PART)
  786. for i = 1, WAIT do
  787. Swait()
  788. mesh.Scale = mesh.Scale + GROW
  789. wave.Transparency = wave.Transparency + 1 / WAIT
  790. if wave.Transparency > 0.99 then
  791. wave:remove()
  792. end
  793. end
  794. end))
  795. end
  796. function MagicBlock(SIZE, WAIT, CFRAME, COLOR, GROW)
  797. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE, SIZE, SIZE), true)
  798. local mesh = IT("BlockMesh", wave)
  799. wave.CFrame = CFRAME
  800. coroutine.resume(coroutine.create(function(PART)
  801. for i = 1, WAIT do
  802. Swait()
  803. mesh.Scale = mesh.Scale + GROW
  804. wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360, 360)), RAD(math.random(-360, 360)), RAD(math.random(-360, 360)))
  805. wave.Transparency = wave.Transparency + 1 / WAIT
  806. if wave.Transparency > 0.99 then
  807. wave:remove()
  808. end
  809. end
  810. end))
  811. end
  812. function MakeForm(PART, TYPE)
  813. if TYPE == "Cyl" then
  814. local MSH = IT("CylinderMesh", PART)
  815. elseif TYPE == "Ball" then
  816. local MSH = IT("SpecialMesh", PART)
  817. MSH.MeshType = "Sphere"
  818. elseif TYPE == "Wedge" then
  819. local MSH = IT("SpecialMesh", PART)
  820. MSH.MeshType = "Wedge"
  821. end
  822. end
  823. function CheckTableForString(Table, String)
  824. for i, v in pairs(Table) do
  825. if string.find(string.lower(String), string.lower(v)) then
  826. return true
  827. end
  828. end
  829. return false
  830. end
  831. function CheckIntangible(Hit)
  832. local ProjectileNames = {
  833. "Water",
  834. "Arrow",
  835. "Projectile",
  836. "Effect",
  837. "Rail",
  838. "Lightning",
  839. "Bullet"
  840. }
  841. if Hit and Hit.Parent and (not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid") then
  842. return true
  843. end
  844. return false
  845. end
  846. Debris = game:GetService("Debris")
  847. BaseLightning = IT("Part")
  848. BaseLightning.Anchored = true
  849. BaseLightning.CanCollide = false
  850. BaseLightning.Material = "Neon"
  851. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  852. local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
  853. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Vec * Length), Ignore)
  854. if RayHit and CheckIntangible(RayHit) then
  855. if DelayIfHit then
  856. wait()
  857. end
  858. RayHit, RayPos, RayNormal = CastZapRay(RayPos + Vec * 0.01, Vec, Length - (StartPos - RayPos).magnitude, Ignore, DelayIfHit)
  859. end
  860. return RayHit, RayPos, RayNormal
  861. end
  862. function Zap(Table)
  863. local StartPos, TargetPos, Character, Color = Table.StartPosition, Table.TargetPosition, Table.Character, Table.Color
  864. local Duration = Table.Duration or 2
  865. local FadeRate = Table.FadeRate or 0.01
  866. local Offset = Table.Offset or 2
  867. local Individualize = Table.Individualize or false
  868. local MaxRange = Table.MaxRange or 210
  869. local SegmentLength = Table.SegmentLength or 9
  870. local TimeToFade = Table.TimeToFade or 0.5
  871. local Ignore = Table.Ignore or {}
  872. local SIZE = Table.Size or 1
  873. if not (StartPos and TargetPos) or not Character then
  874. return
  875. end
  876. local LightningModel = IT("Folder", Effects)
  877. LightningModel.Name = "ZAPP"
  878. for i, v in pairs({Character, LightningModel}) do
  879. table.insert(Ignore, v)
  880. end
  881. local LastPos = StartPos
  882. local Direction = CFrame.new(StartPos, TargetPos).lookVector
  883. local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Direction, MaxRange, Ignore, false)
  884. local RayLength = (StartPos - RayPos).Magnitude
  885. local Struck = false
  886. local TotalSegments = math.ceil(RayLength / SegmentLength)
  887. Direction = CFrame.new(StartPos, RayPos).lookVector
  888. local LightningBolt = IT("Model", Effects)
  889. LightningBolt.Name = "Lightning"
  890. if not Individualize then
  891. table.insert(LightningBolts, LightningBolt)
  892. end
  893. LastBolt = LightningBolt
  894. Debris:AddItem(LightningBolt, Duration)
  895. LightningBolt.Parent = LightningModel
  896. for i = 1, TotalSegments do
  897. if not Struck then
  898. local Entropy = Vector3.new(math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset)
  899. local NewPos = StartPos + Direction * (RayLength * (i / TotalSegments)) + Entropy
  900. local SegmentVec = NewPos - LastPos
  901. local RayHit, RayPos, RayNormal = CastZapRay(LastPos, SegmentVec.Unit, SegmentVec.Magnitude, {Character, LightningModel}, false)
  902. local RayVec = LastPos - RayPos
  903. local LightningPart = BaseLightning:Clone()
  904. LightningPart.BrickColor = BrickColor.new(Color)
  905. LightningPart.Size = Vector3.new(SIZE, SIZE, RayVec.Magnitude)
  906. LightningPart.CFrame = CFrame.new(LastPos, RayPos) * CFrame.new(0, 0, -(RayVec.Magnitude / 2))
  907. table.insert(Effects2, {
  908. LightningPart,
  909. "Disappear",
  910. 0.025,
  911. 1,
  912. 1,
  913. 1,
  914. 2
  915. })
  916. local CylinderMesh = IT("CylinderMesh", LightningPart)
  917. local OrigCF = LightningPart.CFrame
  918. LightningPart.Size = Vector3.new(LightningPart.Size.X, LightningPart.Size.Z, LightningPart.Size.Y)
  919. LightningPart.CFrame = OrigCF * CFrame.Angles(math.pi / 2, 0, 0)
  920. LightningPart.Parent = LightningBolt
  921. LastPos = NewPos
  922. end
  923. end
  924. return {
  925. RayHit = RayHit,
  926. RayPos = RayPos,
  927. RayNormal = RayNormal,
  928. LightningModel = LightningModel
  929. }
  930. end
  931. function turnto(position)
  932. RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0)
  933. end
  934. function chatfunc(text, waitt)
  935. local chat = coroutine.wrap(function()
  936. if Character:FindFirstChild("TalkingBillBoard") ~= nil then
  937. Character:FindFirstChild("TalkingBillBoard").Parent = nil
  938. end
  939. local naeeym2 = Instance.new("BillboardGui", Character)
  940. naeeym2.Size = UDim2.new(0, 100, 0, 40)
  941. naeeym2.StudsOffset = Vector3.new(0, 2, 0)
  942. naeeym2.Adornee = Character.Head
  943. naeeym2.Name = "TalkingBillBoard"
  944. naeeym2.AlwaysOnTop = true
  945. local tecks2 = Instance.new("TextLabel", naeeym2)
  946. tecks2.BackgroundTransparency = 1
  947. tecks2.BorderSizePixel = 0
  948. tecks2.Text = ""
  949. tecks2.Font = "Antique"
  950. tecks2.TextSize = 30
  951. tecks2.TextStrokeTransparency = 1
  952. tecks2.TextColor3 = SKILLTEXTCOLOR
  953. tecks2.TextStrokeColor3 = Color3.new(0, 182, 182)
  954. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  955. for i = 1, string.len(text) do
  956. if naeeym2.Parent ~= nil then
  957. CreateSound("418252437", Effects, 1, MRANDOM(10, 22) / 20)
  958. end
  959. tecks2.Text = string.sub(text, 1, i)
  960. Swait(3)
  961. end
  962. wait(waitt / 10)
  963. coroutine.resume(coroutine.create(function()
  964. for i = 1, 10 do
  965. tecks2.TextTransparency = tecks2.TextTransparency + 0.1
  966. Swait()
  967. end
  968. naeeym2:Destroy()
  969. end))
  970. end)
  971. chat()
  972. end
  973. for _, c in pairs(Weapon:GetChildren()) do
  974. if c.ClassName == "Part" then
  975. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  976. end
  977. end
  978. Weapon.Parent = Character
  979. Humanoid.Died:connect(function()
  980. ATTACK = true
  981. end)
  982. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 255), C3(0, 0, 0), "Skill 1 Frame")
  983. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.5, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 255), C3(0, 0, 0), "Skill 2 Frame")
  984. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 255), C3(0, 0, 0), "Skill 3 Frame")
  985. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.5, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 255), C3(0, 0, 0), "Skill 4 Frame")
  986. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 255), C3(0, 0, 0), "Skill 5 Frame")
  987. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Teal bullet", SKILLTEXTCOLOR, 8, "Antique", 0, 182, 182, "Text 1")
  988. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Banishing Teal", SKILLTEXTCOLOR, 8, "Antique", 0, 182, 182, "Text 2")
  989. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Warp vector", SKILLTEXTCOLOR, 8, "Antique", 0, 182, 182, "Text 3")
  990. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Spectral Teal ", SKILLTEXTCOLOR, 8, "Antique", 0, 182, 182, "Text 4")
  991. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] De-banish", SKILLTEXTCOLOR, 8, "Antique", 0, 182, 182, "Text 5")
  992. function CastWarpOutlines(TARGET)
  993. coroutine.resume(coroutine.create(function()
  994. local T = TARGET:GetChildren()
  995. for i = 1, #T do
  996. local child = T[i]
  997. if child.ClassName == "Part" or child.ClassName == "MeshPart" then
  998. do
  999. local clone = child:Clone()
  1000. clone.Parent = Effects
  1001. clone.Anchored = true
  1002. clone.CanCollide = false
  1003. clone:ClearAllChildren()
  1004. clone.CFrame = child.CFrame
  1005. if clone.Name == "Head" then
  1006. clone.Size = VT(clone.Size.Y, clone.Size.Y, clone.Size.Y)
  1007. end
  1008. if clone.ClassName == "MeshPart" then
  1009. clone.TextureID = ""
  1010. end
  1011. clone.Color = C3(0, 128, 128)
  1012. clone.Material = "Neon"
  1013. coroutine.resume(coroutine.create(function()
  1014. for i = 1, 100 do
  1015. Swait()
  1016. clone.Transparency = clone.Transparency + 0.01
  1017. clone.Size = clone.Size + VT(-0.1, -0.1, -0.1)
  1018. end
  1019. clone:remove()
  1020. end))
  1021. end
  1022. end
  1023. end
  1024. end))
  1025. end
  1026. function killnearest(position, range, maxstrength)
  1027. for i, v in ipairs(workspace:GetChildren()) do
  1028. local body = v:GetChildren()
  1029. for part = 1, #body do
  1030. if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude and v.ClassName == "Model" then
  1031. CastWarpOutlines(v)
  1032. v:remove()
  1033. if game.Players:FindFirstChild(v.Name) then
  1034. local Value = IT("BoolValue", Delete)
  1035. Value.Name = v.Name
  1036. end
  1037. end
  1038. end
  1039. end
  1040. end
  1041. function CastProperRay(StartPos, Vec, Length, Ignore)
  1042. local Direction = CFrame.new(StartPos, Vec).lookVector
  1043. local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
  1044. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  1045. return RayHit, RayPos, RayNormal
  1046. end
  1047. function Debree(POS, SWAIT)
  1048. coroutine.resume(coroutine.create(function()
  1049. local HOLDER = IT("Model", Effects)
  1050. HOLDER.Name = "Debree"
  1051. local HITFLOOR = Raycast(POS, CF(POS, POS + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  1052. repeat
  1053. Swait()
  1054. until HITFLOOR ~= nil
  1055. local O = 0
  1056. for i = 1, 18 do
  1057. do
  1058. local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Teal", VT(3, 3, 3))
  1059. Part.CFrame = CF(CF(POS) * CF(10 - i, 0, O).p) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  1060. O = O - 2.25 + i / 4
  1061. coroutine.resume(coroutine.create(function()
  1062. Swait(SWAIT)
  1063. for i = 1, 60 do
  1064. Swait()
  1065. local RayHit, Way = CastProperRay(Part.Position, POS, 0.1, workspace)
  1066. Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  1067. end
  1068. for i = 1, 50 do
  1069. Swait()
  1070. Part.Size = Part.Size * 0.9
  1071. end
  1072. end))
  1073. end
  1074. end
  1075. local O = 0
  1076. for i = 1, 18 do
  1077. do
  1078. local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Teal", VT(3, 3, 3))
  1079. Part.CFrame = CF(CF(POS) * CF(10 - i, 0, O).p) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  1080. O = O + 2.25 - i / 4
  1081. coroutine.resume(coroutine.create(function()
  1082. Swait(SWAIT)
  1083. for i = 1, 60 do
  1084. Swait()
  1085. local RayHit, Way = CastProperRay(Part.Position, POS, 0.1, workspace)
  1086. Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  1087. end
  1088. for i = 1, 50 do
  1089. Swait()
  1090. Part.Size = Part.Size * 0.9
  1091. end
  1092. end))
  1093. end
  1094. end
  1095. Swait(SWAIT + 110)
  1096. HOLDER:remove()
  1097. end))
  1098. end
  1099. function Intro()
  1100. coroutine.resume(coroutine.create(function()
  1101. ATTACK = true
  1102. Rooted = true
  1103. for i = 0, 3, 0.1 / Animation_Speed do
  1104. Swait()
  1105. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1106. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1107. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1108. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1109. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1110. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1111. end
  1112. CreateSound("271550300", Head, 1, 1)
  1113. for i = 0, 1, 0.1 / Animation_Speed do
  1114. Swait()
  1115. char.Head.face.Texture = "rbxassetid://37700586"
  1116. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.5 / Animation_Speed)
  1117. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1118. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1119. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1120. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1121. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1122. end
  1123. local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  1124. repeat
  1125. Swait()
  1126. HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  1127. until HITFLOOR ~= nil
  1128. for i = 0, 0.5, 0.1 / Animation_Speed do
  1129. Swait()
  1130. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(-5), RAD(0)), 0.5 / Animation_Speed)
  1131. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1132. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, -0.3) * ANGLES(RAD(0), RAD(0), RAD(8)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1133. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1134. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1135. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1136. end
  1137. CreateSound("144699494", RightArm, 10, 1)
  1138. Debree(CF(RightArm.Position) * CF(0, -0.75, 0).p, 200)
  1139. Swait(45)
  1140. local Gun = CreatePart(3, Weapon, "Neon", 0, 0, "Teal", "Gun", VT(0, 0, 0), false)
  1141. local HandleMesh = CreateMesh("SpecialMesh", Gun, "FileMesh", "50763455", "50763489", VT(1, 1, 1), VT(0, 0, 0))
  1142. local Weld = CreateWeldOrSnapOrMotor("Weld", Gun, RightArm, Gun, CF(0, -1.9, 0) * ANGLES(RAD(3.1), RAD(180), RAD(-180)), CF(0, 0, 0))
  1143. GunPoint = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Teal", "Point blank", VT(0, 0, 0), false)
  1144. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", GunPoint, RightArm, GunPoint, CF(0, -3.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0))
  1145. local sick = Instance.new("Sound", Character)
  1146. sick.SoundId = "rbxassetid://1320656091 " --256054390
  1147. sick.Looped = true
  1148. sick.Pitch = 1.05 -- 0.99999
  1149. sick.Volume = 2
  1150. sick:Play()
  1151. Swait(5)
  1152. for i = 0, 1, 0.1 / Animation_Speed do
  1153. Swait()
  1154. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.5 / Animation_Speed)
  1155. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1156. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1.25, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1157. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1158. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1159. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1160. end
  1161. VALUE1 = true
  1162. Swait(10)
  1163. ATTACK = false
  1164. Rooted = false
  1165. end))
  1166. end
  1167. function BanishingBullet()
  1168. ATTACK = true
  1169. Rooted = false
  1170. for i = 0, 0.4, 0.1 / Animation_Speed do
  1171. Swait()
  1172. turnto(Mouse.Hit.p)
  1173. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1174. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1175. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1176. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1177. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1178. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1179. end
  1180. repeat
  1181. for i = 0, 0.2, 0.1 / Animation_Speed do
  1182. Swait()
  1183. turnto(Mouse.Hit.p)
  1184. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1185. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1186. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1187. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1188. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1189. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1190. end
  1191. CreateSound("238353911", GunPoint, 10, MRANDOM(9, 11) / 10)
  1192. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Teal", VT(0.1, 0.1, 0.1))
  1193. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Teal", VT(0.05, 0.05, 0.05))
  1194. local RayHit, Way = CastProperRay(GunPoint.Position, Mouse.Hit.p, 1500, Character)
  1195. local distance = (GunPoint.Position - Way).magnitude
  1196. for i = 1, 5 do
  1197. local laser = Instance.new("Part", Effects)
  1198. laser.Transparency = 0
  1199. laser.CanCollide = false
  1200. laser.Anchored = true
  1201. laser.Color = C3(0, 128, 128)
  1202. laser.Material = "Neon"
  1203. laser.formFactor = Enum.FormFactor.Custom
  1204. laser.Size = Vector3.new(1, 1, distance)
  1205. laser.CFrame = CFrame.new(GunPoint.Position, Way) * CFrame.new(0, 0, -distance / 2)
  1206. MagicSphere(VT(0.1, 0.1, 0.1), 45, CF(Way), "Teal", VT(0.05, 0.05, 0.05))
  1207. for i = 1, 5 do
  1208. MagicSphere(VT(0.2, 0.2, 1), 65, CF(CF(Way) * CF(MRANDOM(-1, 1), MRANDOM(-1, 1), MRANDOM(-1, 1)).p, Way), "Teal", VT(0.001, 0.001, 0), 0.5)
  1209. end
  1210. table.insert(Effects2, {
  1211. laser,
  1212. "Disappear",
  1213. 0.1,
  1214. 1,
  1215. 1,
  1216. 1,
  1217. 2
  1218. })
  1219. if RayHit ~= nil then
  1220. local v = RayHit.Parent
  1221. if v ~= nil and v.ClassName == "Model" then
  1222. CastWarpOutlines(v)
  1223. v.Parent = nil
  1224. if game.Players:FindFirstChild(v.Name) then
  1225. local Value = IT("BoolValue", Delete)
  1226. Value.Name = v.Name
  1227. end
  1228. end
  1229. end
  1230. end
  1231. for i = 0, 0.3, 0.1 / Animation_Speed do
  1232. Swait()
  1233. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1234. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1235. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1236. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1237. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1238. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1239. end
  1240. until KEYHOLD == false
  1241. ATTACK = false
  1242. Rooted = false
  1243. end
  1244. function WarpVector()
  1245. ATTACK = true
  1246. Rooted = true
  1247. for i = 0, 1, 0.1 / Animation_Speed do
  1248. Swait()
  1249. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1250. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1251. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1252. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1253. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1254. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1255. end
  1256. Debree(CF(RootPart.Position) * CF(0, -2.8, 0).p, 75)
  1257. UNANCHOR = false
  1258. RootPart.Anchored = true
  1259. for i = 0, 2, 0.1 / Animation_Speed do
  1260. Swait()
  1261. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -10 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1262. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1263. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1264. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1265. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1266. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1267. end
  1268. local POS = RootPart.Position
  1269. RootPart.CFrame = CF(CF(Mouse.Hit.p) * CF(0, 2.8, 0).p, POS)
  1270. Debree(CF(RootPart.Position) * CF(0, -2.5, 0).p, 150)
  1271. for i = 0, 2, 0.1 / Animation_Speed do
  1272. Swait()
  1273. 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)
  1274. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1275. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1276. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1277. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1278. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1279. end
  1280. ATTACK = false
  1281. Rooted = false
  1282. end
  1283. function BanishingRampage()
  1284. ATTACK = true
  1285. Rooted = false
  1286. chatfunc("BE GONE THOT..", 3)
  1287. for i = 0, 2, 0.1 / Animation_Speed do
  1288. Swait()
  1289. turnto(Mouse.Hit.p)
  1290. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.5 / Animation_Speed)
  1291. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  1292. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -0.3) * ANGLES(RAD(25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1293. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1294. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1295. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1296. end
  1297. local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  1298. repeat
  1299. Swait()
  1300. HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  1301. until HITFLOOR ~= nil
  1302. CreateSound("238353911", GunPoint, 10, MRANDOM(9, 11) / 10)
  1303. local SOUND = CreateSound("415700134", Effects, 10, 1.6)
  1304. CreateSound("138677306", Effects, 7, 1.2)
  1305. coroutine.resume(coroutine.create(function()
  1306. local CFRAME = RootPart.CFrame * CF(0, -1.2, -3)
  1307. local SIZE = 10
  1308. while true do
  1309. Swait()
  1310. for i = 1, 2 do
  1311. MagicSphere(VT(SIZE / 10, SIZE / 10, SIZE * 5), 65, CF(CFRAME * CF(MRANDOM(-5, 5), MRANDOM(-5, 5), MRANDOM(-5, 5)).p, CFRAME.p), "Teal", VT(0.001, 0.001, 0), 0.5)
  1312. end
  1313. do
  1314. local Part = CreatePart(3, Effects, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Teal", VT(SIZE / 10, SIZE / 10, SIZE / 5))
  1315. Part.CFrame = CFRAME * CF(SIZE / 1.5, -0.7, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  1316. coroutine.resume(coroutine.create(function()
  1317. Swait(200)
  1318. Part.Anchored = false
  1319. end))
  1320. local Part = CreatePart(3, Effects, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Teal", VT(SIZE / 10, SIZE / 10, SIZE / 5))
  1321. Part.CFrame = CFRAME * CF(-SIZE / 1.5, -0.7, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  1322. coroutine.resume(coroutine.create(function()
  1323. Swait(200)
  1324. Part.Anchored = false
  1325. end))
  1326. MagicSphere(VT(SIZE, SIZE, SIZE), 75, CFRAME, "Teal", VT(-SIZE / 75, -SIZE / 75, -SIZE / 75))
  1327. killnearest(CFRAME.p, SIZE, 0)
  1328. SIZE = SIZE + 5
  1329. CFRAME = CFRAME * CF(0, 0, -2)
  1330. if SOUND.Playing == false then
  1331. break
  1332. end
  1333. end
  1334. end
  1335. end))
  1336. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Teal", VT(0.1, 0.1, 0.1))
  1337. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Teal", VT(0.05, 0.05, 0.05))
  1338. for i = 0, 3, 0.1 / Animation_Speed do
  1339. Swait()
  1340. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.5 / Animation_Speed)
  1341. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(10), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  1342. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -0.3) * ANGLES(RAD(55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1343. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1344. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1345. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1346. end
  1347. ATTACK = false
  1348. Rooted = false
  1349. end
  1350. function SpectralBanishing()
  1351. ATTACK = true
  1352. Rooted = false
  1353. chatfunc("If you desire to be a Guest...", 20)
  1354. for i = 0, 5, 0.1 / Animation_Speed do
  1355. Swait()
  1356. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.25 / Animation_Speed)
  1357. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.25 / Animation_Speed)
  1358. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  1359. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  1360. 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.25 / Animation_Speed)
  1361. 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.25 / Animation_Speed)
  1362. end
  1363. chatfunc("Then dont mess with me...", 6)
  1364. CreateSound("238353911", GunPoint, 10, MRANDOM(9, 11) / 10)
  1365. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Teal", VT(0.1, 0.1, 0.1))
  1366. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Teal", VT(0.05, 0.05, 0.05))
  1367. local RayHit, Way = CastProperRay(GunPoint.Position, CF(GunPoint.Position) * CF(0, 1500, 0).p, 1500, Character)
  1368. local distance = (GunPoint.Position - Way).magnitude
  1369. for i = 1, 5 do
  1370. local laser = Instance.new("Part", Effects)
  1371. laser.Transparency = 0
  1372. laser.CanCollide = false
  1373. laser.Anchored = true
  1374. laser.Color = C3(0, 128, 128)
  1375. laser.Material = "Neon"
  1376. laser.formFactor = Enum.FormFactor.Custom
  1377. laser.Size = Vector3.new(1, 1, distance)
  1378. laser.CFrame = CFrame.new(GunPoint.Position, Way) * CFrame.new(0, 0, -distance / 2)
  1379. table.insert(Effects2, {
  1380. laser,
  1381. "Disappear",
  1382. 0.1,
  1383. 1,
  1384. 1,
  1385. 1,
  1386. 2
  1387. })
  1388. end
  1389. coroutine.resume(coroutine.create(function()
  1390. Swait(15)
  1391. local FILTER = IT("ColorCorrectionEffect", game.Lighting)
  1392. for i = 1, 25 do
  1393. Swait()
  1394. FILTER.TintColor = C3(1, 1 - i / 50, 1 - i / 50)
  1395. end
  1396. local GAME = game.Players:GetChildren()
  1397. for PLAYER = 1, #GAME do
  1398. do
  1399. local PLAY = GAME[PLAYER]
  1400. if PLAY.Character ~= nil and PLAY.Character.Parent ~= workspace then
  1401. PLAY.Character.Parent = nil
  1402. coroutine.resume(coroutine.create(function()
  1403. if PLAY.Character:FindFirstChild("HumanoidRootPart") then
  1404. PLAY.Character.Parent = workspace
  1405. local Value = IT("BoolValue", Delete)
  1406. Value.Name = PLAY.Name
  1407. end
  1408. end))
  1409. end
  1410. end
  1411. end
  1412. for i = 1, 25 do
  1413. Swait()
  1414. FILTER.TintColor = C3(1, 0.4980392156862745 + i / 50, 0.4980392156862745 + i / 50)
  1415. end
  1416. end))
  1417. for i = 0, 2, 0.1 / Animation_Speed do
  1418. Swait()
  1419. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.25 / Animation_Speed)
  1420. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.25 / Animation_Speed)
  1421. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(195), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  1422. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  1423. 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.25 / Animation_Speed)
  1424. 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.25 / Animation_Speed)
  1425. end
  1426. ATTACK = false
  1427. Rooted = false
  1428. end
  1429. function Taunt()
  1430. ATTACK = true
  1431. Rooted = true
  1432. CreateSound("649634100", Head, 10, 0.5)
  1433. for i = 1, 3 do
  1434. for i = 0, 0.7, 0.1 / Animation_Speed do
  1435. Swait()
  1436. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1437. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1438. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.5)
  1439. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-145)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.5)
  1440. 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.25 / Animation_Speed)
  1441. 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.25 / Animation_Speed)
  1442. end
  1443. for i = 0, 0.7, 0.1 / Animation_Speed do
  1444. Swait()
  1445. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1446. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
  1447. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.5)
  1448. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-145)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.5)
  1449. 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.25 / Animation_Speed)
  1450. 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.25 / Animation_Speed)
  1451. end
  1452. end
  1453. ATTACK = false
  1454. Rooted = false
  1455. end
  1456. function MouseDown(Mouse)
  1457. if ATTACK == false then
  1458. end
  1459. end
  1460. function MouseUp(Mouse)
  1461. HOLD = false
  1462. end
  1463. function KeyDown(Key)
  1464. KEYHOLD = true
  1465. if Key == "z" and ATTACK == false then
  1466. BanishingBullet()
  1467. end
  1468. if Key == "b" and ATTACK == false then
  1469. BanishingRampage()
  1470. end
  1471. if Key == "c" and ATTACK == false then
  1472. WarpVector()
  1473. end
  1474. if Key == "v" and ATTACK == false then
  1475. SpectralBanishing()
  1476. end
  1477. if Key == "x" and ATTACK == false then
  1478. chatfunc("I will show you mercy.", 2)
  1479. Delete:ClearAllChildren()
  1480. end
  1481. if Key == "t" and ATTACK == false then
  1482. Taunt()
  1483. end
  1484. end
  1485. function KeyUp(Key)
  1486. KEYHOLD = false
  1487. end
  1488. Mouse.Button1Down:connect(function(NEWKEY)
  1489. MouseDown(NEWKEY)
  1490. end)
  1491. Mouse.Button1Up:connect(function(NEWKEY)
  1492. MouseUp(NEWKEY)
  1493. end)
  1494. Mouse.KeyDown:connect(function(NEWKEY)
  1495. KeyDown(NEWKEY)
  1496. end)
  1497. Mouse.KeyUp:connect(function(NEWKEY)
  1498. KeyUp(NEWKEY)
  1499. end)
  1500. function unanchor()
  1501. if UNANCHOR == true then
  1502. g = Character:GetChildren()
  1503. for i = 1, #g do
  1504. if g[i].ClassName == "Part" then
  1505. g[i].Anchored = false
  1506. end
  1507. end
  1508. end
  1509. end
  1510. Humanoid.Changed:connect(function(Jump)
  1511. if Jump == "Jump" and Disable_Jump == true then
  1512. Humanoid.Jump = false
  1513. end
  1514. end)
  1515. local BOLT
  1516. local FF = IT("ForceField", Character)
  1517. FF.Visible = false
  1518. while true do
  1519. Swait()
  1520. if BOLT ~= nil then
  1521. BOLT:remove()
  1522. end
  1523. ANIMATE.Parent = nil
  1524. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1525. IDLEANIMATION:Play()
  1526. SINE = SINE + CHANGE
  1527. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1528. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1529. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1530. local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  1531. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1532. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1533. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1534. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1535. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1536. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1537. elseif ANIM ~= "Walk" or TORSOVELOCITY < 1 then
  1538. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1539. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1540. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1541. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1542. end
  1543. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1544. ANIM = "Jump"
  1545. if ATTACK == false then
  1546. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1547. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1548. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1549. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1550. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1551. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1552. end
  1553. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1554. ANIM = "Fall"
  1555. if ATTACK == false then
  1556. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1557. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1558. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(55), RAD(0), RAD(55)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1559. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1560. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1561. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1562. end
  1563. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1564. ANIM = "Idle"
  1565. if ATTACK == false then
  1566. 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)
  1567. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1568. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1569. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1570. 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)
  1571. 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)
  1572. end
  1573. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1574. ANIM = "Walk"
  1575. WALK = WALK + 1 / Animation_Speed
  1576. if WALK >= 15 - 5 * (Humanoid.WalkSpeed / 16 / Player_Size) then
  1577. WALK = 0
  1578. if WALKINGANIM == true then
  1579. WALKINGANIM = false
  1580. elseif WALKINGANIM == false then
  1581. WALKINGANIM = true
  1582. end
  1583. end
  1584. if ATTACK == false then
  1585. 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)
  1586. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1587. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1588. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1589. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1590. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1591. end
  1592. end
  1593. if #Effects2 > 0 then
  1594. for e = 1, #Effects2 do
  1595. if Effects2[e] ~= nil then
  1596. local Thing = Effects2[e]
  1597. if Thing ~= nil then
  1598. local Part = Thing[1]
  1599. local Mode = Thing[2]
  1600. local Delay = Thing[3]
  1601. local IncX = Thing[4]
  1602. local IncY = Thing[5]
  1603. local IncZ = Thing[6]
  1604. local Part2 = Thing[8]
  1605. if Thing[1].Transparency <= 1 then
  1606. if Thing[2] == "Block1" then
  1607. Thing[1].CFrame = Thing[1].CFrame
  1608. Mesh = Thing[1].Mesh
  1609. Mesh.Scale = Mesh.Scale + VT(Thing[4], Thing[5], Thing[6])
  1610. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1611. elseif Thing[2] == "Cylinder" then
  1612. Mesh = Thing[1].Mesh
  1613. Mesh.Scale = Mesh.Scale + VT(Thing[4], Thing[5], Thing[6])
  1614. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1615. elseif Thing[2] == "Blood" then
  1616. Mesh = Thing[7]
  1617. Thing[1].CFrame = Thing[1].CFrame * CF(0, 0.5, 0)
  1618. Mesh.Scale = Mesh.Scale + VT(Thing[4], Thing[5], Thing[6])
  1619. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1620. elseif Thing[2] == "Elec" then
  1621. Mesh = Thing[1].Mesh
  1622. Mesh.Scale = Mesh.Scale + VT(Thing[7], Thing[8], Thing[9])
  1623. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1624. elseif Thing[2] == "Disappear" then
  1625. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1626. end
  1627. else
  1628. Part.Parent = nil
  1629. table.remove(Effects2, e)
  1630. end
  1631. end
  1632. end
  1633. end
  1634. end
  1635. unanchor()
  1636. Humanoid.MaxHealth = "inf"
  1637. Humanoid.Health = "inf"
  1638. if Rooted == false then
  1639. Disable_Jump = false
  1640. Humanoid.WalkSpeed = Speed
  1641. elseif Rooted == true then
  1642. Disable_Jump = true
  1643. Humanoid.WalkSpeed = 0
  1644. end
  1645. if VALUE1 == true then
  1646. local RayData = Zap({
  1647. SegmentLength = 0.6,
  1648. Offset = 0.3,
  1649. Size = 0.05,
  1650. MaxRange = 1.5,
  1651. StartPosition = GunPoint.Position,
  1652. TargetPosition = RightArm.Position,
  1653. Character = workspace,
  1654. Color = "Teal",
  1655. Individual = true
  1656. })
  1657. BOLT = RayData.LightningModel
  1658. MagicSphere(VT(0.5, 0.5, 0.5), 15, GunPoint.CFrame, "Teal", VT(-0.03333333333333333, -0.03333333333333333, -0.03333333333333333))
  1659. SKILL1TEXT.TextTransparency = 0
  1660. SKILL2TEXT.TextTransparency = 0
  1661. SKILL3TEXT.TextTransparency = 0
  1662. SKILL4TEXT.TextTransparency = 0
  1663. SKILL5TEXT.TextTransparency = 0
  1664. elseif VALUE1 == false then
  1665. if ATTACK == false then
  1666. Intro()
  1667. end
  1668. SKILL1TEXT.TextTransparency = 1
  1669. SKILL2TEXT.TextTransparency = 1
  1670. SKILL3TEXT.TextTransparency = 1
  1671. SKILL4TEXT.TextTransparency = 1
  1672. SKILL5TEXT.TextTransparency = 1
  1673. end
  1674. local MATHS = {"0", "1"}
  1675. Humanoid.Name = MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)]
  1676. Humanoid.PlatformStand = false
  1677. local GAME = game.Players:GetChildren()
  1678. for PLAYER = 1, #GAME do
  1679. local PLAY = GAME[PLAYER]
  1680. if PLAY.Character ~= nil and Delete:FindFirstChild(PLAY.Name) then
  1681. PLAY.Character:remove()
  1682. end
  1683. end
  1684. end
Add Comment
Please, Sign In to add comment