Advertisement
Robert666121

Untitled

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