Guest User

Guest 666 (Warden Edit)

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