REX_THE_LEAKER

Warden Pandora Edit Fusion Fe

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