Advertisement
PiterMosskva_TV

lunar warden maybe

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