Advertisement
com_ww

Ṫ̸͍̎Ȟ̷̰E̶̯͉͠ ̸̡̳͋̓N̶̲͌͒U̷̠̣̓T̶͕̙̓͗ ̴̭̐͆G̸̩̜̋͛U̷̗͋N̸̥͇̉͊

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