Advertisement
wamandnj

Untitled

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