Advertisement
Guest User

wwww

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