Advertisement
Basykung7845

Test

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