Advertisement
Hewwovs

Testing

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