Advertisement
foxy_game4

Untitled

Jul 1st, 2018
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --//====================================================\\--
  2. --|| CREDITS TO SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5.  
  6.  
  7. wait(0.2)
  8.  
  9.  
  10.  
  11. Player = game:GetService("Players").LocalPlayer
  12. PlayerGui = Player.PlayerGui
  13. Cam = workspace.CurrentCamera
  14. Backpack = Player.Backpack
  15. Character = Player.Character
  16. Humanoid = Character.Humanoid
  17. Mouse = Player:GetMouse()
  18. RootPart = Character["HumanoidRootPart"]
  19. Torso = Character["Torso"]
  20. Head = Character["Head"]
  21. RightArm = Character["Right Arm"]
  22. LeftArm = Character["Left Arm"]
  23. RightLeg = Character["Right Leg"]
  24. LeftLeg = Character["Left Leg"]
  25. RootJoint = RootPart["RootJoint"]
  26. Neck = Torso["Neck"]
  27. RightShoulder = Torso["Right Shoulder"]
  28. LeftShoulder = Torso["Left Shoulder"]
  29. RightHip = Torso["Right Hip"]
  30. LeftHip = Torso["Left Hip"]
  31. local sick = Instance.new("Sound",Character)
  32. sick.SoundId = "rbxassetid://1351017179"
  33. sick.Looped = true
  34. sick.Pitch = 1
  35. sick.Volume = 1
  36. sick:Play()
  37.  
  38. IT = Instance.new
  39. CF = CFrame.new
  40. VT = Vector3.new
  41. RAD = math.rad
  42. C3 = Color3.new
  43. UD2 = UDim2.new
  44. BRICKC = BrickColor.new
  45. ANGLES = CFrame.Angles
  46. EULER = CFrame.fromEulerAnglesXYZ
  47. COS = math.cos
  48. ACOS = math.acos
  49. SIN = math.sin
  50. ASIN = math.asin
  51. ABS = math.abs
  52. MRANDOM = math.random
  53. FLOOR = math.floor
  54.  
  55. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  56. local NEWMESH = IT(MESH)
  57. if MESH == "SpecialMesh" then
  58. NEWMESH.MeshType = MESHTYPE
  59. if MESHID ~= "nil" and MESHID ~= "" then
  60. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  61. end
  62. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  63. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  64. end
  65. end
  66. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  67. NEWMESH.Scale = SCALE
  68. NEWMESH.Parent = PARENT
  69. return NEWMESH
  70. end
  71.  
  72. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  73. local NEWPART = IT("Part")
  74. NEWPART.formFactor = FORMFACTOR
  75. NEWPART.Reflectance = REFLECTANCE
  76. NEWPART.Transparency = TRANSPARENCY
  77. NEWPART.CanCollide = false
  78. NEWPART.Locked = true
  79. NEWPART.Anchored = true
  80. if ANCHOR == false then
  81. NEWPART.Anchored = false
  82. end
  83. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  84. NEWPART.Name = NAME
  85. NEWPART.Size = SIZE
  86. NEWPART.Position = Torso.Position
  87. NEWPART.Material = MATERIAL
  88. NEWPART:BreakJoints()
  89. NEWPART.Parent = PARENT
  90. return NEWPART
  91. end
  92.  
  93. --//=================================\\
  94. --|| CUSTOMIZATION
  95. --\\=================================//
  96.  
  97. Player_Size = 1 --Size of the player.
  98. Animation_Speed = 3
  99. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  100.  
  101. local Speed = 16
  102. local Effects2 = {}
  103.  
  104. --//=================================\\
  105. --|| END OF CUSTOMIZATION
  106. --\\=================================//
  107.  
  108. local function weldBetween(a, b)
  109. local weldd = Instance.new("ManualWeld")
  110. weldd.Part0 = a
  111. weldd.Part1 = b
  112. weldd.C0 = CFrame.new()
  113. weldd.C1 = b.CFrame:inverse() * a.CFrame
  114. weldd.Parent = a
  115. return weldd
  116. end
  117.  
  118. --//=================================\\
  119. --|| USEFUL VALUES
  120. --\\=================================//
  121.  
  122. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  123. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  124. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  125. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  126. local CHANGEDEFENSE = 0
  127. local CHANGEDAMAGE = 0
  128. local CHANGEMOVEMENT = 0
  129. local ANIM = "Idle"
  130. local ATTACK = false
  131. local EQUIPPED = false
  132. local HOLD = false
  133. local COMBO = 1
  134. local Rooted = false
  135. local SINE = 0
  136. local KEYHOLD = false
  137. local CHANGE = 2 / Animation_Speed
  138. local WALKINGANIM = false
  139. local WALK = 0
  140. local VALUE1 = false
  141. local VALUE2 = false
  142. local ROBLOXIDLEANIMATION = IT("Animation")
  143. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  144. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  145. --ROBLOXIDLEANIMATION.Parent = Humanoid
  146. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  147. WEAPONGUI.Name = "Weapon GUI"
  148. local Effects = IT("Folder", Character)
  149. Effects.Name = "Effects"
  150. local ANIMATOR = Humanoid.Animator
  151. local ANIMATE = Character.Animate
  152. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  153. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  154. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  155. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  156. local UNANCHOR = true
  157.  
  158. local SKILLTEXTCOLOR = C3(0.05,0.05,0.15)
  159.  
  160. --//=================================\\
  161. --\\=================================//
  162.  
  163.  
  164. --//=================================\\
  165. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  166. --\\=================================//
  167.  
  168. ArtificialHB = Instance.new("BindableEvent", script)
  169. ArtificialHB.Name = "ArtificialHB"
  170.  
  171. script:WaitForChild("ArtificialHB")
  172.  
  173. frame = Frame_Speed
  174. tf = 0
  175. allowframeloss = false
  176. tossremainder = false
  177. lastframe = tick()
  178. script.ArtificialHB:Fire()
  179.  
  180. game:GetService("RunService").Heartbeat:connect(function(s, p)
  181. tf = tf + s
  182. if tf >= frame then
  183. if allowframeloss then
  184. script.ArtificialHB:Fire()
  185. lastframe = tick()
  186. else
  187. for i = 1, math.floor(tf / frame) do
  188. script.ArtificialHB:Fire()
  189. end
  190. lastframe = tick()
  191. end
  192. if tossremainder then
  193. tf = 0
  194. else
  195. tf = tf - frame * math.floor(tf / frame)
  196. end
  197. end
  198. end)
  199.  
  200. --//=================================\\
  201. --\\=================================//
  202.  
  203.  
  204.  
  205.  
  206.  
  207. --//=================================\\
  208. --|| SOME FUNCTIONS
  209. --\\=================================//
  210.  
  211. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  212. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  213. end
  214.  
  215. function PositiveAngle(NUMBER)
  216. if NUMBER >= 0 then
  217. NUMBER = 0
  218. end
  219. return NUMBER
  220. end
  221.  
  222. function NegativeAngle(NUMBER)
  223. if NUMBER <= 0 then
  224. NUMBER = 0
  225. end
  226. return NUMBER
  227. end
  228.  
  229. function Swait(NUMBER)
  230. if NUMBER == 0 or NUMBER == nil then
  231. ArtificialHB.Event:wait()
  232. else
  233. for i = 1, NUMBER do
  234. ArtificialHB.Event:wait()
  235. end
  236. end
  237. end
  238.  
  239. function QuaternionFromCFrame(cf)
  240. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  241. local trace = m00 + m11 + m22
  242. if trace > 0 then
  243. local s = math.sqrt(1 + trace)
  244. local recip = 0.5 / s
  245. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  246. else
  247. local i = 0
  248. if m11 > m00 then
  249. i = 1
  250. end
  251. if m22 > (i == 0 and m00 or m11) then
  252. i = 2
  253. end
  254. if i == 0 then
  255. local s = math.sqrt(m00 - m11 - m22 + 1)
  256. local recip = 0.5 / s
  257. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  258. elseif i == 1 then
  259. local s = math.sqrt(m11 - m22 - m00 + 1)
  260. local recip = 0.5 / s
  261. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  262. elseif i == 2 then
  263. local s = math.sqrt(m22 - m00 - m11 + 1)
  264. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  265. end
  266. end
  267. end
  268.  
  269. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  270. local xs, ys, zs = x + x, y + y, z + z
  271. local wx, wy, wz = w * xs, w * ys, w * zs
  272. local xx = x * xs
  273. local xy = x * ys
  274. local xz = x * zs
  275. local yy = y * ys
  276. local yz = y * zs
  277. local zz = z * zs
  278. 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))
  279. end
  280.  
  281. function QuaternionSlerp(a, b, t)
  282. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  283. local startInterp, finishInterp;
  284. if cosTheta >= 0.0001 then
  285. if (1 - cosTheta) > 0.0001 then
  286. local theta = ACOS(cosTheta)
  287. local invSinTheta = 1 / SIN(theta)
  288. startInterp = SIN((1 - t) * theta) * invSinTheta
  289. finishInterp = SIN(t * theta) * invSinTheta
  290. else
  291. startInterp = 1 - t
  292. finishInterp = t
  293. end
  294. else
  295. if (1 + cosTheta) > 0.0001 then
  296. local theta = ACOS(-cosTheta)
  297. local invSinTheta = 1 / SIN(theta)
  298. startInterp = SIN((t - 1) * theta) * invSinTheta
  299. finishInterp = SIN(t * theta) * invSinTheta
  300. else
  301. startInterp = t - 1
  302. finishInterp = t
  303. end
  304. end
  305. 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
  306. end
  307.  
  308. function Clerp(a, b, t)
  309. local qa = {QuaternionFromCFrame(a)}
  310. local qb = {QuaternionFromCFrame(b)}
  311. local ax, ay, az = a.x, a.y, a.z
  312. local bx, by, bz = b.x, b.y, b.z
  313. local _t = 1 - t
  314. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  315. end
  316.  
  317. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  318. local frame = IT("Frame")
  319. frame.BackgroundTransparency = TRANSPARENCY
  320. frame.BorderSizePixel = BORDERSIZEPIXEL
  321. frame.Position = POSITION
  322. frame.Size = SIZE
  323. frame.BackgroundColor3 = COLOR
  324. frame.BorderColor3 = BORDERCOLOR
  325. frame.Name = NAME
  326. frame.Parent = PARENT
  327. return frame
  328. end
  329.  
  330. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  331. local label = IT("TextLabel")
  332. label.BackgroundTransparency = 1
  333. label.Size = UD2(1, 0, 1, 0)
  334. label.Position = UD2(0, 0, 0, 0)
  335. label.TextColor3 = TEXTCOLOR
  336. label.TextStrokeTransparency = STROKETRANSPARENCY
  337. label.TextTransparency = TRANSPARENCY
  338. label.FontSize = TEXTFONTSIZE
  339. label.Font = TEXTFONT
  340. label.BorderSizePixel = BORDERSIZEPIXEL
  341. label.TextScaled = false
  342. label.Text = TEXT
  343. label.Name = NAME
  344. label.Parent = PARENT
  345. return label
  346. end
  347.  
  348. function NoOutlines(PART)
  349. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  350. end
  351.  
  352.  
  353. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  354. local NEWWELD = IT(TYPE)
  355. NEWWELD.Part0 = PART0
  356. NEWWELD.Part1 = PART1
  357. NEWWELD.C0 = C0
  358. NEWWELD.C1 = C1
  359. NEWWELD.Parent = PARENT
  360. return NEWWELD
  361. end
  362.  
  363. function CreateSound(ID, PARENT, VOLUME, PITCH)
  364. local NEWSOUND = nil
  365. coroutine.resume(coroutine.create(function()
  366. NEWSOUND = IT("Sound", PARENT)
  367. NEWSOUND.Volume = VOLUME
  368. NEWSOUND.Pitch = PITCH
  369. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  370. Swait()
  371. NEWSOUND:play()
  372. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  373. end))
  374. return NEWSOUND
  375. end
  376.  
  377. function CFrameFromTopBack(at, top, back)
  378. local right = top:Cross(back)
  379. 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)
  380. end
  381.  
  382. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  383. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  384. wave.Color = COLOR
  385. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  386. wave.CFrame = CFRAME
  387. coroutine.resume(coroutine.create(function(PART)
  388. for i = 1, WAIT do
  389. Swait()
  390. mesh.Scale = mesh.Scale + GROW
  391. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  392. if DOESROT == true then
  393. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  394. end
  395. wave.Transparency = wave.Transparency + (0.5/WAIT)
  396. if wave.Transparency > 0.99 then
  397. wave:remove()
  398. end
  399. end
  400. end))
  401. end
  402.  
  403. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  404. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  405. wave.Color = COLOR
  406. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
  407. wave.CFrame = CFRAME
  408. coroutine.resume(coroutine.create(function(PART)
  409. for i = 1, WAIT do
  410. Swait()
  411. mesh.Scale = mesh.Scale + GROW
  412. wave.Transparency = wave.Transparency + (1/WAIT)
  413. if wave.Transparency > 0.99 then
  414. wave:remove()
  415. end
  416. end
  417. end))
  418. end
  419.  
  420. function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
  421. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  422. local mesh = nil
  423. if KIND == "Base" then
  424. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  425. elseif KIND == "Thin" then
  426. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  427. elseif KIND == "Round" then
  428. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  429. end
  430. wave.CFrame = CFRAME
  431. coroutine.resume(coroutine.create(function(PART)
  432. for i = 1, WAIT do
  433. Swait()
  434. mesh.Scale = mesh.Scale + GROW/10
  435. wave.Transparency = wave.Transparency + (0.5/WAIT)
  436. if wave.Transparency > 0.99 then
  437. wave:remove()
  438. end
  439. end
  440. end))
  441. end
  442.  
  443. function MakeForm(PART,TYPE)
  444. if TYPE == "Cyl" then
  445. local MSH = IT("CylinderMesh",PART)
  446. elseif TYPE == "Ball" then
  447. local MSH = IT("SpecialMesh",PART)
  448. MSH.MeshType = "Sphere"
  449. elseif TYPE == "Wedge" then
  450. local MSH = IT("SpecialMesh",PART)
  451. MSH.MeshType = "Wedge"
  452. end
  453. end
  454.  
  455. function CheckTableForString(Table, String)
  456. for i, v in pairs(Table) do
  457. if string.find(string.lower(String), string.lower(v)) then
  458. return true
  459. end
  460. end
  461. return false
  462. end
  463.  
  464. function CheckIntangible(Hit)
  465. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  466. if Hit and Hit.Parent then
  467. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  468. return true
  469. end
  470. end
  471. return false
  472. end
  473.  
  474. Debris = game:GetService("Debris")
  475.  
  476. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  477. local Direction = CFrame.new(StartPos, Vec).lookVector
  478. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  479. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  480. if RayHit and CheckIntangible(RayHit) then
  481. if DelayIfHit then
  482. wait()
  483. end
  484. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  485. end
  486. return RayHit, RayPos, RayNormal
  487. end
  488.  
  489. function FireArc(Part,ToLocation,AmountOfTime,Height,DoesCourontine)
  490. if DoesCourontine == false then
  491. local Direction = CF(Part.Position,ToLocation)
  492. local Distance = (Part.Position - ToLocation).magnitude
  493. for i = 1, AmountOfTime do
  494. Swait()
  495. Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
  496. Direction = Part.CFrame
  497. end
  498. Part:remove()
  499. elseif DoesCourontine == true then
  500. coroutine.resume(coroutine.create(function()
  501. local Direction = CF(Part.Position,ToLocation)
  502. local Distance = (Part.Position - ToLocation).magnitude
  503. for i = 1, AmountOfTime do
  504. Swait()
  505. Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
  506. Direction = Part.CFrame
  507. end
  508. Part:remove()
  509. end))
  510. end
  511. end
  512.  
  513. function turnto(position)
  514. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  515. end
  516.  
  517. --//=================================\\
  518. --|| WEAPON CREATION
  519. --\\=================================//
  520.  
  521. local naeeym2 = Instance.new("BillboardGui",Character)
  522. naeeym2.AlwaysOnTop = true
  523. naeeym2.Size = UDim2.new(5,35,2,15)
  524. naeeym2.StudsOffset = Vector3.new(0,3,0)
  525. naeeym2.Adornee = Character.Head
  526. naeeym2.Name = "Name"
  527. naeeym2.PlayerToHideFrom = Player
  528. local tecks2 = Instance.new("TextLabel",naeeym2)
  529. tecks2.BackgroundTransparency = 1
  530. tecks2.TextScaled = true
  531. tecks2.BorderSizePixel = 0
  532. tecks2.Text = "Dominus Astra"
  533. tecks2.Font = "Fantasy"
  534. tecks2.TextSize = 30
  535. tecks2.TextStrokeTransparency = 0
  536. tecks2.TextColor3 = Color3.new(0.05,0.05,0.15)
  537. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  538. tecks2.Size = UDim2.new(1,0,0.5,0)
  539. tecks2.Parent = naeeym2
  540.  
  541. function Transparency(TRANS)
  542. tecks2.TextTransparency = TRANS
  543. tecks2.TextStrokeTransparency = TRANS
  544. for _, c in pairs(Character:GetChildren()) do
  545. if c.ClassName == "Part" and c ~= RootPart then
  546. c.Transparency = TRANS
  547. if c:FindFirstChildOfClass("Decal") then
  548. c:FindFirstChildOfClass("Decal").Transparency = TRANS
  549. end
  550. elseif c.ClassName == "Accessory" then
  551. c.Handle.Transparency = TRANS
  552. elseif c.ClassName == "Model" then
  553. for _, q in pairs(c:GetChildren()) do
  554. if q.ClassName == "Part" then
  555. q.Transparency = TRANS
  556. if q:FindFirstChildOfClass("Decal") then
  557. q:FindFirstChildOfClass("Decal").Transparency = TRANS
  558. end
  559. end
  560. end
  561. end
  562. end
  563. end
  564.  
  565. Humanoid.Died:connect(function()
  566. Humanoid.Parent = nil
  567. Humanoid.MaxHealth = "inf"
  568. Humanoid.Health = "inf"
  569. refit()
  570. Humanoid.Parent = Character
  571. CreateSound("907330011", Head, 10, 1.2)
  572. end)
  573.  
  574. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 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")
  575. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 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")
  576. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  577. local SKILLEFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill Warp Frame")
  578.  
  579. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Lunar Blast", SKILLTEXTCOLOR, 7, "Fantasy", 0, 2, 0, "Text 1")
  580. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Star Spikes", SKILLTEXTCOLOR, 7, "Fantasy", 0, 2, 0, "Text 2")
  581. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Supernova", SKILLTEXTCOLOR, 10, "Fantasy", 0, 2, 0, "Text 3")
  582. local SKILLETEXT = CreateLabel(SKILLEFRAME, "[Q] Dimension Hop", SKILLTEXTCOLOR, 7, "Fantasy", 0, 2, 0, "Text Warp")
  583.  
  584. --//=================================\\
  585. --|| DAMAGING
  586. --\\=================================//
  587.  
  588. function killnearest(position,range,maxstrength)
  589. for i,v in ipairs(workspace:GetChildren()) do
  590. local body = v:GetChildren()
  591. for part = 1, #body do
  592. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  593. if(body[part].Position - position).Magnitude < range then
  594. if v.ClassName == "Model" then
  595. v:BreakJoints()
  596. end
  597. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  598. local bv = Instance.new("BodyVelocity")
  599. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  600. bv.velocity = CF(position,body[part].Position).lookVector*maxstrength
  601. bv.Parent = body[part]
  602. Debris:AddItem(bv,0.2)
  603. end
  604. end
  605. end
  606. if v.ClassName == "Part" then
  607. if v.Anchored == false and (v.Position - position).Magnitude < range then
  608. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  609. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  610. end
  611. end
  612. end
  613. end
  614.  
  615. --//=================================\\
  616. --|| ATTACK FUNCTIONS AND STUFF
  617. --\\=================================//
  618.  
  619. function Lunar_Blast()
  620. local HITBODIES = {}
  621. local CENTER = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Pearl", "CenterPart", VT(0,0,0))
  622. local HITFLOOR,ECH,NORMAL = Raycast(Mouse.Hit.p+VT(0,2,0), (CF(Mouse.Hit.p, Mouse.Hit.p + VT(0, -1, 0))).lookVector, 10000000, Character)
  623. CENTER.CFrame = CF(ECH)
  624. local RAY = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "Laser01", VT(25,99999,25))
  625. RAY.Color = C3(0.05,0.05,0.15)
  626. MakeForm(RAY,"Cyl")
  627. RAY.CFrame = CF(ECH)
  628. for i = 1, 75 do
  629. Swait()
  630. RAY.Transparency = RAY.Transparency - 1/75
  631. RAY.Size = RAY.Size - VT(25/75,0,25/75)
  632. MagicSphere(VT(1,1,1),15,CF(ECH)*CF(MRANDOM(-15,15),MRANDOM(0,100),MRANDOM(-15,15)),C3(1,1,1),VT(0,0,0))
  633. end
  634. killnearest(ECH,25,25)
  635. MagicSphere(VT(0,0,0),55,CF(ECH),C3(0.05,0.05,0.15),VT(2,2,2))
  636. for i = 1, 25 do
  637. MagicSphere(VT(1,1,1),i*3,CF(ECH)*CF(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)),C3(1,1,1),VT(0,0,0))
  638. end
  639. CreateSound("168586621", CENTER, 10, 0.8)
  640. RAY:remove()
  641. Debris:AddItem(CENTER,5)
  642. end
  643.  
  644. function Star_Cutter()
  645. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 7 * Player_Size, Character)
  646. if HITFLOOR ~= nil then
  647. ATTACK = true
  648. Rooted = true
  649. local GYRO = IT("BodyGyro",RootPart)
  650. GYRO.D = 100
  651. GYRO.P = 2000
  652. GYRO.MaxTorque = VT(0,4000000,0)
  653. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  654. CreateSound("429459101", RightArm, 10, 0.8)
  655. for i=0, 3.5, 0.1 / Animation_Speed do
  656. Swait()
  657. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  658. Slice("Thin",0.3,5,RightArm.CFrame * CF(0,-1.1,0) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really black",VT(-0.01,0,-0.01))
  659. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  660. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  661. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(32 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  662. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  663. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  664. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  665. end
  666. GYRO:remove()
  667. for i=0, 0.15, 0.1 / Animation_Speed do
  668. Swait()
  669. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  670. Slice("Thin",0.3,5,RightArm.CFrame * CF(0,-1.1,0) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really black",VT(-0.01,0,-0.01))
  671. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  672. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  673. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  674. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  675. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  676. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  677. end
  678. local BOMBSPOTS = {}
  679. for i = 1, 25 do
  680. local SPOT = CreatePart(3, Effects, "Neon", 0, 0, "Pearl", "Blade", VT(8,1,8))
  681. SPOT.Color = SKILLTEXTCOLOR
  682. SPOT.CFrame = RootPart.CFrame*CF((MRANDOM(-15,15)/40)*i,-5,-i*5)
  683. table.insert(BOMBSPOTS,SPOT)
  684. MakeForm(SPOT,"Cyl")
  685. end
  686. for i=0, 0.2, 0.1 / Animation_Speed do
  687. Swait()
  688. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  689. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  690. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(145), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  691. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  692. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  693. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  694. end
  695. ATTACK = false
  696. Rooted = false
  697. coroutine.resume(coroutine.create(function()
  698. Swait(3)
  699. for i = 1, #BOMBSPOTS do
  700. if BOMBSPOTS[i] ~= nil then
  701. local E = BOMBSPOTS[i]
  702. coroutine.resume(coroutine.create(function()
  703. local BLADE = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Pearl", "Blade", VT(0,0,0))
  704. BLADE.Color = SKILLTEXTCOLOR
  705. CreateMesh("SpecialMesh", BLADE, "FileMesh", "93108071", "", VT(0.6,1,0.4)*3, VT(0,0,0))
  706. CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], BLADE, 4, 0.6)
  707. BLADE.CFrame = E.CFrame*CF(0,-3,0)*ANGLES(RAD(MRANDOM(-15,15)),RAD(90),RAD(MRANDOM(-15,15)))
  708. for i = 1, 10 do
  709. Swait()
  710. MagicSphere(VT(1,1,1)/5,65,CF(E.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,MRANDOM(3,6),0),C3(1,1,1),VT(0,0,0))
  711. killnearest(BLADE.Position,6,80)
  712. BLADE.CFrame = BLADE.CFrame*CF(0,0.3,0)
  713. BLADE.Transparency = BLADE.Transparency - 0.1
  714. end
  715. Swait(45)
  716. for i = 1, 100 do
  717. Swait()
  718. BLADE.Transparency = BLADE.Transparency + 0.01
  719. E.Transparency = E.Transparency + 0.01
  720. end
  721. BLADE:remove()
  722. E:remove()
  723. end))
  724. end
  725. end
  726. end))
  727. end
  728. end
  729.  
  730. function Supernova()
  731. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 7 * Player_Size, Character)
  732. if HITFLOOR ~= nil then
  733. local HITBODIES = {}
  734. ATTACK = true
  735. Rooted = true
  736. local ABSOLUTE = CreatePart(3, Effects, "Neon", 0, 1, "CGA brown", "Star", VT(0,0,0))
  737. MakeForm(ABSOLUTE,"Ball")
  738. CreateSound("429459101", ABSOLUTE, 10, 1)
  739. for i=0, 4, 0.1 / Animation_Speed do
  740. Swait()
  741. ABSOLUTE.Size = ABSOLUTE.Size + VT(0.2,0.2,0.2)
  742. ABSOLUTE.CFrame = RootPart.CFrame*CF(0,5+(ABSOLUTE.Size.Y/2),0)
  743. ABSOLUTE.Transparency = ABSOLUTE.Transparency - 0.01
  744. local CHARGE = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Star", VT(1,1,1))
  745. MakeForm(CHARGE,"Ball")
  746. CHARGE.Color = C3(1,1,1)
  747. CHARGE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15,15),-6,MRANDOM(-15,15))
  748. FireArc(CHARGE,ABSOLUTE.Position,45,45,true)
  749. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  750. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  751. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  752. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  753. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  754. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  755. end
  756. CreateSound("907330103", Head, 10, 1.2)
  757. for i = 1, 75 do
  758. Swait()
  759. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  760. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  761. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  762. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  763. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  764. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  765. end
  766. coroutine.resume(coroutine.create(function()
  767. for i = 1, 13 do
  768. for e = 1, 8 do
  769. Swait()
  770. MagicSphere(VT(1,1,1),15,CF(ABSOLUTE.Position)*CF(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)),C3(1,1,1),VT(0,0,0))
  771. CreateSwirl(ABSOLUTE.Size/2,15,CF(HITPOS),true,15,BRICKC"Slime green".Color,VT(i,0.3,i)*2)
  772. end
  773. for i = 1, 5 do
  774. Slice("Round",0,35,CF(ABSOLUTE.Position)*ANGLES(RAD(MRANDOM(-18,18)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-18,18))),C3(1,1,1),VT(i,0,i)/3)
  775. Slice("Thin",i,55,ABSOLUTE.CFrame * CF(0,-1.1,0) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),C3(1,0,0),VT(0,0,0))
  776. end
  777. CreateSwirl(ABSOLUTE.Size/2,25,CF(ABSOLUTE.Position),true,-25,BRICKC"New Yeller".Color,VT(i,i*2,i))
  778. CreateSwirl(ABSOLUTE.Size/2,55,CF(ABSOLUTE.Position),true,25,C3(0.05,0.05,0.15),VT(i,i*2,i))
  779. CreateSound("168586621", ABSOLUTE, 4, 0.8)
  780. CreateSound("201858144", ABSOLUTE, 10, 0.8)
  781. killnearest(ABSOLUTE.Position,i*18,i)
  782. ABSOLUTE.Size = ABSOLUTE.Size*0.9
  783. MagicSphere(ABSOLUTE.Size,25,CF(ABSOLUTE.Position),BRICKC"New Yeller".Color,VT(i,i,i)/1.1)
  784. MagicSphere(ABSOLUTE.Size,45,CF(ABSOLUTE.Position),C3(0.05,0.05,0.15),VT(i,i,i))
  785. end
  786. ABSOLUTE.Transparency = 1
  787. Debris:AddItem(ABSOLUTE,10)
  788. end))
  789. ATTACK = false
  790. Rooted = false
  791. end
  792. end
  793.  
  794. local Decal = IT("Decal")
  795.  
  796. function Astral_Hop()
  797. ATTACK = true
  798. Rooted = false
  799. local O1 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0,0,0))
  800. O1.CFrame = RootPart.CFrame*CF(0,0,-3)*ANGLES(RAD(90),RAD(0),RAD(0))
  801. local decal = Decal:Clone()
  802. decal.Parent = O1
  803. decal.Face = "Top"
  804. decal.Texture = "http://www.roblox.com/asset/?id=349165228"
  805. local decal2 = Decal:Clone()
  806. decal2.Parent = O1
  807. decal2.Face = "Bottom"
  808. decal2.Texture = "http://www.roblox.com/asset/?id=349165228"
  809. local O2 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0,0,0))
  810. local POS = VT(RootPart.Position.X,Mouse.Hit.p.Y+6,RootPart.Position.Z)
  811. O2.CFrame = CF(Mouse.Hit.p+VT(0,6,0),POS)*ANGLES(RAD(90),RAD(0),RAD(0))
  812. local ROOT = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0,0,0))
  813. ROOT.CFrame = CF(O2.Position,RootPart.Position)
  814. local decal = Decal:Clone()
  815. decal.Parent = O2
  816. decal.Face = "Top"
  817. decal.Texture = "http://www.roblox.com/asset/?id=349165228"
  818. local decal2 = Decal:Clone()
  819. decal2.Parent = O2
  820. decal2.Face = "Bottom"
  821. decal2.Texture = "http://www.roblox.com/asset/?id=349165228"
  822. CreateSound("84005018", O1, 10, 0.7)
  823. CreateSound("84005018", O2, 10, 0.7)
  824. for i = 1, 75 do
  825. Swait()
  826. O1.Size = O1.Size + VT(0.1,0,0.1)
  827. O1.CFrame = RootPart.CFrame*CF(0,0,-3)*ANGLES(RAD(90),RAD(i),RAD(0))
  828. O2.Size = O2.Size + VT(0.1,0,0.1)
  829. O2.CFrame = O2.CFrame*ANGLES(RAD(0),RAD(i),RAD(0))
  830. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  831. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  832. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  833. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  834. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  835. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  836. end
  837. Rooted = true
  838. UNANCHOR = false
  839. RootPart.Anchored = true
  840. VALUE1 = true
  841. for i = 1, 15 do
  842. Transparency(i/15)
  843. Swait()
  844. RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.13)
  845. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(16 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  846. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  847. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  848. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  849. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  850. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  851. end
  852. RootPart.CFrame = ROOT.CFrame
  853. ROOT:remove()
  854. for i = 1, 15 do
  855. Transparency(1-(i/15))
  856. Swait()
  857. RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.5)
  858. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(16 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  859. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  860. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  861. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  862. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  863. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  864. end
  865. VALUE1 = false
  866. coroutine.resume(coroutine.create(function()
  867. for i = 1, 75 do
  868. Swait()
  869. O1.Size = O1.Size - VT(0.1,0,0.1)
  870. O1.CFrame = O1.CFrame*ANGLES(RAD(0),RAD(i),RAD(0))
  871. O2.Size = O2.Size - VT(0.1,0,0.1)
  872. O2.CFrame = O2.CFrame*ANGLES(RAD(0),RAD(i),RAD(0))
  873. end
  874. O1:remove()
  875. O2:remove()
  876. end))
  877. UNANCHOR = true
  878. RootPart.Anchored = false
  879. ATTACK = false
  880. Rooted = false
  881. end
  882.  
  883. --//=================================\\
  884. --|| ASSIGN THINGS TO KEYS
  885. --\\=================================//
  886.  
  887. function MouseDown(Mouse)
  888. if ATTACK == false then
  889. end
  890. end
  891.  
  892. function MouseUp(Mouse)
  893. HOLD = false
  894. end
  895.  
  896. function KeyDown(Key)
  897. KEYHOLD = true
  898. if Key == "z" and ATTACK == false then
  899. Lunar_Blast()
  900. end
  901.  
  902. if Key == "b" and ATTACK == false then
  903. Star_Cutter()
  904. end
  905.  
  906. if Key == "c" and ATTACK == false then
  907. Supernova()
  908. end
  909.  
  910. if Key == "q" and ATTACK == false then
  911. Astral_Hop()
  912. end
  913. end
  914.  
  915. function KeyUp(Key)
  916. KEYHOLD = false
  917. end
  918.  
  919. Mouse.Button1Down:connect(function(NEWKEY)
  920. MouseDown(NEWKEY)
  921. end)
  922. Mouse.Button1Up:connect(function(NEWKEY)
  923. MouseUp(NEWKEY)
  924. end)
  925. Mouse.KeyDown:connect(function(NEWKEY)
  926. KeyDown(NEWKEY)
  927. end)
  928. Mouse.KeyUp:connect(function(NEWKEY)
  929. KeyUp(NEWKEY)
  930. end)
  931.  
  932. --//=================================\\
  933. --\\=================================//
  934.  
  935.  
  936. function unanchor()
  937. if UNANCHOR == true then
  938. g = Character:GetChildren()
  939. for i = 1, #g do
  940. if g[i].ClassName == "Part" then
  941. g[i].Anchored = false
  942. end
  943. end
  944. end
  945. end
  946.  
  947.  
  948. --//=================================\\
  949. --|| WRAP THE WHOLE SCRIPT UP
  950. --\\=================================//
  951.  
  952. Humanoid.Changed:connect(function(Jump)
  953. if Jump == "Jump" and (Disable_Jump == true) then
  954. Humanoid.Jump = false
  955. end
  956. end)
  957.  
  958. Humanoid.HipHeight = 2
  959. Head:ClearAllChildren()
  960. local FF = IT("ForceField",Character)
  961. FF.Visible = false
  962. Speed = 35
  963.  
  964. function refit()
  965. RootJoint.Parent = RootPart
  966. Neck.Parent = Torso
  967. RightShoulder.Parent = Torso
  968. LeftShoulder.Parent = Torso
  969. RightHip.Parent = Torso
  970. LeftHip.Parent = Torso
  971. RootPart.Parent = Character
  972. LeftArm.Parent = Character
  973. RightArm.Parent = Character
  974. RightLeg.Parent = Character
  975. LeftLeg.Parent = Character
  976. Torso.Parent = Character
  977. Head.Parent = Character
  978. end
  979.  
  980. local FOUNDFORGOTTEN = false
  981.  
  982. while true do
  983. Swait()
  984. ANIMATE.Parent = nil
  985. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  986. IDLEANIMATION:Play()
  987. SINE = SINE + CHANGE
  988. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  989. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  990. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  991. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 7 * Player_Size, Character)
  992. if ATTACK == false then
  993. if TORSOVELOCITY < 1 then
  994. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  995. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  996. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  997. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  998. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  999. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1000. elseif TORSOVELOCITY > 1 then
  1001. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1002. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1003. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1004. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1005. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1006. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1007. end
  1008. end
  1009. unanchor()
  1010. Humanoid.MaxHealth = "inf"
  1011. Humanoid.Health = "inf"
  1012. if Rooted == false then
  1013. Disable_Jump = false
  1014. Humanoid.WalkSpeed = Speed
  1015. elseif Rooted == true then
  1016. Disable_Jump = true
  1017. Humanoid.WalkSpeed = 0
  1018. end
  1019. for _, c in pairs(Character:GetChildren()) do
  1020. if c.ClassName == "Part" then
  1021. c.Material = "Neon"
  1022. if c:FindFirstChildOfClass("ParticleEmitter") then
  1023. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1024. end
  1025. if c == Torso then
  1026. c.Color = C3(0,0,0)
  1027. elseif c == RightArm then
  1028. c.Color = C3(0.05,0.05,0.15)
  1029. elseif c == LeftArm then
  1030. c.Color = C3(0.05,0.05,0.15)
  1031. elseif c == RightLeg then
  1032. c.Color = C3(0,0,0.05)
  1033. elseif c == LeftLeg then
  1034. c.Color = C3(0,0,0.05)
  1035. elseif c == Head then
  1036. if c:FindFirstChild("Dominus") == nil then
  1037. local M = CreateMesh("SpecialMesh", c, "FileMesh", "162384581", "162384608", VT(1,1,1)*1.1, VT(0,0,0))
  1038. M.Name = "Dominus"
  1039. end
  1040. if c:FindFirstChild("face") then
  1041. c.face:remove()
  1042. end
  1043. end
  1044. elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1045. c:remove()
  1046. end
  1047. end
  1048. FF.Parent = Character
  1049. sick.Parent = Character
  1050. refit()
  1051. script.Parent = WEAPONGUI
  1052. Character.Parent = workspace
  1053. Humanoid.PlatformStand = false
  1054. Humanoid.Name = "Astra"
  1055. for _, c in pairs(game.Players:GetChildren()) do
  1056. if c.Character ~= nil then
  1057. if c.Character.Parent ~= workspace and c.Character.Parent ~= nil then
  1058. c.Character:BreakJoints()
  1059. end
  1060. end
  1061. end
  1062. FOUNDFORGOTTEN = false
  1063. Humanoid.DisplayDistanceType = "None"
  1064. for _, c in pairs(workspace:GetChildren()) do
  1065. if c.ClassName == "Model" then
  1066. for _, q in pairs(c:GetChildren()) do
  1067. if q.Name == ("Forgotten Dominus") then
  1068. FOUNDFORGOTTEN = true
  1069. end
  1070. end
  1071. end
  1072. end
  1073. if FOUNDFORGOTTEN == true then
  1074. sick:Stop()
  1075. else
  1076. sick.Playing = true
  1077. end
  1078. if VALUE1 == false then
  1079. MagicSphere(VT(1,1,1)/5,35,CF(Torso.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,MRANDOM(3,6),0),C3(1,1,1),VT(0,0,0))
  1080. end
  1081. end
  1082.  
  1083. --//=================================\\
  1084. --\\=================================//
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090. --|| CREATED BY SHACKLUSTER
  1091. --\\====================================================//--
  1092.  
  1093. wait(0.2)
  1094.  
  1095. Player = game:GetService("Players").LocalPlayer
  1096. PlayerGui = Player.PlayerGui
  1097. Cam = workspace.CurrentCamera
  1098. Backpack = Player.Backpack
  1099. Character = Player.Character
  1100. Humanoid = Character.Humanoid
  1101. Mouse = Player:GetMouse()
  1102. RootPart = Character["HumanoidRootPart"]
  1103. Torso = Character["Torso"]
  1104. Head = Character["Head"]
  1105. RightArm = Character["Right Arm"]
  1106. LeftArm = Character["Left Arm"]
  1107. RightLeg = Character["Right Leg"]
  1108. LeftLeg = Character["Left Leg"]
  1109. RootJoint = RootPart["RootJoint"]
  1110. Neck = Torso["Neck"]
  1111. RightShoulder = Torso["Right Shoulder"]
  1112. LeftShoulder = Torso["Left Shoulder"]
  1113. RightHip = Torso["Right Hip"]
  1114. LeftHip = Torso["Left Hip"]
  1115. local sick = Instance.new("Sound",Character)
  1116. sick.SoundId = "rbxassetid://1494340971"
  1117. sick.Looped = true
  1118. sick.Pitch = 1
  1119. sick.Volume = 1
  1120. sick:Play()
  1121.  
  1122. IT = Instance.new
  1123. CF = CFrame.new
  1124. VT = Vector3.new
  1125. RAD = math.rad
  1126. C3 = Color3.new
  1127. UD2 = UDim2.new
  1128. BRICKC = BrickColor.new
  1129. ANGLES = CFrame.Angles
  1130. EULER = CFrame.fromEulerAnglesXYZ
  1131. COS = math.cos
  1132. ACOS = math.acos
  1133. SIN = math.sin
  1134. ASIN = math.asin
  1135. ABS = math.abs
  1136. MRANDOM = math.random
  1137. FLOOR = math.floor
  1138.  
  1139. --//=================================\\
  1140. --|| USEFUL VALUES
  1141. --\\=================================//
  1142.  
  1143. Animation_Speed = 3
  1144. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  1145. local Speed = 25
  1146. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1147. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1148. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  1149. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  1150. local DAMAGEMULTIPLIER = 1
  1151. local ANIM = "Idle"
  1152. local ATTACK = false
  1153. local EQUIPPED = false
  1154. local HOLD = false
  1155. local COMBO = 1
  1156. local Rooted = false
  1157. local SINE = 0
  1158. local KEYHOLD = false
  1159. local CHANGE = 2 / Animation_Speed
  1160. local WALKINGANIM = false
  1161. local VALUE1 = false
  1162. local VALUE2 = false
  1163. local ROBLOXIDLEANIMATION = IT("Animation")
  1164. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  1165. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1166. --ROBLOXIDLEANIMATION.Parent = Humanoid
  1167. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  1168. WEAPONGUI.Name = "Weapon GUI"
  1169. local Effects = IT("Folder", Character)
  1170. Effects.Name = "Effects"
  1171. local ANIMATOR = Humanoid.Animator
  1172. local ANIMATE = Character.Animate
  1173. local UNANCHOR = true
  1174. local PLAYMAINANIM = true
  1175. local BOLTSOUNDS = {168586621,168586586,178452241}
  1176.  
  1177. --//=================================\\
  1178. --\\=================================//
  1179.  
  1180.  
  1181. --//=================================\\
  1182. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  1183. --\\=================================//
  1184.  
  1185. ArtificialHB = Instance.new("BindableEvent", script)
  1186. ArtificialHB.Name = "ArtificialHB"
  1187.  
  1188. script:WaitForChild("ArtificialHB")
  1189.  
  1190. frame = Frame_Speed
  1191. tf = 0
  1192. allowframeloss = false
  1193. tossremainder = false
  1194. lastframe = tick()
  1195. script.ArtificialHB:Fire()
  1196.  
  1197. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1198. tf = tf + s
  1199. if tf >= frame then
  1200. if allowframeloss then
  1201. script.ArtificialHB:Fire()
  1202. lastframe = tick()
  1203. else
  1204. for i = 1, math.floor(tf / frame) do
  1205. script.ArtificialHB:Fire()
  1206. end
  1207. lastframe = tick()
  1208. end
  1209. if tossremainder then
  1210. tf = 0
  1211. else
  1212. tf = tf - frame * math.floor(tf / frame)
  1213. end
  1214. end
  1215. end)
  1216.  
  1217. --//=================================\\
  1218. --\\=================================//
  1219.  
  1220. --//=================================\\
  1221. --|| SOME FUNCTIONS
  1222. --\\=================================//
  1223.  
  1224. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1225. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1226. end
  1227.  
  1228. function PositiveAngle(NUMBER)
  1229. if NUMBER >= 0 then
  1230. NUMBER = 0
  1231. end
  1232. return NUMBER
  1233. end
  1234.  
  1235. function NegativeAngle(NUMBER)
  1236. if NUMBER <= 0 then
  1237. NUMBER = 0
  1238. end
  1239. return NUMBER
  1240. end
  1241.  
  1242. function Swait(NUMBER)
  1243. if NUMBER == 0 or NUMBER == nil then
  1244. ArtificialHB.Event:wait()
  1245. else
  1246. for i = 1, NUMBER do
  1247. ArtificialHB.Event:wait()
  1248. end
  1249. end
  1250. end
  1251.  
  1252. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  1253. local NEWMESH = IT(MESH)
  1254. if MESH == "SpecialMesh" then
  1255. NEWMESH.MeshType = MESHTYPE
  1256. if MESHID ~= "nil" and MESHID ~= "" then
  1257. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  1258. end
  1259. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1260. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  1261. end
  1262. end
  1263. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  1264. NEWMESH.Scale = SCALE
  1265. NEWMESH.Parent = PARENT
  1266. return NEWMESH
  1267. end
  1268.  
  1269. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  1270. local NEWPART = IT("Part")
  1271. NEWPART.formFactor = FORMFACTOR
  1272. NEWPART.Reflectance = REFLECTANCE
  1273. NEWPART.Transparency = TRANSPARENCY
  1274. NEWPART.CanCollide = false
  1275. NEWPART.Locked = true
  1276. NEWPART.Anchored = true
  1277. if ANCHOR == false then
  1278. NEWPART.Anchored = false
  1279. end
  1280. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  1281. NEWPART.Name = NAME
  1282. NEWPART.Size = SIZE
  1283. NEWPART.Position = Torso.Position
  1284. NEWPART.Material = MATERIAL
  1285. NEWPART:BreakJoints()
  1286. NEWPART.Parent = PARENT
  1287. return NEWPART
  1288. end
  1289.  
  1290. local function weldBetween(a, b)
  1291. local weldd = Instance.new("ManualWeld")
  1292. weldd.Part0 = a
  1293. weldd.Part1 = b
  1294. weldd.C0 = CFrame.new()
  1295. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1296. weldd.Parent = a
  1297. return weldd
  1298. end
  1299.  
  1300.  
  1301. function QuaternionFromCFrame(cf)
  1302. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1303. local trace = m00 + m11 + m22
  1304. if trace > 0 then
  1305. local s = math.sqrt(1 + trace)
  1306. local recip = 0.5 / s
  1307. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1308. else
  1309. local i = 0
  1310. if m11 > m00 then
  1311. i = 1
  1312. end
  1313. if m22 > (i == 0 and m00 or m11) then
  1314. i = 2
  1315. end
  1316. if i == 0 then
  1317. local s = math.sqrt(m00 - m11 - m22 + 1)
  1318. local recip = 0.5 / s
  1319. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1320. elseif i == 1 then
  1321. local s = math.sqrt(m11 - m22 - m00 + 1)
  1322. local recip = 0.5 / s
  1323. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1324. elseif i == 2 then
  1325. local s = math.sqrt(m22 - m00 - m11 + 1)
  1326. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1327. end
  1328. end
  1329. end
  1330.  
  1331. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1332. local xs, ys, zs = x + x, y + y, z + z
  1333. local wx, wy, wz = w * xs, w * ys, w * zs
  1334. local xx = x * xs
  1335. local xy = x * ys
  1336. local xz = x * zs
  1337. local yy = y * ys
  1338. local yz = y * zs
  1339. local zz = z * zs
  1340. 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))
  1341. end
  1342.  
  1343. function QuaternionSlerp(a, b, t)
  1344. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1345. local startInterp, finishInterp;
  1346. if cosTheta >= 0.0001 then
  1347. if (1 - cosTheta) > 0.0001 then
  1348. local theta = ACOS(cosTheta)
  1349. local invSinTheta = 1 / SIN(theta)
  1350. startInterp = SIN((1 - t) * theta) * invSinTheta
  1351. finishInterp = SIN(t * theta) * invSinTheta
  1352. else
  1353. startInterp = 1 - t
  1354. finishInterp = t
  1355. end
  1356. else
  1357. if (1 + cosTheta) > 0.0001 then
  1358. local theta = ACOS(-cosTheta)
  1359. local invSinTheta = 1 / SIN(theta)
  1360. startInterp = SIN((t - 1) * theta) * invSinTheta
  1361. finishInterp = SIN(t * theta) * invSinTheta
  1362. else
  1363. startInterp = t - 1
  1364. finishInterp = t
  1365. end
  1366. end
  1367. 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
  1368. end
  1369.  
  1370. function Clerp(a, b, t)
  1371. local qa = {QuaternionFromCFrame(a)}
  1372. local qb = {QuaternionFromCFrame(b)}
  1373. local ax, ay, az = a.x, a.y, a.z
  1374. local bx, by, bz = b.x, b.y, b.z
  1375. local _t = 1 - t
  1376. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1377. end
  1378.  
  1379. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1380. local frame = IT("Frame")
  1381. frame.BackgroundTransparency = TRANSPARENCY
  1382. frame.BorderSizePixel = BORDERSIZEPIXEL
  1383. frame.Position = POSITION
  1384. frame.Size = SIZE
  1385. frame.BackgroundColor3 = COLOR
  1386. frame.BorderColor3 = BORDERCOLOR
  1387. frame.Name = NAME
  1388. frame.Parent = PARENT
  1389. return frame
  1390. end
  1391.  
  1392. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1393. local label = IT("TextLabel")
  1394. label.BackgroundTransparency = 1
  1395. label.Size = UD2(1, 0, 1, 0)
  1396. label.Position = UD2(0, 0, 0, 0)
  1397. label.TextColor3 = TEXTCOLOR
  1398. label.TextStrokeTransparency = STROKETRANSPARENCY
  1399. label.TextTransparency = TRANSPARENCY
  1400. label.FontSize = TEXTFONTSIZE
  1401. label.Font = TEXTFONT
  1402. label.BorderSizePixel = BORDERSIZEPIXEL
  1403. label.TextScaled = false
  1404. label.Text = TEXT
  1405. label.Name = NAME
  1406. label.Parent = PARENT
  1407. return label
  1408. end
  1409.  
  1410. function NoOutlines(PART)
  1411. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  1412. end
  1413.  
  1414. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1415. local NEWWELD = IT(TYPE)
  1416. NEWWELD.Part0 = PART0
  1417. NEWWELD.Part1 = PART1
  1418. NEWWELD.C0 = C0
  1419. NEWWELD.C1 = C1
  1420. NEWWELD.Parent = PARENT
  1421. return NEWWELD
  1422. end
  1423.  
  1424. local S = IT("Sound")
  1425. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  1426. local NEWSOUND = nil
  1427. coroutine.resume(coroutine.create(function()
  1428. NEWSOUND = S:Clone()
  1429. NEWSOUND.Parent = PARENT
  1430. NEWSOUND.Volume = VOLUME
  1431. NEWSOUND.Pitch = PITCH
  1432. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1433. NEWSOUND:play()
  1434. if DOESLOOP == true then
  1435. NEWSOUND.Looped = true
  1436. else
  1437. repeat wait(1) until NEWSOUND.Playing == false
  1438. NEWSOUND:remove()
  1439. end
  1440. end))
  1441. return NEWSOUND
  1442. end
  1443.  
  1444. local EyeSizes={
  1445. NumberSequenceKeypoint.new(0,2,0),
  1446. NumberSequenceKeypoint.new(1,0,0)
  1447. }
  1448. local EyeTrans={
  1449. NumberSequenceKeypoint.new(0,0.5,0),
  1450. NumberSequenceKeypoint.new(1,1,0)
  1451. }
  1452. local PE=Instance.new("ParticleEmitter",nil)
  1453. PE.LightEmission=.8
  1454. PE.Color = ColorSequence.new(BRICKC("Alder").Color,BRICKC("Lavender").Color)
  1455. PE.Size=NumberSequence.new(EyeSizes)
  1456. PE.Transparency=NumberSequence.new(EyeTrans)
  1457. PE.Lifetime=NumberRange.new(0.35,1)
  1458. PE.Rotation=NumberRange.new(0,360)
  1459. PE.Rate=100
  1460. PE.VelocitySpread = 10000
  1461. PE.Acceleration = Vector3.new(0,85,0)
  1462. PE.Drag = 5
  1463. PE.Speed = NumberRange.new(0.1,5)
  1464. PE.Texture="http://www.roblox.com/asset/?id=1460745664"
  1465. PE.ZOffset = 0.5
  1466. PE.Name = "PE"
  1467. PE.Enabled = false
  1468.  
  1469. function Fire(art)
  1470. local PARTICLES = PE:Clone()
  1471. PARTICLES.Parent = art
  1472. PARTICLES.Enabled = true
  1473. return PARTICLES
  1474. end
  1475.  
  1476. function CFrameFromTopBack(at, top, back)
  1477. local right = top:Cross(back)
  1478. 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)
  1479. end
  1480.  
  1481. --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})
  1482. function WACKYEFFECT(Table)
  1483. local TYPE = (Table.EffectType or "Sphere")
  1484. local SIZE = (Table.Size or VT(1,1,1))
  1485. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  1486. local TRANSPARENCY = (Table.Transparency or 0)
  1487. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1488. local CFRAME = (Table.CFrame or Torso.CFrame)
  1489. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1490. local ROTATION1 = (Table.RotationX or 0)
  1491. local ROTATION2 = (Table.RotationY or 0)
  1492. local ROTATION3 = (Table.RotationZ or 0)
  1493. local MATERIAL = (Table.Material or "Neon")
  1494. local COLOR = (Table.Color or C3(1,1,1))
  1495. local TIME = (Table.Time or 45)
  1496. local SOUNDID = (Table.SoundID or nil)
  1497. local SOUNDPITCH = (Table.SoundPitch or nil)
  1498. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1499. coroutine.resume(coroutine.create(function()
  1500. local PLAYSSOUND = false
  1501. local SOUND = nil
  1502. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  1503. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1504. PLAYSSOUND = true
  1505. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1506. end
  1507. EFFECT.Color = COLOR
  1508. local MSH = nil
  1509. if TYPE == "Sphere" then
  1510. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  1511. elseif TYPE == "Block" or TYPE == "Box" then
  1512. MSH = IT("BlockMesh",EFFECT)
  1513. MSH.Scale = SIZE
  1514. elseif TYPE == "Wave" then
  1515. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1516. elseif TYPE == "Ring" then
  1517. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1518. elseif TYPE == "Slash" then
  1519. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1520. elseif TYPE == "Round Slash" then
  1521. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1522. elseif TYPE == "Swirl" then
  1523. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1524. elseif TYPE == "Skull" then
  1525. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1526. elseif TYPE == "Crystal" then
  1527. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1528. end
  1529. if MSH ~= nil then
  1530. local MOVESPEED = nil
  1531. if MOVEDIRECTION ~= nil then
  1532. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1533. end
  1534. local GROWTH = SIZE - ENDSIZE
  1535. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1536. if TYPE == "Block" then
  1537. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1538. else
  1539. EFFECT.CFrame = CFRAME
  1540. end
  1541. for LOOP = 1, TIME+1 do
  1542. Swait()
  1543. MSH.Scale = MSH.Scale - GROWTH/TIME
  1544. if TYPE == "Wave" then
  1545. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  1546. end
  1547. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1548. if TYPE == "Block" then
  1549. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1550. else
  1551. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1552. end
  1553. if MOVEDIRECTION ~= nil then
  1554. local ORI = EFFECT.Orientation
  1555. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1556. EFFECT.Orientation = ORI
  1557. end
  1558. end
  1559. if PLAYSSOUND == false then
  1560. EFFECT:remove()
  1561. else
  1562. repeat wait(1) until SOUND.Playing == false
  1563. EFFECT:remove()
  1564. end
  1565. else
  1566. if PLAYSSOUND == false then
  1567. EFFECT:remove()
  1568. else
  1569. repeat Swait() until SOUND.Playing == false
  1570. EFFECT:remove()
  1571. end
  1572. end
  1573. end))
  1574. end
  1575.  
  1576. function MakeForm(PART,TYPE)
  1577. if TYPE == "Cyl" then
  1578. local MSH = IT("CylinderMesh",PART)
  1579. elseif TYPE == "Ball" then
  1580. local MSH = IT("SpecialMesh",PART)
  1581. MSH.MeshType = "Sphere"
  1582. elseif TYPE == "Wedge" then
  1583. local MSH = IT("SpecialMesh",PART)
  1584. MSH.MeshType = "Wedge"
  1585. end
  1586. end
  1587.  
  1588. Debris = game:GetService("Debris")
  1589.  
  1590. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1591. local DIRECTION = CF(StartPos,EndPos).lookVector
  1592. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1593. end
  1594.  
  1595. local HATWELD = nil
  1596. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  1597. PLAYMAINANIM = false
  1598. if WhichPose == "Cast1" then
  1599. for i=0, Time, 0.1 / Animation_Speed do
  1600. Swait()
  1601. if Magic == true then
  1602. 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})
  1603. end
  1604. if Gyro ~= nil and Gyro ~= false then
  1605. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1606. end
  1607. 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)
  1608. 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)
  1609. 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)
  1610. 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)
  1611. 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)
  1612. 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)
  1613. end
  1614. elseif WhichPose == "Cast2" then
  1615. for i=0, Time, 0.1 / Animation_Speed do
  1616. Swait()
  1617. if Magic == true then
  1618. 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})
  1619. 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})
  1620. end
  1621. if Gyro ~= nil and Gyro ~= false then
  1622. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1623. end
  1624. 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)
  1625. 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)
  1626. 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)
  1627. 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)
  1628. 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)
  1629. 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)
  1630. end
  1631. elseif WhichPose == "RightArmUp" then
  1632. for i=0, Time, 0.1 / Animation_Speed do
  1633. Swait()
  1634. if Magic == true then
  1635. 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})
  1636. end
  1637. if Gyro ~= nil and Gyro ~= false then
  1638. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1639. end
  1640. 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)
  1641. 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)
  1642. 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)
  1643. 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)
  1644. 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)
  1645. 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)
  1646. end
  1647. elseif WhichPose == "Taunt" then
  1648. for i=0, Time, 0.1 / Animation_Speed do
  1649. Swait()
  1650. 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)
  1651. 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)
  1652. 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)
  1653. 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)
  1654. 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)
  1655. 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)
  1656. end
  1657. HATWELD.Part0 = RightArm
  1658. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  1659. CreateSound(221057812,Torso,10,1,false)
  1660. for i=0, Time*2, 0.1 / Animation_Speed do
  1661. Swait()
  1662. 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)
  1663. 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)
  1664. 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)
  1665. 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)
  1666. 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)
  1667. 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)
  1668. end
  1669. for i=0, Time, 0.1 / Animation_Speed do
  1670. Swait()
  1671. 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)
  1672. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  1673. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1674. 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)
  1675. 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)
  1676. 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)
  1677. 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)
  1678. end
  1679. HATWELD.Part0 = Head
  1680. HATWELD.C0 = CF(0,0.35,0)
  1681. elseif WhichPose == "Prepare key" then
  1682. for i=0, Time, 0.1 / Animation_Speed do
  1683. Swait()
  1684. if Gyro ~= nil and Gyro ~= false then
  1685. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  1686. end
  1687. 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)
  1688. 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)
  1689. 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)
  1690. 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)
  1691. 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)
  1692. 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)
  1693. end
  1694. elseif WhichPose == "Turn key" then
  1695. for i=0, Time, 0.1 / Animation_Speed do
  1696. Swait()
  1697. if Gyro ~= nil and Gyro ~= false then
  1698. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  1699. end
  1700. 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)
  1701. 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)
  1702. 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)
  1703. 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)
  1704. 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)
  1705. 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)
  1706. end
  1707. end
  1708. PLAYMAINANIM = true
  1709. end
  1710.  
  1711. --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})
  1712. function Lightning(Table)
  1713. local Color = Table.Color or C3(1,1,1)
  1714. local StartPos = Table.Start or Torso.Position
  1715. local EndPos = Table.End or Mouse.Hit.p
  1716. local SegmentLength = Table.SegmentL or 2
  1717. local Thickness = Table.Thickness or 0.1
  1718. local Dissapear = Table.DoesFade or false
  1719. local Parent = Table.Ignore or Character
  1720. local MaxDist = Table.MaxDist or 400
  1721. local Branches = Table.Branches or false
  1722. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  1723. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  1724. local LIGHTNINGMODEL = IT("Model",Effects)
  1725. LIGHTNINGMODEL.Name = "Lightning"
  1726. local LastBolt = nil
  1727. for E = 1, DISTANCE do
  1728. local ExtraSize = (DISTANCE-E)/15
  1729. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  1730. PART.Color = Color
  1731. MakeForm(PART,"Cyl")
  1732. if LastBolt == nil then
  1733. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  1734. else
  1735. 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)
  1736. end
  1737. LastBolt = PART
  1738. if Branches == true then
  1739. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  1740. if CHOICE == 1 then
  1741. local LASTBRANCH = nil
  1742. for i = 1, MRANDOM(2,5) do
  1743. local ExtraSize2 = ((DISTANCE-E)/25)/i
  1744. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  1745. PART.Color = Color
  1746. MakeForm(PART,"Cyl")
  1747. if LASTBRANCH == nil then
  1748. 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)
  1749. else
  1750. 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)
  1751. end
  1752. LASTBRANCH = PART
  1753. end
  1754. end
  1755. end
  1756. end
  1757. if Dissapear == true then
  1758. coroutine.resume(coroutine.create(function()
  1759. for i = 1, 10 do
  1760. Swait()
  1761. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  1762. if c.ClassName == "Part" then
  1763. c.Transparency = i/10
  1764. end
  1765. end
  1766. end
  1767. LIGHTNINGMODEL:remove()
  1768. end))
  1769. elseif Dissapear == false then
  1770. Debris:AddItem(LIGHTNINGMODEL,0.1)
  1771. end
  1772. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  1773. end
  1774.  
  1775. --//=================================\\
  1776. --|| WEAPON CREATION
  1777. --\\=================================//
  1778.  
  1779. for i = 1, 15 do
  1780. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/15.2, "Dark stone grey", "FaceGradient", VT(1.01,0.58,1.01),false)
  1781. FACE.Color = C3(0,0,0)
  1782. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  1783. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/35,0), CF(0, 0, 0))
  1784. end
  1785. local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2,0.2,2),false)
  1786. MakeForm(HAT1,"Cyl")
  1787. HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0))
  1788. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2.01,0.15,2.01),false)
  1789. BELT.Color = C3(15/255,15/255,15/255)
  1790. MakeForm(BELT,"Cyl")
  1791. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0))
  1792. local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,2.2,1.3),false)
  1793. MakeForm(HAT2,"Cyl")
  1794. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0))
  1795. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.2,1.31),false)
  1796. BELT.Color = C3(15/255,15/255,15/255)
  1797. MakeForm(BELT,"Cyl")
  1798. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0))
  1799. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lavender", "Gem", VT(0.25,0.25,0.1),false)
  1800. MakeForm(GEM,"Ball")
  1801. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0))
  1802. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lavender", "Gem", VT(0.25,0.25,0.1),false)
  1803. MakeForm(GEM,"Ball")
  1804. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0))
  1805. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lavender", "Gem", VT(0.1,0.25,0.25),false)
  1806. MakeForm(GEM,"Ball")
  1807. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0))
  1808. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lavender", "Gem", VT(0.1,0.25,0.25),false)
  1809. MakeForm(GEM,"Ball")
  1810. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0))
  1811. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  1812. BELT.Color = C3(15/255,15/255,15/255)
  1813. MakeForm(BELT,"Cyl")
  1814. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0))
  1815. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  1816. BELT.Color = C3(15/255,15/255,15/255)
  1817. MakeForm(BELT,"Cyl")
  1818. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0))
  1819. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  1820. BELT.Color = C3(15/255,15/255,15/255)
  1821. MakeForm(BELT,"Cyl")
  1822. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0))
  1823. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  1824. BELT.Color = C3(15/255,15/255,15/255)
  1825. MakeForm(BELT,"Cyl")
  1826. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0))
  1827. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,0.5,1.3),false)
  1828. MakeForm(BELT,"Ball")
  1829. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0))
  1830. Humanoid.DisplayDistanceType = "None"
  1831. local naeeym2 = IT("BillboardGui",Character)
  1832. naeeym2.AlwaysOnTop = true
  1833. naeeym2.Size = UDim2.new(5,35,2,15)
  1834. naeeym2.StudsOffset = Vector3.new(0,3,0)
  1835. naeeym2.MaxDistance = 75
  1836. naeeym2.Adornee = Character.Head
  1837. naeeym2.Name = "Name"
  1838. naeeym2.PlayerToHideFrom = Player
  1839. local tecks2 = IT("TextLabel",naeeym2)
  1840. tecks2.BackgroundTransparency = 1
  1841. tecks2.TextScaled = true
  1842. tecks2.BorderSizePixel = 0
  1843. tecks2.Text = "The Warden"
  1844. tecks2.Font = "Bodoni"
  1845. tecks2.TextSize = 30
  1846. tecks2.TextStrokeTransparency = 0.5
  1847. tecks2.TextColor3 = C3(0,0,0)
  1848. tecks2.TextStrokeColor3 = BRICKC"Lavender".Color
  1849. tecks2.Size = UDim2.new(1,0,0.5,0)
  1850. tecks2.Parent = naeeym2
  1851. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Lilac", "FaceGradient", VT(0.15,0.15,0.15),false)
  1852. MakeForm(EYE,"Ball")
  1853. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.22,-0.55), CF(0, 0, 0))
  1854. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Lilac", "FaceGradient", VT(0.05,0.14,0.05),false)
  1855. EYE.Color = C3(0,0,0)
  1856. MakeForm(EYE,"Ball")
  1857. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.22,-0.6), CF(0, 0, 0))
  1858. local top = Instance.new("Shirt")
  1859. top.ShirtTemplate = "rbxassetid://676428254"
  1860. top.Parent = Character
  1861. top.Name = "Cloth"
  1862. local bottom = Instance.new("Pants")
  1863. bottom.PantsTemplate = "rbxassetid://676428351"
  1864. bottom.Parent = Character
  1865. bottom.Name = "Cloth"
  1866. for _, c in pairs(Character:GetChildren()) do
  1867. if c.ClassName == "Part" and c.Name ~= "FaceGradient" and c.Name ~= "Hat" and c.Name ~= "Gem" then
  1868. c.Material = "Neon"
  1869. if c:FindFirstChildOfClass("ParticleEmitter") then
  1870. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1871. end
  1872. c.Color = C3(1,1,1)
  1873. if c == Head then
  1874. if c:FindFirstChild("face") then
  1875. c.face:remove()
  1876. end
  1877. end
  1878. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  1879. c:remove()
  1880. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1881. c:remove()
  1882. end
  1883. end
  1884. local BODY = {}
  1885. for _, c in pairs(Character:GetDescendants()) do
  1886. if c:IsA("BasePart") and c.Name ~= "Handle" then
  1887. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  1888. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1889. end
  1890. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  1891. elseif c:IsA("JointInstance") then
  1892. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  1893. end
  1894. end
  1895. for e = 1, #BODY do
  1896. if BODY[e] ~= nil then
  1897. local STUFF = BODY[e]
  1898. local PART = STUFF[1]
  1899. local PARENT = STUFF[2]
  1900. local MATERIAL = STUFF[3]
  1901. local COLOR = STUFF[4]
  1902. local TRANSPARENCY = STUFF[5]
  1903. if PART.ClassName == "Part" and PART ~= RootPart then
  1904. PART.Material = MATERIAL
  1905. PART.Color = COLOR
  1906. PART.Transparency = TRANSPARENCY
  1907. end
  1908. PART.AncestryChanged:Connect(function()
  1909. PART.Parent = PARENT
  1910. end)
  1911. end
  1912. end
  1913. function refit()
  1914. Character.Parent = workspace
  1915. for e = 1, #BODY do
  1916. if BODY[e] ~= nil then
  1917. local STUFF = BODY[e]
  1918. local PART = STUFF[1]
  1919. local PARENT = STUFF[2]
  1920. local MATERIAL = STUFF[3]
  1921. local COLOR = STUFF[4]
  1922. local TRANSPARENCY = STUFF[5]
  1923. if PART.ClassName == "Part" and PART ~= RootPart then
  1924. PART.Material = MATERIAL
  1925. PART.Color = COLOR
  1926. PART.Transparency = TRANSPARENCY
  1927. end
  1928. if PART.Parent ~= PARENT then
  1929. Humanoid:remove()
  1930. PART.Parent = PARENT
  1931. Humanoid = IT("Humanoid",Character)
  1932. end
  1933. end
  1934. end
  1935. end
  1936. local SKILLTEXTCOLOR = BRICKC"Lavender".Color
  1937. local SKILLFONT = "Bodoni"
  1938. local SKILLTEXTSIZE = 7
  1939.  
  1940. Humanoid.Died:connect(function()
  1941. refit()
  1942. end)
  1943.  
  1944. 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")
  1945. 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")
  1946. 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")
  1947. 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")
  1948. 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")
  1949.  
  1950. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Warden Zap", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
  1951. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Warden Thunder", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  1952. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Inferno Ring", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  1953. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warden Wall", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
  1954. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Prison Key", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
  1955.  
  1956. --//=================================\\
  1957. --|| DAMAGING
  1958. --\\=================================//
  1959.  
  1960. function ApplyAoE(POSITION,RANGE,FLING,BURN)
  1961. local CHILDREN = workspace:GetDescendants()
  1962. for index, CHILD in pairs(CHILDREN) do
  1963. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1964. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1965. if HUM then
  1966. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1967. if TORSO then
  1968. if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
  1969. CHILD:BreakJoints()
  1970. if FLING ~= 0 then
  1971. for _, c in pairs(CHILD:GetChildren()) do
  1972. if c:IsA("BasePart") and c.Transparency == 0 then
  1973. if BURN == true then
  1974. Fire(c)
  1975. end
  1976. local bv = Instance.new("BodyVelocity")
  1977. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1978. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1979. bv.Parent = c
  1980. Debris:AddItem(bv,0.05)
  1981. end
  1982. end
  1983. end
  1984. end
  1985. end
  1986. end
  1987. end
  1988. end
  1989. end
  1990.  
  1991. --//=================================\\
  1992. --|| ATTACK FUNCTIONS AND STUFF
  1993. --\\=================================//
  1994.  
  1995. function Warden_Zap()
  1996. ATTACK = true
  1997. Rooted = false
  1998. local GYRO = IT("BodyGyro",RootPart)
  1999. GYRO.D = 750
  2000. GYRO.P = 20000
  2001. GYRO.MaxTorque = VT(0,40000000,0)
  2002. CreateSound(348663022,RightArm,1.5,2,false)
  2003. Pose("Cast1",0.8,1,true,GYRO)
  2004. 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})
  2005. local Hitpos = LightningTable.End
  2006. ApplyAoE(Hitpos,10,35)
  2007. 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})
  2008. for i = 1, 4 do
  2009. 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})
  2010. end
  2011. Pose("Cast1",0.8,1,true)
  2012. GYRO:remove()
  2013. ATTACK = false
  2014. Rooted = false
  2015. end
  2016.  
  2017. function Warden_Thunder()
  2018. ATTACK = true
  2019. Rooted = false
  2020. local GYRO = IT("BodyGyro",RootPart)
  2021. GYRO.D = 750
  2022. GYRO.P = 20000
  2023. GYRO.MaxTorque = VT(0,40000000,0)
  2024. CreateSound(469345336,Torso,3,2,false)
  2025. Pose("Cast2",1.5,2,true,GYRO)
  2026. coroutine.resume(coroutine.create(function()
  2027. local FRAME = RootPart.CFrame
  2028. for i = 1, 25 do
  2029. local POS = FRAME*CF(MRANDOM(-17,17),0,-i*15)
  2030. 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})
  2031. local Hitpos = LightningTable.End
  2032. ApplyAoE(Hitpos,20,15)
  2033. 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})
  2034. for i = 1, 4 do
  2035. 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})
  2036. end
  2037. wait(0.05)
  2038. end
  2039. end))
  2040. Pose("Cast2",1.5,0.7,true)
  2041. GYRO:remove()
  2042. ATTACK = false
  2043. Rooted = false
  2044. end
  2045.  
  2046. function Inferno_Ring()
  2047. ATTACK = true
  2048. Rooted = false
  2049. local GYRO = IT("BodyGyro",RootPart)
  2050. GYRO.D = 750
  2051. GYRO.P = 20000
  2052. GYRO.MaxTorque = VT(0,40000000,0)
  2053. local FIRE = IT("Model",Effects)
  2054. FIRE.Name = "Fire"
  2055. local MAIN = CreatePart(3, FIRE, "Neon", 0, 1, "Lavender", "Center", VT(0,0,0))
  2056. FIRE.PrimaryPart = MAIN
  2057. local FIRES = {}
  2058. for i = 1, 45 do
  2059. local PRT = CreatePart(3, FIRE, "Neon", 0, 1, "Lavender", "RingPart", VT(3,3,3))
  2060. PRT.CFrame = MAIN.CFrame*ANGLES(RAD(0),RAD((360/45)*i),RAD(0))*CF(0,0,20)
  2061. local F = Fire(PRT)
  2062. table.insert(FIRES,F)
  2063. end
  2064. repeat
  2065. FIRE:SetPrimaryPartCFrame(CF(Mouse.Hit.p))
  2066. Pose("Cast1",1.5,0.01,false,GYRO)
  2067. until HOLD == true
  2068. coroutine.resume(coroutine.create(function()
  2069. for i = 1, 4 do
  2070. ApplyAoE(MAIN.Position,21,-15,true)
  2071. CreateSound(463598785,MAIN,3,1,false)
  2072. for E = 1, #FIRES do
  2073. if FIRES[E] ~= nil then
  2074. FIRES[E].Acceleration = VT(0,300,0)
  2075. FIRES[E].Lifetime=NumberRange.new(0.35,1.5)
  2076. end
  2077. end
  2078. wait(0.3)
  2079. end
  2080. for E = 1, #FIRES do
  2081. if FIRES[E] ~= nil then
  2082. FIRES[E].Enabled = false
  2083. end
  2084. end
  2085. Debris:AddItem(FIRE,5)
  2086. end))
  2087. CreateSound(215395388,RightArm,3,2,false)
  2088. Pose("RightArmUp",1.5,0.5,true)
  2089. GYRO:remove()
  2090. ATTACK = false
  2091. Rooted = false
  2092. end
  2093.  
  2094. function Warden_Wall()
  2095. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 8, Character)
  2096. if HITFLOOR ~= nil then
  2097. if HITFLOOR.Anchored == true then
  2098. local WALL = HITFLOOR:Clone()
  2099. WALL.Size = VT(45,45,5)
  2100. WALL.Parent = Effects
  2101. WALL.Name = "Wall"
  2102. WALL.CFrame = RootPart.CFrame*CF(0,-65/2.1,-5)*ANGLES(RAD(-15),RAD(0),RAD(0))
  2103. CreateSound(130972023,WALL,5,0.8,false)
  2104. ATTACK = true
  2105. Rooted = true
  2106. local HIT = WALL.Touched:Connect(function(hit)
  2107. if hit.Parent ~= Character then
  2108. hit:BreakJoints()
  2109. end
  2110. end)
  2111. coroutine.resume(coroutine.create(function()
  2112. 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})
  2113. for i = 1, 90 do
  2114. Swait()
  2115. WALL.CFrame = WALL.CFrame*CF(0,0.5,0)
  2116. end
  2117. HIT:disconnect()
  2118. wait(5)
  2119. for i = 1, 46 do
  2120. Swait()
  2121. WALL.CFrame = WALL.CFrame*CF(0,-1,0)
  2122. end
  2123. WALL:remove()
  2124. end))
  2125. Pose("RightArmUp",1.5,1.2,true)
  2126. ATTACK = false
  2127. Rooted = false
  2128. end
  2129. end
  2130. end
  2131.  
  2132. function Prison_Key()
  2133. if Mouse.Target ~= nil then
  2134. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2135. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  2136. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  2137. local GYRO = IT("BodyGyro",RootPart)
  2138. GYRO.D = 750
  2139. GYRO.P = 20000
  2140. GYRO.MaxTorque = VT(0,40000000,0)
  2141. local grav = Instance.new("BodyPosition",TORSO)
  2142. grav.D = 15
  2143. grav.P = 20000
  2144. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2145. grav.position = TORSO.Position
  2146. local GYRO2 = IT("BodyGyro",TORSO)
  2147. GYRO2.D = 750
  2148. GYRO2.P = 20000
  2149. GYRO2.MaxTorque = VT(0,40000000,0)
  2150. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2151. grav.Name = "Jail"
  2152. local LOCKPARTS = {}
  2153. ATTACK = true
  2154. Rooted = false
  2155. local LOCK = IT("Model",Effects)
  2156. LOCK.Name = "Lock"
  2157. local LOCK2 = IT("Model",LOCK)
  2158. LOCK2.Name = "Metal"
  2159. --CREATE LOCK--
  2160. local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
  2161. LOCK.PrimaryPart = BASE
  2162. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  2163. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
  2164. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  2165. MakeForm(PRT,"Cyl")
  2166. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
  2167. PRT.Color = C3(0,0,0)
  2168. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  2169. MakeForm(PRT,"Cyl")
  2170. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
  2171. PRT.Color = C3(0,0,0)
  2172. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  2173. for i = 1, 45 do
  2174. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  2175. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  2176. end
  2177. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  2178. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  2179. LOCK2.PrimaryPart = PRT
  2180. ---------------
  2181. local CHILDREN = LOCK:GetDescendants()
  2182. for index, CHILD in pairs(CHILDREN) do
  2183. if CHILD:IsA("BasePart") then
  2184. CHILD.Transparency = 1
  2185. end
  2186. end
  2187. for i = 1, 75 do
  2188. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  2189. Swait()
  2190. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2191. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  2192. local CHILDREN = LOCK:GetDescendants()
  2193. for index, CHILD in pairs(CHILDREN) do
  2194. if CHILD:IsA("BasePart") then
  2195. CHILD.Transparency = CHILD.Transparency - 1/75
  2196. end
  2197. end
  2198. end
  2199. HUM.DisplayDistanceType = "None"
  2200. local KEY = IT("Model",Effects)
  2201. KEY.Name = "Key"
  2202. --CREATE KEY--
  2203. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "KeyBase", VT(0.1, 1, 0.1),false)
  2204. KEY.PrimaryPart = KBASE
  2205. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  2206. local WLD = weldBetween(RightArm,KBASE)
  2207. for i = 1, 45 do
  2208. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.1, 0.1, 0.1),false)
  2209. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  2210. weldBetween(KBASE,PRT)
  2211. end
  2212. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false)
  2213. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  2214. weldBetween(KBASE,PRT)
  2215. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false)
  2216. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  2217. weldBetween(KBASE,PRT)
  2218. --------------
  2219. Rooted = true
  2220. Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
  2221. coroutine.resume(coroutine.create(function()
  2222. for i = 1, 10 do
  2223. Swait()
  2224. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2225. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  2226. end
  2227. CreateSound(1149318312,BASE,5,1,false)
  2228. CreateSound(160772554,BASE,3,1,false)
  2229. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  2230. for i = 1, 4 do
  2231. 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})
  2232. end
  2233. 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})
  2234. wait(1)
  2235. TORSO.Parent.Parent = LOCK
  2236. for i = 1, 75 do
  2237. Swait()
  2238. local CHILDREN = KEY:GetDescendants()
  2239. for index, CHILD in pairs(CHILDREN) do
  2240. if CHILD:IsA("BasePart") then
  2241. CHILD.Transparency = i/25
  2242. end
  2243. end
  2244. local CHILDREN = LOCK:GetDescendants()
  2245. for index, CHILD in pairs(CHILDREN) do
  2246. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  2247. CHILD.Transparency = CHILD.Transparency + 1/75
  2248. elseif CHILD.ClassName == "Decal" then
  2249. CHILD.Transparency = CHILD.Transparency + 1/75
  2250. end
  2251. end
  2252. end
  2253. TORSO.Parent:ClearAllChildren()
  2254. KEY:remove()
  2255. LOCK:remove()
  2256. end))
  2257. Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
  2258. GYRO:remove()
  2259. ATTACK = false
  2260. Rooted = false
  2261. end
  2262. end
  2263. end
  2264.  
  2265. function Hat()
  2266. ATTACK = true
  2267. Rooted = false
  2268. Pose("Taunt",0.4,1.2,false)
  2269. ATTACK = false
  2270. Rooted = false
  2271. end
  2272.  
  2273. --//=================================\\
  2274. --|| ASSIGN THINGS TO KEYS
  2275. --\\=================================//
  2276.  
  2277. function MouseDown(Mouse)
  2278. HOLD = true
  2279. if ATTACK == false then
  2280. end
  2281. end
  2282.  
  2283. function MouseUp(Mouse)
  2284. HOLD = false
  2285. end
  2286.  
  2287. function KeyDown(Key)
  2288. KEYHOLD = true
  2289. if Key == "z" and ATTACK == false then
  2290. Warden_Zap()
  2291. end
  2292.  
  2293. if Key == "b" and ATTACK == false then
  2294. Warden_Thunder()
  2295. end
  2296.  
  2297. if Key == "c" and ATTACK == false then
  2298. Inferno_Ring()
  2299. end
  2300.  
  2301. if Key == "v" and ATTACK == false then
  2302. Warden_Wall()
  2303. end
  2304.  
  2305. if Key == "x" and ATTACK == false then
  2306. Prison_Key()
  2307. end
  2308.  
  2309. if Key == "t" and ATTACK == false then
  2310. Hat()
  2311. end
  2312. end
  2313.  
  2314. function KeyUp(Key)
  2315. KEYHOLD = false
  2316. end
  2317.  
  2318. Mouse.Button1Down:connect(function(NEWKEY)
  2319. MouseDown(NEWKEY)
  2320. end)
  2321. Mouse.Button1Up:connect(function(NEWKEY)
  2322. MouseUp(NEWKEY)
  2323. end)
  2324. Mouse.KeyDown:connect(function(NEWKEY)
  2325. KeyDown(NEWKEY)
  2326. end)
  2327. Mouse.KeyUp:connect(function(NEWKEY)
  2328. KeyUp(NEWKEY)
  2329. end)
  2330.  
  2331. --//=================================\\
  2332. --\\=================================//
  2333.  
  2334.  
  2335. function unanchor()
  2336. if UNANCHOR == true then
  2337. g = Character:GetChildren()
  2338. for i = 1, #g do
  2339. if g[i].ClassName == "Part" then
  2340. g[i].Anchored = false
  2341. end
  2342. end
  2343. end
  2344. end
  2345.  
  2346.  
  2347. --//=================================\\
  2348. --|| WRAP THE WHOLE SCRIPT UP
  2349. --\\=================================//
  2350.  
  2351. Humanoid.Changed:connect(function(Jump)
  2352. if Jump == "Jump" and (Disable_Jump == true) then
  2353. Humanoid.Jump = false
  2354. end
  2355. end)
  2356.  
  2357. while true do
  2358. Swait()
  2359. script.Parent = WEAPONGUI
  2360. Humanoid.Parent = Character
  2361. if Humanoid then
  2362. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2363. IDLEANIMATION:Play()
  2364. end
  2365. if ANIMATE.Parent == Character then
  2366. ANIMATE:Destroy()
  2367. end
  2368. SINE = SINE + CHANGE
  2369. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2370. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2371. Humanoid.HipHeight = 1
  2372. Humanoid.Name = "Warden"
  2373. Humanoid.PlatformStand = false
  2374. if PLAYMAINANIM == true then
  2375. if TORSOVELOCITY < 1 then
  2376. 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)
  2377. 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)
  2378. 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)
  2379. 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)
  2380. 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)
  2381. 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)
  2382. elseif TORSOVELOCITY > 1 then
  2383. 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)
  2384. 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)
  2385. 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)
  2386. 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)
  2387. 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)
  2388. 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)
  2389. end
  2390. end
  2391. unanchor()
  2392. Humanoid.MaxHealth = "inf"
  2393. Humanoid.Health = "inf"
  2394. if Rooted == false then
  2395. Disable_Jump = false
  2396. Humanoid.WalkSpeed = Speed
  2397. elseif Rooted == true then
  2398. Disable_Jump = true
  2399. Humanoid.WalkSpeed = 0
  2400. end
  2401. for _, c in pairs(Character:GetChildren()) do
  2402. if c.ClassName == "Part" and c.Name ~= "Eye" then
  2403. c.Material = "Neon"
  2404. if c:FindFirstChildOfClass("ParticleEmitter") then
  2405. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  2406. end
  2407. c.Color = C3(1,1,1)
  2408. if c == Head then
  2409. if c:FindFirstChild("face") then
  2410. c.face:remove()
  2411. end
  2412. end
  2413. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  2414. c:remove()
  2415. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  2416. c:remove()
  2417. end
  2418. end
  2419. sick.SoundId = "rbxassetid://1494340971"
  2420. sick.Looped = true
  2421. sick.Pitch = 1
  2422. sick.Volume = 3
  2423. sick:Resume()
  2424. sick.Parent = Torso
  2425. refit()
  2426. if Head:FindFirstChildOfClass("Sound") then
  2427. Head:FindFirstChildOfClass("Sound")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement