MellonYt

Prank

Apr 22nd, 2018
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.58 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5.  
  6. local WORKSPAce= game:GetService("Workspace")
  7. local Ligthing = game:GetService("Lighting")
  8.  
  9.  
  10.  
  11. local Blur = Instance.new("BlurEffect")
  12. Blur.Parent = Ligthing
  13. Blur.Name = 'Blur'
  14.  
  15. local QaukeSize1 = function ()
  16. wait(0.1)
  17.  
  18. Blur.Size = 1
  19. wait(0.1)
  20. Blur.Size = 2
  21. wait(0.1)
  22. Blur.Size = 3
  23. wait(0.1)
  24. Blur.Size = 4
  25. wait(0.1)
  26. Blur.Size = 5
  27. wait(0.1)
  28. Blur.Size = 6
  29. wait(0.1)
  30. Blur.Size = 7
  31. wait(0.1)
  32. Blur.Size = 8
  33. wait(0.1)
  34. Blur.Size = 9
  35. wait(0.1)
  36. Blur.Size = 10
  37. wait(0.1)
  38. WORKSPAce.Gravity = 10
  39. Ligthing.Ambient = Color3.new(255, 255, 255)
  40. wait(10)
  41. WORKSPAce.Gravity = 196.200
  42. Ligthing.Ambient = Color3.new(0, 0, 0)
  43.  
  44. Blur.Size = 10
  45. wait(0.1)
  46. Blur.Size = 9
  47. wait(0.1)
  48. Blur.Size = 8
  49. wait(0.1)
  50. Blur.Size = 7
  51. wait(0.1)
  52. Blur.Size = 6
  53. wait(0.1)
  54. Blur.Size = 5
  55. wait(0.1)
  56. Blur.Size = 4
  57. wait(0.1)
  58. Blur.Size = 3
  59. wait(0.1)
  60. Blur.Size = 2
  61. wait(0.1)
  62. Blur.Size = 1
  63. wait(0.1)
  64. Blur.Size = 0
  65.  
  66. end
  67.  
  68.  
  69. wait(0.2)
  70.  
  71. Player = owner
  72. PlayerGui = Player.PlayerGui
  73. Cam = workspace.CurrentCamera
  74. Backpack = Player.Backpack
  75. Character = Player.Character
  76. Humanoid = Character.Humanoid
  77. Mouse = Player:GetMouse()
  78. RootPart = Character["HumanoidRootPart"]
  79. Torso = Character["Torso"]
  80. Head = Character["Head"]
  81. RightArm = Character["Right Arm"]
  82. LeftArm = Character["Left Arm"]
  83. RightLeg = Character["Right Leg"]
  84. LeftLeg = Character["Left Leg"]
  85. RootJoint = RootPart["RootJoint"]
  86. Neck = Torso["Neck"]
  87. RightShoulder = Torso["Right Shoulder"]
  88. LeftShoulder = Torso["Left Shoulder"]
  89. RightHip = Torso["Right Hip"]
  90. LeftHip = Torso["Left Hip"]
  91. local sick = Instance.new("Sound",Character)
  92. sick.SoundId = "rbxassetid://1494340971"
  93. sick.Looped = true
  94. sick.Pitch = 1
  95. sick.Volume = 1
  96. sick:Play()
  97.  
  98. IT = Instance.new
  99. CF = CFrame.new
  100. VT = Vector3.new
  101. RAD = math.rad
  102. C3 = Color3.new
  103. UD2 = UDim2.new
  104. BRICKC = BrickColor.new
  105. ANGLES = CFrame.Angles
  106. EULER = CFrame.fromEulerAnglesXYZ
  107. COS = math.cos
  108. ACOS = math.acos
  109. SIN = math.sin
  110. ASIN = math.asin
  111. ABS = math.abs
  112. MRANDOM = math.random
  113. FLOOR = math.floor
  114.  
  115.  
  116.  
  117. Animation_Speed = 3
  118. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  119. local Speed = 25
  120. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  121. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  122. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  123. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  124. local DAMAGEMULTIPLIER = 1
  125. local ANIM = "Idle"
  126. local ATTACK = false
  127. local EQUIPPED = false
  128. local HOLD = false
  129. local COMBO = 1
  130. local Rooted = false
  131. local SINE = 0
  132. local KEYHOLD = false
  133. local CHANGE = 2 / Animation_Speed
  134. local WALKINGANIM = false
  135. local VALUE1 = false
  136. local VALUE2 = false
  137. local ROBLOXIDLEANIMATION = IT("Animation")
  138. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  139. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  140. --ROBLOXIDLEANIMATION.Parent = Humanoid
  141. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  142. WEAPONGUI.Name = "Weapon GUI"
  143. local Effects = IT("Folder", Character)
  144. Effects.Name = "Effects"
  145. local ANIMATOR = Humanoid.Animator
  146. local ANIMATE = Character.Animate
  147. local UNANCHOR = true
  148. local PLAYMAINANIM = true
  149. local BOLTSOUNDS = {168586621,168586586,178452241}
  150.  
  151. --//=================================\\
  152. --\\=================================//
  153.  
  154.  
  155. --//=================================\\
  156. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  157. --\\=================================//
  158.  
  159. ArtificialHB = Instance.new("BindableEvent", script)
  160. ArtificialHB.Name = "ArtificialHB"
  161.  
  162. script:WaitForChild("ArtificialHB")
  163.  
  164. frame = Frame_Speed
  165. tf = 0
  166. allowframeloss = false
  167. tossremainder = false
  168. lastframe = tick()
  169. script.ArtificialHB:Fire()
  170.  
  171. game:GetService("RunService").Heartbeat:connect(function(s, p)
  172. tf = tf + s
  173. if tf >= frame then
  174. if allowframeloss then
  175. script.ArtificialHB:Fire()
  176. lastframe = tick()
  177. else
  178. for i = 1, math.floor(tf / frame) do
  179. script.ArtificialHB:Fire()
  180. end
  181. lastframe = tick()
  182. end
  183. if tossremainder then
  184. tf = 0
  185. else
  186. tf = tf - frame * math.floor(tf / frame)
  187. end
  188. end
  189. end)
  190.  
  191.  
  192. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  193. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  194. end
  195.  
  196. function PositiveAngle(NUMBER)
  197. if NUMBER >= 0 then
  198. NUMBER = 0
  199. end
  200. return NUMBER
  201. end
  202.  
  203. function NegativeAngle(NUMBER)
  204. if NUMBER <= 0 then
  205. NUMBER = 0
  206. end
  207. return NUMBER
  208. end
  209.  
  210. function Swait(NUMBER)
  211. if NUMBER == 0 or NUMBER == nil then
  212. ArtificialHB.Event:wait()
  213. else
  214. for i = 1, NUMBER do
  215. ArtificialHB.Event:wait()
  216. end
  217. end
  218. end
  219.  
  220. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  221. local NEWMESH = IT(MESH)
  222. if MESH == "SpecialMesh" then
  223. NEWMESH.MeshType = MESHTYPE
  224. if MESHID ~= "nil" and MESHID ~= "" then
  225. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  226. end
  227. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  228. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  229. end
  230. end
  231. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  232. NEWMESH.Scale = SCALE
  233. NEWMESH.Parent = PARENT
  234. return NEWMESH
  235. end
  236.  
  237. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  238. local NEWPART = IT("Part")
  239. NEWPART.formFactor = FORMFACTOR
  240. NEWPART.Reflectance = REFLECTANCE
  241. NEWPART.Transparency = TRANSPARENCY
  242. NEWPART.CanCollide = false
  243. NEWPART.Locked = true
  244. NEWPART.Anchored = true
  245. if ANCHOR == false then
  246. NEWPART.Anchored = false
  247. end
  248. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  249. NEWPART.Name = NAME
  250. NEWPART.Size = SIZE
  251. NEWPART.Position = Torso.Position
  252. NEWPART.Material = MATERIAL
  253. NEWPART:BreakJoints()
  254. NEWPART.Parent = PARENT
  255. return NEWPART
  256. end
  257.  
  258. local function weldBetween(a, b)
  259. local weldd = Instance.new("ManualWeld")
  260. weldd.Part0 = a
  261. weldd.Part1 = b
  262. weldd.C0 = CFrame.new()
  263. weldd.C1 = b.CFrame:inverse() * a.CFrame
  264. weldd.Parent = a
  265. return weldd
  266. end
  267.  
  268.  
  269. function QuaternionFromCFrame(cf)
  270. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  271. local trace = m00 + m11 + m22
  272. if trace > 0 then
  273. local s = math.sqrt(1 + trace)
  274. local recip = 0.5 / s
  275. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  276. else
  277. local i = 0
  278. if m11 > m00 then
  279. i = 1
  280. end
  281. if m22 > (i == 0 and m00 or m11) then
  282. i = 2
  283. end
  284. if i == 0 then
  285. local s = math.sqrt(m00 - m11 - m22 + 1)
  286. local recip = 0.5 / s
  287. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  288. elseif i == 1 then
  289. local s = math.sqrt(m11 - m22 - m00 + 1)
  290. local recip = 0.5 / s
  291. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  292. elseif i == 2 then
  293. local s = math.sqrt(m22 - m00 - m11 + 1)
  294. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  295. end
  296. end
  297. end
  298.  
  299. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  300. local xs, ys, zs = x + x, y + y, z + z
  301. local wx, wy, wz = w * xs, w * ys, w * zs
  302. local xx = x * xs
  303. local xy = x * ys
  304. local xz = x * zs
  305. local yy = y * ys
  306. local yz = y * zs
  307. local zz = z * zs
  308. 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))
  309. end
  310.  
  311. function QuaternionSlerp(a, b, t)
  312. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  313. local startInterp, finishInterp;
  314. if cosTheta >= 0.0001 then
  315. if (1 - cosTheta) > 0.0001 then
  316. local theta = ACOS(cosTheta)
  317. local invSinTheta = 1 / SIN(theta)
  318. startInterp = SIN((1 - t) * theta) * invSinTheta
  319. finishInterp = SIN(t * theta) * invSinTheta
  320. else
  321. startInterp = 1 - t
  322. finishInterp = t
  323. end
  324. else
  325. if (1 + cosTheta) > 0.0001 then
  326. local theta = ACOS(-cosTheta)
  327. local invSinTheta = 1 / SIN(theta)
  328. startInterp = SIN((t - 1) * theta) * invSinTheta
  329. finishInterp = SIN(t * theta) * invSinTheta
  330. else
  331. startInterp = t - 1
  332. finishInterp = t
  333. end
  334. end
  335. 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
  336. end
  337.  
  338. function Clerp(a, b, t)
  339. local qa = {QuaternionFromCFrame(a)}
  340. local qb = {QuaternionFromCFrame(b)}
  341. local ax, ay, az = a.x, a.y, a.z
  342. local bx, by, bz = b.x, b.y, b.z
  343. local _t = 1 - t
  344. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  345. end
  346.  
  347. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  348. local frame = IT("Frame")
  349. frame.BackgroundTransparency = TRANSPARENCY
  350. frame.BorderSizePixel = BORDERSIZEPIXEL
  351. frame.Position = POSITION
  352. frame.Size = SIZE
  353. frame.BackgroundColor3 = COLOR
  354. frame.BorderColor3 = BORDERCOLOR
  355. frame.Name = NAME
  356. frame.Parent = PARENT
  357. return frame
  358. end
  359.  
  360. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  361. local label = IT("TextLabel")
  362. label.BackgroundTransparency = 1
  363. label.Size = UD2(1, 0, 1, 0)
  364. label.Position = UD2(0, 0, 0, 0)
  365. label.TextColor3 = TEXTCOLOR
  366. label.TextStrokeTransparency = STROKETRANSPARENCY
  367. label.TextTransparency = TRANSPARENCY
  368. label.FontSize = TEXTFONTSIZE
  369. label.Font = TEXTFONT
  370. label.BorderSizePixel = BORDERSIZEPIXEL
  371. label.TextScaled = false
  372. label.Text = TEXT
  373. label.Name = NAME
  374. label.Parent = PARENT
  375. return label
  376. end
  377.  
  378. function NoOutlines(PART)
  379. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  380. end
  381.  
  382. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  383. local NEWWELD = IT(TYPE)
  384. NEWWELD.Part0 = PART0
  385. NEWWELD.Part1 = PART1
  386. NEWWELD.C0 = C0
  387. NEWWELD.C1 = C1
  388. NEWWELD.Parent = PARENT
  389. return NEWWELD
  390. end
  391.  
  392. local S = IT("Sound")
  393. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  394. local NEWSOUND = nil
  395. coroutine.resume(coroutine.create(function()
  396. NEWSOUND = S:Clone()
  397. NEWSOUND.Parent = PARENT
  398. NEWSOUND.Volume = VOLUME
  399. NEWSOUND.Pitch = PITCH
  400. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  401. NEWSOUND:play()
  402. if DOESLOOP == true then
  403. NEWSOUND.Looped = true
  404. else
  405. repeat wait(1) until NEWSOUND.Playing == false
  406. NEWSOUND:remove()
  407. end
  408. end))
  409. return NEWSOUND
  410. end
  411.  
  412. local EyeSizes={
  413. NumberSequenceKeypoint.new(0,2,0),
  414. NumberSequenceKeypoint.new(1,0,0)
  415. }
  416. local EyeTrans={
  417. NumberSequenceKeypoint.new(0,0.5,0),
  418. NumberSequenceKeypoint.new(1,1,0)
  419. }
  420. local PE=Instance.new("ParticleEmitter",nil)
  421. PE.LightEmission=.8
  422. PE.Color = ColorSequence.new(BRICKC("Crimson").Color,BRICKC("Really red").Color)
  423. PE.Size=NumberSequence.new(EyeSizes)
  424. PE.Transparency=NumberSequence.new(EyeTrans)
  425. PE.Lifetime=NumberRange.new(0.35,1)
  426. PE.Rotation=NumberRange.new(0,360)
  427. PE.Rate=100
  428. PE.VelocitySpread = 10000
  429. PE.Acceleration = Vector3.new(0,85,0)
  430. PE.Drag = 5
  431. PE.Speed = NumberRange.new(0.1,5)
  432. PE.Texture="http://www.roblox.com/asset/?id=1460745664"
  433. PE.ZOffset = 0.5
  434. PE.Name = "PE"
  435. PE.Enabled = false
  436.  
  437. function Fire(art)
  438. local PARTICLES = PE:Clone()
  439. PARTICLES.Parent = art
  440. PARTICLES.Enabled = true
  441. return PARTICLES
  442. end
  443.  
  444. function CFrameFromTopBack(at, top, back)
  445. local right = top:Cross(back)
  446. 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)
  447. end
  448.  
  449. --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})
  450. function WACKYEFFECT(Table)
  451. local TYPE = (Table.EffectType or "Sphere")
  452. local SIZE = (Table.Size or VT(1,1,1))
  453. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  454. local TRANSPARENCY = (Table.Transparency or 0)
  455. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  456. local CFRAME = (Table.CFrame or Torso.CFrame)
  457. local MOVEDIRECTION = (Table.MoveToPos or nil)
  458. local ROTATION1 = (Table.RotationX or 0)
  459. local ROTATION2 = (Table.RotationY or 0)
  460. local ROTATION3 = (Table.RotationZ or 0)
  461. local MATERIAL = (Table.Material or "Neon")
  462. local COLOR = (Table.Color or C3(1,1,1))
  463. local TIME = (Table.Time or 45)
  464. local SOUNDID = (Table.SoundID or nil)
  465. local SOUNDPITCH = (Table.SoundPitch or nil)
  466. local SOUNDVOLUME = (Table.SoundVolume or nil)
  467. coroutine.resume(coroutine.create(function()
  468. local PLAYSSOUND = false
  469. local SOUND = nil
  470. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Crimson"), "Effect", VT(1,1,1), true)
  471. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  472. PLAYSSOUND = true
  473. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  474. end
  475. EFFECT.Color = COLOR
  476. local MSH = nil
  477. if TYPE == "Sphere" then
  478. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  479. elseif TYPE == "Block" or TYPE == "Box" then
  480. MSH = IT("BlockMesh",EFFECT)
  481. MSH.Scale = SIZE
  482. elseif TYPE == "Wave" then
  483. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  484. elseif TYPE == "Ring" then
  485. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  486. elseif TYPE == "Slash" then
  487. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  488. elseif TYPE == "Round Slash" then
  489. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  490. elseif TYPE == "Swirl" then
  491. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  492. elseif TYPE == "Skull" then
  493. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  494. elseif TYPE == "Crystal" then
  495. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  496. end
  497. if MSH ~= nil then
  498. local MOVESPEED = nil
  499. if MOVEDIRECTION ~= nil then
  500. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  501. end
  502. local GROWTH = SIZE - ENDSIZE
  503. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  504. if TYPE == "Block" then
  505. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  506. else
  507. EFFECT.CFrame = CFRAME
  508. end
  509. for LOOP = 1, TIME+1 do
  510. Swait()
  511. MSH.Scale = MSH.Scale - GROWTH/TIME
  512. if TYPE == "Wave" then
  513. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  514. end
  515. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  516. if TYPE == "Block" then
  517. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  518. else
  519. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  520. end
  521. if MOVEDIRECTION ~= nil then
  522. local ORI = EFFECT.Orientation
  523. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  524. EFFECT.Orientation = ORI
  525. end
  526. end
  527. if PLAYSSOUND == false then
  528. EFFECT:remove()
  529. else
  530. repeat wait(1) until SOUND.Playing == false
  531. EFFECT:remove()
  532. end
  533. else
  534. if PLAYSSOUND == false then
  535. EFFECT:remove()
  536. else
  537. repeat Swait() until SOUND.Playing == false
  538. EFFECT:remove()
  539. end
  540. end
  541. end))
  542. end
  543.  
  544. function MakeForm(PART,TYPE)
  545. if TYPE == "Cyl" then
  546. local MSH = IT("CylinderMesh",PART)
  547. elseif TYPE == "Ball" then
  548. local MSH = IT("SpecialMesh",PART)
  549. MSH.MeshType = "Sphere"
  550. elseif TYPE == "Wedge" then
  551. local MSH = IT("SpecialMesh",PART)
  552. MSH.MeshType = "Wedge"
  553. end
  554. end
  555.  
  556. Debris = game:GetService("Debris")
  557.  
  558. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  559. local DIRECTION = CF(StartPos,EndPos).lookVector
  560. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  561. end
  562.  
  563. local HATWELD = nil
  564. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  565. PLAYMAINANIM = false
  566. if WhichPose == "Cast1" then
  567. for i=0, Time, 0.1 / Animation_Speed do
  568. Swait()
  569. if Magic == true then
  570. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  571. end
  572. if Gyro ~= nil and Gyro ~= false then
  573. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  574. end
  575. 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)
  576. 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)
  577. 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)
  578. 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)
  579. 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)
  580. 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)
  581. end
  582. elseif WhichPose == "Cast2" then
  583. for i=0, Time, 0.1 / Animation_Speed do
  584. Swait()
  585. if Magic == true then
  586. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  587. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  588. end
  589. if Gyro ~= nil and Gyro ~= false then
  590. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  591. end
  592. 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)
  593. 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)
  594. 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)
  595. 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)
  596. 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)
  597. 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)
  598. end
  599. elseif WhichPose == "RightArmUp" then
  600. for i=0, Time, 0.1 / Animation_Speed do
  601. Swait()
  602. if Magic == true then
  603. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  604. end
  605. if Gyro ~= nil and Gyro ~= false then
  606. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  607. end
  608. 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)
  609. 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)
  610. 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)
  611. 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)
  612. 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)
  613. 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)
  614. end
  615. elseif WhichPose == "Taunt" then
  616. for i=0, Time, 0.1 / Animation_Speed do
  617. Swait()
  618. 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)
  619. 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)
  620. 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)
  621. 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)
  622. 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)
  623. 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)
  624. end
  625. HATWELD.Part0 = RightArm
  626. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  627. CreateSound(221057812,Torso,10,1,false)
  628. for i=0, Time*2, 0.1 / Animation_Speed do
  629. Swait()
  630. 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)
  631. 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)
  632. 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)
  633. 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)
  634. 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)
  635. 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)
  636. end
  637. for i=0, Time, 0.1 / Animation_Speed do
  638. Swait()
  639. 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)
  640. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  641. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  642. 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)
  643. 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)
  644. 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)
  645. 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)
  646. end
  647. HATWELD.Part0 = Head
  648. HATWELD.C0 = CF(0,0.35,0)
  649. elseif WhichPose == "Prepare key" then
  650. for i=0, Time, 0.1 / Animation_Speed do
  651. Swait()
  652. if Gyro ~= nil and Gyro ~= false then
  653. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  654. end
  655. 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)
  656. 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)
  657. 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)
  658. 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)
  659. 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)
  660. 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)
  661. end
  662. elseif WhichPose == "Turn key" then
  663. for i=0, Time, 0.1 / Animation_Speed do
  664. Swait()
  665. if Gyro ~= nil and Gyro ~= false then
  666. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  667. end
  668. 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)
  669. 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)
  670. 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)
  671. 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)
  672. 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)
  673. 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)
  674. end
  675. end
  676. PLAYMAINANIM = true
  677. end
  678.  
  679. --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})
  680. function Lightning(Table)
  681. local Color = Table.Color or C3(1,1,1)
  682. local StartPos = Table.Start or Torso.Position
  683. local EndPos = Table.End or Mouse.Hit.p
  684. local SegmentLength = Table.SegmentL or 2
  685. local Thickness = Table.Thickness or 0.1
  686. local Dissapear = Table.DoesFade or false
  687. local Parent = Table.Ignore or Character
  688. local MaxDist = Table.MaxDist or 400
  689. local Branches = Table.Branches or false
  690. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  691. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  692. local LIGHTNINGMODEL = IT("Model",Effects)
  693. LIGHTNINGMODEL.Name = "Lightning"
  694. local LastBolt = nil
  695. for E = 1, DISTANCE do
  696. local ExtraSize = (DISTANCE-E)/15
  697. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Crimson"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  698. PART.Color = Color
  699. MakeForm(PART,"Cyl")
  700. if LastBolt == nil then
  701. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  702. else
  703. 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)
  704. end
  705. LastBolt = PART
  706. if Branches == true then
  707. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  708. if CHOICE == 1 then
  709. local LASTBRANCH = nil
  710. for i = 1, MRANDOM(2,5) do
  711. local ExtraSize2 = ((DISTANCE-E)/25)/i
  712. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Crimson"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  713. PART.Color = Color
  714. MakeForm(PART,"Cyl")
  715. if LASTBRANCH == nil then
  716. 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)
  717. else
  718. 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)
  719. end
  720. LASTBRANCH = PART
  721. end
  722. end
  723. end
  724. end
  725. if Dissapear == true then
  726. coroutine.resume(coroutine.create(function()
  727. for i = 1, 10 do
  728. Swait()
  729. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  730. if c.ClassName == "Part" then
  731. c.Transparency = i/10
  732. end
  733. end
  734. end
  735. LIGHTNINGMODEL:remove()
  736. end))
  737. elseif Dissapear == false then
  738. Debris:AddItem(LIGHTNINGMODEL,0.1)
  739. end
  740. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  741. end
  742.  
  743. --//=================================\\
  744. --|| WEAPON CREATION
  745. --\\=================================//
  746.  
  747. for i = 1, 15 do
  748. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/15.2, "Dark stone grey", "FaceGradient", VT(1.01,0.58,1.01),false)
  749. FACE.Color = C3(0,0,0)
  750. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  751. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/35,0), CF(0, 0, 0))
  752. end
  753. local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2,0.2,2),false)
  754. MakeForm(HAT1,"Cyl")
  755. HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0))
  756. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2.01,0.15,2.01),false)
  757. BELT.Color = C3(15/255,15/255,15/255)
  758. MakeForm(BELT,"Cyl")
  759. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0))
  760. local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,2.2,1.3),false)
  761. MakeForm(HAT2,"Cyl")
  762. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0))
  763. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.2,1.31),false)
  764. BELT.Color = C3(15/255,15/255,15/255)
  765. MakeForm(BELT,"Cyl")
  766. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0))
  767. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Deep orange", "Gem", VT(0.25,0.25,0.1),false)
  768. MakeForm(GEM,"Ball")
  769. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0))
  770. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Deep orange", "Gem", VT(0.25,0.25,0.1),false)
  771. MakeForm(GEM,"Ball")
  772. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0))
  773. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Deep orange", "Gem", VT(0.1,0.25,0.25),false)
  774. MakeForm(GEM,"Ball")
  775. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0))
  776. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Deep orange", "Gem", VT(0.1,0.25,0.25),false)
  777. MakeForm(GEM,"Ball")
  778. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0))
  779. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  780. BELT.Color = C3(15/255,15/255,15/255)
  781. MakeForm(BELT,"Cyl")
  782. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0))
  783. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  784. BELT.Color = C3(15/255,15/255,15/255)
  785. MakeForm(BELT,"Cyl")
  786. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0))
  787. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  788. BELT.Color = C3(15/255,15/255,15/255)
  789. MakeForm(BELT,"Cyl")
  790. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0))
  791. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  792. BELT.Color = C3(15/255,15/255,15/255)
  793. MakeForm(BELT,"Cyl")
  794. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0))
  795. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,0.5,1.3),false)
  796. MakeForm(BELT,"Ball")
  797. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0))
  798. Humanoid.DisplayDistanceType = "None"
  799. local naeeym2 = IT("BillboardGui",Character)
  800. naeeym2.AlwaysOnTop = true
  801. naeeym2.Size = UDim2.new(5,35,2,15)
  802. naeeym2.StudsOffset = Vector3.new(0,3,0)
  803. naeeym2.MaxDistance = 75
  804. naeeym2.Adornee = Character.Head
  805. naeeym2.Name = "Name"
  806. naeeym2.PlayerToHideFrom = Player
  807. local tecks2 = IT("TextLabel",naeeym2)
  808. tecks2.BackgroundTransparency = 1
  809. tecks2.TextScaled = true
  810. tecks2.BorderSizePixel = 0
  811. tecks2.Text = "The Warden"
  812. tecks2.Font = "Bodoni"
  813. tecks2.TextSize = 30
  814. tecks2.TextStrokeTransparency = 0.5
  815. tecks2.TextColor3 = C3(0,0,0)
  816. tecks2.TextStrokeColor3 = BRICKC"Deep orange".Color
  817. tecks2.Size = UDim2.new(1,0,0.5,0)
  818. tecks2.Parent = naeeym2
  819. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Deep orange", "FaceGradient", VT(0.6,0.1,1)/2,false)
  820. MakeForm(EYE,"Ball")
  821. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  822. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Deep orange", "FaceGradient", VT(0.6,0.1,1)/2,false)
  823. MakeForm(EYE,"Ball")
  824. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  825. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Deep orange", "FaceGradient", VT(0.1,1,1)/2,false)
  826. MakeForm(EYE,"Ball")
  827. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  828. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Deep orange", "FaceGradient", VT(0.1,1,1)/2,false)
  829. MakeForm(EYE,"Ball")
  830. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  831.  
  832. local top = Instance.new("Shirt")
  833. top.ShirtTemplate = "rbxassetid://676428254"
  834. top.Parent = Character
  835. top.Name = "Cloth"
  836. local bottom = Instance.new("Pants")
  837. bottom.PantsTemplate = "rbxassetid://676428351"
  838. bottom.Parent = Character
  839. bottom.Name = "Cloth"
  840. for _, c in pairs(Character:GetChildren()) do
  841. if c.ClassName == "Part" and c.Name ~= "FaceGradient" and c.Name ~= "Hat" and c.Name ~= "Gem" then
  842. c.Material = "Neon"
  843. if c:FindFirstChildOfClass("ParticleEmitter") then
  844. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  845. end
  846. c.Color = C3(1,1,1)
  847. if c == Head then
  848. if c:FindFirstChild("face") then
  849. c.face:remove()
  850. end
  851. end
  852. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  853. c:remove()
  854. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  855. c:remove()
  856. end
  857. end
  858. local BODY = {}
  859. for _, c in pairs(Character:GetDescendants()) do
  860. if c:IsA("BasePart") and c.Name ~= "Handle" then
  861. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  862. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  863. end
  864. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  865. elseif c:IsA("JointInstance") then
  866. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  867. end
  868. end
  869. for e = 1, #BODY do
  870. if BODY[e] ~= nil then
  871. local STUFF = BODY[e]
  872. local PART = STUFF[1]
  873. local PARENT = STUFF[2]
  874. local MATERIAL = STUFF[3]
  875. local COLOR = STUFF[4]
  876. local TRANSPARENCY = STUFF[5]
  877. if PART.ClassName == "Part" and PART ~= RootPart then
  878. PART.Material = MATERIAL
  879. PART.Color = COLOR
  880. PART.Transparency = TRANSPARENCY
  881. end
  882. PART.AncestryChanged:Connect(function()
  883. PART.Parent = PARENT
  884. end)
  885. end
  886. end
  887. function refit()
  888. Character.Parent = workspace
  889. for e = 1, #BODY do
  890. if BODY[e] ~= nil then
  891. local STUFF = BODY[e]
  892. local PART = STUFF[1]
  893. local PARENT = STUFF[2]
  894. local MATERIAL = STUFF[3]
  895. local COLOR = STUFF[4]
  896. local TRANSPARENCY = STUFF[5]
  897. if PART.ClassName == "Part" and PART ~= RootPart then
  898. PART.Material = MATERIAL
  899. PART.Color = COLOR
  900. PART.Transparency = TRANSPARENCY
  901. end
  902. if PART.Parent ~= PARENT then
  903. Humanoid:remove()
  904. PART.Parent = PARENT
  905. Humanoid = IT("Humanoid",Character)
  906. end
  907. end
  908. end
  909. end
  910. local SKILLTEXTCOLOR = BRICKC"Deep orange".Color
  911. local SKILLFONT = "Bodoni"
  912. local SKILLTEXTSIZE = 7
  913.  
  914. Humanoid.Died:connect(function()
  915. refit()
  916. end)
  917.  
  918. 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")
  919. 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")
  920. 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")
  921. 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")
  922. 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")
  923.  
  924. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Warden Zap", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
  925. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Warden Thunder", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  926. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Inferno Ring", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  927. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warden Wall", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
  928. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Prison Key", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
  929.  
  930.  
  931.  
  932. function ApplyAoE(POSITION,RANGE,FLING,BURN)
  933. local CHILDREN = workspace:GetDescendants()
  934. for index, CHILD in pairs(CHILDREN) do
  935. if CHILD.ClassName == "Model" and CHILD ~= Character then
  936. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  937. if HUM then
  938. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  939. if TORSO then
  940. if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
  941. CHILD:BreakJoints()
  942. if FLING ~= 0 then
  943. for _, c in pairs(CHILD:GetChildren()) do
  944. if c:IsA("BasePart") and c.Transparency == 0 then
  945. if BURN == true then
  946. Fire(c)
  947. end
  948. local bv = Instance.new("BodyVelocity")
  949. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  950. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  951. bv.Parent = c
  952. Debris:AddItem(bv,0.05)
  953. end
  954. end
  955. end
  956. end
  957. end
  958. end
  959. end
  960. end
  961. end
  962.  
  963.  
  964.  
  965. function Warden_Zap()
  966. ATTACK = true
  967. Rooted = false
  968. local GYRO = IT("BodyGyro",RootPart)
  969. GYRO.D = 750
  970. GYRO.P = 20000
  971. GYRO.MaxTorque = VT(0,40000000,0)
  972. CreateSound(348663022,RightArm,1.5,2,false)
  973. Pose("Cast1",0.8,1,true,GYRO)
  974. 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})
  975. local Hitpos = LightningTable.End
  976. ApplyAoE(Hitpos,10,35)
  977. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(1,1,1)*15, Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  978. for i = 1, 4 do
  979. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,45,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  980. end
  981. Pose("Cast1",0.8,1,true)
  982. GYRO:remove()
  983. ATTACK = false
  984. Rooted = false
  985. end
  986.  
  987. function Warden_Thunder()
  988. ATTACK = true
  989. Rooted = false
  990. local GYRO = IT("BodyGyro",RootPart)
  991. GYRO.D = 750
  992. GYRO.P = 20000
  993. GYRO.MaxTorque = VT(0,40000000,0)
  994. CreateSound(469345336,Torso,3,2,false)
  995. Pose("Cast2",1.5,2,true,GYRO)
  996. coroutine.resume(coroutine.create(function()
  997. local FRAME = RootPart.CFrame
  998. for i = 1, 25 do
  999. local POS = FRAME*CF(MRANDOM(-17,17),0,-i*15)
  1000. 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})
  1001. local Hitpos = LightningTable.End
  1002. ApplyAoE(Hitpos,20,15)
  1003. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(1,1,1)*15, Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  1004. for i = 1, 4 do
  1005. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,75,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1006. end
  1007. wait(0.05)
  1008. end
  1009. end))
  1010. Pose("Cast2",1.5,0.7,true)
  1011. GYRO:remove()
  1012. ATTACK = false
  1013. Rooted = false
  1014. end
  1015.  
  1016. function Inferno_Ring()
  1017. QaukeSize1()
  1018. ATTACK = true
  1019. Rooted = false
  1020. local GYRO = IT("BodyGyro",RootPart)
  1021. GYRO.D = 750
  1022. GYRO.P = 20000
  1023. GYRO.MaxTorque = VT(0,40000000,0)
  1024. local FIRE = IT("Model",Effects)
  1025. FIRE.Name = "Fire"
  1026. local MAIN = CreatePart(3, FIRE, "Neon", 0, 1, "Really red", "Center", VT(0,0,0))
  1027. FIRE.PrimaryPart = MAIN
  1028. local FIRES = {}
  1029. for i = 1, 45 do
  1030. local PRT = CreatePart(3, FIRE, "Neon", 0, 1, "Really red", "RingPart", VT(3,3,3))
  1031. PRT.CFrame = MAIN.CFrame*ANGLES(RAD(0),RAD((360/45)*i),RAD(0))*CF(0,0,20)
  1032. local F = Fire(PRT)
  1033. table.insert(FIRES,F)
  1034. end
  1035. repeat
  1036. FIRE:SetPrimaryPartCFrame(CF(Mouse.Hit.p))
  1037. Pose("Cast1",1.5,0.01,false,GYRO)
  1038. until HOLD == true
  1039. coroutine.resume(coroutine.create(function()
  1040. for i = 1, 4 do
  1041. ApplyAoE(MAIN.Position,21,-15,true)
  1042. CreateSound(463598785,MAIN,3,1,false)
  1043. for E = 1, #FIRES do
  1044. if FIRES[E] ~= nil then
  1045. FIRES[E].Acceleration = VT(0,300,0)
  1046. FIRES[E].Lifetime=NumberRange.new(0.35,1.5)
  1047. end
  1048. end
  1049. wait(0.3)
  1050. end
  1051. for E = 1, #FIRES do
  1052. if FIRES[E] ~= nil then
  1053. FIRES[E].Enabled = false
  1054. end
  1055. end
  1056. Debris:AddItem(FIRE,5)
  1057. end))
  1058. CreateSound(215395388,RightArm,3,2,false)
  1059. Pose("RightArmUp",1.5,0.5,true)
  1060. GYRO:remove()
  1061. ATTACK = false
  1062. Rooted = false
  1063. end
  1064.  
  1065. function Warden_Wall()
  1066. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 8, Character)
  1067. if HITFLOOR ~= nil then
  1068. if HITFLOOR.Anchored == true then
  1069. local WALL = HITFLOOR:Clone()
  1070. WALL.Size = VT(44.87, 187.77, 2)
  1071. WALL.Parent = Effects
  1072. WALL.Name = "Wall"
  1073. WALL.CFrame = RootPart.CFrame*CF(0,-65/2.1,-5)*ANGLES(RAD(-15),RAD(0),RAD(0))
  1074. CreateSound(130972023,WALL,5,0.8,false)
  1075. ATTACK = true
  1076. Rooted = true
  1077. local HIT = WALL.Touched:Connect(function(hit)
  1078. if hit.Parent ~= Character then
  1079. hit:BreakJoints()
  1080. end
  1081. end)
  1082. coroutine.resume(coroutine.create(function()
  1083. WACKYEFFECT({Time = 35, EffectType = "Box", Size = WALL.Size, Size2 = WALL.Size*2, Transparency = 0, Transparency2 = 1, CFrame = WALL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1084. for i = 1, 90 do
  1085. Swait()
  1086. WALL.CFrame = WALL.CFrame*CF(0,0.5,0)
  1087. end
  1088. HIT:disconnect()
  1089. wait(5)
  1090. for i = 1, 46 do
  1091. Swait()
  1092. WALL.CFrame = WALL.CFrame*CF(0,-1,0)
  1093. end
  1094. WALL:remove()
  1095. end))
  1096. Pose("RightArmUp",1.5,1.2,true)
  1097. ATTACK = false
  1098. Rooted = false
  1099. end
  1100. end
  1101. end
  1102.  
  1103. function Prison_Key()
  1104. if Mouse.Target ~= nil then
  1105. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1106. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1107. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1108. local GYRO = IT("BodyGyro",RootPart)
  1109. GYRO.D = 750
  1110. GYRO.P = 20000
  1111. GYRO.MaxTorque = VT(0,40000000,0)
  1112. local grav = Instance.new("BodyPosition",TORSO)
  1113. grav.D = 15
  1114. grav.P = 20000
  1115. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1116. grav.position = TORSO.Position
  1117. local GYRO2 = IT("BodyGyro",TORSO)
  1118. GYRO2.D = 750
  1119. GYRO2.P = 20000
  1120. GYRO2.MaxTorque = VT(0,40000000,0)
  1121. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1122. grav.Name = "Jail"
  1123. local LOCKPARTS = {}
  1124. ATTACK = true
  1125. Rooted = false
  1126. local LOCK = IT("Model",Effects)
  1127. LOCK.Name = "Lock"
  1128. local LOCK2 = IT("Model",LOCK)
  1129. LOCK2.Name = "Metal"
  1130. --CREATE LOCK--
  1131. local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
  1132. LOCK.PrimaryPart = BASE
  1133. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  1134. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
  1135. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  1136. MakeForm(PRT,"Cyl")
  1137. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
  1138. PRT.Color = C3(0,0,0)
  1139. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  1140. MakeForm(PRT,"Cyl")
  1141. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
  1142. PRT.Color = C3(0,0,0)
  1143. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  1144. for i = 1, 45 do
  1145. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1146. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  1147. end
  1148. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1149. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  1150. LOCK2.PrimaryPart = PRT
  1151. ---------------
  1152. local CHILDREN = LOCK:GetDescendants()
  1153. for index, CHILD in pairs(CHILDREN) do
  1154. if CHILD:IsA("BasePart") then
  1155. CHILD.Transparency = 1
  1156. end
  1157. end
  1158. for i = 1, 75 do
  1159. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  1160. Swait()
  1161. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1162. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1163. local CHILDREN = LOCK:GetDescendants()
  1164. for index, CHILD in pairs(CHILDREN) do
  1165. if CHILD:IsA("BasePart") then
  1166. CHILD.Transparency = CHILD.Transparency - 1/75
  1167. end
  1168. end
  1169. end
  1170. HUM.DisplayDistanceType = "None"
  1171. local KEY = IT("Model",Effects)
  1172. KEY.Name = "Key"
  1173. --CREATE KEY--
  1174. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Deep orange", "KeyBase", VT(0.1, 1, 0.1),false)
  1175. KEY.PrimaryPart = KBASE
  1176. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  1177. local WLD = weldBetween(RightArm,KBASE)
  1178. for i = 1, 45 do
  1179. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Deep orange", "Key", VT(0.1, 0.1, 0.1),false)
  1180. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  1181. weldBetween(KBASE,PRT)
  1182. end
  1183. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Deep orange", "Key", VT(0.3, 0.1, 0.1),false)
  1184. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  1185. weldBetween(KBASE,PRT)
  1186. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Deep orange", "Key", VT(0.3, 0.1, 0.1),false)
  1187. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  1188. weldBetween(KBASE,PRT)
  1189. --------------
  1190. Rooted = true
  1191. Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
  1192. coroutine.resume(coroutine.create(function()
  1193. for i = 1, 10 do
  1194. Swait()
  1195. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1196. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1197. end
  1198. CreateSound(1149318312,BASE,5,1,false)
  1199. CreateSound(160772554,BASE,3,1,false)
  1200. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  1201. for i = 1, 4 do
  1202. WACKYEFFECT({Time = 35, EffectType = "Crystal", Size = VT(1,1,1), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(1,1.45,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1203. end
  1204. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  1205. wait(1)
  1206. TORSO.Parent.Parent = LOCK
  1207. for i = 1, 75 do
  1208. Swait()
  1209. local CHILDREN = KEY:GetDescendants()
  1210. for index, CHILD in pairs(CHILDREN) do
  1211. if CHILD:IsA("BasePart") then
  1212. CHILD.Transparency = i/25
  1213. end
  1214. end
  1215. local CHILDREN = LOCK:GetDescendants()
  1216. for index, CHILD in pairs(CHILDREN) do
  1217. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  1218. CHILD.Transparency = CHILD.Transparency + 1/75
  1219. elseif CHILD.ClassName == "Decal" then
  1220. CHILD.Transparency = CHILD.Transparency + 1/75
  1221. end
  1222. end
  1223. end
  1224. TORSO.Parent:ClearAllChildren()
  1225. KEY:remove()
  1226. LOCK:remove()
  1227. end))
  1228. Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
  1229. GYRO:remove()
  1230. ATTACK = false
  1231. Rooted = false
  1232. end
  1233. end
  1234. end
  1235.  
  1236. function Hat()
  1237. ATTACK = true
  1238. Rooted = false
  1239. Pose("Taunt",0.4,1.2,false)
  1240. ATTACK = false
  1241. Rooted = false
  1242. end
  1243.  
  1244. --//=================================\\
  1245. --|| ASSIGN THINGS TO KEYS
  1246. --\\=================================//
  1247.  
  1248. function MouseDown(Mouse)
  1249. HOLD = true
  1250. if ATTACK == false then
  1251. end
  1252. end
  1253.  
  1254. function MouseUp(Mouse)
  1255. HOLD = false
  1256. end
  1257.  
  1258. function KeyDown(Key)
  1259. KEYHOLD = true
  1260. if Key == "z" and ATTACK == false then
  1261. Warden_Zap()
  1262. end
  1263.  
  1264. if Key == "b" and ATTACK == false then
  1265. Warden_Thunder()
  1266. end
  1267.  
  1268. if Key == "c" and ATTACK == false then
  1269. Inferno_Ring()
  1270. end
  1271.  
  1272. if Key == "v" and ATTACK == false then
  1273. Warden_Wall()
  1274. end
  1275.  
  1276. if Key == "x" and ATTACK == false then
  1277. Prison_Key()
  1278. end
  1279.  
  1280. if Key == "t" and ATTACK == false then
  1281. Hat()
  1282. end
  1283. end
  1284.  
  1285. function KeyUp(Key)
  1286. KEYHOLD = false
  1287. end
  1288.  
  1289. Mouse.Button1Down:connect(function(NEWKEY)
  1290. MouseDown(NEWKEY)
  1291. end)
  1292. Mouse.Button1Up:connect(function(NEWKEY)
  1293. MouseUp(NEWKEY)
  1294. end)
  1295. Mouse.KeyDown:connect(function(NEWKEY)
  1296. KeyDown(NEWKEY)
  1297. end)
  1298. Mouse.KeyUp:connect(function(NEWKEY)
  1299. KeyUp(NEWKEY)
  1300. end)
  1301.  
  1302.  
  1303.  
  1304.  
  1305. function unanchor()
  1306. if UNANCHOR == true then
  1307. g = Character:GetChildren()
  1308. for i = 1, #g do
  1309. if g[i].ClassName == "Part" then
  1310. g[i].Anchored = false
  1311. end
  1312. end
  1313. end
  1314. end
  1315.  
  1316.  
  1317.  
  1318.  
  1319. Humanoid.Changed:connect(function(Jump)
  1320. if Jump == "Jump" and (Disable_Jump == true) then
  1321. Humanoid.Jump = false
  1322. end
  1323. end)
  1324.  
  1325. while true do
  1326. Swait()
  1327. script.Parent = WEAPONGUI
  1328. Humanoid.Parent = Character
  1329. if Humanoid then
  1330. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1331. IDLEANIMATION:Play()
  1332. end
  1333. if ANIMATE.Parent == Character then
  1334. ANIMATE:Destroy()
  1335. end
  1336. SINE = SINE + CHANGE
  1337. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1338. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1339. Humanoid.HipHeight = 1
  1340. Humanoid.Name = "Warden"
  1341. Humanoid.PlatformStand = false
  1342. if PLAYMAINANIM == true then
  1343. if TORSOVELOCITY < 1 then
  1344. 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)
  1345. 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)
  1346. 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)
  1347. 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)
  1348. 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)
  1349. 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)
  1350. elseif TORSOVELOCITY > 1 then
  1351. 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)
  1352. 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)
  1353. 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)
  1354. 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)
  1355. 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)
  1356. 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)
  1357. end
  1358. end
  1359. unanchor()
  1360. Humanoid.MaxHealth = "inf"
  1361. Humanoid.Health = "inf"
  1362. if Rooted == false then
  1363. Disable_Jump = false
  1364. Humanoid.WalkSpeed = Speed
  1365. elseif Rooted == true then
  1366. Disable_Jump = true
  1367. Humanoid.WalkSpeed = 0
  1368. end
  1369. for _, c in pairs(Character:GetChildren()) do
  1370. if c.ClassName == "Part" and c.Name ~= "Eye" then
  1371. c.Material = "Neon"
  1372. if c:FindFirstChildOfClass("ParticleEmitter") then
  1373. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1374. end
  1375. c.Color = C3(1,1,1)
  1376. if c == Head then
  1377. if c:FindFirstChild("face") then
  1378. c.face:remove()
  1379. end
  1380. end
  1381. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  1382. c:remove()
  1383. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1384. c:remove()
  1385. end
  1386. end
  1387. sick.SoundId = "rbxassetid://431198653"
  1388. sick.Looped = true
  1389. sick.Pitch = 1
  1390. sick.Volume = 10
  1391. sick:Resume()
  1392. sick.Parent = Torso
  1393. refit()
  1394. if Head:FindFirstChildOfClass("Sound") then
  1395. Head:FindFirstChildOfClass("Sound"):remove()
  1396. end
  1397. end
Advertisement
Add Comment
Please, Sign In to add comment