PasterXIV

Untitled

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