Advertisement
AxeuerAlt

Banisher Warden V1

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