Advertisement
voyqgo

idk

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