Advertisement
Basykung7845

Test

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