Advertisement
sneakydodge123

banisherV2

Aug 10th, 2018
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 91.14 KB | None | 0 0
  1. --//==================================================================\\--
  2. --|| CREATED BY SHACKLUSTER | JkbananaPill_H2O
  3. --\\==================================================================//--
  4.  
  5. wait(0.2)
  6. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  7. local Player,game,owner = owner,game
  8. local RealPlayer = Player
  9. do
  10. print("FE Compatibility code by Mokiros")
  11. local rp = RealPlayer
  12. script.Parent = rp.Character
  13.  
  14. --RemoteEvent for communicating
  15. local Event = Instance.new("RemoteEvent")
  16. Event.Name = "UserInput_Event"
  17.  
  18. --Fake event to make stuff like Mouse.KeyDown work
  19. local function fakeEvent()
  20. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  21. t.connect = t.Connect
  22. return t
  23. end
  24.  
  25. --Creating fake input objects with fake variables
  26. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  27. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  28. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  29. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  30. end}
  31. --Merged 2 functions into one by checking amount of arguments
  32. CAS.UnbindAction = CAS.BindAction
  33.  
  34. --This function will trigger the events that have been :Connect()'ed
  35. local function te(self,ev,...)
  36. local t = m[ev]
  37. if t and t._fakeEvent then
  38. for _,f in pairs(t.Functions) do
  39. f(...)
  40. end
  41. end
  42. end
  43. m.TrigEvent = te
  44. UIS.TrigEvent = te
  45.  
  46. Event.OnServerEvent:Connect(function(plr,io)
  47. if plr~=rp then return end
  48. m.Target = io.Target
  49. m.Hit = io.Hit
  50. if not io.isMouse then
  51. local b = io.UserInputState == Enum.UserInputState.Begin
  52. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  53. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  54. end
  55. for _,t in pairs(CAS.Actions) do
  56. for _,k in pairs(t.Keys) do
  57. if k==io.KeyCode then
  58. t.Function(t.Name,io.UserInputState,io)
  59. end
  60. end
  61. end
  62. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  63. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  64. end
  65. end)
  66. Event.Parent = NLS([==[
  67. local Player = game:GetService("Players").LocalPlayer
  68. local Event = script:WaitForChild("UserInput_Event")
  69. local Mouse = Player:GetMouse()
  70. local UIS = game:GetService("UserInputService")
  71. local input = function(io,a)
  72. if a then return end
  73. --Since InputObject is a client-side instance, we create and pass table instead
  74. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  75. end
  76. UIS.InputBegan:Connect(input)
  77. UIS.InputEnded:Connect(input)
  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. self._btrs[name] = self.Heartbeat:Connect(fun)
  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. Player = owner
  148. PlayerGui = Player.PlayerGui
  149. Cam = workspace.CurrentCamera
  150. Backpack = Player.Backpack
  151. Character = Player.Character
  152. Humanoid = Character.Humanoid
  153. Mouse = Player:GetMouse()
  154. RootPart = Character["HumanoidRootPart"]
  155. Torso = Character["Torso"]
  156. Head = Character["Head"]
  157. RightArm = Character["Right Arm"]
  158. LeftArm = Character["Left Arm"]
  159. RightLeg = Character["Right Leg"]
  160. LeftLeg = Character["Left Leg"]
  161. RootJoint = RootPart["RootJoint"]
  162. Neck = Torso["Neck"]
  163. RightShoulder = Torso["Right Shoulder"]
  164. LeftShoulder = Torso["Left Shoulder"]
  165. RightHip = Torso["Right Hip"]
  166. LeftHip = Torso["Left Hip"]
  167. local sick = Instance.new("Sound",Character)
  168. sick.SoundId = "rbxassetid://1864363649"
  169. sick.Looped = true
  170. sick.Pitch = 1
  171. sick.Volume = 1
  172. sick:Play()
  173.  
  174. IT = Instance.new
  175. CF = CFrame.new
  176. VT = Vector3.new
  177. RAD = math.rad
  178. C3 = Color3.new
  179. UD2 = UDim2.new
  180. BRICKC = BrickColor.new
  181. ANGLES = CFrame.Angles
  182. EULER = CFrame.fromEulerAnglesXYZ
  183. COS = math.cos
  184. ACOS = math.acos
  185. SIN = math.sin
  186. ASIN = math.asin
  187. ABS = math.abs
  188. MRANDOM = math.random
  189. FLOOR = math.floor
  190. Class_Name = "₩₳ⱤĐɆ₦.exe"
  191. Editor_Name = "JkBananaPill_H2O"
  192.  
  193.  
  194. --//=================================\\
  195. --|| USEFUL VALUES
  196. --\\=================================//
  197.  
  198. Animation_Speed = 3
  199. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  200. local Speed = 15
  201. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  202. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  203. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  204. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  205. local DAMAGEMULTIPLIER = 1
  206. local ANIM = "Idle"
  207. local ATTACK = false
  208. local EQUIPPED = false
  209. local HOLD = false
  210. local COMBO = 1
  211. local Rooted = false
  212. local SINE = 0
  213. local KEYHOLD = false
  214. local CHANGE = 2 / Animation_Speed
  215. local WALKINGANIM = false
  216. local VALUE1 = false
  217. local VALUE2 = false
  218. local ROBLOXIDLEANIMATION = IT("Animation")
  219. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  220. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  221. --ROBLOXIDLEANIMATION.Parent = Humanoid
  222. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  223. WEAPONGUI.Name = "Weapon GUI"
  224. local Effects = IT("Folder", Character)
  225. Effects.Name = "Effects"
  226. local ANIMATOR = Humanoid.Animator
  227. local ANIMATE = Character.Animate
  228. local UNANCHOR = true
  229. local PLAYMAINANIM = true
  230. local BOLTSOUNDS = {168586621,168586586,178452241}
  231.  
  232. --//=================================\\
  233. --\\=================================//
  234. local Player = game.Players.localPlayer
  235. function RemoveOutlines(part)
  236. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  237. end
  238. local Create = LoadLibrary("RbxUtility").Create
  239.  
  240. CFuncs = {
  241. ["Part"] = {
  242. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  243. local Part = Create("Part"){
  244. Parent = Parent,
  245. Reflectance = Reflectance,
  246. Transparency = Transparency,
  247. CanCollide = false,
  248. Locked = true,
  249. BrickColor = BrickColor.new(tostring(BColor)),
  250. Name = Name,
  251. Size = Size,
  252. Material = Material,
  253. }
  254. RemoveOutlines(Part)
  255. return Part
  256. end;
  257. };
  258. ["Sound"] = {
  259. Create = function(id, par, vol, pit)
  260. coroutine.resume(coroutine.create(function()
  261. local S = Create("Sound"){
  262. Volume = vol,
  263. Pitch = pit or 1,
  264. SoundId = id,
  265. Parent = par or workspace,
  266. }
  267. wait()
  268. S:play()
  269. game:GetService("Debris"):AddItem(S, 6)
  270. end))
  271. end;
  272. };
  273. }
  274.  
  275. local toggleTag = true
  276. local txt = Instance.new("BillboardGui", Head)
  277. txt.Adornee = nil
  278. txt.Name = "NameDetect"
  279. txt.Size = UDim2.new(4, 0, 1.2, 0)
  280. txt.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  281. local text = Instance.new("TextLabel", txt)
  282. text.Size = UDim2.new(10/2, 0, 7/2, 0)
  283. text.FontSize = "Size8"
  284. text.TextScaled = true
  285. text.TextTransparency = 0
  286. text.BackgroundTransparency = 1
  287. text.TextTransparency = 0
  288. text.TextStrokeTransparency = 0
  289. text.Font = "Garamond"
  290. text.TextStrokeColor3 = Color3.new(0,1,1)
  291. text.TextColor3 = Color3.new(0,0,0)
  292. text.Text = "The Warden Of The City"
  293.  
  294. local Char = Character
  295.  
  296. function RecolorTextAndRename(name,col1,col2)
  297. text.TextStrokeColor3 = col2
  298. text.TextColor3 = col1
  299. text.Text = name
  300. end
  301. RecolorTextAndRename("Im not playing these games",Color3.new(0,0,0),Color3.new(0,0,1))
  302.  
  303. function chatfunc(text)
  304. local chat = coroutine.wrap(function()
  305. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  306. Char:FindFirstChild("TalkingBillBoard"):destroy()
  307. end
  308. local naeeym2 = Instance.new("BillboardGui",Char)
  309. naeeym2.Size = UDim2.new(0,100,0,40)
  310. naeeym2.StudsOffset = Vector3.new(0,3,0)
  311. naeeym2.Adornee = Char.Head
  312. naeeym2.Name = "TalkingBillBoard"
  313. local tecks2 = Instance.new("TextLabel",naeeym2)
  314. tecks2.BackgroundTransparency = 1
  315. tecks2.BorderSizePixel = 0
  316. tecks2.Text = ""
  317. tecks2.Font = "Antique"
  318. tecks2.TextSize = 30
  319. tecks2.TextStrokeTransparency = 0
  320. tecks2.TextColor3 = Color3.new(.6,0,0)
  321. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  322. tecks2.Size = UDim2.new(1,0,0.5,0)
  323. local tecks3 = Instance.new("TextLabel",naeeym2)
  324. tecks3.BackgroundTransparency = 1
  325. tecks3.BorderSizePixel = 0
  326. tecks3.Text = ""
  327. tecks3.Font = "Antique"
  328. tecks3.TextSize = 30
  329. tecks3.TextStrokeTransparency = 0
  330. tecks3.TextColor3 = BrickColor.new("Hot white").Color
  331. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  332. tecks3.Size = UDim2.new(1,0,0.5,0)
  333. spawn(function()
  334. while wait() do
  335. tecks3.TextColor3 = BrickColor.random().Color
  336. tecks2.TextColor3 = BrickColor.random().Color
  337. end
  338. end)
  339. for i = 1,string.len(text),1 do
  340. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=418252437", Char, 1, 1)
  341. tecks2.Text = string.sub(text,1,i)
  342. tecks3.Text = string.sub(text,1,i)
  343. wait(0.01)
  344. end
  345. wait(2)
  346. for i = 1, 50 do
  347. Swait()
  348. tecks2.Position = tecks2.Position - UDim2.new(math.random(-1,1),math.random(-5,5),.05,math.random(-5,5))
  349. tecks2.Rotation = tecks2.Rotation - .8
  350. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  351. tecks2.TextTransparency = tecks2.TextTransparency + .04
  352. tecks3.Position = tecks2.Position - UDim2.new(math.random(-1,1),math.random(-5,5),.05,math.random(-5,5))
  353. tecks3.Rotation = tecks2.Rotation + .8
  354. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  355. tecks3.TextTransparency = tecks2.TextTransparency + .04
  356. end
  357. naeeym2:Destroy()
  358. end)
  359. chat()
  360. end
  361. function onChatted(msg)
  362. chatfunc(msg)
  363. end
  364. Player.Chatted:connect(onChatted)
  365.  
  366. --//=================================\\
  367. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  368. --\\=================================//
  369.  
  370. ArtificialHB = Instance.new("BindableEvent", script)
  371. ArtificialHB.Name = "ArtificialHB"
  372.  
  373. script:WaitForChild("ArtificialHB")
  374.  
  375. frame = Frame_Speed
  376. tf = 0
  377. allowframeloss = false
  378. tossremainder = false
  379. lastframe = tick()
  380. script.ArtificialHB:Fire()
  381.  
  382. game:GetService("RunService").Heartbeat:connect(function(s, p)
  383. tf = tf + s
  384. if tf >= frame then
  385. if allowframeloss then
  386. script.ArtificialHB:Fire()
  387. lastframe = tick()
  388. else
  389. for i = 1, math.floor(tf / frame) do
  390. script.ArtificialHB:Fire()
  391. end
  392. lastframe = tick()
  393. end
  394. if tossremainder then
  395. tf = 0
  396. else
  397. tf = tf - frame * math.floor(tf / frame)
  398. end
  399. end
  400. end)
  401.  
  402. --//=================================\\
  403. --\\=================================//
  404. print(Class_Name.." Loaded")
  405. print(Editor_Name.." Edited This")
  406. --//=================================\\
  407. --|| SOME FUNCTIONS
  408. --\\=================================//
  409.  
  410. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  411. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  412. end
  413.  
  414. function PositiveAngle(NUMBER)
  415. if NUMBER >= 0 then
  416. NUMBER = 0
  417. end
  418. return NUMBER
  419. end
  420.  
  421. function NegativeAngle(NUMBER)
  422. if NUMBER <= 0 then
  423. NUMBER = 0
  424. end
  425. return NUMBER
  426. end
  427.  
  428. function Swait(NUMBER)
  429. if NUMBER == 0 or NUMBER == nil then
  430. ArtificialHB.Event:wait()
  431. else
  432. for i = 1, NUMBER do
  433. ArtificialHB.Event:wait()
  434. end
  435. end
  436. end
  437.  
  438. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  439. local NEWMESH = IT(MESH)
  440. if MESH == "SpecialMesh" then
  441. NEWMESH.MeshType = MESHTYPE
  442. if MESHID ~= "nil" and MESHID ~= "" then
  443. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  444. end
  445. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  446. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  447. end
  448. end
  449. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  450. NEWMESH.Scale = SCALE
  451. NEWMESH.Parent = PARENT
  452. return NEWMESH
  453. end
  454.  
  455. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  456. local NEWPART = IT("Part")
  457. NEWPART.formFactor = FORMFACTOR
  458. NEWPART.Reflectance = REFLECTANCE
  459. NEWPART.Transparency = TRANSPARENCY
  460. NEWPART.CanCollide = false
  461. NEWPART.Locked = true
  462. NEWPART.Anchored = true
  463. if ANCHOR == false then
  464. NEWPART.Anchored = false
  465. end
  466. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  467. NEWPART.Name = NAME
  468. NEWPART.Size = SIZE
  469. NEWPART.Position = Torso.Position
  470. NEWPART.Material = MATERIAL
  471. NEWPART:BreakJoints()
  472. NEWPART.Parent = PARENT
  473. return NEWPART
  474. end
  475.  
  476. local function weldBetween(a, b)
  477. local weldd = Instance.new("ManualWeld")
  478. weldd.Part0 = a
  479. weldd.Part1 = b
  480. weldd.C0 = CFrame.new()
  481. weldd.C1 = b.CFrame:inverse() * a.CFrame
  482. weldd.Parent = a
  483. return weldd
  484. end
  485.  
  486.  
  487. function QuaternionFromCFrame(cf)
  488. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  489. local trace = m00 + m11 + m22
  490. if trace > 0 then
  491. local s = math.sqrt(1 + trace)
  492. local recip = 0.5 / s
  493. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  494. else
  495. local i = 0
  496. if m11 > m00 then
  497. i = 1
  498. end
  499. if m22 > (i == 0 and m00 or m11) then
  500. i = 2
  501. end
  502. if i == 0 then
  503. local s = math.sqrt(m00 - m11 - m22 + 1)
  504. local recip = 0.5 / s
  505. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  506. elseif i == 1 then
  507. local s = math.sqrt(m11 - m22 - m00 + 1)
  508. local recip = 0.5 / s
  509. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  510. elseif i == 2 then
  511. local s = math.sqrt(m22 - m00 - m11 + 1)
  512. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  513. end
  514. end
  515. end
  516.  
  517. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  518. local xs, ys, zs = x + x, y + y, z + z
  519. local wx, wy, wz = w * xs, w * ys, w * zs
  520. local xx = x * xs
  521. local xy = x * ys
  522. local xz = x * zs
  523. local yy = y * ys
  524. local yz = y * zs
  525. local zz = z * zs
  526. 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))
  527. end
  528.  
  529. function QuaternionSlerp(a, b, t)
  530. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  531. local startInterp, finishInterp;
  532. if cosTheta >= 0.0001 then
  533. if (1 - cosTheta) > 0.0001 then
  534. local theta = ACOS(cosTheta)
  535. local invSinTheta = 1 / SIN(theta)
  536. startInterp = SIN((1 - t) * theta) * invSinTheta
  537. finishInterp = SIN(t * theta) * invSinTheta
  538. else
  539. startInterp = 1 - t
  540. finishInterp = t
  541. end
  542. else
  543. if (1 + cosTheta) > 0.0001 then
  544. local theta = ACOS(-cosTheta)
  545. local invSinTheta = 1 / SIN(theta)
  546. startInterp = SIN((t - 1) * theta) * invSinTheta
  547. finishInterp = SIN(t * theta) * invSinTheta
  548. else
  549. startInterp = t - 1
  550. finishInterp = t
  551. end
  552. end
  553. 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
  554. end
  555.  
  556. function Clerp(a, b, t)
  557. local qa = {QuaternionFromCFrame(a)}
  558. local qb = {QuaternionFromCFrame(b)}
  559. local ax, ay, az = a.x, a.y, a.z
  560. local bx, by, bz = b.x, b.y, b.z
  561. local _t = 1 - t
  562. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  563. end
  564.  
  565. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  566. local frame = IT("Frame")
  567. frame.BackgroundTransparency = TRANSPARENCY
  568. frame.BorderSizePixel = BORDERSIZEPIXEL
  569. frame.Position = POSITION
  570. frame.Size = SIZE
  571. frame.BackgroundColor3 = COLOR
  572. frame.BorderColor3 = BORDERCOLOR
  573. frame.Name = NAME
  574. frame.Parent = PARENT
  575. return frame
  576. end
  577.  
  578. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  579. local label = IT("TextLabel")
  580. label.BackgroundTransparency = 1
  581. label.Size = UD2(1, 0, 1, 0)
  582. label.Position = UD2(0, 0, 0, 0)
  583. label.TextColor3 = TEXTCOLOR
  584. label.TextStrokeTransparency = STROKETRANSPARENCY
  585. label.TextTransparency = TRANSPARENCY
  586. label.FontSize = TEXTFONTSIZE
  587. label.Font = TEXTFONT
  588. label.BorderSizePixel = BORDERSIZEPIXEL
  589. label.TextScaled = false
  590. label.Text = TEXT
  591. label.Name = NAME
  592. label.Parent = PARENT
  593. return label
  594. end
  595.  
  596. function NoOutlines(PART)
  597. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  598. end
  599.  
  600. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  601. local NEWWELD = IT(TYPE)
  602. NEWWELD.Part0 = PART0
  603. NEWWELD.Part1 = PART1
  604. NEWWELD.C0 = C0
  605. NEWWELD.C1 = C1
  606. NEWWELD.Parent = PARENT
  607. return NEWWELD
  608. end
  609.  
  610. local S = IT("Sound")
  611. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  612. local NEWSOUND = nil
  613. coroutine.resume(coroutine.create(function()
  614. NEWSOUND = S:Clone()
  615. NEWSOUND.Parent = PARENT
  616. NEWSOUND.Volume = VOLUME
  617. NEWSOUND.Pitch = PITCH
  618. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  619. NEWSOUND:play()
  620. if DOESLOOP == true then
  621. NEWSOUND.Looped = true
  622. else
  623. repeat wait(1) until NEWSOUND.Playing == false
  624. NEWSOUND:remove()
  625. end
  626. end))
  627. return NEWSOUND
  628. end
  629.  
  630.  
  631. local EyeSizes={
  632. NumberSequenceKeypoint.new(0,2,0),
  633. NumberSequenceKeypoint.new(1,0,0)
  634. }
  635. local EyeTrans={
  636. NumberSequenceKeypoint.new(0,0.5,0),
  637. NumberSequenceKeypoint.new(1,1,0)
  638. }
  639. local PE=Instance.new("ParticleEmitter",nil)
  640. PE.LightEmission=.8
  641. PE.Color = ColorSequence.new(BRICKC("Dark blue").Color,BRICKC("Cyan").Color)
  642. PE.Size=NumberSequence.new(EyeSizes)
  643. PE.Transparency=NumberSequence.new(EyeTrans)
  644. PE.Lifetime=NumberRange.new(0.35,1)
  645. PE.Rotation=NumberRange.new(0,360)
  646. PE.Rate=100
  647. PE.VelocitySpread = 10000
  648. PE.Acceleration = Vector3.new(0,85,0)
  649. PE.Drag = 5
  650. PE.Speed = NumberRange.new(0.1,5)
  651. PE.Texture="http://www.roblox.com/asset/?id=1460745664"
  652. PE.ZOffset = 0.5
  653. PE.Name = "PE"
  654. PE.Enabled = false
  655.  
  656. function Fire(art)
  657. local PARTICLES = PE:Clone()
  658. PARTICLES.Parent = art
  659. PARTICLES.Enabled = true
  660. return PARTICLES
  661. end
  662.  
  663. function CFrameFromTopBack(at, top, back)
  664. local right = top:Cross(back)
  665. 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)
  666. end
  667.  
  668. --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})
  669. function WACKYEFFECT(Table)
  670. local TYPE = (Table.EffectType or "Sphere")
  671. local SIZE = (Table.Size or VT(1,1,1))
  672. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  673. local TRANSPARENCY = (Table.Transparency or 0)
  674. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  675. local CFRAME = (Table.CFrame or Torso.CFrame)
  676. local MOVEDIRECTION = (Table.MoveToPos or nil)
  677. local ROTATION1 = (Table.RotationX or 0)
  678. local ROTATION2 = (Table.RotationY or 0)
  679. local ROTATION3 = (Table.RotationZ or 0)
  680. local MATERIAL = (Table.Material or "Neon")
  681. local COLOR = (Table.Color or C3(1,1,1))
  682. local TIME = (Table.Time or 45)
  683. local SOUNDID = (Table.SoundID or nil)
  684. local SOUNDPITCH = (Table.SoundPitch or nil)
  685. local SOUNDVOLUME = (Table.SoundVolume or nil)
  686. coroutine.resume(coroutine.create(function()
  687. local PLAYSSOUND = false
  688. local SOUND = nil
  689. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Dark blue"), "Effect", VT(1,1,1), true)
  690. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  691. PLAYSSOUND = true
  692. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  693. end
  694. EFFECT.Color = COLOR
  695. local MSH = nil
  696. if TYPE == "Sphere" then
  697. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  698. elseif TYPE == "Block" or TYPE == "Box" then
  699. MSH = IT("BlockMesh",EFFECT)
  700. MSH.Scale = SIZE
  701. elseif TYPE == "Wave" then
  702. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  703. elseif TYPE == "Ring" then
  704. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  705. elseif TYPE == "Slash" then
  706. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  707. elseif TYPE == "Round Slash" then
  708. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  709. elseif TYPE == "Swirl" then
  710. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  711. elseif TYPE == "Skull" then
  712. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  713. elseif TYPE == "Crystal" then
  714. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  715. end
  716. if MSH ~= nil then
  717. local MOVESPEED = nil
  718. if MOVEDIRECTION ~= nil then
  719. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  720. end
  721. local GROWTH = SIZE - ENDSIZE
  722. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  723. if TYPE == "Block" then
  724. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  725. else
  726. EFFECT.CFrame = CFRAME
  727. end
  728. for LOOP = 1, TIME+1 do
  729. Swait()
  730. MSH.Scale = MSH.Scale - GROWTH/TIME
  731. if TYPE == "Wave" then
  732. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  733. end
  734. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  735. if TYPE == "Block" then
  736. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  737. else
  738. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  739. end
  740. if MOVEDIRECTION ~= nil then
  741. local ORI = EFFECT.Orientation
  742. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  743. EFFECT.Orientation = ORI
  744. end
  745. end
  746. if PLAYSSOUND == false then
  747. EFFECT:remove()
  748. else
  749. repeat wait(1) until SOUND.Playing == false
  750. EFFECT:remove()
  751. end
  752. else
  753. if PLAYSSOUND == false then
  754. EFFECT:remove()
  755. else
  756. repeat Swait() until SOUND.Playing == false
  757. EFFECT:remove()
  758. end
  759. end
  760. end))
  761. end
  762.  
  763. function MakeForm(PART,TYPE)
  764. if TYPE == "Cyl" then
  765. local MSH = IT("CylinderMesh",PART)
  766. elseif TYPE == "Ball" then
  767. local MSH = IT("SpecialMesh",PART)
  768. MSH.MeshType = "Sphere"
  769. elseif TYPE == "Wedge" then
  770. local MSH = IT("SpecialMesh",PART)
  771. MSH.MeshType = "Wedge"
  772. end
  773. end
  774.  
  775. Debris = game:GetService("Debris")
  776.  
  777. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  778. local DIRECTION = CF(StartPos,EndPos).lookVector
  779. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  780. end
  781.  
  782. local HATWELD = nil
  783. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  784. PLAYMAINANIM = false
  785. if WhichPose == "Cast1" then
  786. for i=0, Time, 0.1 / Animation_Speed do
  787. Swait()
  788. if Magic == true then
  789. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Cyan".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  790. end
  791. if Gyro ~= nil and Gyro ~= false then
  792. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  793. end
  794. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed)
  795. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed)
  796. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  797. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  798. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  799. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  800. end
  801. elseif WhichPose == "Cast2" then
  802. for i=0, Time, 0.1 / Animation_Speed do
  803. Swait()
  804. if Magic == true then
  805. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Cyan".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  806. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Cyan".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  807. end
  808. if Gyro ~= nil and Gyro ~= false then
  809. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  810. end
  811. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  812. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  813. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  814. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  815. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  816. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  817. end
  818. elseif WhichPose == "RightArmUp" then
  819. for i=0, Time, 0.1 / Animation_Speed do
  820. Swait()
  821. if Magic == true then
  822. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Cyan".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  823. end
  824. if Gyro ~= nil and Gyro ~= false then
  825. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  826. end
  827. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed)
  828. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed)
  829. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  830. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  831. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  832. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  833. end
  834. elseif WhichPose == "Taunt" then
  835. for i=0, Time, 0.1 / Animation_Speed do
  836. Swait()
  837. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  838. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  839. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  840. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  841. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  842. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  843. end
  844. HATWELD.Part0 = RightArm
  845. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  846. CreateSound(137473066,Torso,10,1,false)
  847. for i=0, Time*2, 0.1 / Animation_Speed do
  848. Swait()
  849. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  850. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  851. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  852. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  853. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  854. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  855. end
  856. for i=0, Time, 0.1 / Animation_Speed do
  857. Swait()
  858. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  859. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  860. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  861. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  862. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  863. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  864. HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed)
  865. end
  866. HATWELD.Part0 = Head
  867. HATWELD.C0 = CF(0,0.35,0)
  868. elseif WhichPose == "Prepare key" then
  869. for i=0, Time, 0.1 / Animation_Speed do
  870. Swait()
  871. if Gyro ~= nil and Gyro ~= false then
  872. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  873. end
  874. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed)
  875. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed)
  876. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  877. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  878. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  879. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  880. end
  881. elseif WhichPose == "Turn key" then
  882. for i=0, Time, 0.1 / Animation_Speed do
  883. Swait()
  884. if Gyro ~= nil and Gyro ~= false then
  885. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  886. end
  887. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed)
  888. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed)
  889. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  890. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  891. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  892. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  893. end
  894. end
  895. PLAYMAINANIM = true
  896. end
  897.  
  898. --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false})
  899. function Lightning(Table)
  900. local Color = Table.Color or C3(1,1,1)
  901. local StartPos = Table.Start or Torso.Position
  902. local EndPos = Table.End or Mouse.Hit.p
  903. local SegmentLength = Table.SegmentL or 2
  904. local Thickness = Table.Thickness or 0.1
  905. local Dissapear = Table.DoesFade or false
  906. local Parent = Table.Ignore or Character
  907. local MaxDist = Table.MaxDist or 400
  908. local Branches = Table.Branches or false
  909. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  910. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  911. local LIGHTNINGMODEL = IT("Model",Effects)
  912. LIGHTNINGMODEL.Name = "Lightning"
  913. local LastBolt = nil
  914. for E = 1, DISTANCE do
  915. local ExtraSize = (DISTANCE-E)/15
  916. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Dark blue"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  917. PART.Color = Color
  918. MakeForm(PART,"Cyl")
  919. if LastBolt == nil then
  920. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  921. else
  922. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  923. end
  924. LastBolt = PART
  925. if Branches == true then
  926. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  927. if CHOICE == 1 then
  928. local LASTBRANCH = nil
  929. for i = 1, MRANDOM(2,5) do
  930. local ExtraSize2 = ((DISTANCE-E)/25)/i
  931. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Dark blue"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  932. PART.Color = Color
  933. MakeForm(PART,"Cyl")
  934. if LASTBRANCH == nil then
  935. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  936. else
  937. PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  938. end
  939. LASTBRANCH = PART
  940. end
  941. end
  942. end
  943. end
  944. if Dissapear == true then
  945. coroutine.resume(coroutine.create(function()
  946. for i = 1, 10 do
  947. Swait()
  948. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  949. if c.ClassName == "Part" then
  950. c.Transparency = i/10
  951. end
  952. end
  953. end
  954. LIGHTNINGMODEL:remove()
  955. end))
  956. elseif Dissapear == false then
  957. Debris:AddItem(LIGHTNINGMODEL,0.1)
  958. end
  959. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  960. end
  961.  
  962. --//=================================\\
  963. --|| WEAPON CREATION
  964. --\\=================================//
  965.  
  966. for i = 1, 15 do
  967. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/15.2, "Dark stone grey", "FaceGradient", VT(1.01,0.58,1.01),false)
  968. FACE.Color = C3(0,0,0)
  969. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  970. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/35,0), CF(0, 0, 0))
  971. end
  972. local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dark blue", "Hat", VT(2,0.2,2),false)
  973. MakeForm(HAT1,"Cyl")
  974. HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0))
  975. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dark blue", "Hat", VT(2.01,0.15,2.01),false)
  976. BELT.Color = C3(15/255,15/255,15/255)
  977. MakeForm(BELT,"Cyl")
  978. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0))
  979. local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dark blue", "Hat", VT(1.3,2.2,1.3),false)
  980. MakeForm(HAT2,"Cyl")
  981. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0))
  982. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dark blue", "Hat", VT(1.31,0.2,1.31),false)
  983. BELT.Color = C3(15/255,15/255,15/255)
  984. MakeForm(BELT,"Cyl")
  985. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0))
  986. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Cyan", "Gem", VT(0.25,0.25,0.1),false)
  987. MakeForm(GEM,"Ball")
  988. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0))
  989. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Cyan", "Gem", VT(0.25,0.25,0.1),false)
  990. MakeForm(GEM,"Ball")
  991. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0))
  992. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Cyan", "Gem", VT(0.1,0.25,0.25),false)
  993. MakeForm(GEM,"Ball")
  994. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0))
  995. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Cyan", "Gem", VT(0.1,0.25,0.25),false)
  996. MakeForm(GEM,"Ball")
  997. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0))
  998. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dark blue", "Hat", VT(1.31,0.1,1.31),false)
  999. BELT.Color = C3(15/255,15/255,15/255)
  1000. MakeForm(BELT,"Cyl")
  1001. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0))
  1002. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dark blue", "Hat", VT(1.31,0.1,1.31),false)
  1003. BELT.Color = C3(15/255,15/255,15/255)
  1004. MakeForm(BELT,"Cyl")
  1005. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0))
  1006. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dark blue", "Hat", VT(1.31,0.1,1.31),false)
  1007. BELT.Color = C3(15/255,15/255,15/255)
  1008. MakeForm(BELT,"Cyl")
  1009. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0))
  1010. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dark blue", "Hat", VT(1.31,0.1,1.31),false)
  1011. BELT.Color = C3(15/255,15/255,15/255)
  1012. MakeForm(BELT,"Cyl")
  1013. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0))
  1014. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dark blue", "Hat", VT(1.3,0.5,1.3),false)
  1015. MakeForm(BELT,"Ball")
  1016. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0))
  1017. Humanoid.DisplayDistanceType = "None"
  1018.  
  1019. local Particle = IT("ParticleEmitter",nil)
  1020. Particle.Enabled = false
  1021. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  1022. Particle.LightEmission = 0.5
  1023. Particle.Rate = 150
  1024. Particle.ZOffset = 0.2
  1025. Particle.Rotation = NumberRange.new(-180, 180)
  1026. Particle.RotSpeed = NumberRange.new(-180, 180)
  1027. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  1028. Particle.Color = ColorSequence.new(C3(0,0,255),C3(0,255,255))
  1029. local Particle2 = IT("ParticleEmitter",nil)
  1030. Particle2.Enabled = false
  1031. Particle2.Texture = "http://www.roblox.com/asset/?id=1369397597"
  1032. Particle2.Color = ColorSequence.new(C3(0,0,255),C3(0,0,255))
  1033. Particle2.LightEmission = 0
  1034. Particle2.RotSpeed = NumberRange.new(0, 180)
  1035. Particle2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  1036. Particle2.LightEmission = 1
  1037. Particle2.Rate = 20
  1038. Particle2.RotSpeed = NumberRange.new(-20, 20)
  1039. local Particle3 = IT("ParticleEmitter",nil)
  1040. Particle3.Enabled = false
  1041. Particle3.Texture = "http://www.roblox.com/asset/?id=1546470121"
  1042. Particle3.Color = ColorSequence.new(C3(0,0,255),C3(0,0,255))
  1043. Particle3.LightEmission = 0
  1044. Particle3.RotSpeed = NumberRange.new(0, 180)
  1045. Particle3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.7),NumberSequenceKeypoint.new(0.3,.9),NumberSequenceKeypoint.new(1,1)})
  1046. Particle3.LightEmission = 1
  1047. Particle3.Rate = 20
  1048. Particle3.RotSpeed = NumberRange.new(-20, 20)
  1049. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  1050. function ParticleEmitter(Table)
  1051. local PRTCL = Particle:Clone()
  1052. local Speed = Table.Speed or 5
  1053. local Drag = Table.Drag or 0
  1054. local Size1 = Table.Size1 or 1
  1055. local Size2 = Table.Size2 or 5
  1056. local Lifetime1 = Table.Lifetime1 or 1
  1057. local Lifetime2 = Table.Lifetime2 or 1.5
  1058. local Parent = Table.Parent or Torso
  1059. local Emit = Table.Emit or 100
  1060. local Offset = Table.Offset or 360
  1061. local Acel = Table.Acel or VT(0,0,0)
  1062. local Enabled = Table.Enabled or false
  1063. PRTCL.Parent = Parent
  1064. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1065. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1066. PRTCL.Speed = NumberRange.new(Speed)
  1067. PRTCL.VelocitySpread = Offset
  1068. PRTCL.Drag = Drag
  1069. PRTCL.Acceleration = Acel
  1070. if Enabled == false then
  1071. PRTCL:Emit(Emit)
  1072. Debris:AddItem(PRTCL,Lifetime2)
  1073. else
  1074. PRTCL.Enabled = true
  1075. end
  1076. return PRTCL
  1077. end
  1078. function ParticleEmitter2(Table)
  1079. local PRTCL2 = Particle2:Clone()
  1080. local LockedToPart = Table.LTP or true
  1081. local Speed = Table.Speed or 0
  1082. local Drag = Table.Drag or 0
  1083. local Size1 = Table.Size1 or 1
  1084. local Size2 = Table.Size2 or 2
  1085. local Lifetime1 = Table.Lifetime1 or 1
  1086. local Lifetime2 = Table.Lifetime2 or 1
  1087. local Parent = Table.Parent or Torso
  1088. local Emit = Table.Emit or 100
  1089. local Offset = Table.Offset or 360
  1090. local Acel = Table.Acel or VT(0,0,0)
  1091. local Enabled = Table.Enabled or false
  1092. PRTCL2.Parent = Parent
  1093. PRTCL2.Size = NumberSequence.new(Size1,Size2)
  1094. PRTCL2.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1095. PRTCL2.Speed = NumberRange.new(Speed)
  1096. PRTCL2.VelocitySpread = Offset
  1097. PRTCL2.Drag = Drag
  1098. PRTCL2.Acceleration = Acel
  1099. PRTCL2.Parent = Parent
  1100. PRTCL2.Size = NumberSequence.new(Size1,Size2)
  1101. PRTCL2.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1102. PRTCL2.Speed = NumberRange.new(Speed)
  1103. PRTCL2.VelocitySpread = Offset
  1104. PRTCL2.Drag = Drag
  1105. PRTCL2.Acceleration = Acel
  1106. PRTCL2.LockedToPart = true
  1107. if Enabled == false then
  1108. PRTCL2:Emit(Emit)
  1109. Debris:AddItem(PRTCL2,Lifetime2)
  1110. else
  1111. PRTCL2.Enabled = true
  1112. end
  1113. return PRTCL2
  1114. end
  1115. function ParticleEmitter3(Table)
  1116. local PRTCL3 = Particle2:Clone()
  1117. local Speed = Table.Speed or 0
  1118. local Drag = Table.Drag or 0
  1119. local Size1 = Table.Size1 or 1
  1120. local Size2 = Table.Size2 or 2
  1121. local Lifetime1 = Table.Lifetime1 or 1
  1122. local Lifetime2 = Table.Lifetime2 or 1
  1123. local Parent = Table.Parent or Torso
  1124. local Emit = Table.Emit or 100
  1125. local Offset = Table.Offset or 0
  1126. local Acel = Table.Acel or VT(0,0,0)
  1127. local Enabled = Table.Enabled or false
  1128. PRTCL3.Parent = Parent
  1129. PRTCL3.Size = NumberSequence.new(Size1,Size2)
  1130. PRTCL3.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1131. PRTCL3.Speed = NumberRange.new(Speed)
  1132. PRTCL3.VelocitySpread = Offset
  1133. PRTCL3.Drag = Drag
  1134. PRTCL3.Acceleration = Acel
  1135. PRTCL3.Parent = Parent
  1136. PRTCL3.Size = NumberSequence.new(Size1,Size2)
  1137. PRTCL3.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1138. PRTCL3.Speed = NumberRange.new(Speed)
  1139. PRTCL3.VelocitySpread = Offset
  1140. PRTCL3.Drag = Drag
  1141. PRTCL3.Acceleration = Acel
  1142. if Enabled == false then
  1143. PRTCL3:Emit(Emit)
  1144. Debris:AddItem(PRTCL3,Lifetime2)
  1145. else
  1146. PRTCL3.Enabled = true
  1147. end
  1148. return PRTCL3
  1149. end
  1150.  
  1151. local Weapon1 = IT("Model")
  1152. Weapon1.Name = "Pistol"
  1153.  
  1154. local Handle = CreatePart(3, Weapon1, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  1155. local LeftArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  1156. local Part = CreatePart(3, Weapon1, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1157. MakeForm(Part,"Wedge")
  1158. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1159. local Part = CreatePart(3, Weapon1, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  1160. MakeForm(Part,"Wedge")
  1161. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  1162. local Part = CreatePart(3, Weapon1, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  1163. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1164. local Part = CreatePart(3, Weapon1, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1165. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1166. local Part = CreatePart(3, Weapon1, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1167. MakeForm(Part,"Cyl")
  1168. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1169. for i = 1, 8 do
  1170. local Piece = CreatePart(3, Weapon1, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1171. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1172. end
  1173. local Part = CreatePart(3, Weapon1, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  1174. MakeForm(Part,"Cyl")
  1175. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1176. local Part = CreatePart(3, Weapon1, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  1177. MakeForm(Part,"Ball")
  1178. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1179. local Part = CreatePart(3, Weapon1, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  1180. MakeForm(Part,"Wedge")
  1181. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  1182. local Part = CreatePart(3, Weapon1, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  1183. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1184. local Part = CreatePart(3, Weapon1, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  1185. MakeForm(Part,"Cyl")
  1186. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1187. local Part = CreatePart(3, Weapon1, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  1188. MakeForm(Part,"Cyl")
  1189. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1190. local Part = CreatePart(3, Weapon1, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1191. MakeForm(Part,"Cyl")
  1192. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1193. local Part = CreatePart(3, Weapon1, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1194. MakeForm(Part,"Wedge")
  1195. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1196. local LASTPART = Handle
  1197. for i = 1, 10 do
  1198. if LASTPART == Handle then
  1199. local Part = CreatePart(3, Weapon1, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1200. LASTPART = Part
  1201. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1202. else
  1203. local Part = CreatePart(3, Weapon1, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1204. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1205. LASTPART = Part
  1206. end
  1207. end
  1208.  
  1209. local Barrel = CreatePart(3, Weapon1, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  1210. MakeForm(Barrel,"Cyl")
  1211. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1212. local Part = CreatePart(3, Weapon1, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1213. MakeForm(Part,"Cyl")
  1214. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1215. local Part = CreatePart(3, Weapon1, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1216. MakeForm(Part,"Wedge")
  1217. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1218. local Hole = CreatePart(3, Weapon1, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1219. MakeForm(Hole,"Cyl")
  1220. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  1221. local Part = CreatePart(3, Weapon1, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1222. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1223. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1224. local Part = CreatePart(3, Weapon1, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1225. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1226. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1227. coroutine.resume(coroutine.create(function()
  1228. while wait() do
  1229. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1230. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1231. end
  1232. end))
  1233. --PARTICLES REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
  1234. --[[
  1235. YEAH BOIIIIIIIII
  1236. PARTICLE TIME
  1237. --]]
  1238. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  1239. --ParticleEmitter3({Speed = 0, Drag = 0, Size1 = 20, Size2 = 25, Lifetime1 = 0.3, Lifetime2 = 1, Parent = Barrel, Emit = 100, Offset = 0, Enabled = true, Acel = VT(0,0,0)})
  1240. ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  1241. ParticleEmitter2({Speed = 0, Drag = 0, Size1 = .5, Size2 = 1, Lifetime1 = 1, Lifetime2 = 1, Parent = Hole, Emit = 20, Offset = 360, Enabled = true, Acel = VT(0,0,0)})
  1242. ParticleEmitter2({Speed = 0, Drag = 0, Size1 = 3, Size2 = 1, Lifetime1 = 1, Lifetime2 = 2, Parent = Handle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,0,0)})
  1243. --Trails
  1244. local A1 = Instance.new("Attachment",Barrel)
  1245. local A2 = Instance.new("Attachment",Barrel)
  1246. local Trail = Instance.new("Trail",Barrel)
  1247. A1.Position = Vector3.new(0,1,0)
  1248. A2.Position = Vector3.new(0,-0.8,0)
  1249. Trail.Attachment0 = A1
  1250. Trail.Attachment1 = A2
  1251. Trail.LightEmission = 1
  1252. Trail.Color = ColorSequence.new(Color3.new(0,0,255),Color3.new(0,255,255))
  1253. Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,.9),NumberSequenceKeypoint.new(1,1)})
  1254. for _, c in pairs(Weapon1:GetDescendants()) do
  1255. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1256. c.Material = "Glass"
  1257. c.Color = C3(0,0,0)
  1258. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1259. c.Color = C3(0,0,1)
  1260. c.Material = "Neon"
  1261. end
  1262. end
  1263.  
  1264. local TOBANISH = {}
  1265.  
  1266. Weapon1.Parent = Character
  1267. for _, c in pairs(Weapon1:GetChildren()) do
  1268. if c.ClassName == "Part" then
  1269. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1270. end
  1271. end
  1272.  
  1273. local SKILLTEXTCOLOR = C3(0,0,1)
  1274. local SKILLFONT = "Antique"
  1275. local SKILLTEXTSIZE = 7
  1276.  
  1277. Humanoid.Died:connect(function()
  1278. ATTACK = true
  1279. end)
  1280.  
  1281. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1282. --[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  1283. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  1284. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  1285. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  1286. --]]
  1287. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  1288. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  1289. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  1290. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  1291. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  1292. --]]
  1293. function printbye(Name)
  1294. 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, "}
  1295. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1296.  
  1297. end
  1298.  
  1299. workspace.ChildAdded:connect(function(instance)
  1300. for BANISH = 1, #TOBANISH do
  1301. if TOBANISH[BANISH] ~= nil then
  1302. if instance.Name == TOBANISH[BANISH] then
  1303. coroutine.resume(coroutine.create(function()
  1304. printbye(instance.Name)
  1305. instance:ClearAllChildren()
  1306. Debris:AddItem(instance,0.0005)
  1307. end))
  1308. end
  1309. end
  1310. end
  1311. end)
  1312.  
  1313. local Char = Character
  1314. local Eye = CreatePart(3, Char, "Neon", 0, 0, "Really blue", "Eye", VT(0.6,0.1,1)/2,false)
  1315. MakeForm(Eye,"Ball")
  1316. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  1317. local Eye = CreatePart(3, Char, "Neon", 0, 0, "Really blue", "Eye", VT(0.6,0.1,1)/2,false)
  1318. MakeForm(Eye,"Ball")
  1319. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  1320. local Eye = CreatePart(3, Char, "Neon", 0, 0, "Really blue", "Eye", VT(0.1,1,1)/2,false)
  1321. MakeForm(Eye,"Ball")
  1322. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  1323. local Eye = CreatePart(3, Char, "Neon", 0, 0, "Really blue", "Eye", VT(0.1,1,1)/2,false)
  1324. MakeForm(Eye,"Ball")
  1325. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  1326.  
  1327. local top = Instance.new("Shirt")
  1328. top.ShirtTemplate = "rbxassetid://1533327933"
  1329. top.Parent = Character
  1330. top.Name = "Cloth"
  1331. local bottom = Instance.new("Pants")
  1332. bottom.PantsTemplate = "rbxassetid://1689251873"
  1333. bottom.Parent = Character
  1334. bottom.Name = "Cloth"
  1335. for _, c in pairs(Character:GetChildren()) do
  1336. if c.ClassName == "Part" and c.Name ~= "FaceGradient" and c.Name ~= "Hat" and c.Name ~= "Gem" then
  1337. c.Material = "Neon"
  1338. if c:FindFirstChildOfClass("ParticleEmitter") then
  1339. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1340. end
  1341. c.Color = C3(1,1,1)
  1342. if c == Head then
  1343. if c:FindFirstChild("face") then
  1344. c.face:remove()
  1345. end
  1346. end
  1347. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  1348. c:remove()
  1349. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1350. c:remove()
  1351. end
  1352. end
  1353. local BODY = {}
  1354. for _, c in pairs(Character:GetDescendants()) do
  1355. if c:IsA("BasePart") and c.Name ~= "Handle" then
  1356. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  1357. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1358. end
  1359. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  1360. elseif c:IsA("JointInstance") then
  1361. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  1362. end
  1363. end
  1364. for e = 1, #BODY do
  1365. if BODY[e] ~= nil then
  1366. local STUFF = BODY[e]
  1367. local PART = STUFF[1]
  1368. local PARENT = STUFF[2]
  1369. local MATERIAL = STUFF[3]
  1370. local COLOR = STUFF[4]
  1371. local TRANSPARENCY = STUFF[5]
  1372. if PART.ClassName == "Part" and PART ~= RootPart then
  1373. PART.Material = MATERIAL
  1374. PART.Color = COLOR
  1375. PART.Transparency = TRANSPARENCY
  1376. end
  1377. PART.AncestryChanged:Connect(function()
  1378. PART.Parent = PARENT
  1379. end)
  1380. end
  1381. end
  1382. function refit()
  1383. Character.Parent = workspace
  1384. for e = 1, #BODY do
  1385. if BODY[e] ~= nil then
  1386. local STUFF = BODY[e]
  1387. local PART = STUFF[1]
  1388. local PARENT = STUFF[2]
  1389. local MATERIAL = STUFF[3]
  1390. local COLOR = STUFF[4]
  1391. local TRANSPARENCY = STUFF[5]
  1392. if PART.ClassName == "Part" and PART ~= RootPart then
  1393. PART.Material = MATERIAL
  1394. PART.Color = COLOR
  1395. PART.Transparency = TRANSPARENCY
  1396. end
  1397. if PART.Parent ~= PARENT then
  1398. Humanoid:remove()
  1399. PART.Parent = PARENT
  1400. Humanoid = IT("Humanoid",Character)
  1401. end
  1402. end
  1403. end
  1404. end
  1405. local SKILLTEXTCOLOR = BRICKC"".Color
  1406. local SKILLFONT = "Bodoni"
  1407. local SKILLTEXTSIZE = 7
  1408.  
  1409. Humanoid.Died:connect(function()
  1410. refit()
  1411. end)
  1412.  
  1413.  
  1414. --//=================================\\
  1415. --|| DAMAGING
  1416. --\\=================================//
  1417.  
  1418. function ApplyAoE(POSITION,RANGE,FLING,BURN)
  1419. local CHILDREN = workspace:GetDescendants()
  1420. for index, CHILD in pairs(CHILDREN) do
  1421. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1422. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1423. if HUM then
  1424. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1425. if TORSO then
  1426. if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
  1427. CHILD:BreakJoints()
  1428. if FLING ~= 0 then
  1429. for _, c in pairs(CHILD:GetChildren()) do
  1430. if c:IsA("BasePart") and c.Transparency == 0 then
  1431. if BURN == true then
  1432. Fire(c)
  1433. end
  1434. local bv = Instance.new("BodyVelocity")
  1435. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1436. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1437. bv.Parent = c
  1438. Debris:AddItem(bv,0.05)
  1439. end
  1440. end
  1441. end
  1442. end
  1443. end
  1444. end
  1445. end
  1446. end
  1447. end
  1448.  
  1449. function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW)
  1450. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  1451. local mesh = IT("SpecialMesh", wave)
  1452. mesh.MeshType = "Sphere"
  1453. mesh.Scale = SIZE
  1454. mesh.Offset = VT(0, 0, 0)
  1455. wave.CFrame = CFRAME
  1456. coroutine.resume(coroutine.create(function(PART)
  1457. for i = 1, WAIT do
  1458. Swait()
  1459. mesh.Scale = mesh.Scale + GROW
  1460. wave.Transparency = wave.Transparency + 1 / WAIT
  1461. if wave.Transparency > 0.99 then
  1462. wave:remove()
  1463. end
  1464. end
  1465. end))
  1466. end
  1467.  
  1468. function CastWarpOutlines(TARGET)
  1469. coroutine.resume(coroutine.create(function()
  1470. local T = TARGET:GetChildren()
  1471. for i = 1, #T do
  1472. local child = T[i]
  1473. if child.ClassName == "Part" or child.ClassName == "MeshPart" then
  1474. do
  1475. local clone = child:Clone()
  1476. clone.Parent = Effects
  1477. clone.Anchored = true
  1478. clone.CanCollide = false
  1479. clone:ClearAllChildren()
  1480. clone.CFrame = child.CFrame
  1481. if clone.Name == "Head" then
  1482. clone.Size = VT(clone.Size.Y, clone.Size.Y, clone.Size.Y)
  1483. end
  1484. if clone.ClassName == "MeshPart" then
  1485. clone.TextureID = ""
  1486. end
  1487. clone.Color = C3(1, 0, 0)
  1488. clone.Material = "Neon"
  1489. coroutine.resume(coroutine.create(function()
  1490. for i = 1, 100 do
  1491. Swait()
  1492. clone.Transparency = clone.Transparency + 0.01
  1493. clone.Size = clone.Size + VT(0.001, 0.001, 0.001)
  1494. end
  1495. clone:remove()
  1496. end))
  1497. end
  1498. end
  1499. end
  1500. end))
  1501. end
  1502.  
  1503. local Delete = IT("Model", Character)
  1504. Delete.Name = "Those who must be banished."
  1505.  
  1506. function killnearest(position, range, maxstrength)
  1507. for i, v in ipairs(workspace:GetChildren()) do
  1508. local body = v:GetChildren()
  1509. for part = 1, #body do
  1510. 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
  1511. CastWarpOutlines(v)
  1512. v:remove()
  1513. if game.Players:FindFirstChild(v.Name) then
  1514. local Value = IT("BoolValue", Delete)
  1515. Value.Name = v.Name
  1516. end
  1517. end
  1518. end
  1519. end
  1520. end
  1521.  
  1522. function Kill(Char)
  1523. local NewCharacter = IT("Model",Effects)
  1524. NewCharacter.Name = "Ow im ded ;-;"
  1525. for _, c in pairs(Char:GetDescendants()) do
  1526. if c:IsA("BasePart") and c.Transparency == 0 then
  1527. if c.Parent == Char then
  1528. getbloody(c,5)
  1529. end
  1530. c:BreakJoints()
  1531. c.Material = "Glass"
  1532. c.Color = C3(0.5,0,0)
  1533. c.CanCollide = true
  1534. c.Transparency = 0.3
  1535. if c:FindFirstChildOfClass("SpecialMesh") then
  1536. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1537. end
  1538. if c.Name == "Head" then
  1539. c:ClearAllChildren()
  1540. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1541. end
  1542. if c.ClassName == "MeshPart" then
  1543. c.TextureID = ""
  1544. end
  1545. if c:FindFirstChildOfClass("BodyPosition") then
  1546. c:FindFirstChildOfClass("BodyPosition"):remove()
  1547. end
  1548. if c:FindFirstChildOfClass("ParticleEmitter") then
  1549. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1550. end
  1551. c.Parent = NewCharacter
  1552. c.Name = "DeadPart"
  1553. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1554. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1555. end
  1556. end
  1557. Char:remove()
  1558. Debris:AddItem(NewCharacter,5)
  1559. end
  1560.  
  1561. local asd = Instance.new("ParticleEmitter")
  1562. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  1563. asd.LightEmission = .1
  1564. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  1565. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  1566. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1567. asd.Transparency = bbb
  1568. asd.Size = aaa
  1569. asd.ZOffset = .9
  1570. asd.Acceleration = Vector3.new(0, -15, 0)
  1571. asd.LockedToPart = false
  1572. asd.EmissionDirection = "Back"
  1573. asd.Lifetime = NumberRange.new(1, 2)
  1574. asd.Rotation = NumberRange.new(-100, 100)
  1575. asd.RotSpeed = NumberRange.new(-100, 100)
  1576. asd.Speed = NumberRange.new(10)
  1577. asd.Enabled = false
  1578. asd.VelocitySpread = 999
  1579.  
  1580. function getbloody(victim,amount)
  1581. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  1582. PART.CFrame = victim.CFrame
  1583. local HITPLAYERSOUNDS = {"356551938","264486467"}
  1584. Debris:AddItem(PART,5)
  1585. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1586. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1587. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1588. local prtcl = asd:Clone()
  1589. prtcl.Parent = PART
  1590. prtcl:Emit(amount*10)
  1591. end
  1592. --//=================================\\
  1593. --|| ATTACK FUNCTIONS AND STUFF
  1594. --\\=================================//
  1595. local LAUGHS = {834001699,834001752,834001797,834001828}
  1596.  
  1597. local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false)
  1598. MakeForm(RightHole,"Cyl")
  1599. local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false)
  1600. MakeForm(LeftHole,"Cyl")
  1601.  
  1602. function Deathbound()
  1603. CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false)
  1604. ATTACK = true
  1605. Rooted = true
  1606. for i=0, 1, 0.1 / Animation_Speed do
  1607. Swait()
  1608. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1609. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1610. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1611. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1612. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1613. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1614. end
  1615. local DONE = false
  1616. local GATE = nil
  1617. local GATESPIN = true
  1618. coroutine.resume(coroutine.create(function()
  1619. repeat
  1620. Swait()
  1621. if GATE ~= nil then
  1622. GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0))
  1623. end
  1624. until GATESPIN == false
  1625. end))
  1626. coroutine.resume(coroutine.create(function()
  1627. repeat
  1628. Swait()
  1629. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.2 - 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1630. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1631. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1632. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1633. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1634. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1635. until DONE == true
  1636. Swait(50)
  1637. for i = 1, 35 do
  1638. Swait(4)
  1639. local FIRED = false
  1640. local CHILDREN = workspace:GetDescendants()
  1641. for index, CHILD in pairs(CHILDREN) do
  1642. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1643. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1644. if HUM then
  1645. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1646. if TORSO then
  1647. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  1648. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  1649. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1650. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = 213603013, SoundPitch = 1.5, SoundVolume = 6})
  1651. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1652. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1653. Kill(CHILD)
  1654. FIRED = true
  1655. break
  1656. end
  1657. end
  1658. end
  1659. end
  1660. end
  1661. if FIRED == false then
  1662. local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1663. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = 213603013, SoundPitch = 1.5, SoundVolume = 6})
  1664. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1665. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1666. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  1667. if HITBOD ~= nil then
  1668. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  1669. killnearest(HITBOD.Parent)
  1670. end
  1671. end
  1672. end
  1673. end
  1674. for i = 1, 45 do
  1675. Swait()
  1676. GATE.Size = GATE.Size - VT(3,0,3)
  1677. end
  1678. GATESPIN = false
  1679. GATE:remove()
  1680. end))
  1681. Swait(15)
  1682. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character)
  1683. GATE = CreatePart(3, Effects, "Neon", 0, 1, "Teal", "Gate", VT(0,0,0))
  1684. local DECAL = IT("Decal",GATE)
  1685. DECAL.Texture = "http://www.roblox.com/asset/?id=647661410"
  1686. DECAL.Face = "Top"
  1687. GATE.CFrame = CF(HITPOS)
  1688. CreateSound(160772554, GATE, 7, 1.3, false)
  1689. for i = 1, 45 do
  1690. Swait()
  1691. GATE.Size = GATE.Size + VT(3,0,3)
  1692. end
  1693. CreateSound(213603013, RightHole, 7, 1, false)
  1694. CreateSound(213603013, LeftHole, 7, 1, false)
  1695. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1696. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1697. ATTACK = false
  1698. Rooted = false
  1699. DONE = true
  1700. end
  1701.  
  1702. function Morning_Star()
  1703. ATTACK = true
  1704. Rooted = true
  1705. CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false)
  1706. for i=0, 1, 0.1 / Animation_Speed do
  1707. Swait()
  1708. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1709. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1710. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1711. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1712. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1713. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1714. end
  1715. coroutine.resume(coroutine.create(function()
  1716. local POS = Mouse.Hit.p
  1717. local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Teal", "Strike", VT(0,2000,0))
  1718. MakeForm(RAY,"Cyl")
  1719. local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Teal", "Strike", VT(0,0,0))
  1720. MakeForm(SPHERE,"Ball")
  1721. local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really blue", "Strike", VT(0,0,0))
  1722. MakeForm(SHIELD,"Ball")
  1723. SHIELD.CFrame = CF(POS)
  1724. RAY.CFrame = CF(POS)
  1725. SPHERE.CFrame = CF(POS)
  1726. CreateSound(144699494, SPHERE, 10, 0.8, false)
  1727. CreateSound(1146688617, SPHERE, 10, 0.8, false)
  1728. for i = 1, 200 do
  1729. Swait()
  1730. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1731. RAY.Size = RAY.Size + VT(0.05,0,0.05)
  1732. SPHERE.Size = SPHERE.Size + VT(2,2,2)
  1733. SHIELD.Size = SPHERE.Size + VT(3,3,3)
  1734. ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
  1735. end
  1736. for i = 1, 45 do
  1737. Swait()
  1738. RAY.Transparency = RAY.Transparency + 1/45
  1739. SPHERE.Transparency = RAY.Transparency
  1740. SHIELD.Transparency = SPHERE.Transparency + 1/45
  1741. end
  1742. RAY:remove()
  1743. SHIELD:remove()
  1744. SPHERE:remove()
  1745. end))
  1746. for i=0, 1, 0.1 / Animation_Speed do
  1747. Swait()
  1748. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1749. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1750. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1751. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1752. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1753. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1754. end
  1755. ATTACK = false
  1756. Rooted = false
  1757. end
  1758.  
  1759. function Teleport()
  1760. ATTACK = true
  1761. Rooted = false
  1762. for i=0, 0.5, 0.1 / Animation_Speed do
  1763. Swait()
  1764. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1765. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  1766. end
  1767. for e = 1, #BODY do
  1768. if BODY[e] ~= nil then
  1769. local STUFF = BODY[e]
  1770. local PART = STUFF[1]
  1771. if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then
  1772. local PRT = PART:Clone()
  1773. PRT.Anchored = true
  1774. PRT.CanCollide = false
  1775. PRT.Material = "Neon"
  1776. PRT.Color = C3(0,0,1)
  1777. PRT.Name = "WarpEffect"
  1778. PRT.Parent = Effects
  1779. PRT.CFrame = PART.CFrame
  1780. PRT:BreakJoints()
  1781. if PRT:FindFirstChildOfClass("Sound") then
  1782. PRT:FindFirstChildOfClass("Sound"):remove()
  1783. end
  1784. if PRT:FindFirstChildOfClass("Decal") then
  1785. PRT:FindFirstChildOfClass("Decal"):remove()
  1786. end
  1787. coroutine.resume(coroutine.create(function()
  1788. for i = 1, 100 do
  1789. Swait()
  1790. PRT.Transparency = PRT.Transparency + 1/100
  1791. end
  1792. PRT:remove()
  1793. end))
  1794. end
  1795. end
  1796. end
  1797. CreateSound(217767125, Torso, 10, 1)
  1798. local POS = RootPart.Orientation
  1799. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0))
  1800. RootPart.Orientation = POS
  1801. RootJoint.Parent = RootPart
  1802. for i=0, 0.5, 0.1 / Animation_Speed do
  1803. Swait()
  1804. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1805. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-15), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
  1806. end
  1807. for i=0, 0.1, 0.1 / Animation_Speed do
  1808. Swait()
  1809. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1810. end
  1811. ATTACK = false
  1812. Rooted = false
  1813. end
  1814.  
  1815. function turnto(position)
  1816. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1817. end
  1818.  
  1819. function Banish(Foe)
  1820. if Foe then
  1821. coroutine.resume(coroutine.create(function()
  1822. --if game.Players:FindFirstChild(Foe.Name) then
  1823. table.insert(TOBANISH,Foe.Name)
  1824. printbye(Foe.Name)
  1825. --end
  1826. Foe.Archivable = true
  1827. local CLONE = Foe:Clone()
  1828. Foe:Destroy()
  1829. CLONE.Parent = Effects
  1830. CLONE:BreakJoints()
  1831. local MATERIALS = {"Glass","Neon"}
  1832. for _, c in pairs(CLONE:GetDescendants()) do
  1833. if c:IsA("BasePart") then
  1834. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1835. CreateSound(340722848, c, 10, 1, false)
  1836. end
  1837. c.Anchored = true
  1838. c.Transparency = c.Transparency + 0.2
  1839. c.Material = MATERIALS[MRANDOM(1,2)]
  1840. c.Color = C3(0,0,255)
  1841. if c.ClassName == "MeshPart" then
  1842. c.TextureID = ""
  1843. end
  1844. if c:FindFirstChildOfClass("SpecialMesh") then
  1845. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1846. end
  1847. if c:FindFirstChildOfClass("Decal") then
  1848. c:FindFirstChildOfClass("Decal"):remove()
  1849. end
  1850. c.Name = "Banished"
  1851. c.CanCollide = false
  1852. else
  1853. c:remove()
  1854. end
  1855. end
  1856. local A = false
  1857. for i = 1, 35 do
  1858. if A == false then
  1859. A = true
  1860. elseif A == true then
  1861. A = false
  1862. end
  1863. for _, c in pairs(CLONE:GetDescendants()) do
  1864. if c:IsA("BasePart") then
  1865. c.Anchored = true
  1866. c.Material = MATERIALS[MRANDOM(1,2)]
  1867. c.Transparency = c.Transparency + 0.8/35
  1868. if A == false then
  1869. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1870. elseif A == true then
  1871. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1872. end
  1873. end
  1874. end
  1875. Swait()
  1876. end
  1877. CLONE:remove()
  1878. end))
  1879. end
  1880. end
  1881.  
  1882. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1883. local CHILDREN = workspace:GetDescendants()
  1884. for index, CHILD in pairs(CHILDREN) do
  1885. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1886. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1887. if HUM then
  1888. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1889. if TORSO then
  1890. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1891. if ISBANISH == true then
  1892. Banish(CHILD)
  1893. else
  1894. if ISBANISH == "Gravity" then
  1895. HUM.PlatformStand = true
  1896. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1897. local grav = Instance.new("BodyPosition",TORSO)
  1898. grav.D = 15
  1899. grav.P = 20000
  1900. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1901. grav.position = TORSO.Position
  1902. grav.Name = "V3BanishForce"..Player.Name
  1903. else
  1904. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1905. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1906. end
  1907. else
  1908. HUM.PlatformStand = false
  1909. end
  1910. end
  1911. elseif ISBANISH == "Gravity" then
  1912. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1913. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1914. HUM.PlatformStand = false
  1915. end
  1916. end
  1917. end
  1918. end
  1919. end
  1920. end
  1921. end
  1922.  
  1923. function SpawnTrail(FROM,TO,BIG)
  1924. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Cyan", "Trail", VT(0,0,0))
  1925. MakeForm(TRAIL,"Cyl")
  1926. local DIST = (FROM - TO).Magnitude
  1927. if BIG == true then
  1928. TRAIL.Size = VT(0.5,DIST,0.5)
  1929. else
  1930. TRAIL.Size = VT(0.25,DIST,0.25)
  1931. end
  1932. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  1933. coroutine.resume(coroutine.create(function()
  1934. for i = 1, 5 do
  1935. Swait()
  1936. TRAIL.Transparency = TRAIL.Transparency + 0.1
  1937. end
  1938. TRAIL:remove()
  1939. end))
  1940. end
  1941.  
  1942. function Banisher_Bullet()
  1943. ATTACK = true
  1944. Rooted = false
  1945. for i=0, 0.4, 0.1 / Animation_Speed do
  1946. Swait()
  1947. turnto(Mouse.Hit.p)
  1948. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1949. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1950. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1951. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1952. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1953. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1954. end
  1955. repeat
  1956. for i=0, 0.2, 0.1 / Animation_Speed do
  1957. Swait()
  1958. turnto(Mouse.Hit.p)
  1959. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1960. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1961. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1962. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1963. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1964. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1965. end
  1966. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1967. SpawnTrail(Hole.Position,POS)
  1968. if HIT ~= nil then
  1969. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1970. Banish(HIT.Parent)
  1971. end
  1972. end
  1973. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1974. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,1), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1975. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1976. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1977. for i=0, 0.3, 0.1 / Animation_Speed do
  1978. Swait()
  1979. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1980. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1981. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1982. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1983. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1984. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1985. end
  1986. until KEYHOLD == false
  1987. ATTACK = false
  1988. Rooted = false
  1989. end
  1990.  
  1991. function Hat()
  1992. ATTACK = true
  1993. Rooted = false
  1994. Pose("Taunt",0.4,1.2,false)
  1995. ATTACK = false
  1996. Rooted = false
  1997. end
  1998.  
  1999. --//=================================\\
  2000. --|| ASSIGN THINGS TO KEYS
  2001. --\\=================================//
  2002.  
  2003. function MouseDown(Mouse)
  2004. HOLD = true
  2005. if ATTACK == false then
  2006. end
  2007. end
  2008.  
  2009. function MouseUp(Mouse)
  2010. HOLD = false
  2011. end
  2012.  
  2013. function KeyDown(Key)
  2014. KEYHOLD = true
  2015. if Key == "z" and ATTACK == false then
  2016. Banisher_Bullet()
  2017. end
  2018. if Key == "q" and ATTACK == false then
  2019. Teleport()
  2020. end
  2021. if Key == "x" and ATTACK == false then
  2022. Morning_Star()
  2023. end
  2024. if Key == "c" and ATTACK == false then
  2025. Deathbound()
  2026. end
  2027. if Key == "t" and ATTACK == false then
  2028. Hat()
  2029. end
  2030. end
  2031.  
  2032. function KeyUp(Key)
  2033. KEYHOLD = false
  2034. end
  2035.  
  2036. Mouse.Button1Down:connect(function(NEWKEY)
  2037. MouseDown(NEWKEY)
  2038. end)
  2039. Mouse.Button1Up:connect(function(NEWKEY)
  2040. MouseUp(NEWKEY)
  2041. end)
  2042. Mouse.KeyDown:connect(function(NEWKEY)
  2043. KeyDown(NEWKEY)
  2044. end)
  2045. Mouse.KeyUp:connect(function(NEWKEY)
  2046. KeyUp(NEWKEY)
  2047. end)
  2048.  
  2049. --//=================================\\
  2050. --\\=================================//
  2051.  
  2052.  
  2053.  
  2054. function unanchor()
  2055. if UNANCHOR == true then
  2056. g = Character:GetChildren()
  2057. for i = 1, #g do
  2058. if g[i].ClassName == "Part" then
  2059. g[i].Anchored = false
  2060. end
  2061. end
  2062. end
  2063. end
  2064.  
  2065.  
  2066. --//=================================\\
  2067. --|| WRAP THE WHOLE SCRIPT UP
  2068. --\\=================================//
  2069.  
  2070. Humanoid.Changed:connect(function(Jump)
  2071. if Jump == "Jump" and (Disable_Jump == true) then
  2072. Humanoid.Jump = false
  2073. end
  2074. end)
  2075.  
  2076. while true do
  2077. Swait()
  2078. script.Parent = WEAPONGUI
  2079. Humanoid.Parent = Character
  2080. if Humanoid then
  2081. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2082. IDLEANIMATION:Play()
  2083. end
  2084. if ANIMATE.Parent == Character then
  2085. ANIMATE:Destroy()
  2086. end
  2087. SINE = SINE + CHANGE
  2088. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2089. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2090. Humanoid.HipHeight = 1
  2091. Humanoid.Name = "Warden"
  2092. Humanoid.PlatformStand = false
  2093. if PLAYMAINANIM == true then
  2094. if TORSOVELOCITY < 1 then
  2095. 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)
  2096. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2097. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2098. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2099. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  2100. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2101. elseif TORSOVELOCITY > 1 then
  2102. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2103. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2104. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-35), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2105. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-35), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2106. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-20)), 0.15 / Animation_Speed)
  2107. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(10)), 0.15 / Animation_Speed)
  2108. end
  2109. end
  2110. unanchor()
  2111. Humanoid.MaxHealth = "inf"
  2112. Humanoid.Health = "inf"
  2113. if Rooted == false then
  2114. Disable_Jump = false
  2115. Humanoid.WalkSpeed = Speed
  2116. elseif Rooted == true then
  2117. Disable_Jump = true
  2118. Humanoid.WalkSpeed = 0
  2119. end
  2120. for _, c in pairs(Character:GetChildren()) do
  2121. if c.ClassName == "Part" and c.Name ~= "Eye" then
  2122. c.Material = "Neon"
  2123. if c:FindFirstChildOfClass("ParticleEmitter") then
  2124. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  2125. end
  2126. c.Color = C3(1,1,1)
  2127. if c == Head then
  2128. if c:FindFirstChild("face") then
  2129. c.face:remove()
  2130. end
  2131. end
  2132. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  2133. c:remove()
  2134. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  2135. c:remove()
  2136. end
  2137. end
  2138. sick.SoundId = "rbxassetid://1567323605"
  2139. sick.Looped = true
  2140. sick.Pitch = 1
  2141. sick.Volume = 3
  2142. sick:Resume()
  2143. sick.Parent = Torso
  2144. refit()
  2145. if Head:FindFirstChildOfClass("Sound") then
  2146. Head:FindFirstChildOfClass("Sound"):remove()
  2147. end
  2148. end
  2149. game.Lighting.TimeOfDay = "00:00:00"
  2150. game.Lighting.FogEnd = 50
  2151. game.Lighting.FogColor = Color3.fromRGB(0,0,0)
  2152.  
  2153. --//=================================\\
  2154.  
  2155. --\\=================================//
  2156.  
  2157.  
  2158.  
  2159.  
  2160.  
  2161. --//====================================================\\--
  2162. --|| END OF SCRIPT
  2163. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement