Advertisement
Guest User

fgdggnv

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