McRoblox132

Mr red sparkle time Edit (Warden) (Fixed)

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