rcubed1003

Banisher Gun

Sep 12th, 2020 (edited)
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 74.91 KB | None | 0 0
  1. -- This script has convert to FE by who i don't know?
  2.  
  3. -----------------------------------------------------
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,game,owner = owner,game
  6. local RealPlayer = Player
  7. do
  8. print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
  9. local rp = RealPlayer
  10. script.Parent = rp.Character
  11.  
  12. --RemoteEvent for communicating
  13. local Event = Instance.new("RemoteEvent")
  14. Event.Name = "UserInput_Event"
  15.  
  16. --Fake event to make stuff like Mouse.KeyDown work
  17. local function fakeEvent()
  18. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  19. t.connect = t.Connect
  20. return t
  21. end
  22.  
  23. --Creating fake input objects with fake variables
  24. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  25. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  26. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  27. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  28. end}
  29. --Merged 2 functions into one by checking amount of arguments
  30. CAS.UnbindAction = CAS.BindAction
  31.  
  32. --This function will trigger the events that have been :Connect()'ed
  33. local function te(self,ev,...)
  34. local t = m[ev]
  35. if t and t._fakeEvent then
  36. for _,f in pairs(t.Functions) do
  37. f(...)
  38. end
  39. end
  40. end
  41. m.TrigEvent = te
  42. UIS.TrigEvent = te
  43.  
  44. Event.OnServerEvent:Connect(function(plr,io)
  45. if plr~=rp then return end
  46. m.Target = io.Target
  47. m.Hit = io.Hit
  48. if not io.isMouse then
  49. local b = io.UserInputState == Enum.UserInputState.Begin
  50. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  51. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67.  
  68. local Mouse = Player:GetMouse()
  69. local UIS = game:GetService("UserInputService")
  70. local input = function(io,a)
  71. if a then return end
  72. --Since InputObject is a client-side instance, we create and pass table instead
  73. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  74. end
  75. UIS.InputBegan:Connect(input)
  76. UIS.InputEnded:Connect(input)
  77.  
  78. local h,t
  79. --Give the server mouse data 30 times every second, but only if the values changed
  80. --If player is not moving their mouse, client won't fire events
  81. while wait(1/30) do
  82. if h~=Mouse.Hit or t~=Mouse.Target then
  83. h,t=Mouse.Hit,Mouse.Target
  84. Event:FireServer({isMouse=true,Target=t,Hit=h})
  85. end
  86. end]==],Player.Character)
  87.  
  88. ----Sandboxed game object that allows the usage of client-side methods and services
  89. --Real game object
  90. local _rg = game
  91.  
  92. --Metatable for fake service
  93. local fsmt = {
  94. __index = function(self,k)
  95. local s = rawget(self,"_RealService")
  96. if s then return s[k] end
  97. end,
  98. __newindex = function(self,k,v)
  99. local s = rawget(self,"_RealService")
  100. if s then s[k]=v end
  101. end,
  102. __call = function(self,...)
  103. local s = rawget(self,"_RealService")
  104. if s then return s(...) end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return self[s]
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. }
  123. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  124. g.service = g.GetService
  125.  
  126. g.RunService = FakeService({
  127. RenderStepped = _rg:GetService("RunService").Heartbeat,
  128. BindToRenderStep = function(self,name,_,fun)
  129.  
  130. end,
  131. UnbindFromRenderStep = function(self,name)
  132. self._btrs[name]:Disconnect()
  133. end,
  134. },"RunService")
  135.  
  136. setmetatable(g,{
  137. __index=function(self,s)
  138. return _rg:GetService(s) or typeof(_rg[s])=="function"
  139. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  140. end,
  141. __newindex = fsmt.__newindex,
  142. __call = fsmt.__call
  143. })
  144. --Changing owner to fake player object to support owner:GetMouse()
  145. game,owner = g,g.Players.LocalPlayer
  146. end
  147. m = game.Players.LocalPlayer
  148. char = m.Character
  149.  
  150. function Random(num)
  151. local section=num % 1 * 3;
  152. local secondary=0.5 * math.pi * (section % 1);
  153. if section < 1 then
  154. return 1,1 - math.cos(secondary),1 - math.sin(secondary);
  155. elseif section < 2 then
  156. return 1 - math.sin(secondary),1,1 - math.cos(secondary);
  157. else
  158. return 1 - math.cos(secondary),1 - math.sin(secondary),1;
  159. end
  160. end
  161.  
  162. --//====================================================\\--
  163. --|| CREATED BY SHACKLUSTER
  164. --\\====================================================//--
  165.  
  166. script:ClearAllChildren()
  167. wait(0.2)
  168.  
  169. Player = game:GetService("Players").LocalPlayer
  170. PlayerGui = Player.PlayerGui
  171. Cam = workspace.CurrentCamera
  172. Backpack = Player.Backpack
  173. Character = Player.Character
  174. Humanoid = Character.Humanoid
  175. RootPart = Character["HumanoidRootPart"]
  176. Torso = Character["Torso"]
  177. Head = Character["Head"]
  178. Mouse = Player:GetMouse()
  179. RightArm = Character["Right Arm"]
  180. LeftArm = Character["Left Arm"]
  181. RightLeg = Character["Right Leg"]
  182. LeftLeg = Character["Left Leg"]
  183. RootJoint = RootPart["RootJoint"]
  184. Neck = Torso["Neck"]
  185. RightShoulder = Torso["Right Shoulder"]
  186. LeftShoulder = Torso["Left Shoulder"]
  187. RightHip = Torso["Right Hip"]
  188. LeftHip = Torso["Left Hip"]
  189. local TIME = 0
  190. local sick = Instance.new("Sound",Torso)
  191.  
  192. IT = Instance.new
  193. CF = CFrame.new
  194. VT = Vector3.new
  195. RAD = math.rad
  196. C3 = Color3.new
  197. UD2 = UDim2.new
  198. BRICKC = BrickColor.new
  199. ANGLES = CFrame.Angles
  200. EULER = CFrame.fromEulerAnglesXYZ
  201. COS = math.cos
  202. ACOS = math.acos
  203. SIN = math.sin
  204. ASIN = math.asin
  205. ABS = math.abs
  206. MRANDOM = math.random
  207. FLOOR = math.floor
  208.  
  209. --//=================================\\
  210. --|| USEFUL VALUES
  211. --\\=================================//
  212.  
  213. Animation_Speed = 3
  214. local FORCERESET = false
  215. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  216. local Speed = 16
  217. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  218. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  219. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  220. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  221. local DAMAGEMULTIPLIER = 1
  222. local ANIM = "Idle"
  223. local ATTACK = false
  224. local EQUIPPED = false
  225. local Effects2 = {}
  226. local HOLD = false
  227. local COMBO = 1
  228. local Rooted = false
  229. local SINE = 0
  230. local KEYHOLD = false
  231. local CHANGE = 2 / Animation_Speed
  232. local WALKINGANIM = false
  233. local VALUE1 = false
  234. local LastBolt
  235. local LightningBolts = {}
  236. local GunPoint
  237. local VALUE2 = false
  238. local Player_Size = 1
  239. local ROBLOXIDLEANIMATION = IT("Animation")
  240. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  241. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  242. --ROBLOXIDLEANIMATION.Parent = Humanoid
  243. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  244. WEAPONGUI.Name = "BanishV3Gui"
  245. local Weapon = IT("Model")
  246. Weapon.Name = "Adds"
  247. local Effects = IT("Folder", Weapon)
  248. Effects.Name = "Effects"
  249. local Delete = IT("Model", Character)
  250. Delete.Name = "Those who must be banished."
  251. local ANIMATOR = Humanoid.Animator
  252. local ANIMATE = Character:FindFirstChild("Animate")
  253. local UNANCHOR = true
  254. local TOBANISH = {}
  255. local INSTANT = false
  256. local INTRO = false
  257. script.Parent = PlayerGui
  258. local sick = Instance.new("Sound",Character)
  259. sick.Parent = Torso
  260. sick.Playing = true
  261. sick.Looped = true
  262. sick.Volume = 1
  263. sick.Pitch = 1
  264. sick.TimePosition = 0
  265. sick.SoundId = "rbxassetid://1335404496"
  266.  
  267. --//=================================\\
  268. --\\=================================//
  269.  
  270.  
  271. --//=================================\\
  272. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  273. --\\=================================//
  274.  
  275. ArtificialHB = Instance.new("BindableEvent", script)
  276. ArtificialHB.Name = "ArtificialHB"
  277.  
  278. script:WaitForChild("ArtificialHB")
  279.  
  280. frame = Frame_Speed
  281. tf = 0
  282. allowframeloss = false
  283. tossremainder = false
  284. lastframe = tick()
  285. script.ArtificialHB:Fire()
  286.  
  287. game:GetService("RunService").Heartbeat:connect(function(s, p)
  288. tf = tf + s
  289. if tf >= frame then
  290. if allowframeloss then
  291. script.ArtificialHB:Fire()
  292. lastframe = tick()
  293. else
  294. for i = 1, math.floor(tf / frame) do
  295. script.ArtificialHB:Fire()
  296. end
  297. lastframe = tick()
  298. end
  299. if tossremainder then
  300. tf = 0
  301. else
  302. tf = tf - frame * math.floor(tf / frame)
  303. end
  304. end
  305. end)
  306.  
  307. --//=================================\\
  308. --\\=================================//
  309.  
  310. --//=================================\\
  311. --|| SOME FUNCTIONS
  312. --\\=================================//
  313.  
  314. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  315. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  316. end
  317.  
  318. function PositiveAngle(NUMBER)
  319. if NUMBER >= 0 then
  320. NUMBER = 0
  321. end
  322. return NUMBER
  323. end
  324.  
  325. function NegativeAngle(NUMBER)
  326. if NUMBER <= 0 then
  327. NUMBER = 0
  328. end
  329. return NUMBER
  330. end
  331.  
  332. function Swait(NUMBER)
  333. if NUMBER == 0 or NUMBER == nil then
  334. ArtificialHB.Event:wait()
  335. else
  336. for i = 1, NUMBER do
  337. ArtificialHB.Event:wait()
  338. end
  339. end
  340. end
  341.  
  342. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  343. local NEWMESH = IT(MESH)
  344. if MESH == "SpecialMesh" then
  345. NEWMESH.MeshType = MESHTYPE
  346. if MESHID ~= "nil" and MESHID ~= "" then
  347. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  348. end
  349. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  350. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  351. end
  352. end
  353. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  354. NEWMESH.Scale = SCALE
  355. NEWMESH.Parent = PARENT
  356. return NEWMESH
  357. end
  358.  
  359. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  360. local NEWPART = IT("Part")
  361. NEWPART.formFactor = FORMFACTOR
  362. NEWPART.Reflectance = REFLECTANCE
  363. NEWPART.Transparency = TRANSPARENCY
  364. NEWPART.CanCollide = false
  365. NEWPART.Locked = true
  366. NEWPART.Anchored = true
  367. if ANCHOR == false then
  368. NEWPART.Anchored = false
  369. end
  370. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  371. NEWPART.Name = NAME
  372. NEWPART.Size = SIZE
  373. NEWPART.Position = Torso.Position
  374. NEWPART.Material = MATERIAL
  375. NEWPART:BreakJoints()
  376. NEWPART.Parent = PARENT
  377. return NEWPART
  378. end
  379.  
  380. local function weldBetween(a, b)
  381. local weldd = Instance.new("ManualWeld")
  382. weldd.Part0 = a
  383. weldd.Part1 = b
  384. weldd.C0 = CFrame.new()
  385. weldd.C1 = b.CFrame:inverse() * a.CFrame
  386. weldd.Parent = a
  387. return weldd
  388. end
  389.  
  390.  
  391. function QuaternionFromCFrame(cf)
  392. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  393. local trace = m00 + m11 + m22
  394. if trace > 0 then
  395. local s = math.sqrt(1 + trace)
  396. local recip = 0.5 / s
  397. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  398. else
  399. local i = 0
  400. if m11 > m00 then
  401. i = 1
  402. end
  403. if m22 > (i == 0 and m00 or m11) then
  404. i = 2
  405. end
  406. if i == 0 then
  407. local s = math.sqrt(m00 - m11 - m22 + 1)
  408. local recip = 0.5 / s
  409. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  410. elseif i == 1 then
  411. local s = math.sqrt(m11 - m22 - m00 + 1)
  412. local recip = 0.5 / s
  413. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  414. elseif i == 2 then
  415. local s = math.sqrt(m22 - m00 - m11 + 1)
  416. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  417. end
  418. end
  419. end
  420.  
  421. function CastWarpOutlines(TARGET)
  422. coroutine.resume(coroutine.create(function()
  423. local T = TARGET:GetChildren()
  424. for i = 1, #T do
  425. local child = T[i]
  426. if child.ClassName == "Part" or child.ClassName == "MeshPart" then
  427. do
  428. local clone = child:Clone()
  429. clone.Parent = Effects
  430. clone.Anchored = true
  431. clone.CanCollide = false
  432. clone:ClearAllChildren()
  433. clone.CFrame = child.CFrame
  434. if clone.Name == "Head" then
  435. clone.Size = VT(clone.Size.Y, clone.Size.Y, clone.Size.Y)
  436. end
  437. if clone.ClassName == "MeshPart" then
  438. clone.TextureID = ""
  439. end
  440. clone.Color = C3(1, 0, 0)
  441. clone.Material = "Neon"
  442. coroutine.resume(coroutine.create(function()
  443. for i = 1, 100 do
  444. Swait()
  445. clone.Transparency = clone.Transparency + 0.01
  446. clone.Size = clone.Size + VT(0.001, 0.001, 0.001)
  447. end
  448. clone:remove()
  449. end))
  450. end
  451. end
  452. end
  453. end))
  454. end
  455. function killnearest(position, range, maxstrength)
  456. for i, v in ipairs(workspace:GetChildren()) do
  457. local body = v:GetChildren()
  458. for part = 1, #body do
  459. 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
  460. CastWarpOutlines(v)
  461. v:remove()
  462. if game.Players:FindFirstChild(v.Name) then
  463. local Value = IT("BoolValue", Delete)
  464. Value.Name = v.Name
  465. end
  466. end
  467. end
  468. end
  469. end
  470.  
  471. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  472. local xs, ys, zs = x + x, y + y, z + z
  473. local wx, wy, wz = w * xs, w * ys, w * zs
  474. local xx = x * xs
  475. local xy = x * ys
  476. local xz = x * zs
  477. local yy = y * ys
  478. local yz = y * zs
  479. local zz = z * zs
  480. 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))
  481. end
  482.  
  483. function QuaternionSlerp(a, b, t)
  484. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  485. local startInterp, finishInterp;
  486. if cosTheta >= 0.0001 then
  487. if (1 - cosTheta) > 0.0001 then
  488. local theta = ACOS(cosTheta)
  489. local invSinTheta = 1 / SIN(theta)
  490. startInterp = SIN((1 - t) * theta) * invSinTheta
  491. finishInterp = SIN(t * theta) * invSinTheta
  492. else
  493. startInterp = 1 - t
  494. finishInterp = t
  495. end
  496. else
  497. if (1 + cosTheta) > 0.0001 then
  498. local theta = ACOS(-cosTheta)
  499. local invSinTheta = 1 / SIN(theta)
  500. startInterp = SIN((t - 1) * theta) * invSinTheta
  501. finishInterp = SIN(t * theta) * invSinTheta
  502. else
  503. startInterp = t - 1
  504. finishInterp = t
  505. end
  506. end
  507. 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
  508. end
  509.  
  510. function Clerp(a, b, t)
  511. local qa = {QuaternionFromCFrame(a)}
  512. local qb = {QuaternionFromCFrame(b)}
  513. local ax, ay, az = a.x, a.y, a.z
  514. local bx, by, bz = b.x, b.y, b.z
  515. local _t = 1 - t
  516. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  517. end
  518.  
  519. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  520. local frame = IT("Frame")
  521. frame.BackgroundTransparency = TRANSPARENCY
  522. frame.BorderSizePixel = BORDERSIZEPIXEL
  523. frame.Position = POSITION
  524. frame.Size = SIZE
  525. frame.BackgroundColor3 = COLOR
  526. frame.BorderColor3 = BORDERCOLOR
  527. frame.Name = NAME
  528. frame.Parent = PARENT
  529. return frame
  530. end
  531.  
  532. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  533. local label = IT("TextLabel")
  534. label.BackgroundTransparency = 1
  535. label.Size = UD2(1, 0, 1, 0)
  536. label.Position = UD2(0, 0, 0, 0)
  537. label.TextColor3 = C3(1,0,0)
  538. label.TextStrokeTransparency = STROKETRANSPARENCY
  539. label.TextTransparency = TRANSPARENCY
  540. label.FontSize = TEXTFONTSIZE
  541. label.Font = TEXTFONT
  542. label.BorderSizePixel = BORDERSIZEPIXEL
  543. label.TextScaled = false
  544. label.Text = TEXT
  545. label.Name = NAME
  546. label.Parent = PARENT
  547. return label
  548. end
  549.  
  550. function NoOutlines(PART)
  551. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  552. end
  553.  
  554. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  555. local NEWWELD = IT(TYPE)
  556. NEWWELD.Part0 = PART0
  557. NEWWELD.Part1 = PART1
  558. NEWWELD.C0 = C0
  559. NEWWELD.C1 = C1
  560. NEWWELD.Parent = PARENT
  561. return NEWWELD
  562. end
  563.  
  564. local S = IT("Sound")
  565. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  566. local NEWSOUND = nil
  567. coroutine.resume(coroutine.create(function()
  568. NEWSOUND = S:Clone()
  569. NEWSOUND.Parent = PARENT
  570. NEWSOUND.Volume = VOLUME
  571. NEWSOUND.Pitch = PITCH
  572. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  573. NEWSOUND:play()
  574. if DOESLOOP == true then
  575. NEWSOUND.Looped = true
  576. else
  577. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  578. NEWSOUND:remove()
  579. end
  580. end))
  581. return NEWSOUND
  582. end
  583.  
  584. function CFrameFromTopBack(at, top, back)
  585. local right = top:Cross(back)
  586. 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)
  587. end
  588.  
  589. function CreateSpikeball(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  590. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  591. local mesh = IT("SpecialMesh", wave)
  592. mesh.MeshType = "FileMesh"
  593. mesh.MeshId = "http://www.roblox.com/asset/?id=9982590"
  594. mesh.Scale = SIZE
  595. mesh.Offset = VT(0, 0, -SIZE.X / 8)
  596. wave.CFrame = CFRAME
  597. coroutine.resume(coroutine.create(function(PART)
  598. for i = 1, WAIT do
  599. Swait()
  600. mesh.Scale = mesh.Scale + GROW
  601. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  602. if DOESROT == true then
  603. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  604. end
  605. wave.Transparency = wave.Transparency + 0.5 / WAIT
  606. if wave.Transparency > 0.99 then
  607. wave:remove()
  608. end
  609. end
  610. end))
  611. end
  612. function CreateSwirl(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  613. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  614. local mesh = IT("SpecialMesh", wave)
  615. mesh.MeshType = "FileMesh"
  616. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  617. mesh.Scale = SIZE
  618. wave.CFrame = CFRAME
  619. coroutine.resume(coroutine.create(function(PART)
  620. for i = 1, WAIT do
  621. Swait()
  622. mesh.Scale = mesh.Scale + GROW
  623. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  624. if DOESROT == true then
  625. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  626. end
  627. wave.Transparency = wave.Transparency + 0.5 / WAIT
  628. if wave.Transparency > 0.99 then
  629. wave:remove()
  630. end
  631. end
  632. end))
  633. end
  634. function CreateTornado(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
  635. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  636. local mesh = IT("SpecialMesh", wave)
  637. mesh.MeshType = "FileMesh"
  638. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  639. mesh.Scale = SIZE
  640. wave.CFrame = CFRAME
  641. coroutine.resume(coroutine.create(function(PART)
  642. for i = 1, WAIT do
  643. Swait()
  644. mesh.Scale = mesh.Scale + GROW
  645. if DOESROT == true then
  646. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  647. end
  648. wave.Transparency = wave.Transparency + 0.5 / WAIT
  649. if wave.Transparency > 0.99 then
  650. wave:remove()
  651. end
  652. end
  653. end))
  654. end
  655. function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
  656. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  657. local mesh = IT("SpecialMesh", wave)
  658. mesh.MeshType = "FileMesh"
  659. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  660. mesh.Scale = SIZE
  661. mesh.Offset = VT(0, 0, 0)
  662. wave.CFrame = CFRAME
  663. coroutine.resume(coroutine.create(function(PART)
  664. for i = 1, WAIT do
  665. Swait()
  666. mesh.Scale = mesh.Scale + GROW
  667. if DOESROT == true then
  668. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  669. end
  670. wave.Transparency = wave.Transparency + 0.5 / WAIT
  671. if wave.Transparency > 0.99 then
  672. wave:remove()
  673. end
  674. end
  675. end))
  676. end
  677. function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW)
  678. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  679. local mesh = IT("SpecialMesh", wave)
  680. mesh.MeshType = "Sphere"
  681. mesh.Scale = SIZE
  682. mesh.Offset = VT(0, 0, 0)
  683. wave.CFrame = CFRAME
  684. coroutine.resume(coroutine.create(function(PART)
  685. for i = 1, WAIT do
  686. Swait()
  687. mesh.Scale = mesh.Scale + GROW
  688. wave.Transparency = wave.Transparency + 1 / WAIT
  689. if wave.Transparency > 0.99 then
  690. wave:remove()
  691. end
  692. end
  693. end))
  694. end
  695. function MagicBlock(SIZE, WAIT, CFRAME, COLOR, GROW)
  696. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE, SIZE, SIZE), true)
  697. local mesh = IT("BlockMesh", wave)
  698. wave.CFrame = CFRAME
  699. coroutine.resume(coroutine.create(function(PART)
  700. for i = 1, WAIT do
  701. Swait()
  702. mesh.Scale = mesh.Scale + GROW
  703. wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360, 360)), RAD(math.random(-360, 360)), RAD(math.random(-360, 360)))
  704. wave.Transparency = wave.Transparency + 1 / WAIT
  705. if wave.Transparency > 0.99 then
  706. wave:remove()
  707. end
  708. end
  709. end))
  710. end
  711.  
  712. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  713. function WACKYEFFECT(Table)
  714. local TYPE = (Table.EffectType or "Sphere")
  715. local SIZE = (Table.Size or VT(1,1,1))
  716. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  717. local TRANSPARENCY = (Table.Transparency or 0)
  718. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  719. local CFRAME = (Table.CFrame or Torso.CFrame)
  720. local MOVEDIRECTION = (Table.MoveToPos or nil)
  721. local ROTATION1 = (Table.RotationX or 0)
  722. local ROTATION2 = (Table.RotationY or 0)
  723. local ROTATION3 = (Table.RotationZ or 0)
  724. local MATERIAL = (Table.Material or "Neon")
  725. local COLOR = (Table.Color or C3(1,1,1))
  726. local TIME = (Table.Time or 45)
  727. local SOUNDID = (Table.SoundID or nil)
  728. local SOUNDPITCH = (Table.SoundPitch or nil)
  729. local SOUNDVOLUME = (Table.SoundVolume or nil)
  730. coroutine.resume(coroutine.create(function()
  731. local PLAYSSOUND = false
  732. local SOUND = nil
  733. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  734. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  735. PLAYSSOUND = true
  736. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  737. end
  738. EFFECT.Color = COLOR
  739. local MSH = nil
  740. if TYPE == "Sphere" then
  741. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  742. elseif TYPE == "Block" then
  743. MSH = IT("BlockMesh",EFFECT)
  744. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  745. elseif TYPE == "Wave" then
  746. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  747. elseif TYPE == "Ring" then
  748. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  749. elseif TYPE == "Slash" then
  750. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  751. elseif TYPE == "Round Slash" then
  752. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  753. elseif TYPE == "Swirl" then
  754. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  755. elseif TYPE == "Skull" then
  756. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  757. elseif TYPE == "Crystal" then
  758. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  759. end
  760. if MSH ~= nil then
  761. local MOVESPEED = nil
  762. if MOVEDIRECTION ~= nil then
  763. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  764. end
  765. local GROWTH = SIZE - ENDSIZE
  766. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  767. if TYPE == "Block" then
  768. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  769. else
  770. EFFECT.CFrame = CFRAME
  771. end
  772. for LOOP = 1, TIME+1 do
  773. Swait()
  774. MSH.Scale = MSH.Scale - GROWTH/TIME
  775. if TYPE == "Wave" then
  776. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  777. end
  778. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  779. if TYPE == "Block" then
  780. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  781. else
  782. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  783. end
  784. if MOVEDIRECTION ~= nil then
  785. local ORI = EFFECT.Orientation
  786. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  787. EFFECT.Orientation = ORI
  788. end
  789. end
  790. if PLAYSSOUND == false then
  791. EFFECT:remove()
  792. else
  793. SOUND.Stopped:Connect(function()
  794. EFFECT:remove()
  795. end)
  796. end
  797. else
  798. if PLAYSSOUND == false then
  799. EFFECT:remove()
  800. else
  801. repeat Swait() until SOUND.Playing == false
  802. EFFECT:remove()
  803. end
  804. end
  805. end))
  806. end
  807.  
  808. function MakeForm(PART,TYPE)
  809. if TYPE == "Cyl" then
  810. local MSH = IT("CylinderMesh",PART)
  811. elseif TYPE == "Ball" then
  812. local MSH = IT("SpecialMesh",PART)
  813. MSH.MeshType = "Sphere"
  814. elseif TYPE == "Wedge" then
  815. local MSH = IT("SpecialMesh",PART)
  816. MSH.MeshType = "Wedge"
  817. end
  818. end
  819.  
  820. function SpawnTrail(FROM,TO,BIG)
  821. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  822. MakeForm(TRAIL,"Cyl")
  823. local DIST = (FROM - TO).Magnitude
  824. if BIG == true then
  825. TRAIL.Size = VT(0.5,DIST,0.5)
  826. else
  827. TRAIL.Size = VT(0.25,DIST,0.25)
  828. end
  829. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  830. coroutine.resume(coroutine.create(function()
  831. for i = 1, 5 do
  832. Swait()
  833. TRAIL.Transparency = TRAIL.Transparency + 0.1
  834. end
  835. TRAIL:remove()
  836. end))
  837. end
  838.  
  839. Debris = game:GetService("Debris")
  840.  
  841. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  842. local DIRECTION = CF(StartPos,EndPos).lookVector
  843. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  844. end
  845.  
  846. function turnto(position)
  847. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  848. end
  849.  
  850. function Zap(Table)
  851. local StartPos, TargetPos, Character, Color = Table.StartPosition, Table.TargetPosition, Table.Character, Table.Color
  852. local Duration = Table.Duration or 2
  853. local FadeRate = Table.FadeRate or 0.05
  854. local Offset = Table.Offset or 2
  855. local Individualize = Table.Individualize or false
  856. local MaxRange = Table.MaxRange or 200
  857. local SegmentLength = Table.SegmentLength or 5
  858. local TimeToFade = Table.TimeToFade or 0.5
  859. local Ignore = Table.Ignore or {}
  860. local SIZE = Table.Size or 0.3
  861. if not (StartPos and TargetPos) or not Character then
  862. return
  863. end
  864. local LightningModel = IT("Folder", Effects)
  865. LightningModel.Name = "ZAPP"
  866. for i, v in pairs({Character, LightningModel}) do
  867. table.insert(Ignore, v)
  868. end
  869. local LastPos = StartPos
  870. local Direction = CFrame.new(StartPos, TargetPos).lookVector
  871. local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Direction, MaxRange, Ignore, false)
  872. local RayLength = (StartPos - RayPos).Magnitude
  873. local Struck = false
  874. local TotalSegments = math.ceil(RayLength / SegmentLength)
  875. Direction = CFrame.new(StartPos, RayPos).lookVector
  876. local LightningBolt = IT("Model", Effects)
  877. LightningBolt.Name = "Lightning"
  878. if not Individualize then
  879. table.insert(LightningBolts, LightningBolt)
  880. end
  881. LastBolt = LightningBolt
  882. Debris:AddItem(LightningBolt, Duration)
  883. LightningBolt.Parent = LightningModel
  884. for i = 1, TotalSegments do
  885. if not Struck then
  886. local Entropy = Vector3.new(math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset)
  887. local NewPos = StartPos + Direction * (RayLength * (i / TotalSegments)) + Entropy
  888. local SegmentVec = NewPos - LastPos
  889. local RayHit, RayPos, RayNormal = CastZapRay(LastPos, SegmentVec.Unit, SegmentVec.Magnitude, {Character, LightningModel}, false)
  890. local RayVec = LastPos - RayPos
  891. local LightningPart = BaseLightning:Clone()
  892. LightningPart.BrickColor = BrickColor.new(Color)
  893. LightningPart.Size = Vector3.new(SIZE, SIZE, RayVec.Magnitude)
  894. LightningPart.CFrame = CFrame.new(LastPos, RayPos) * CFrame.new(0, 0, -(RayVec.Magnitude / 2))
  895. table.insert(Effects2, {
  896. LightningPart,
  897. "Disappear",
  898. 0.025,
  899. 1,
  900. 1,
  901. 1,
  902. 2
  903. })
  904. local CylinderMesh = IT("CylinderMesh", LightningPart)
  905. local OrigCF = LightningPart.CFrame
  906. LightningPart.Size = Vector3.new(LightningPart.Size.X, LightningPart.Size.Z, LightningPart.Size.Y)
  907. LightningPart.CFrame = OrigCF * CFrame.Angles(math.pi / 2, 0, 0)
  908. LightningPart.Parent = LightningBolt
  909. LastPos = NewPos
  910. end
  911. end
  912. return {
  913. RayHit = RayHit,
  914. RayPos = RayPos,
  915. RayNormal = RayNormal,
  916. LightningModel = LightningModel
  917. }
  918. end
  919. function turnto(position)
  920. RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0)
  921. end
  922.  
  923. --//=================================\\
  924. --|| WEAPON CREATION
  925. --\\=================================//
  926.  
  927. local Particle = IT("ParticleEmitter",nil)
  928. Particle.Enabled = false
  929. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  930. Particle.LightEmission = 0.5
  931. Particle.Rate = 150
  932. Particle.ZOffset = 0.2
  933. Particle.Rotation = NumberRange.new(-180, 180)
  934. Particle.RotSpeed = NumberRange.new(-180, 180)
  935. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  936. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  937.  
  938. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  939. function ParticleEmitter(Table)
  940. local PRTCL = Particle:Clone()
  941. local Speed = Table.Speed or 5
  942. local Drag = Table.Drag or 0
  943. local Size1 = Table.Size1 or 1
  944. local Size2 = Table.Size2 or 5
  945. local Lifetime1 = Table.Lifetime1 or 1
  946. local Lifetime2 = Table.Lifetime2 or 1.5
  947. local Parent = Table.Parent or Torso
  948. local Emit = Table.Emit or 100
  949. local Offset = Table.Offset or 360
  950. local Acel = Table.Acel or VT(0,0,0)
  951. local Enabled = Table.Enabled or false
  952. PRTCL.Parent = Parent
  953. PRTCL.Size = NumberSequence.new(Size1,Size2)
  954. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  955. PRTCL.Speed = NumberRange.new(Speed)
  956. PRTCL.VelocitySpread = Offset
  957. PRTCL.Drag = Drag
  958. PRTCL.Acceleration = Acel
  959. if Enabled == false then
  960. PRTCL:Emit(Emit)
  961. Debris:AddItem(PRTCL,Lifetime2)
  962. else
  963. PRTCL.Enabled = true
  964. end
  965. return PRTCL
  966. end
  967.  
  968. local Gun = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Gun", VT(0, 0, 0), false)
  969. local HandleMesh = CreateMesh("SpecialMesh", Gun, "FileMesh", "430198390", "430198451", VT(0.02, 0.02, 0.02), VT(0, 0, 0))
  970. local Weld = CreateWeldOrSnapOrMotor("Weld", Gun, RightArm, Gun, CF(0, -1.7, -0.2) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0))
  971. GunPoint = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really black", "Point blank", VT(0, 0, 0), false)
  972. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", GunPoint, RightArm, GunPoint, CF(0, -3.1, -0.8) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0))
  973.  
  974. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.1, 0.1, 0.1))
  975. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.05, 0.05, 0.05))
  976.  
  977. for _, c in pairs(Weapon:GetDescendants()) do
  978. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  979. c.Material = "Glass"
  980. c.Color = C3(0,0,0)
  981. elseif c.ClassName == "Part" and c.Name == "Eye" then
  982. c.Color = C3(1,0,0)
  983. c.Material = "Neon"
  984. end
  985. end
  986.  
  987. Weapon.Parent = Character
  988. for _, c in pairs(Weapon:GetChildren()) do
  989. if c.ClassName == "Part" then
  990. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  991. end
  992. end
  993.  
  994. Humanoid.Died:connect(function()
  995. ATTACK = true
  996. end)
  997.  
  998. function printbye(Name)
  999. local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
  1000. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1001. end
  1002.  
  1003. workspace.ChildAdded:connect(function(instance)
  1004. for BANISH = 1, #TOBANISH do
  1005. if TOBANISH[BANISH] ~= nil then
  1006. if instance.Name == TOBANISH[BANISH] then
  1007. coroutine.resume(coroutine.create(function()
  1008. printbye(instance.Name)
  1009. instance:ClearAllChildren()
  1010. Debris:AddItem(instance,0.0005)
  1011. end))
  1012. end
  1013. end
  1014. end
  1015. end)
  1016.  
  1017. --//=================================\\
  1018. --|| DAMAGING
  1019. --\\=================================//
  1020.  
  1021. function BulletDetection(FROM,TO,BRUTAL)
  1022. local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
  1023. coroutine.resume(coroutine.create(function()
  1024. if AIMHIT ~= nil then
  1025. if AIMHIT.Parent ~= Character then
  1026. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1027. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then
  1028. if BRUTAL == true then
  1029. Kill(AIMHIT.Parent)
  1030. else
  1031. getbloody(AIMHIT,15)
  1032. AIMHIT.Parent:BreakJoints()
  1033. if AIMHIT.Name == "Head" then
  1034. AIMHIT.Name = "HEADSHOT"
  1035. AIMHIT:remove()
  1036. end
  1037. end
  1038. else
  1039. if BRUTAL == true then
  1040. Kill(AIMHIT.Parent.Parent)
  1041. else
  1042. AIMHIT.Parent.Parent:BreakJoints()
  1043. end
  1044. end
  1045. end
  1046. end
  1047. end
  1048. end))
  1049. SpawnTrail(FROM,AIMPOS)
  1050. return AIMHIT,AIMPOS,NORMAL
  1051. end
  1052.  
  1053. function chatfunc(text, waitt)
  1054. local chat = coroutine.wrap(function()
  1055. if Character:FindFirstChild("TalkingBillBoard") ~= nil then
  1056. Character:FindFirstChild("TalkingBillBoard").Parent = nil
  1057. end
  1058. local naeeym2 = Instance.new("BillboardGui", Character)
  1059. naeeym2.Size = UDim2.new(0, 100, 0, 40)
  1060. naeeym2.StudsOffset = Vector3.new(0, 2, 0)
  1061. naeeym2.Adornee = Character.Head
  1062. naeeym2.Name = "TalkingBillBoard"
  1063. naeeym2.AlwaysOnTop = true
  1064. local tecks2 = Instance.new("TextLabel", naeeym2)
  1065. tecks2.BackgroundTransparency = 1
  1066. tecks2.BorderSizePixel = 0
  1067. tecks2.Text = ""
  1068. tecks2.Font = "Cartoon"
  1069. tecks2.TextSize = 30
  1070. tecks2.TextStrokeTransparency = 1
  1071. tecks2.TextColor3 = C3(1,0,0)
  1072. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  1073. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  1074. for i = 1, string.len(text) do
  1075. if naeeym2.Parent ~= nil then
  1076. CreateSound("418252437", Effects, 1, MRANDOM(9, 11) / 10)
  1077. end
  1078. tecks2.Text = string.sub(text, 1, i)
  1079. Swait(3)
  1080. end
  1081. wait(waitt / 10)
  1082. coroutine.resume(coroutine.create(function()
  1083. for i = 1, 10 do
  1084. tecks2.TextTransparency = tecks2.TextTransparency + 0.1
  1085. Swait()
  1086. end
  1087. naeeym2:Destroy()
  1088. end))
  1089. end)
  1090. chat()
  1091. end
  1092.  
  1093. function KillChildren(v)
  1094. v:BreakJoints()
  1095. for _, c in pairs(v:GetChildren()) do
  1096. if c.ClassName == "Part" or c.ClassName == "MesPart" then
  1097. if c.Transparency < 1 then
  1098. if c:FindFirstChildOfClass("Decal") then
  1099. c:FindFirstChildOfClass("Decal"):remove()
  1100. end
  1101. particles(c)
  1102. c.PE.Enabled = true
  1103. c.Parent = Effects
  1104. c.CanCollide = false
  1105. c.Material = "Neon"
  1106. c.Color = C3(1,0,0)
  1107. c.Transparency = 0.5
  1108. local grav = Instance.new("BodyPosition",c)
  1109. grav.P = 20000
  1110. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1111. grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))
  1112. grav.Name = "GravityForce"
  1113. coroutine.resume(coroutine.create(function()
  1114. for i = 1, 50 do
  1115. Swait()
  1116. c.Transparency = c.Transparency + 0.01
  1117. end
  1118. c.PE.Enabled = false
  1119. Debris:AddItem(c,2)
  1120. end))
  1121. end
  1122. end
  1123. end
  1124. end
  1125.  
  1126. local PE=Instance.new("ParticleEmitter",art)
  1127. PE.LightEmission=.8
  1128. PE.Color = ColorSequence.new(BRICKC("Really red").Color)
  1129. PE.Lifetime=NumberRange.new(0.35,1.5)
  1130. PE.Rotation=NumberRange.new(0,360)
  1131. PE.Rate=999
  1132. PE.VelocitySpread = 10000
  1133. PE.Acceleration = Vector3.new(0,0,0)
  1134. PE.Drag = 5
  1135. PE.Speed = NumberRange.new(0,0,0)
  1136. PE.Texture="http://www.roblox.com/asset/?id=833874434"
  1137. PE.ZOffset = -1.5
  1138. PE.Name = "PE"
  1139. PE.Enabled = false
  1140.  
  1141.  
  1142. function particles(art)
  1143. local PARTICLES = PE:Clone()
  1144. PARTICLES.Parent = art
  1145. end
  1146.  
  1147. function killnearest(position,range)
  1148. for i,v in ipairs(workspace:GetChildren()) do
  1149. local body = v:GetChildren()
  1150. for part = 1, #body do
  1151. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1152. if(body[part].Position - position).Magnitude < range then
  1153. if v.ClassName == "Model" then
  1154. KillChildren(v)
  1155. end
  1156. end
  1157. end
  1158. end
  1159. end
  1160. end
  1161.  
  1162. function Kill(Char)
  1163. local NewCharacter = IT("Model",Effects)
  1164. NewCharacter.Name = "Ow im ded ;-;"
  1165. for _, c in pairs(Char:GetDescendants()) do
  1166. if c:IsA("BasePart") and c.Transparency == 0 then
  1167. if c.Parent == Char then
  1168. end
  1169. c:BreakJoints()
  1170. c.Material = "Neon"
  1171. c.Color = C3(1,1,1)
  1172. c.CanCollide = true
  1173. c.Transparency = 0.3
  1174. if c:FindFirstChildOfClass("SpecialMesh") then
  1175. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1176. end
  1177. if c.Name == "Head" then
  1178. c:ClearAllChildren()
  1179. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1180. end
  1181. if c.ClassName == "MeshPart" then
  1182. c.TextureID = ""
  1183. end
  1184. if c:FindFirstChildOfClass("BodyPosition") then
  1185. c:FindFirstChildOfClass("BodyPosition"):remove()
  1186. end
  1187. if c:FindFirstChildOfClass("ParticleEmitter") then
  1188. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1189. end
  1190. c.Parent = NewCharacter
  1191. c.Name = "DeadPart"
  1192. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1193. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1194. end
  1195. end
  1196. Char:remove()
  1197. Debris:AddItem(NewCharacter,5)
  1198. end
  1199.  
  1200.  
  1201. function Banish(Foe)
  1202. if Foe then
  1203. coroutine.resume(coroutine.create(function()
  1204. --if game.Players:FindFirstChild(Foe.Name) then
  1205. table.insert(TOBANISH,Foe.Name)
  1206. printbye(Foe.Name)
  1207. --end
  1208. Foe.Archivable = true
  1209. local CLONE = Foe:Clone()
  1210. Foe:Destroy()
  1211. CLONE.Parent = Effects
  1212. CLONE:BreakJoints()
  1213. local MATERIALS = {"Glass","Neon"}
  1214. for _, c in pairs(CLONE:GetDescendants()) do
  1215. if c:IsA("BasePart") then
  1216. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1217. CreateSound(340722848, c, 10, 1, false)
  1218. end
  1219. c.Anchored = true
  1220. c.Transparency = c.Transparency + 0.2
  1221. c.Material = MATERIALS[MRANDOM(1,2)]
  1222. c.Color = C3(1,0,0)
  1223. if c.ClassName == "MeshPart" then
  1224. c.TextureID = ""
  1225. end
  1226. if c:FindFirstChildOfClass("SpecialMesh") then
  1227. c:FindFirstChildOfClass("SpecialMesh").TextureId = "2476057140"
  1228. end
  1229. if c:FindFirstChildOfClass("Decal") then
  1230. c:FindFirstChildOfClass("Decal"):remove()
  1231. end
  1232. c.Name = "Banished"
  1233. c.CanCollide = false
  1234. else
  1235. c:remove()
  1236. end
  1237. end
  1238. local A = false
  1239. for i = 1, 35 do
  1240. if A == false then
  1241. A = true
  1242. elseif A == true then
  1243. A = false
  1244. end
  1245. for _, c in pairs(CLONE:GetDescendants()) do
  1246. if c:IsA("BasePart") then
  1247. c.Anchored = true
  1248. c.Material = MATERIALS[MRANDOM(1,2)]
  1249. c.Transparency = c.Transparency + 0.8/35
  1250. if A == false then
  1251. c.CFrame = c.CFrame*CF(MRANDOM(-1,1)/45,MRANDOM(-1,1)/45,MRANDOM(-1,1)/45)
  1252. elseif A == true then
  1253. c.CFrame = c.CFrame*CF(MRANDOM(-1,1)/45,MRANDOM(-1,1)/45,MRANDOM(-1,1)/45)
  1254. end
  1255. end
  1256. end
  1257. Swait()
  1258. end
  1259. CLONE:remove()
  1260. end))
  1261. end
  1262. end
  1263.  
  1264. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1265. local CHILDREN = workspace:GetDescendants()
  1266. for index, CHILD in pairs(CHILDREN) do
  1267. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1268. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1269. if HUM then
  1270. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1271. if TORSO then
  1272. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1273. if ISBANISH == true then
  1274. Banish(CHILD)
  1275. else
  1276. if ISBANISH == "Gravity" then
  1277. HUM.PlatformStand = true
  1278. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1279. local grav = Instance.new("BodyPosition",TORSO)
  1280. grav.D = 15
  1281. grav.P = 20000
  1282. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1283. grav.position = TORSO.Position
  1284. grav.Name = "V3BanishForce"..Player.Name
  1285. else
  1286. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0,0)
  1287. TORSO.RotVelocity = VT(MRANDOM(-1,1),MRANDOM(-1,1),MRANDOM(-1,1))
  1288. end
  1289. else
  1290. HUM.PlatformStand = false
  1291. end
  1292. end
  1293. elseif ISBANISH == "Gravity" then
  1294. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1295. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1296. HUM.PlatformStand = false
  1297. end
  1298. end
  1299. end
  1300. end
  1301. end
  1302. end
  1303. end
  1304.  
  1305. --//=================================\\
  1306. --|| ATTACK FUNCTIONS AND STUFF
  1307. --\\=================================//
  1308.  
  1309.  
  1310. function Intro()
  1311. ATTACK = true
  1312. Rooted = true
  1313. for i = 0, 0.5, 0.1 / Animation_Speed do
  1314. Swait()
  1315. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 4 / Animation_Speed)
  1316. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 4 / Animation_Speed)
  1317. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 4 / Animation_Speed)
  1318. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 4 / Animation_Speed)
  1319. 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)), 4 / Animation_Speed)
  1320. 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)), 4 / Animation_Speed)
  1321. end
  1322. for i = 0, 0.5, 0.1 / Animation_Speed do
  1323. Swait()
  1324. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 4 / Animation_Speed)
  1325. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 4 / Animation_Speed)
  1326. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 4 / Animation_Speed)
  1327. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-30)) * LEFTSHOULDERC0, 4 / Animation_Speed)
  1328. 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)), 4 / Animation_Speed)
  1329. 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)), 4 / Animation_Speed)
  1330. end
  1331. for i = 0, 0.5, 0.1 / Animation_Speed do
  1332. Swait()
  1333. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 4 / Animation_Speed)
  1334. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 4 / Animation_Speed)
  1335. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 4 / Animation_Speed)
  1336. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 4 / Animation_Speed)
  1337. 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)), 4 / Animation_Speed)
  1338. 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)), 4 / Animation_Speed)
  1339. end
  1340. for i = 0, 0.5, 0.1 / Animation_Speed do
  1341. Swait()
  1342. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 4 / Animation_Speed)
  1343. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 4 / Animation_Speed)
  1344. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(70)) * RIGHTSHOULDERC0, 4 / Animation_Speed)
  1345. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-70)) * LEFTSHOULDERC0, 4 / Animation_Speed)
  1346. 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)), 4 / Animation_Speed)
  1347. 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)), 4 / Animation_Speed)
  1348. end
  1349. for i = 0, 0.5, 0.1 / Animation_Speed do
  1350. Swait()
  1351. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 4 / Animation_Speed)
  1352. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 4 / Animation_Speed)
  1353. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 4 / Animation_Speed)
  1354. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 4 / Animation_Speed)
  1355. 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)), 4 / Animation_Speed)
  1356. 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)), 4 / Animation_Speed)
  1357. end
  1358. for i = 0, 0.5, 0.1 / Animation_Speed do
  1359. Swait()
  1360. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 4 / Animation_Speed)
  1361. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 4 / Animation_Speed)
  1362. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 4 / Animation_Speed)
  1363. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 4 / Animation_Speed)
  1364. 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)), 4 / Animation_Speed)
  1365. 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)), 4 / Animation_Speed)
  1366. end
  1367. local Gun = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Gun", VT(0, 0, 0), false)
  1368. local HandleMesh = CreateMesh("SpecialMesh", Gun, "FileMesh", "430198390", "430198451", VT(0.02, 0.02, 0.02), VT(0, 0, 0))
  1369. local Weld = CreateWeldOrSnapOrMotor("Weld", Gun, RightArm, Gun, CF(0, -1.7, -0.2) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0))
  1370. GunPoint = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really black", "Point blank", VT(0, 0, 0), false)
  1371. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", GunPoint, RightArm, GunPoint, CF(0, -3.1, -0.8) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0))
  1372.  
  1373. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.1, 0.1, 0.1))
  1374. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.05, 0.05, 0.05))
  1375. TRANSFORMED = true
  1376. ATTACK = false
  1377. Rooted = false
  1378. end
  1379.  
  1380. function BanishingBullet()
  1381. ATTACK = true
  1382. Rooted = false
  1383. repeat
  1384. for i = 0, 0.3, 0.1 / Animation_Speed do
  1385. Swait()
  1386. turnto(Mouse.Hit.p)
  1387. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15 - 3.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.6 / Animation_Speed)
  1388. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 - 0.1 * COS(SINE / 12) + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.6 / Animation_Speed)
  1389. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(70 - 3.5 * SIN(SINE / 12)), RAD(0 - 3.5 * SIN(SINE / 12)), RAD(0)) * RIGHTSHOULDERC0, 0.6 / Animation_Speed)
  1390. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25 - 3.5 * SIN(SINE / 12)), RAD(0 - 3.5 * SIN(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, 0.6 / Animation_Speed)
  1391. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15 - 3.5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 0.6 / Animation_Speed)
  1392. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15 - 3.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 0.6 / Animation_Speed)
  1393. end
  1394. CreateSound("238353911", GunPoint, 10, MRANDOM(9, 11) / 10)
  1395. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.1, 0.1, 0.1))
  1396. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.05, 0.05, 0.05))
  1397. local RayHit, Way = CastProperRay(GunPoint.Position, Mouse.Hit.p, 1500, Character)
  1398. local distance = (GunPoint.Position - Way).magnitude
  1399. local HIT,POS = CastProperRay(GunPoint.Position, Mouse.Hit.p, 1000, Character)
  1400. SpawnTrail(GunPoint.Position,POS)
  1401. if HIT ~= nil then
  1402. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1403. Banish(HIT.Parent)
  1404. end
  1405. end
  1406. for i = 1, 5 do
  1407. local laser = Instance.new("Part", Effects)
  1408. laser.Transparency = 0
  1409. laser.CanCollide = false
  1410. laser.Anchored = true
  1411. laser.Color = C3(1, 0, 0)
  1412. laser.Material = "Neon"
  1413. laser.formFactor = Enum.FormFactor.Custom
  1414. laser.Size = Vector3.new(0.15, 0.15, distance)
  1415. laser.CFrame = CFrame.new(GunPoint.Position, Way) * CFrame.new(0, 0, -distance / 2)
  1416. MagicSphere(VT(0.1, 0.1, 0.1), 45, CF(Way), "Really red", VT(0.05, 0.05, 0.05))
  1417. for i = 1, 5 do
  1418. MagicSphere(VT(0.2, 0.2, 1), 65, CF(CF(Way) * CF(MRANDOM(-1, 1), MRANDOM(-1, 1), MRANDOM(-1, 1)).p, Way), "Really red", VT(0.001, 0.001, 0), 0.5)
  1419. end
  1420. table.insert(Effects2, {
  1421. laser,
  1422. "Disappear",
  1423. 0.1,
  1424. 1,
  1425. 1,
  1426. 1,
  1427. 2
  1428. })
  1429. if RayHit ~= nil then
  1430. local v = RayHit.Parent
  1431. if v ~= nil and v.ClassName == "Model" then
  1432. CastWarpOutlines(v)
  1433. v.Parent = nil
  1434. if game.Players:FindFirstChild(v.Name) then
  1435. local Value = IT("BoolValue", Delete)
  1436. Value.Name = v.Name
  1437. end
  1438. end
  1439. end
  1440. end
  1441. for i = 0, 0.4, 0.1 / Animation_Speed do
  1442. Swait()
  1443. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15 - 3.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.6 / Animation_Speed)
  1444. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 - 0.1 * COS(SINE / 12) + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.6 / Animation_Speed)
  1445. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(90 - 3.5 * SIN(SINE / 12)), RAD(0 - 3.5 * SIN(SINE / 12)), RAD(0)) * RIGHTSHOULDERC0, 0.6 / Animation_Speed)
  1446. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25 - 3.5 * SIN(SINE / 12)), RAD(0 - 3.5 * SIN(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, 0.6 / Animation_Speed)
  1447. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15 - 3.5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 0.6 / Animation_Speed)
  1448. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15 - 3.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 0.6 / Animation_Speed)
  1449. end
  1450. until KEYHOLD == false
  1451. ATTACK = false
  1452. Rooted = false
  1453. end
  1454.  
  1455.  
  1456. function AttackTemplate()
  1457. ATTACK = true
  1458. Rooted = false
  1459. for i=0, 1, 0.1 / Animation_Speed do
  1460. Swait()
  1461. 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)
  1462. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1463. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1464. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1465. 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)
  1466. 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)
  1467. end
  1468. ATTACK = false
  1469. Rooted = false
  1470. end
  1471.  
  1472. function Taunt2()
  1473. ATTACK = true
  1474. Rooted = false
  1475. for i=0, 2, 0.1 / Animation_Speed do
  1476. Swait()
  1477. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1478. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed)
  1479. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1480. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1481. 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)), 1 / Animation_Speed)
  1482. 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)), 1 / Animation_Speed)
  1483. end
  1484. CreateSound(300208779, Head, 5, 1, false)
  1485. for i=0, 4, 0.1 / Animation_Speed do
  1486. Swait()
  1487. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 - 0.1 * COS(SINE / 3) + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(7 * COS(SINE / 24)), RAD(0)), 0.5 / Animation_Speed)
  1488. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, - 0.1 * COS(SINE / 3)) * ANGLES(RAD(-21), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1489. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, - 0.1 * COS(SINE / 3)) * ANGLES(RAD(-21), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1490. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 4)) * ANGLES(RAD(-32), RAD(0), RAD(0)), 1 / Animation_Speed)
  1491. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 4), -0.01) * ANGLES(RAD(-32), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1492. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 4), -0.01) * ANGLES(RAD(-32), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1493. end
  1494. WACKYEFFECT({Time = 180, EffectType = "Block", Size = VT(4,4,4), Size2 = VT(0,0,0), Transparency = 0.7, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,3,0) * ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(MRANDOM(25,255)/255,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1495. WACKYEFFECT({Time = 180, EffectType = "Block", Size = VT(4,4,4), Size2 = VT(0,0,0), Transparency = 0.7, Transparency2 = 1, CFrame = RootPart.CFrame*CF(1.2,3,0) * ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(MRANDOM(25,255)/255,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1496. WACKYEFFECT({Time = 180, EffectType = "Block", Size = VT(4,4,4), Size2 = VT(0,0,0), Transparency = 0.7, Transparency2 = 1, CFrame = RootPart.CFrame*CF(-1.2,3,0) * ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(MRANDOM(25,255)/255,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1497. for i=0, 4, 0.1 / Animation_Speed do
  1498. Swait()
  1499. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1500. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.1) * ANGLES(RAD(-21), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1501. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0.1) * ANGLES(RAD(-21), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1502. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2) * ANGLES(RAD(-32), RAD(0), RAD(0)), 1 / Animation_Speed)
  1503. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0.01) * ANGLES(RAD(-32), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1504. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-32), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1505. end
  1506. killnearest(RootPart.Position, 55, 55)
  1507. WACKYEFFECT({Time = 80, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(150,1,150), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,-5), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = "444667859" , SoundPitch = 1.2, SoundVolume = 4})
  1508. WACKYEFFECT({Time = 80, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(150,150,150), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,1), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = "444667859" , SoundPitch = 1.2, SoundVolume = 4})
  1509. ATTACK = false
  1510. Rooted = false
  1511. end
  1512.  
  1513. function Taunt()
  1514. ATTACK = true
  1515. Rooted = false
  1516. for i=0, 2, 0.1 / Animation_Speed do
  1517. Swait()
  1518. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1519. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed)
  1520. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1521. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1522. 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)), 1 / Animation_Speed)
  1523. 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)), 1 / Animation_Speed)
  1524. end
  1525. CreateSound(300208779, Head, 5, 1, false)
  1526. for i=0, 4, 0.1 / Animation_Speed do
  1527. Swait()
  1528. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 - 0.1 * COS(SINE / 3) + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(7 * COS(SINE / 24)), RAD(0)), 0.5 / Animation_Speed)
  1529. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, - 0.1 * COS(SINE / 3)) * ANGLES(RAD(-21), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1530. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, - 0.1 * COS(SINE / 3)) * ANGLES(RAD(-21), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1531. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 4)) * ANGLES(RAD(-32), RAD(0), RAD(0)), 1 / Animation_Speed)
  1532. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 4), -0.01) * ANGLES(RAD(-32), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1533. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 4), -0.01) * ANGLES(RAD(-32), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1534. end
  1535. ATTACK = false
  1536. Rooted = false
  1537. end
  1538.  
  1539. function BanishingRampage()
  1540. ATTACK = true
  1541. Rooted = false
  1542. chatfunc("BE GONE...", 3)
  1543. for i = 0, 2, 0.1 / Animation_Speed do
  1544. Swait()
  1545. turnto(Mouse.Hit.p)
  1546. MagicBlock(0.1,58,GunPoint.CFrame*CF(MRANDOM(-20,20)/100,0,MRANDOM(-20,20)/100),"Really red",VT(0.1,0.3,0.1))
  1547. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
  1548. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1549. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(90), RAD(0), RAD(32)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1550. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-25), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1551. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-35)), 0.5 / Animation_Speed)
  1552. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(5)), 0.5 / Animation_Speed)
  1553. end
  1554. local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  1555. repeat
  1556. Swait()
  1557. HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  1558. until HITFLOOR ~= nil
  1559. CreateSound("238353911", GunPoint, 10, MRANDOM(9, 11) / 10)
  1560. local SOUND = CreateSound("415700134", Effects, 10, 1.6)
  1561. CreateSound("138677306", Effects, 7, 1.2)
  1562. coroutine.resume(coroutine.create(function()
  1563. local CFRAME = RootPart.CFrame * CF(0, -1.2, -3)
  1564. local SIZE = 1
  1565. while true do
  1566. Swait()
  1567. for i = 1, 2 do
  1568. 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 red", VT(0.001, 0.001, 0), 0.5)
  1569. end
  1570. do
  1571. local Part = CreatePart(3, Effects, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(SIZE / 5, SIZE / 5, SIZE / 5))
  1572. Part.CFrame = CFRAME * CF(SIZE / 1.5, -0.7, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  1573. coroutine.resume(coroutine.create(function()
  1574. Swait(200)
  1575. Part.Anchored = false
  1576. end))
  1577. local Part = CreatePart(3, Effects, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(SIZE / 5, SIZE / 5, SIZE / 5))
  1578. Part.CFrame = CFRAME * CF(-SIZE / 1.5, -0.7, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  1579. coroutine.resume(coroutine.create(function()
  1580. Swait(200)
  1581. Part.Anchored = false
  1582. end))
  1583. MagicSphere(VT(SIZE, SIZE, SIZE), 75, CFRAME, "Really red", VT(-SIZE / 75, -SIZE / 75, -SIZE / 75))
  1584. killnearest(CFRAME.p, SIZE, 0)
  1585. SIZE = SIZE + 2
  1586. CFRAME = CFRAME * CF(0, 0, -2)
  1587. if SOUND.Playing == false then
  1588. break
  1589. end
  1590. end
  1591. end
  1592. end))
  1593. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.1, 0.1, 0.1))
  1594. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.05, 0.05, 0.05))
  1595. for i = 0, 3, 0.1 / Animation_Speed do
  1596. Swait()
  1597. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(45)), 4 / Animation_Speed)
  1598. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(10), RAD(0), RAD(-45)), 4 / Animation_Speed)
  1599. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 4 / Animation_Speed)
  1600. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 4 / Animation_Speed)
  1601. 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)), 4 / Animation_Speed)
  1602. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 4 / Animation_Speed)
  1603. end
  1604. ATTACK = false
  1605. Rooted = false
  1606. end
  1607.  
  1608. --//=================================\\
  1609. --|| ASSIGN THINGS TO KEYS
  1610. --\\=================================//
  1611.  
  1612. function MouseDown(Mouse)
  1613. if ATTACK == false then
  1614. end
  1615. end
  1616.  
  1617. function MouseUp(Mouse)
  1618. HOLD = false
  1619. end
  1620.  
  1621. function KeyDown(Key)
  1622. KEYHOLD = true
  1623. if Key == "z" and ATTACK == false then
  1624. BanishingBullet()
  1625. end
  1626.  
  1627. if Key == "t" and ATTACK == false then
  1628. Taunt()
  1629. end
  1630.  
  1631. if Key == "c" and ATTACK == false then
  1632. BanishingRampage()
  1633. end
  1634.  
  1635. if Key == "x" and ATTACK == false then
  1636. chatfunc("Yea Boi!", 2)
  1637. Delete:ClearAllChildren()
  1638. TOBANISH = {}
  1639. end
  1640.  
  1641. if Key == "x" and ATTACK == false then
  1642. Taunt2()
  1643. end
  1644. end
  1645.  
  1646. function KeyUp(Key)
  1647. KEYHOLD = false
  1648. end
  1649.  
  1650. Mouse.Button1Down:connect(function(NEWKEY)
  1651. MouseDown(NEWKEY)
  1652. end)
  1653. Mouse.Button1Up:connect(function(NEWKEY)
  1654. MouseUp(NEWKEY)
  1655. end)
  1656. Mouse.KeyDown:connect(function(NEWKEY)
  1657. KeyDown(NEWKEY)
  1658. end)
  1659. Mouse.KeyUp:connect(function(NEWKEY)
  1660. KeyUp(NEWKEY)
  1661. end)
  1662.  
  1663. --//=================================\\
  1664. --\\=================================//
  1665.  
  1666.  
  1667. function unanchor()
  1668. if UNANCHOR == true then
  1669. g = Character:GetChildren()
  1670. for i = 1, #g do
  1671. if g[i].ClassName == "Part" then
  1672. g[i].Anchored = false
  1673. end
  1674. end
  1675. end
  1676. end
  1677.  
  1678.  
  1679. --//=================================\\
  1680. --|| WRAP THE WHOLE SCRIPT UP
  1681. --\\=================================//
  1682.  
  1683. Humanoid.Changed:connect(function(Jump)
  1684. if Jump == "Jump" and (Disable_Jump == true) then
  1685. Humanoid.Jump = false
  1686. end
  1687. end)
  1688.  
  1689. local CONNECT = nil
  1690.  
  1691. while true do
  1692. Swait()
  1693. ANIMATE.Parent = nil
  1694. if Character:FindFirstChildOfClass("Humanoid") == nil then
  1695. Humanoid = IT("Humanoid",Character)
  1696. end
  1697. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1698. v:Stop();
  1699. end
  1700. SINE = SINE + CHANGE
  1701. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1702. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1703. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1704. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1705. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1706. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1707. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1708. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1709. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1710. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1711. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1712. 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)
  1713. 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)
  1714. 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)
  1715. end
  1716. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1717. ANIM = "Jump"
  1718. if ATTACK == false then
  1719. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1720. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1721. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1722. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1723. 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)
  1724. 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)
  1725. end
  1726. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1727. ANIM = "Fall"
  1728. if ATTACK == false then
  1729. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1730. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1731. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1732. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1733. 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)
  1734. 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)
  1735. end
  1736. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1737. ANIM = "Idle"
  1738. if ATTACK == false then
  1739. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 - 0.15 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1740. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 - 0.1 * COS(SINE / 12) + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(10 * COS(SINE / 12)), RAD(0)), 0.15 / Animation_Speed)
  1741. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.2, 0.5 - 0.15 * COS(SINE / 12), -0.4) * ANGLES(RAD(50 - 10.5 * SIN(SINE / 12)), RAD(0 - 3.5 * SIN(SINE / 12)), RAD(-36)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1742. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(180 - 3.5 * SIN(SINE / 12)), RAD(0 - 8.5 * SIN(SINE / 12)), RAD(20 + 8.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1743. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1744. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1745. end
  1746. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1747. ANIM = "Walk"
  1748. if ATTACK == false then
  1749. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.05) * ANGLES(RAD(5), RAD(0), RAD(-15-7 * COS(SINE / (WALKSPEEDVALUE)))), 0.15 / Animation_Speed)
  1750. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(15+7 * COS(SINE / (WALKSPEEDVALUE)))), 0.15 / Animation_Speed)
  1751. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0 - 3.5 * SIN(SINE / 12)), RAD(0 - 3.5 * SIN(SINE / 12)), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1752. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(3 - 3.5 * SIN(SINE / 12)), RAD(0), RAD(-25 - 6 * SIN(SINE / 12))) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1753. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1754. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1755. end
  1756. end
  1757. unanchor()
  1758. Humanoid.MaxHealth = "inf"
  1759. Humanoid.Health = "inf"
  1760. if Rooted == false then
  1761. Disable_Jump = false
  1762. Humanoid.WalkSpeed = Speed
  1763. elseif Rooted == true then
  1764. Disable_Jump = true
  1765. Humanoid.WalkSpeed = 0
  1766. end
  1767. if #Effects2 > 0 then
  1768. for e = 1, #Effects2 do
  1769. if Effects2[e] ~= nil then
  1770. local Thing = Effects2[e]
  1771. if Thing ~= nil then
  1772. local Part = Thing[1]
  1773. local Mode = Thing[2]
  1774. local Delay = Thing[3]
  1775. local IncX = Thing[4]
  1776. local IncY = Thing[5]
  1777. local IncZ = Thing[6]
  1778. local Part2 = Thing[8]
  1779. if Thing[1].Transparency <= 1 then
  1780. if Thing[2] == "Block1" then
  1781. Thing[1].CFrame = Thing[1].CFrame
  1782. Mesh = Thing[1].Mesh
  1783. Mesh.Scale = Mesh.Scale + VT(Thing[4], Thing[5], Thing[6])
  1784. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1785. elseif Thing[2] == "Cylinder" then
  1786. Mesh = Thing[1].Mesh
  1787. Mesh.Scale = Mesh.Scale + VT(Thing[4], Thing[5], Thing[6])
  1788. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1789. elseif Thing[2] == "Blood" then
  1790. Mesh = Thing[7]
  1791. Thing[1].CFrame = Thing[1].CFrame * CF(0, 0.5, 0)
  1792. Mesh.Scale = Mesh.Scale + VT(Thing[4], Thing[5], Thing[6])
  1793. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1794. elseif Thing[2] == "Elec" then
  1795. Mesh = Thing[1].Mesh
  1796. Mesh.Scale = Mesh.Scale + VT(Thing[7], Thing[8], Thing[9])
  1797. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1798. elseif Thing[2] == "Disappear" then
  1799. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1800. end
  1801. else
  1802. Part.Parent = nil
  1803. table.remove(Effects2, e)
  1804. end
  1805. end
  1806. end
  1807. end
  1808. end
  1809. if INTRO == false and INSTANT == false then
  1810. INTRO = true
  1811. coroutine.resume(coroutine.create(function()
  1812. sick:Play()
  1813. Intro()
  1814. end))
  1815. end
  1816. if INSTANT == true then
  1817. if TRANSFORMED == false then
  1818. sick.TimePosition = 119
  1819. sick:Play()
  1820. Gun.Parent = Character
  1821. end
  1822. TRANSFORMED = true
  1823. end
  1824. if VALUE1 == true then
  1825. local RayData = Zap({
  1826. SegmentLength = 0.6,
  1827. Offset = 0.3,
  1828. Size = 0.05,
  1829. MaxRange = 1.5,
  1830. StartPosition = GunPoint.Position,
  1831. TargetPosition = RightArm.Position,
  1832. Character = workspace,
  1833. Color = "Really red",
  1834. Individual = true
  1835. })
  1836. BOLT = RayData.LightningModel
  1837. end
  1838. end
  1839.  
  1840. --//=================================\\
  1841. --\\=================================//
  1842.  
  1843.  
  1844.  
  1845.  
  1846.  
  1847. --//====================================================\\--
  1848. --|| END OF SCRIPT
  1849. --\\====================================================//--
Add Comment
Please, Sign In to add comment