Advertisement
bmrx13

better warden

Sep 28th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 85.68 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code by Mokiros")
  7. local rp = RealPlayer
  8. script.Parent = rp.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent then
  34. for _,f in pairs(t.Functions) do
  35. f(...)
  36. end
  37. end
  38. end
  39. m.TrigEvent = te
  40. UIS.TrigEvent = te
  41.  
  42. Event.OnServerEvent:Connect(function(plr,io)
  43. if plr~=rp then return end
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. if not io.isMouse then
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  52. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  53. end
  54. for _,t in pairs(CAS.Actions) do
  55. for _,k in pairs(t.Keys) do
  56. if k==io.KeyCode then
  57. t.Function(t.Name,io.UserInputState,io)
  58. end
  59. end
  60. end
  61. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  62. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  63. end
  64. end)
  65. Event.Parent = NLS([==[
  66. local Player = game:GetService("Players").LocalPlayer
  67. local Event = script:WaitForChild("UserInput_Event")
  68.  
  69. local Mouse = Player:GetMouse()
  70. local UIS = game:GetService("UserInputService")
  71. local input = function(io,a)
  72. if a then return end
  73. --Since InputObject is a client-side instance, we create and pass table instead
  74. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  75. end
  76. UIS.InputBegan:Connect(input)
  77. UIS.InputEnded:Connect(input)
  78.  
  79. local h,t
  80. --Give the server mouse data 30 times every second, but only if the values changed
  81. --If player is not moving their mouse, client won't fire events
  82. while wait(1/30) do
  83. if h~=Mouse.Hit or t~=Mouse.Target then
  84. h,t=Mouse.Hit,Mouse.Target
  85. Event:FireServer({isMouse=true,Target=t,Hit=h})
  86. end
  87. end]==],Player.Character)
  88.  
  89. ----Sandboxed game object that allows the usage of client-side methods and services
  90. --Real game object
  91. local _rg = game
  92.  
  93. --Metatable for fake service
  94. local fsmt = {
  95. __index = function(self,k)
  96. local s = rawget(self,"_RealService")
  97. if s then
  98. return typeof(s[k])=="function"
  99. and function(_,...)return s[k](s,...)end or s[k]
  100. end
  101. end,
  102. __newindex = function(self,k,v)
  103. local s = rawget(self,"_RealService")
  104. if s then s[k]=v end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return rawget(self,s) or _rg:GetService(s)
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. RunService = FakeService({
  123. _btrs = {},
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132. }
  133. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  134. g.service = g.GetService
  135. FakeService(g,game)
  136. --Changing owner to fake player object to support owner:GetMouse()
  137. game,owner = g,g.Players.LocalPlayer
  138. end
  139.  
  140. wait(0.2)
  141.  
  142. Player = game:GetService("Players").LocalPlayer
  143. PlayerGui = Player.PlayerGui
  144. Cam = workspace.CurrentCamera
  145. Backpack = Player.Backpack
  146. Character = Player.Character
  147. Humanoid = Character.Humanoid
  148. Mouse = Player:GetMouse()
  149. RootPart = Character["HumanoidRootPart"]
  150. Torso = Character["Torso"]
  151. Head = Character["Head"]
  152. RightArm = Character["Right Arm"]
  153. LeftArm = Character["Left Arm"]
  154. RightLeg = Character["Right Leg"]
  155. LeftLeg = Character["Left Leg"]
  156. RootJoint = RootPart["RootJoint"]
  157. Neck = Torso["Neck"]
  158. RightShoulder = Torso["Right Shoulder"]
  159. LeftShoulder = Torso["Left Shoulder"]
  160. RightHip = Torso["Right Hip"]
  161. LeftHip = Torso["Left Hip"]
  162. local sick = Instance.new("Sound",Character)
  163. sick.SoundId = "rbxassetid://142603362"
  164. sick.Looped = true
  165. sick.Pitch = 1
  166. sick.Volume = 1
  167. sick:Play()
  168.  
  169. IT = Instance.new
  170. CF = CFrame.new
  171. VT = Vector3.new
  172. RAD = math.rad
  173. C3 = Color3.new
  174. UD2 = UDim2.new
  175. BRICKC = BrickColor.new
  176. ANGLES = CFrame.Angles
  177. EULER = CFrame.fromEulerAnglesXYZ
  178. COS = math.cos
  179. ACOS = math.acos
  180. SIN = math.sin
  181. ASIN = math.asin
  182. ABS = math.abs
  183. MRANDOM = math.random
  184. FLOOR = math.floor
  185. Class_Name = "₩₳ⱤĐɆ₦.exe"
  186. Editor_Name = "SHYIME"
  187.  
  188.  
  189. --//=================================\\
  190. --|| USEFUL VALUES
  191. --\\=================================//
  192.  
  193. Animation_Speed = 2
  194. Frame_Speed = 1 / 30 -- (1 / 30) OR (1 / 60)
  195. local Speed = 15
  196. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  197. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  198. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  199. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  200. local DAMAGEMULTIPLIER = 1
  201. local ANIM = "Idle"
  202. local ATTACK = false
  203. local EQUIPPED = false
  204. local HOLD = false
  205. local COMBO = 1
  206. local Rooted = false
  207. local SINE = 0
  208. local KEYHOLD = false
  209. local CHANGE = 2 / Animation_Speed
  210. local WALKINGANIM = false
  211. local VALUE1 = false
  212. local VALUE2 = false
  213. local ROBLOXIDLEANIMATION = IT("Animation")
  214. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  215. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  216. --ROBLOXIDLEANIMATION.Parent = Humanoid
  217. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  218. WEAPONGUI.Name = "Weapon GUI"
  219. local Effects = IT("Folder", Character)
  220. Effects.Name = "Effects"
  221. local ANIMATOR = Humanoid.Animator
  222. local ANIMATE = Character.Animate
  223. local UNANCHOR = true
  224. local PLAYMAINANIM = true
  225. local BOLTSOUNDS = {168586621,168586586,178452241}
  226.  
  227. --//=================================\\
  228. --\\=================================//
  229.  
  230.  
  231. --//=================================\\
  232. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  233. --\\=================================//
  234.  
  235. ArtificialHB = Instance.new("BindableEvent", script)
  236. ArtificialHB.Name = "ArtificialHB"
  237.  
  238. script:WaitForChild("ArtificialHB")
  239.  
  240. frame = Frame_Speed
  241. tf = 0
  242. allowframeloss = false
  243. tossremainder = false
  244. lastframe = tick()
  245. script.ArtificialHB:Fire()
  246.  
  247. game:GetService("RunService").Heartbeat:connect(function(s, p)
  248. tf = tf + s
  249. if tf >= frame then
  250. if allowframeloss then
  251. script.ArtificialHB:Fire()
  252. lastframe = tick()
  253. else
  254. for i = 1, math.floor(tf / frame) do
  255. script.ArtificialHB:Fire()
  256. end
  257. lastframe = tick()
  258. end
  259. if tossremainder then
  260. tf = 0
  261. else
  262. tf = tf - frame * math.floor(tf / frame)
  263. end
  264. end
  265. end)
  266.  
  267. --//=================================\\
  268. --\\=================================//
  269. print(Class_Name.." Loaded")
  270. print(Editor_Name.." Edited This")
  271. --//=================================\\
  272. --|| SOME FUNCTIONS
  273. --\\=================================//
  274.  
  275. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  276. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  277. end
  278.  
  279. function PositiveAngle(NUMBER)
  280. if NUMBER >= 0 then
  281. NUMBER = 0
  282. end
  283. return NUMBER
  284. end
  285.  
  286. function NegativeAngle(NUMBER)
  287. if NUMBER <= 0 then
  288. NUMBER = 0
  289. end
  290. return NUMBER
  291. end
  292.  
  293. function Swait(NUMBER)
  294. if NUMBER == 0 or NUMBER == nil then
  295. ArtificialHB.Event:wait()
  296. else
  297. for i = 1, NUMBER do
  298. ArtificialHB.Event:wait()
  299. end
  300. end
  301. end
  302.  
  303. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  304. local NEWMESH = IT(MESH)
  305. if MESH == "SpecialMesh" then
  306. NEWMESH.MeshType = MESHTYPE
  307. if MESHID ~= "nil" and MESHID ~= "" then
  308. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  309. end
  310. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  311. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  312. end
  313. end
  314. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  315. NEWMESH.Scale = SCALE
  316. NEWMESH.Parent = PARENT
  317. return NEWMESH
  318. end
  319.  
  320. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  321. local NEWPART = IT("Part")
  322. NEWPART.formFactor = FORMFACTOR
  323. NEWPART.Reflectance = REFLECTANCE
  324. NEWPART.Transparency = TRANSPARENCY
  325. NEWPART.CanCollide = false
  326. NEWPART.Locked = true
  327. NEWPART.Anchored = true
  328. if ANCHOR == false then
  329. NEWPART.Anchored = false
  330. end
  331. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  332. NEWPART.Name = NAME
  333. NEWPART.Size = SIZE
  334. NEWPART.Position = Torso.Position
  335. NEWPART.Material = MATERIAL
  336. NEWPART:BreakJoints()
  337. NEWPART.Parent = PARENT
  338. return NEWPART
  339. end
  340.  
  341. local function weldBetween(a, b)
  342. local weldd = Instance.new("ManualWeld")
  343. weldd.Part0 = a
  344. weldd.Part1 = b
  345. weldd.C0 = CFrame.new()
  346. weldd.C1 = b.CFrame:inverse() * a.CFrame
  347. weldd.Parent = a
  348. return weldd
  349. end
  350.  
  351.  
  352. function QuaternionFromCFrame(cf)
  353. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  354. local trace = m00 + m11 + m22
  355. if trace > 0 then
  356. local s = math.sqrt(1 + trace)
  357. local recip = 0.5 / s
  358. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  359. else
  360. local i = 0
  361. if m11 > m00 then
  362. i = 1
  363. end
  364. if m22 > (i == 0 and m00 or m11) then
  365. i = 2
  366. end
  367. if i == 0 then
  368. local s = math.sqrt(m00 - m11 - m22 + 1)
  369. local recip = 0.5 / s
  370. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  371. elseif i == 1 then
  372. local s = math.sqrt(m11 - m22 - m00 + 1)
  373. local recip = 0.5 / s
  374. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  375. elseif i == 2 then
  376. local s = math.sqrt(m22 - m00 - m11 + 1)
  377. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  378. end
  379. end
  380. end
  381.  
  382. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  383. local xs, ys, zs = x + x, y + y, z + z
  384. local wx, wy, wz = w * xs, w * ys, w * zs
  385. local xx = x * xs
  386. local xy = x * ys
  387. local xz = x * zs
  388. local yy = y * ys
  389. local yz = y * zs
  390. local zz = z * zs
  391. 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))
  392. end
  393.  
  394. function QuaternionSlerp(a, b, t)
  395. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  396. local startInterp, finishInterp;
  397. if cosTheta >= 0.0001 then
  398. if (1 - cosTheta) > 0.0001 then
  399. local theta = ACOS(cosTheta)
  400. local invSinTheta = 1 / SIN(theta)
  401. startInterp = SIN((1 - t) * theta) * invSinTheta
  402. finishInterp = SIN(t * theta) * invSinTheta
  403. else
  404. startInterp = 1 - t
  405. finishInterp = t
  406. end
  407. else
  408. if (1 + cosTheta) > 0.0001 then
  409. local theta = ACOS(-cosTheta)
  410. local invSinTheta = 1 / SIN(theta)
  411. startInterp = SIN((t - 1) * theta) * invSinTheta
  412. finishInterp = SIN(t * theta) * invSinTheta
  413. else
  414. startInterp = t - 1
  415. finishInterp = t
  416. end
  417. end
  418. 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
  419. end
  420.  
  421. function Clerp(a, b, t)
  422. local qa = {QuaternionFromCFrame(a)}
  423. local qb = {QuaternionFromCFrame(b)}
  424. local ax, ay, az = a.x, a.y, a.z
  425. local bx, by, bz = b.x, b.y, b.z
  426. local _t = 1 - t
  427. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  428. end
  429.  
  430. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  431. local frame = IT("Frame")
  432. frame.BackgroundTransparency = TRANSPARENCY
  433. frame.BorderSizePixel = BORDERSIZEPIXEL
  434. frame.Position = POSITION
  435. frame.Size = SIZE
  436. frame.BackgroundColor3 = COLOR
  437. frame.BorderColor3 = BORDERCOLOR
  438. frame.Name = NAME
  439. frame.Parent = PARENT
  440. return frame
  441. end
  442.  
  443. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  444. local label = IT("TextLabel")
  445. label.BackgroundTransparency = 1
  446. label.Size = UD2(1, 0, 1, 0)
  447. label.Position = UD2(0, 0, 0, 0)
  448. label.TextColor3 = TEXTCOLOR
  449. label.TextStrokeTransparency = STROKETRANSPARENCY
  450. label.TextTransparency = TRANSPARENCY
  451. label.FontSize = TEXTFONTSIZE
  452. label.Font = TEXTFONT
  453. label.BorderSizePixel = BORDERSIZEPIXEL
  454. label.TextScaled = false
  455. label.Text = TEXT
  456. label.Name = NAME
  457. label.Parent = PARENT
  458. return label
  459. end
  460.  
  461. function NoOutlines(PART)
  462. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  463. end
  464.  
  465. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  466. local NEWWELD = IT(TYPE)
  467. NEWWELD.Part0 = PART0
  468. NEWWELD.Part1 = PART1
  469. NEWWELD.C0 = C0
  470. NEWWELD.C1 = C1
  471. NEWWELD.Parent = PARENT
  472. return NEWWELD
  473. end
  474.  
  475. local S = IT("Sound")
  476. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  477. local NEWSOUND = nil
  478. coroutine.resume(coroutine.create(function()
  479. NEWSOUND = S:Clone()
  480. NEWSOUND.Parent = PARENT
  481. NEWSOUND.Volume = VOLUME
  482. NEWSOUND.Pitch = PITCH
  483. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  484. NEWSOUND:play()
  485. if DOESLOOP == true then
  486. NEWSOUND.Looped = true
  487. else
  488. repeat wait(1) until NEWSOUND.Playing == false
  489. NEWSOUND:remove()
  490. end
  491. end))
  492. return NEWSOUND
  493. end
  494.  
  495.  
  496. local EyeSizes={
  497. NumberSequenceKeypoint.new(0,2,0),
  498. NumberSequenceKeypoint.new(1,0,0)
  499. }
  500. local EyeTrans={
  501. NumberSequenceKeypoint.new(0,0.5,0),
  502. NumberSequenceKeypoint.new(1,1,0)
  503. }
  504. local PE=Instance.new("ParticleEmitter",nil)
  505. PE.LightEmission=.8
  506. PE.Color = ColorSequence.new(BRICKC("Crimson").Color,BRICKC("Really red").Color)
  507. PE.Size=NumberSequence.new(EyeSizes)
  508. PE.Transparency=NumberSequence.new(EyeTrans)
  509. PE.Lifetime=NumberRange.new(0.35,1)
  510. PE.Rotation=NumberRange.new(0,360)
  511. PE.Rate=100
  512. PE.VelocitySpread = 10000
  513. PE.Acceleration = Vector3.new(0,85,0)
  514. PE.Drag = 5
  515. PE.Speed = NumberRange.new(0.1,5)
  516. PE.Texture="http://www.roblox.com/asset/?id=1460745664"
  517. PE.ZOffset = 0.5
  518. PE.Name = "PE"
  519. PE.Enabled = false
  520.  
  521. function Fire(art)
  522. local PARTICLES = PE:Clone()
  523. PARTICLES.Parent = art
  524. PARTICLES.Enabled = true
  525. return PARTICLES
  526. end
  527.  
  528. function CFrameFromTopBack(at, top, back)
  529. local right = top:Cross(back)
  530. 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)
  531. end
  532.  
  533. --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})
  534. function WACKYEFFECT(Table)
  535. local TYPE = (Table.EffectType or "Sphere")
  536. local SIZE = (Table.Size or VT(1,1,1))
  537. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  538. local TRANSPARENCY = (Table.Transparency or 0)
  539. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  540. local CFRAME = (Table.CFrame or Torso.CFrame)
  541. local MOVEDIRECTION = (Table.MoveToPos or nil)
  542. local ROTATION1 = (Table.RotationX or 0)
  543. local ROTATION2 = (Table.RotationY or 0)
  544. local ROTATION3 = (Table.RotationZ or 0)
  545. local MATERIAL = (Table.Material or "Neon")
  546. local COLOR = (Table.Color or C3(1,1,1))
  547. local TIME = (Table.Time or 45)
  548. local SOUNDID = (Table.SoundID or nil)
  549. local SOUNDPITCH = (Table.SoundPitch or nil)
  550. local SOUNDVOLUME = (Table.SoundVolume or nil)
  551. coroutine.resume(coroutine.create(function()
  552. local PLAYSSOUND = false
  553. local SOUND = nil
  554. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Crimson"), "Effect", VT(1,1,1), true)
  555. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  556. PLAYSSOUND = true
  557. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  558. end
  559. EFFECT.Color = COLOR
  560. local MSH = nil
  561. if TYPE == "Sphere" then
  562. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  563. elseif TYPE == "Block" or TYPE == "Box" then
  564. MSH = IT("BlockMesh",EFFECT)
  565. MSH.Scale = SIZE
  566. elseif TYPE == "Wave" then
  567. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  568. elseif TYPE == "Ring" then
  569. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  570. elseif TYPE == "Slash" then
  571. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  572. elseif TYPE == "Round Slash" then
  573. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  574. elseif TYPE == "Swirl" then
  575. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  576. elseif TYPE == "Skull" then
  577. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  578. elseif TYPE == "Crystal" then
  579. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  580. end
  581. if MSH ~= nil then
  582. local MOVESPEED = nil
  583. if MOVEDIRECTION ~= nil then
  584. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  585. end
  586. local GROWTH = SIZE - ENDSIZE
  587. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  588. if TYPE == "Block" then
  589. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  590. else
  591. EFFECT.CFrame = CFRAME
  592. end
  593. for LOOP = 1, TIME+1 do
  594. Swait()
  595. MSH.Scale = MSH.Scale - GROWTH/TIME
  596. if TYPE == "Wave" then
  597. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  598. end
  599. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  600. if TYPE == "Block" then
  601. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  602. else
  603. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  604. end
  605. if MOVEDIRECTION ~= nil then
  606. local ORI = EFFECT.Orientation
  607. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  608. EFFECT.Orientation = ORI
  609. end
  610. end
  611. if PLAYSSOUND == false then
  612. EFFECT:remove()
  613. else
  614. repeat wait(1) until SOUND.Playing == false
  615. EFFECT:remove()
  616. end
  617. else
  618. if PLAYSSOUND == false then
  619. EFFECT:remove()
  620. else
  621. repeat Swait() until SOUND.Playing == false
  622. EFFECT:remove()
  623. end
  624. end
  625. end))
  626. end
  627.  
  628. function MakeForm(PART,TYPE)
  629. if TYPE == "Cyl" then
  630. local MSH = IT("CylinderMesh",PART)
  631. elseif TYPE == "Ball" then
  632. local MSH = IT("SpecialMesh",PART)
  633. MSH.MeshType = "Sphere"
  634. elseif TYPE == "Wedge" then
  635. local MSH = IT("SpecialMesh",PART)
  636. MSH.MeshType = "Wedge"
  637. end
  638. end
  639.  
  640. Debris = game:GetService("Debris")
  641.  
  642. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  643. local DIRECTION = CF(StartPos,EndPos).lookVector
  644. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  645. end
  646.  
  647. local HATWELD = nil
  648. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  649. PLAYMAINANIM = false
  650. if WhichPose == "Cast1" then
  651. for i=0, Time, 0.1 / Animation_Speed do
  652. Swait()
  653. if Magic == true then
  654. 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})
  655. end
  656. if Gyro ~= nil and Gyro ~= false then
  657. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  658. end
  659. 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)
  660. 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)
  661. 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)
  662. 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)
  663. 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)
  664. 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)
  665. end
  666. elseif WhichPose == "Cast2" then
  667. for i=0, Time, 0.1 / Animation_Speed do
  668. Swait()
  669. if Magic == true then
  670. 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})
  671. 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})
  672. end
  673. if Gyro ~= nil and Gyro ~= false then
  674. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  675. end
  676. 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)
  677. 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)
  678. 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)
  679. 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)
  680. 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)
  681. 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)
  682. end
  683. elseif WhichPose == "RightArmUp" then
  684. for i=0, Time, 0.1 / Animation_Speed do
  685. Swait()
  686. if Magic == true then
  687. 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})
  688. end
  689. if Gyro ~= nil and Gyro ~= false then
  690. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  691. end
  692. 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)
  693. 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)
  694. 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)
  695. 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)
  696. 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)
  697. 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)
  698. end
  699. elseif WhichPose == "Taunt" then
  700. for i=0, Time, 0.1 / Animation_Speed do
  701. Swait()
  702. 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)
  703. 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)
  704. 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)
  705. 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)
  706. 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)
  707. 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)
  708. end
  709. HATWELD.Part0 = RightArm
  710. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  711. CreateSound(137473066,Torso,10,1,false)
  712. for i=0, Time*2, 0.1 / Animation_Speed do
  713. Swait()
  714. 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)
  715. 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)
  716. 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)
  717. 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)
  718. 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)
  719. 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)
  720. end
  721. for i=0, Time, 0.1 / Animation_Speed do
  722. Swait()
  723. 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)
  724. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  725. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  726. 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)
  727. 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)
  728. 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)
  729. 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)
  730. end
  731. HATWELD.Part0 = Head
  732. HATWELD.C0 = CF(0,0.35,0)
  733. elseif WhichPose == "Prepare key" then
  734. for i=0, Time, 0.1 / Animation_Speed do
  735. Swait()
  736. if Gyro ~= nil and Gyro ~= false then
  737. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  738. end
  739. 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)
  740. 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)
  741. 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)
  742. 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)
  743. 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)
  744. 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)
  745. end
  746. elseif WhichPose == "Turn key" then
  747. for i=0, Time, 0.1 / Animation_Speed do
  748. Swait()
  749. if Gyro ~= nil and Gyro ~= false then
  750. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  751. end
  752. 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)
  753. 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)
  754. 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)
  755. 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)
  756. 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)
  757. 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)
  758. end
  759. end
  760. PLAYMAINANIM = true
  761. end
  762.  
  763. --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})
  764. function Lightning(Table)
  765. local Color = Table.Color or C3(1,1,1)
  766. local StartPos = Table.Start or Torso.Position
  767. local EndPos = Table.End or Mouse.Hit.p
  768. local SegmentLength = Table.SegmentL or 2
  769. local Thickness = Table.Thickness or 0.1
  770. local Dissapear = Table.DoesFade or false
  771. local Parent = Table.Ignore or Character
  772. local MaxDist = Table.MaxDist or 400
  773. local Branches = Table.Branches or false
  774. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  775. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  776. local LIGHTNINGMODEL = IT("Model",Effects)
  777. LIGHTNINGMODEL.Name = "Lightning"
  778. local LastBolt = nil
  779. for E = 1, DISTANCE do
  780. local ExtraSize = (DISTANCE-E)/15
  781. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Crimson"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  782. PART.Color = Color
  783. MakeForm(PART,"Cyl")
  784. if LastBolt == nil then
  785. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  786. else
  787. 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)
  788. end
  789. LastBolt = PART
  790. if Branches == true then
  791. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  792. if CHOICE == 1 then
  793. local LASTBRANCH = nil
  794. for i = 1, MRANDOM(2,5) do
  795. local ExtraSize2 = ((DISTANCE-E)/25)/i
  796. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Crimson"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  797. PART.Color = Color
  798. MakeForm(PART,"Cyl")
  799. if LASTBRANCH == nil then
  800. 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)
  801. else
  802. 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)
  803. end
  804. LASTBRANCH = PART
  805. end
  806. end
  807. end
  808. end
  809. if Dissapear == true then
  810. coroutine.resume(coroutine.create(function()
  811. for i = 1, 10 do
  812. Swait()
  813. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  814. if c.ClassName == "Part" then
  815. c.Transparency = i/10
  816. end
  817. end
  818. end
  819. LIGHTNINGMODEL:remove()
  820. end))
  821. elseif Dissapear == false then
  822. Debris:AddItem(LIGHTNINGMODEL,0.1)
  823. end
  824. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  825. end
  826.  
  827. --//=================================\\
  828. --|| WEAPON CREATION
  829. --\\=================================//
  830.  
  831. for i = 1, 15 do
  832. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/15.2, "Dark stone grey", "FaceGradient", VT(1.01,0.58,1.01),false)
  833. FACE.Color = C3(0,0,0)
  834. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  835. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/35,0), CF(0, 0, 0))
  836. end
  837. local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Crimson", "Hat", VT(2,0.2,2),false)
  838. MakeForm(HAT1,"Cyl")
  839. HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0))
  840. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Crimson", "Hat", VT(2.01,0.15,2.01),false)
  841. BELT.Color = C3(15/255,15/255,15/255)
  842. MakeForm(BELT,"Cyl")
  843. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0))
  844. local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Crimson", "Hat", VT(1.3,2.2,1.3),false)
  845. MakeForm(HAT2,"Cyl")
  846. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0))
  847. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Crimson", "Hat", VT(1.31,0.2,1.31),false)
  848. BELT.Color = C3(15/255,15/255,15/255)
  849. MakeForm(BELT,"Cyl")
  850. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0))
  851. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Gem", VT(0.25,0.25,0.1),false)
  852. MakeForm(GEM,"Ball")
  853. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0))
  854. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Gem", VT(0.25,0.25,0.1),false)
  855. MakeForm(GEM,"Ball")
  856. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0))
  857. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Gem", VT(0.1,0.25,0.25),false)
  858. MakeForm(GEM,"Ball")
  859. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0))
  860. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Gem", VT(0.1,0.25,0.25),false)
  861. MakeForm(GEM,"Ball")
  862. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0))
  863. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Crimson", "Hat", VT(1.31,0.1,1.31),false)
  864. BELT.Color = C3(15/255,15/255,15/255)
  865. MakeForm(BELT,"Cyl")
  866. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0))
  867. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Crimson", "Hat", VT(1.31,0.1,1.31),false)
  868. BELT.Color = C3(15/255,15/255,15/255)
  869. MakeForm(BELT,"Cyl")
  870. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0))
  871. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Crimson", "Hat", VT(1.31,0.1,1.31),false)
  872. BELT.Color = C3(15/255,15/255,15/255)
  873. MakeForm(BELT,"Cyl")
  874. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0))
  875. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Crimson", "Hat", VT(1.31,0.1,1.31),false)
  876. BELT.Color = C3(15/255,15/255,15/255)
  877. MakeForm(BELT,"Cyl")
  878. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0))
  879. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Crimson", "Hat", VT(1.3,0.5,1.3),false)
  880. MakeForm(BELT,"Ball")
  881. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0))
  882. Humanoid.DisplayDistanceType = "None"
  883. local naeeym2 = IT("BillboardGui",Character)
  884. naeeym2.AlwaysOnTop = true
  885. naeeym2.Size = UDim2.new(5,35,2,15)
  886. naeeym2.StudsOffset = Vector3.new(0,3,0)
  887. naeeym2.MaxDistance = 75
  888. naeeym2.Adornee = Character.Head
  889. naeeym2.Name = "Name"
  890. naeeym2.PlayerToHideFrom = Player
  891. local tecks2 = IT("TextLabel",naeeym2)
  892. tecks2.BackgroundTransparency = 1
  893. tecks2.TextScaled = true
  894. tecks2.BorderSizePixel = 0
  895. tecks2.Text = "Mr Red Sparkles Time"
  896. tecks2.Font = "Bodoni"
  897. tecks2.TextSize = 30
  898. tecks2.TextStrokeTransparency = 0.5
  899. tecks2.TextColor3 = C3(0,0,0)
  900. tecks2.TextStrokeColor3 = BRICKC"Really red".Color
  901. tecks2.Size = UDim2.new(1,0,0.5,0)
  902. tecks2.Parent = naeeym2
  903. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "FaceGradient", VT(0.6,0.1,1)/2,false)
  904. MakeForm(EYE,"Ball")
  905. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  906. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "FaceGradient", VT(0.6,0.1,1)/2,false)
  907. MakeForm(EYE,"Ball")
  908. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  909. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "FaceGradient", VT(0.1,1,1)/2,false)
  910. MakeForm(EYE,"Ball")
  911. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  912. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "FaceGradient", VT(0.1,1,1)/2,false)
  913. MakeForm(EYE,"Ball")
  914. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  915.  
  916. local top = Instance.new("Shirt")
  917. top.ShirtTemplate = "rbxassetid://181829091"
  918. top.Parent = Character
  919. top.Name = "Cloth"
  920. local bottom = Instance.new("Pants")
  921. bottom.PantsTemplate = "rbxassetid://181828029"
  922. bottom.Parent = Character
  923. bottom.Name = "Cloth"
  924. for _, c in pairs(Character:GetChildren()) do
  925. if c.ClassName == "Part" and c.Name ~= "FaceGradient" and c.Name ~= "Hat" and c.Name ~= "Gem" then
  926. c.Material = "Neon"
  927. if c:FindFirstChildOfClass("ParticleEmitter") then
  928. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  929. end
  930. c.Color = C3(1,1,1)
  931. if c == Head then
  932. if c:FindFirstChild("face") then
  933. c.face:remove()
  934. end
  935. end
  936. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  937. c:remove()
  938. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  939. c:remove()
  940. end
  941. end
  942. local BODY = {}
  943. for _, c in pairs(Character:GetDescendants()) do
  944. if c:IsA("BasePart") and c.Name ~= "Handle" then
  945. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  946. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  947. end
  948. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  949. elseif c:IsA("JointInstance") then
  950. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  951. end
  952. end
  953. for e = 1, #BODY do
  954. if BODY[e] ~= nil then
  955. local STUFF = BODY[e]
  956. local PART = STUFF[1]
  957. local PARENT = STUFF[2]
  958. local MATERIAL = STUFF[3]
  959. local COLOR = STUFF[4]
  960. local TRANSPARENCY = STUFF[5]
  961. if PART.ClassName == "Part" and PART ~= RootPart then
  962. PART.Material = MATERIAL
  963. PART.Color = COLOR
  964. PART.Transparency = TRANSPARENCY
  965. end
  966. PART.AncestryChanged:Connect(function()
  967. PART.Parent = PARENT
  968. end)
  969. end
  970. end
  971. function refit()
  972. Character.Parent = workspace
  973. for e = 1, #BODY do
  974. if BODY[e] ~= nil then
  975. local STUFF = BODY[e]
  976. local PART = STUFF[1]
  977. local PARENT = STUFF[2]
  978. local MATERIAL = STUFF[3]
  979. local COLOR = STUFF[4]
  980. local TRANSPARENCY = STUFF[5]
  981. if PART.ClassName == "Part" and PART ~= RootPart then
  982. PART.Material = MATERIAL
  983. PART.Color = COLOR
  984. PART.Transparency = TRANSPARENCY
  985. end
  986. if PART.Parent ~= PARENT then
  987. Humanoid:remove()
  988. PART.Parent = PARENT
  989. Humanoid = IT("Humanoid",Character)
  990. end
  991. end
  992. end
  993. end
  994. local SKILLTEXTCOLOR = BRICKC"".Color
  995. local SKILLFONT = "Bodoni"
  996. local SKILLTEXTSIZE = 7
  997.  
  998. Humanoid.Died:connect(function()
  999. refit()
  1000. end)
  1001.  
  1002. 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")
  1003. 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")
  1004. 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")
  1005. 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")
  1006. local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  1007. local SKILL6FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50,0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
  1008. local SKILL7FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23,0, 0.60, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame")
  1009. local SKILL8FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50,0, 0.60, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 8 Frame")
  1010. local SKILL9FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365,0, 0.50, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 9 Frame")
  1011.  
  1012. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Warden Zap", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
  1013. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Warden Thunder", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  1014. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Inferno Ring", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  1015. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warden Wall", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
  1016. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Prison Key", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
  1017. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[E] Warden's Portal", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 6")
  1018. local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[Q] Lift", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7")
  1019. local SKILL8TEXT = CreateLabel(SKILL8FRAME, "[F] Warden's Beam", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 8")
  1020. local SKILL9TEXT = CreateLabel(SKILL9FRAME, "[R] Warden's Ultra Attack", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 9")
  1021.  
  1022. --//=================================\\
  1023. --|| DAMAGING
  1024. --\\=================================//
  1025.  
  1026. function ApplyAoE(POSITION,RANGE,FLING,BURN)
  1027. local CHILDREN = workspace:GetDescendants()
  1028. for index, CHILD in pairs(CHILDREN) do
  1029. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1030. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1031. if HUM then
  1032. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1033. if TORSO then
  1034. if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
  1035. CHILD:BreakJoints()
  1036. if FLING ~= 0 then
  1037. for _, c in pairs(CHILD:GetChildren()) do
  1038. if c:IsA("BasePart") and c.Transparency == 0 then
  1039. if BURN == true then
  1040. Fire(c)
  1041. end
  1042. local bv = Instance.new("BodyVelocity")
  1043. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1044. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1045. bv.Parent = c
  1046. Debris:AddItem(bv,0.05)
  1047. end
  1048. end
  1049. end
  1050. end
  1051. end
  1052. end
  1053. end
  1054. end
  1055. end
  1056.  
  1057. --//=================================\\
  1058. --|| ATTACK FUNCTIONS AND STUFF
  1059. --\\=================================//
  1060. Player_Size = 1
  1061.  
  1062. function FireArc(Part,ToLocation,AmountOfTime,Height,DoesCourontine)
  1063. if DoesCourontine == false then
  1064. local Direction = CF(Part.Position,ToLocation)
  1065. local Distance = (Part.Position - ToLocation).magnitude
  1066. for i = 1, AmountOfTime do
  1067. Swait()
  1068. Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
  1069. Direction = Part.CFrame
  1070. end
  1071. Part:remove()
  1072. elseif DoesCourontine == true then
  1073. coroutine.resume(coroutine.create(function()
  1074. local Direction = CF(Part.Position,ToLocation)
  1075. local Distance = (Part.Position - ToLocation).magnitude
  1076. for i = 1, AmountOfTime do
  1077. Swait()
  1078. Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
  1079. Direction = Part.CFrame
  1080. end
  1081. Part:remove()
  1082. end))
  1083. end
  1084. end
  1085.  
  1086. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  1087. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1088. wave.Color = COLOR
  1089. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
  1090. wave.CFrame = CFRAME
  1091. coroutine.resume(coroutine.create(function(PART)
  1092. for i = 1, WAIT do
  1093. Swait()
  1094. mesh.Scale = mesh.Scale + GROW
  1095. wave.Transparency = wave.Transparency + (1/WAIT)
  1096. if wave.Transparency > 0.99 then
  1097. wave:remove()
  1098. end
  1099. end
  1100. end))
  1101. end
  1102.  
  1103. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1104. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1105. wave.Color = COLOR
  1106. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1107. wave.CFrame = CFRAME
  1108. coroutine.resume(coroutine.create(function(PART)
  1109. for i = 1, WAIT do
  1110. Swait()
  1111. mesh.Scale = mesh.Scale + GROW
  1112. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1113. if DOESROT == true then
  1114. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1115. end
  1116. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1117. if wave.Transparency > 0.99 then
  1118. wave:remove()
  1119. end
  1120. end
  1121. end))
  1122. end
  1123.  
  1124. function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
  1125. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1126. local mesh = nil
  1127. if KIND == "Base" then
  1128. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  1129. elseif KIND == "Thin" then
  1130. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  1131. elseif KIND == "Round" then
  1132. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  1133. end
  1134. wave.CFrame = CFRAME
  1135. coroutine.resume(coroutine.create(function(PART)
  1136. for i = 1, WAIT do
  1137. Swait()
  1138. mesh.Scale = mesh.Scale + GROW/10
  1139. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1140. if wave.Transparency > 0.99 then
  1141. wave:remove()
  1142. end
  1143. end
  1144. end))
  1145. end
  1146.  
  1147. function killnearest(position,range,maxstrength)
  1148. for i,v in ipairs(workspace:GetChildren()) do
  1149. local body = v:GetChildren()
  1150. for part = 1, #body do
  1151. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1152. if(body[part].Position - position).Magnitude < range then
  1153. if v.ClassName == "Model" then
  1154. v:BreakJoints()
  1155. end
  1156. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  1157. local bv = Instance.new("BodyVelocity")
  1158. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1159. bv.velocity = CF(position,body[part].Position).lookVector*maxstrength
  1160. bv.Parent = body[part]
  1161. Debris:AddItem(bv,0.2)
  1162. end
  1163. end
  1164. end
  1165. if v.ClassName == "Part" then
  1166. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1167. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  1168. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1169. end
  1170. end
  1171. end
  1172. end
  1173.  
  1174. function Supernova()
  1175. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 7 * Player_Size, Character)
  1176. if HITFLOOR ~= nil then
  1177. local HITBODIES = {}
  1178. ATTACK = true
  1179. Rooted = true
  1180. local ABSOLUTE = CreatePart(3, Effects, "Neon", 0, 1, "Relly red", "Star", VT(0,0,0))
  1181. MakeForm(ABSOLUTE,"Ball")
  1182. CreateSound("429459101", ABSOLUTE, 10, 1)
  1183. for i=0, 4, 0.1 / Animation_Speed do
  1184. Swait()
  1185. ABSOLUTE.Size = ABSOLUTE.Size + VT(0.2,0.2,0.2)
  1186. ABSOLUTE.CFrame = RootPart.CFrame*CF(0,5+(ABSOLUTE.Size.Y/2),0)
  1187. ABSOLUTE.Transparency = ABSOLUTE.Transparency - 0.01
  1188. local CHARGE = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Star", VT(1,1,1))
  1189. MakeForm(CHARGE,"Ball")
  1190. CHARGE.Color = C3(255,0,0)
  1191. CHARGE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15,15),-6,MRANDOM(-15,15))
  1192. FireArc(CHARGE,ABSOLUTE.Position,45,45,true)
  1193. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1194. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1195. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1196. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1197. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1198. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1199. end
  1200. CreateSound("907330103", Head, 10, 1.2)
  1201. for i = 1, 75 do
  1202. Swait()
  1203. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1204. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1205. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1206. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1207. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1208. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1209. end
  1210. coroutine.resume(coroutine.create(function()
  1211. for i = 1, 13 do
  1212. for e = 1, 8 do
  1213. Swait()
  1214. MagicSphere(VT(1,1,1),15,CF(ABSOLUTE.Position)*CF(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)),C3(255,0,0),VT(0,0,0))
  1215. CreateSwirl(ABSOLUTE.Size/2,15,CF(HITPOS),true,15,BRICKC"Reakky red".Color,VT(i,0.3,i)*2)
  1216. end
  1217. for i = 1, 5 do
  1218. Slice("Round",0,35,CF(ABSOLUTE.Position)*ANGLES(RAD(MRANDOM(-18,18)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-18,18))),C3(1,1,1),VT(i,0,i)/3)
  1219. Slice("Thin",i,55,ABSOLUTE.CFrame * CF(0,-1.1,0) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),C3(255,0,0),VT(0,0,0))
  1220. end
  1221. CreateSwirl(ABSOLUTE.Size/2,25,CF(ABSOLUTE.Position),true,-25,BRICKC"Relly red".Color,VT(i,i*2,i))
  1222. CreateSwirl(ABSOLUTE.Size/2,55,CF(ABSOLUTE.Position),true,25,C3(255,0,0),VT(i,i*2,i))
  1223. CreateSound("168586621", ABSOLUTE, 4, 0.8)
  1224. CreateSound("201858144", ABSOLUTE, 10, 0.8)
  1225. killnearest(ABSOLUTE.Position,i*18,i)
  1226. ABSOLUTE.Size = ABSOLUTE.Size*0.9
  1227. MagicSphere(ABSOLUTE.Size,25,CF(ABSOLUTE.Position),BRICKC"Relly red".Color,VT(i,i,i)/1.1)
  1228. MagicSphere(ABSOLUTE.Size,45,CF(ABSOLUTE.Position),C3(255,0,0),VT(i,i,i))
  1229. end
  1230. ABSOLUTE.Transparency = 1
  1231. Debris:AddItem(ABSOLUTE,10)
  1232. end))
  1233. ATTACK = false
  1234. Rooted = false
  1235. end
  1236. end
  1237.  
  1238.  
  1239. local ENERGYSOUND = 1417051162
  1240. local BEAMSOUND = 1417056781
  1241. local EXPLOSIONSOUND = 1417056081
  1242. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(1.01,0.3,1.01),false)
  1243.  
  1244. function Charge(TIME,GYRO)
  1245. local SND = CreateSound(ENERGYSOUND,Torso,6,TIME,false)
  1246. local G = nil
  1247. if GYRO == true then
  1248. G = IT("BodyGyro",RootPart)
  1249. G.D = 250
  1250. G.P = 200000
  1251. G.MaxTorque = VT(math.huge,math.huge,math.huge)
  1252. end
  1253. for i=0, TIME, 0.1 / Animation_Speed do
  1254. Swait()
  1255. if G then
  1256. G.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1257. end
  1258. WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(1.2,1.2,1.2), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BasePart.CFrame, MoveToPos = BasePart.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-4).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1259. 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)
  1260. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1261. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1262. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1263. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1264. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1265. end
  1266. SND:remove()
  1267. if G then
  1268. return G
  1269. end
  1270. end
  1271.  
  1272. function Beam()
  1273. ATTACK = true
  1274. Rooted = false
  1275. local GRAV = IT("BodyPosition",RootPart)
  1276. GRAV.D = 75
  1277. GRAV.P = 20000
  1278. GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
  1279. GRAV.Position = RootPart.Position
  1280. local GYRO = Charge(2,true)
  1281. local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Beam", VT(15,15,0))
  1282. MakeForm(BEAM,"Ball")
  1283. CreateSound(BEAMSOUND,BEAM,10,1,false)
  1284. CreateSound(BEAMSOUND,BEAM,10,0.9,false)
  1285. CreateSound(BEAMSOUND,BEAM,10,0.8,false)
  1286. for i = 1, 150 do
  1287. Swait()
  1288. BEAM.Size = BEAM.Size + VT(-0.1,-0.1,2)
  1289. ApplyAoE(BEAM.CFrame*CF(0,0,-BEAM.Size.Z/2).p,BEAM.Size.Y/2,50,200,0,false)
  1290. WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BEAM.CFrame*CF(0,0,BEAM.Size.Z/2), MoveToPos = BEAM.CFrame*CF(0,0,BEAM.Size.Z/2)*ANGLES(RAD(90),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0.3,-25).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1291. BEAM.CFrame = CF(Torso.Position,Torso.CFrame*CF(0,0,-1).p)*CF(0,0,-2-(BEAM.Size.Z/2))
  1292. 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)
  1293. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1294. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1295. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1296. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1297. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1298. end
  1299. GRAV:remove()
  1300. BEAM:remove()
  1301. GYRO:remove()
  1302. ATTACK = false
  1303. Rooted = false
  1304. end
  1305.  
  1306. local asd = Instance.new("ParticleEmitter")
  1307. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  1308. asd.LightEmission = .1
  1309. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  1310. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  1311. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1312. asd.Transparency = bbb
  1313. asd.Size = aaa
  1314. asd.ZOffset = .9
  1315. asd.Acceleration = Vector3.new(0, -15, 0)
  1316. asd.LockedToPart = false
  1317. asd.EmissionDirection = "Back"
  1318. asd.Lifetime = NumberRange.new(1, 2)
  1319. asd.Rotation = NumberRange.new(-100, 100)
  1320. asd.RotSpeed = NumberRange.new(-100, 100)
  1321. asd.Speed = NumberRange.new(10)
  1322. asd.Enabled = false
  1323. asd.VelocitySpread = 999
  1324.  
  1325. local Particle = IT("ParticleEmitter",nil)
  1326. Particle.Enabled = false
  1327. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  1328. Particle.LightEmission = 0.5
  1329. Particle.Rate = 150
  1330. Particle.ZOffset = 1
  1331. Particle.Rotation = NumberRange.new(-180, 180)
  1332. Particle.RotSpeed = NumberRange.new(-180, 180)
  1333. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  1334. Particle.Color = ColorSequence.new(C3(58,125,21),C3(0.4,0,0))
  1335.  
  1336. function ParticleEmitter(Table)
  1337. local PRTCL = Particle:Clone()
  1338. local Speed = Table.Speed or 5
  1339. local Drag = Table.Drag or 0
  1340. local Size1 = Table.Size1 or 1
  1341. local Size2 = Table.Size2 or 5
  1342. local Lifetime1 = Table.Lifetime1 or 1
  1343. local Lifetime2 = Table.Lifetime2 or 1.5
  1344. local Parent = Table.Parent or Torso
  1345. local Emit = Table.Emit or 100
  1346. local Offset = Table.Offset or 360
  1347. local Acel = Table.Acel or VT(0,0,0)
  1348. local Enabled = Table.Enabled or false
  1349. PRTCL.Parent = Parent
  1350. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1351. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1352. PRTCL.Speed = NumberRange.new(Speed)
  1353. PRTCL.VelocitySpread = Offset
  1354. PRTCL.Drag = Drag
  1355. PRTCL.Acceleration = Acel
  1356. if Enabled == false then
  1357. PRTCL:Emit(Emit)
  1358. Debris:AddItem(PRTCL,Lifetime2)
  1359. else
  1360. PRTCL.Enabled = true
  1361. end
  1362. return PRTCL
  1363. end
  1364.  
  1365. function Lift()
  1366. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1367. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1368. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1369. if TORSO and HUM.Health > 0 then
  1370. ATTACK = true
  1371. Rooted = false
  1372. local GYRO = IT("BodyGyro",RootPart)
  1373. GYRO.D = 275
  1374. GYRO.P = 20000
  1375. GYRO.MaxTorque = VT(0,40000,0)
  1376. for i=0, 0.8, 0.1 / Animation_Speed do
  1377. Swait()
  1378. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1379. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1380. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1381. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1382. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1383. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1384. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1385. end
  1386. local MAGIC = ParticleEmitter({Speed = 5, Drag = 3, Size1 = 1.7, Size2 = 0, Lifetime1 = 1, Lifetime2 = 3, Parent = TORSO, Emit = 100, Offset = 360, Enabled = true})
  1387. MAGIC.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
  1388. local grav = Instance.new("BodyPosition",TORSO)
  1389. grav.D = 1500
  1390. grav.P = 20000
  1391. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1392. grav.position = TORSO.Position+VT(0,15,0)
  1393. Debris:AddItem(grav,10)
  1394. Debris:AddItem(MAGIC,10)
  1395. CreateSound(902204346, Torso, 7, 1, false)
  1396. CreateSound(902204346, TORSO, 7, 1, false)
  1397. for i=0, 1, 0.1 / Animation_Speed do
  1398. Swait()
  1399. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1400. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1401. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(-45), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1402. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(125), RAD(45), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1403. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1404. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1405. end
  1406. GYRO:remove()
  1407. ATTACK = false
  1408. Rooted = false
  1409. end
  1410. end
  1411. end
  1412.  
  1413.  
  1414. local Decal = IT("Decal")
  1415.  
  1416. function Warden_Wave()
  1417. ATTACK = true
  1418. Rooted = false
  1419. local O1 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0,0,0))
  1420. O1.CFrame = RootPart.CFrame*CF(0,0,-3)*ANGLES(RAD(90),RAD(0),RAD(0))
  1421. local decal = Decal:Clone()
  1422. decal.Parent = O1
  1423. decal.Face = "Top"
  1424. decal.Texture = "http://www.roblox.com/asset/?id=224018677"
  1425. local decal2 = Decal:Clone()
  1426. decal2.Parent = O1
  1427. decal2.Face = "Bottom"
  1428. decal2.Texture = "http://www.roblox.com/asset/?id=224018677"
  1429. local O2 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0,0,0))
  1430. local POS = VT(RootPart.Position.X,Mouse.Hit.p.Y+6,RootPart.Position.Z)
  1431. O2.CFrame = CF(Mouse.Hit.p+VT(0,6,0),POS)*ANGLES(RAD(90),RAD(0),RAD(0))
  1432. local ROOT = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0,0,0))
  1433. ROOT.CFrame = CF(O2.Position,RootPart.Position)
  1434. local decal = Decal:Clone()
  1435. decal.Parent = O2
  1436. decal.Face = "Top"
  1437. decal.Texture = "http://www.roblox.com/asset/?id=224018677"
  1438. local decal2 = Decal:Clone()
  1439. decal2.Parent = O2
  1440. decal2.Face = "Bottom"
  1441. decal2.Texture = "http://www.roblox.com/asset/?id=224018677"
  1442. CreateSound("1530657980", O1, 10, 1.5)
  1443. CreateSound("1530657980", O2, 10, 1.5)
  1444. for i = 1, 75 do
  1445. Swait()
  1446. O1.Size = O1.Size + VT(0.1,0,0.1)
  1447. O1.CFrame = RootPart.CFrame*CF(0,0,-3)*ANGLES(RAD(90),RAD(i),RAD(0))
  1448. O2.Size = O2.Size + VT(0.1,0,0.1)
  1449. O2.CFrame = O2.CFrame*ANGLES(RAD(0),RAD(i),RAD(0))
  1450. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1451. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1452. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1453. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1454. end
  1455. Rooted = true
  1456. UNANCHOR = false
  1457. RootPart.Anchored = true
  1458. VALUE1 = true
  1459. for i = 1, 15 do
  1460. Swait()
  1461. RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.13)
  1462. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(16 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1463. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1464. end
  1465. RootPart.CFrame = ROOT.CFrame
  1466. ROOT:remove()
  1467. for i = 1, 15 do
  1468. Swait()
  1469. RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.5)
  1470. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(16 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1471. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1472. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1473. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1474. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1475. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1476. end
  1477. VALUE1 = false
  1478. coroutine.resume(coroutine.create(function()
  1479. for i = 1, 75 do
  1480. Swait()
  1481. O1.Size = O1.Size - VT(0.1,0,0.1)
  1482. O1.CFrame = O1.CFrame*ANGLES(RAD(0),RAD(i),RAD(0))
  1483. O2.Size = O2.Size - VT(0.1,0,0.1)
  1484. O2.CFrame = O2.CFrame*ANGLES(RAD(0),RAD(i),RAD(0))
  1485. end
  1486. O1:remove()
  1487. O2:remove()
  1488. end))
  1489. UNANCHOR = true
  1490. RootPart.Anchored = false
  1491. ATTACK = false
  1492. Rooted = false
  1493. end
  1494.  
  1495. function Warden_Zap()
  1496. ATTACK = true
  1497. Rooted = false
  1498. local GYRO = IT("BodyGyro",RootPart)
  1499. GYRO.D = 750
  1500. GYRO.P = 20000
  1501. GYRO.MaxTorque = VT(0,40000000,0)
  1502. CreateSound(348663022,RightArm,1.5,2,false)
  1503. Pose("Cast1",0.8,1,true,GYRO)
  1504. 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})
  1505. local Hitpos = LightningTable.End
  1506. ApplyAoE(Hitpos,10,35)
  1507. 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})
  1508. for i = 1, 4 do
  1509. 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})
  1510. end
  1511. Pose("Cast1",0.8,1,true)
  1512. GYRO:remove()
  1513. ATTACK = false
  1514. Rooted = false
  1515. end
  1516.  
  1517. function Warden_Thunder()
  1518. ATTACK = true
  1519. Rooted = false
  1520. local GYRO = IT("BodyGyro",RootPart)
  1521. GYRO.D = 750
  1522. GYRO.P = 20000
  1523. GYRO.MaxTorque = VT(0,40000000,0)
  1524. CreateSound(469345336,Torso,3,2,false)
  1525. Pose("Cast2",1.5,2,true,GYRO)
  1526. coroutine.resume(coroutine.create(function()
  1527. local FRAME = RootPart.CFrame
  1528. for i = 1, 25 do
  1529. local POS = FRAME*CF(MRANDOM(-17,17),0,-i*15)
  1530. 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})
  1531. local Hitpos = LightningTable.End
  1532. ApplyAoE(Hitpos,20,15)
  1533. 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})
  1534. for i = 1, 4 do
  1535. 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})
  1536. end
  1537. wait(0.05)
  1538. end
  1539. end))
  1540. Pose("Cast2",1.5,0.7,true)
  1541. GYRO:remove()
  1542. ATTACK = false
  1543. Rooted = false
  1544. end
  1545.  
  1546. function Inferno_Ring()
  1547. ATTACK = true
  1548. Rooted = false
  1549. local GYRO = IT("BodyGyro",RootPart)
  1550. GYRO.D = 750
  1551. GYRO.P = 20000
  1552. GYRO.MaxTorque = VT(0,40000000,0)
  1553. local FIRE = IT("Model",Effects)
  1554. FIRE.Name = "Fire"
  1555. local MAIN = CreatePart(3, FIRE, "Neon", 0, 1, "Really red", "Center", VT(0,0,0))
  1556. FIRE.PrimaryPart = MAIN
  1557. local FIRES = {}
  1558. for i = 1, 45 do
  1559. local PRT = CreatePart(3, FIRE, "Neon", 0, 1, "Really red", "RingPart", VT(3,3,3))
  1560. PRT.CFrame = MAIN.CFrame*ANGLES(RAD(0),RAD((360/45)*i),RAD(0))*CF(0,0,20)
  1561. local F = Fire(PRT)
  1562. table.insert(FIRES,F)
  1563. end
  1564. repeat
  1565. FIRE:SetPrimaryPartCFrame(CF(Mouse.Hit.p))
  1566. Pose("Cast1",1.5,0.01,false,GYRO)
  1567. until HOLD == true
  1568. coroutine.resume(coroutine.create(function()
  1569. for i = 1, 4 do
  1570. ApplyAoE(MAIN.Position,21,-15,true)
  1571. CreateSound(463598785,MAIN,3,1,false)
  1572. for E = 1, #FIRES do
  1573. if FIRES[E] ~= nil then
  1574. FIRES[E].Acceleration = VT(0,300,0)
  1575. FIRES[E].Lifetime=NumberRange.new(0.35,1.5)
  1576. end
  1577. end
  1578. wait(0.3)
  1579. end
  1580. for E = 1, #FIRES do
  1581. if FIRES[E] ~= nil then
  1582. FIRES[E].Enabled = false
  1583. end
  1584. end
  1585. Debris:AddItem(FIRE,5)
  1586. end))
  1587. CreateSound(1249690399,RightArm,3,1,false)--GGNORE
  1588. Pose("RightArmUp",1.5,0.5,true)
  1589. GYRO:remove()
  1590. ATTACK = false
  1591. Rooted = false
  1592. end
  1593.  
  1594. function Warden_Wall()
  1595. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 8, Character)
  1596. if HITFLOOR ~= nil then
  1597. if HITFLOOR.Anchored == true then
  1598. local WALL = HITFLOOR:Clone()
  1599. WALL.Size = VT(45,45,5)
  1600. WALL.Parent = Effects
  1601. WALL.Name = "Wall"
  1602. WALL.CFrame = RootPart.CFrame*CF(0,-65/2.1,-5)*ANGLES(RAD(-15),RAD(0),RAD(0))
  1603. CreateSound(130972023,WALL,5,0.8,false)
  1604. ATTACK = true
  1605. Rooted = true
  1606. local HIT = WALL.Touched:Connect(function(hit)
  1607. if hit.Parent ~= Character then
  1608. hit:BreakJoints()
  1609. end
  1610. end)
  1611. coroutine.resume(coroutine.create(function()
  1612. 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})
  1613. for i = 1, 90 do
  1614. Swait()
  1615. WALL.CFrame = WALL.CFrame*CF(0,0.5,0)
  1616. end
  1617. HIT:disconnect()
  1618. wait(5)
  1619. for i = 1, 46 do
  1620. Swait()
  1621. WALL.CFrame = WALL.CFrame*CF(0,-1,0)
  1622. end
  1623. WALL:remove()
  1624. end))
  1625. Pose("RightArmUp",1.5,1.2,true)
  1626. ATTACK = false
  1627. Rooted = false
  1628. end
  1629. end
  1630. end
  1631.  
  1632. function Prison_Key()
  1633. if Mouse.Target ~= nil then
  1634. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1635. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1636. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1637. local GYRO = IT("BodyGyro",RootPart)
  1638. GYRO.D = 750
  1639. GYRO.P = 20000
  1640. GYRO.MaxTorque = VT(0,40000000,0)
  1641. local grav = Instance.new("BodyPosition",TORSO)
  1642. grav.D = 15
  1643. grav.P = 20000
  1644. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1645. grav.position = TORSO.Position
  1646. local GYRO2 = IT("BodyGyro",TORSO)
  1647. GYRO2.D = 750
  1648. GYRO2.P = 20000
  1649. GYRO2.MaxTorque = VT(0,40000000,0)
  1650. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1651. grav.Name = "Jail"
  1652. local LOCKPARTS = {}
  1653. ATTACK = true
  1654. Rooted = false
  1655. local LOCK = IT("Model",Effects)
  1656. LOCK.Name = "Lock"
  1657. local LOCK2 = IT("Model",LOCK)
  1658. LOCK2.Name = "Metal"
  1659. --CREATE LOCK--
  1660. local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
  1661. LOCK.PrimaryPart = BASE
  1662. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  1663. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
  1664. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  1665. MakeForm(PRT,"Cyl")
  1666. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
  1667. PRT.Color = C3(0,0,0)
  1668. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  1669. MakeForm(PRT,"Cyl")
  1670. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
  1671. PRT.Color = C3(0,0,0)
  1672. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  1673. for i = 1, 45 do
  1674. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1675. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  1676. end
  1677. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1678. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  1679. LOCK2.PrimaryPart = PRT
  1680. ---------------
  1681. local CHILDREN = LOCK:GetDescendants()
  1682. for index, CHILD in pairs(CHILDREN) do
  1683. if CHILD:IsA("BasePart") then
  1684. CHILD.Transparency = 1
  1685. end
  1686. end
  1687. for i = 1, 75 do
  1688. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  1689. Swait()
  1690. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1691. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1692. local CHILDREN = LOCK:GetDescendants()
  1693. for index, CHILD in pairs(CHILDREN) do
  1694. if CHILD:IsA("BasePart") then
  1695. CHILD.Transparency = CHILD.Transparency - 1/75
  1696. end
  1697. end
  1698. end
  1699. HUM.DisplayDistanceType = "None"
  1700. local KEY = IT("Model",Effects)
  1701. KEY.Name = "Key"
  1702. --CREATE KEY--
  1703. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Really red", "KeyBase", VT(0.1, 1, 0.1),false)
  1704. KEY.PrimaryPart = KBASE
  1705. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  1706. local WLD = weldBetween(RightArm,KBASE)
  1707. for i = 1, 45 do
  1708. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really red", "Key", VT(0.1, 0.1, 0.1),false)
  1709. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  1710. weldBetween(KBASE,PRT)
  1711. end
  1712. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really red", "Key", VT(0.3, 0.1, 0.1),false)
  1713. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  1714. weldBetween(KBASE,PRT)
  1715. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really red", "Key", VT(0.3, 0.1, 0.1),false)
  1716. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  1717. weldBetween(KBASE,PRT)
  1718. --------------
  1719. Rooted = true
  1720. Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
  1721. coroutine.resume(coroutine.create(function()
  1722. for i = 1, 10 do
  1723. Swait()
  1724. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1725. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1726. end
  1727. CreateSound(1149318312,BASE,5,1,false)
  1728. CreateSound(160772554,BASE,3,1,false)
  1729. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  1730. for i = 1, 4 do
  1731. 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})
  1732. end
  1733. 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})
  1734. wait(1)
  1735. TORSO.Parent.Parent = LOCK
  1736. for i = 1, 75 do
  1737. Swait()
  1738. local CHILDREN = KEY:GetDescendants()
  1739. for index, CHILD in pairs(CHILDREN) do
  1740. if CHILD:IsA("BasePart") then
  1741. CHILD.Transparency = i/25
  1742. end
  1743. end
  1744. local CHILDREN = LOCK:GetDescendants()
  1745. for index, CHILD in pairs(CHILDREN) do
  1746. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  1747. CHILD.Transparency = CHILD.Transparency + 1/75
  1748. elseif CHILD.ClassName == "Decal" then
  1749. CHILD.Transparency = CHILD.Transparency + 1/75
  1750. end
  1751. end
  1752. end
  1753. TORSO.Parent:ClearAllChildren()
  1754. KEY:remove()
  1755. LOCK:remove()
  1756. end))
  1757. Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
  1758. GYRO:remove()
  1759. ATTACK = false
  1760. Rooted = false
  1761. end
  1762. end
  1763. end
  1764.  
  1765. function Hat()
  1766. ATTACK = true
  1767. Rooted = false
  1768. Pose("Taunt",0.4,1.2,false)
  1769. ATTACK = false
  1770. Rooted = false
  1771. end
  1772.  
  1773. --//=================================\\
  1774. --|| ASSIGN THINGS TO KEYS
  1775. --\\=================================//
  1776.  
  1777. function MouseDown(Mouse)
  1778. HOLD = true
  1779. if ATTACK == false then
  1780. end
  1781. end
  1782.  
  1783. function MouseUp(Mouse)
  1784. HOLD = false
  1785. end
  1786.  
  1787. function KeyDown(Key)
  1788. KEYHOLD = true
  1789. if Key == "z" and ATTACK == false then
  1790. Warden_Zap()
  1791. end
  1792.  
  1793. if Key == "f" and ATTACK == false then
  1794. Beam()
  1795. end
  1796.  
  1797. if Key == "e" and ATTACK == false then
  1798. Warden_Wave()
  1799. end
  1800.  
  1801. if Key == "q" and ATTACK == false then
  1802. Lift()
  1803. end
  1804.  
  1805. if Key == "r" and ATTACK == false then
  1806. Supernova()
  1807. end
  1808.  
  1809. if Key == "m" and ATTACK == false then
  1810.  
  1811. end
  1812.  
  1813. if Key == "b" and ATTACK == false then
  1814. Warden_Thunder()
  1815. end
  1816.  
  1817. if Key == "c" and ATTACK == false then
  1818. Inferno_Ring()
  1819. end
  1820.  
  1821. if Key == "v" and ATTACK == false then
  1822. Warden_Wall()
  1823. end
  1824.  
  1825. if Key == "x" and ATTACK == false then
  1826. Prison_Key()
  1827. end
  1828.  
  1829. if Key == "t" and ATTACK == false then
  1830. Hat()
  1831. end
  1832. end
  1833.  
  1834. function KeyUp(Key)
  1835. KEYHOLD = false
  1836. end
  1837.  
  1838. Mouse.Button1Down:connect(function(NEWKEY)
  1839. MouseDown(NEWKEY)
  1840. end)
  1841. Mouse.Button1Up:connect(function(NEWKEY)
  1842. MouseUp(NEWKEY)
  1843. end)
  1844. Mouse.KeyDown:connect(function(NEWKEY)
  1845. KeyDown(NEWKEY)
  1846. end)
  1847. Mouse.KeyUp:connect(function(NEWKEY)
  1848. KeyUp(NEWKEY)
  1849. end)
  1850.  
  1851. --//=================================\\
  1852. --\\=================================//
  1853.  
  1854.  
  1855. function unanchor()
  1856. if UNANCHOR == true then
  1857. g = Character:GetChildren()
  1858. for i = 1, #g do
  1859. if g[i].ClassName == "Part" then
  1860. g[i].Anchored = false
  1861. end
  1862. end
  1863. end
  1864. end
  1865.  
  1866.  
  1867. --//=================================\\
  1868. --|| WRAP THE WHOLE SCRIPT UP
  1869. --\\=================================//
  1870.  
  1871. Humanoid.Changed:connect(function(Jump)
  1872. if Jump == "Jump" and (Disable_Jump == true) then
  1873. Humanoid.Jump = false
  1874. end
  1875. end)
  1876.  
  1877. while true do
  1878. Swait()
  1879. script.Parent = WEAPONGUI
  1880. Humanoid.Parent = Character
  1881. if Humanoid then
  1882. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1883. IDLEANIMATION:Play()
  1884. end
  1885. if ANIMATE.Parent == Character then
  1886. ANIMATE:Destroy()
  1887. end
  1888. SINE = SINE + CHANGE
  1889. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1890. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1891. Humanoid.HipHeight = 1
  1892. Humanoid.Name = "Warden"
  1893. Humanoid.PlatformStand = false
  1894. if PLAYMAINANIM == true then
  1895. if TORSOVELOCITY < 1 then
  1896. 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)
  1897. 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)
  1898. 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)
  1899. 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)
  1900. 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)
  1901. 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)
  1902. elseif TORSOVELOCITY > 1 then
  1903. 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)
  1904. 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)
  1905. 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)
  1906. 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)
  1907. 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)
  1908. 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)
  1909. end
  1910. end
  1911. unanchor()
  1912. Humanoid.MaxHealth = "inf"
  1913. Humanoid.Health = "inf"
  1914. if Rooted == false then
  1915. Disable_Jump = false
  1916. Humanoid.WalkSpeed = Speed
  1917. elseif Rooted == true then
  1918. Disable_Jump = true
  1919. Humanoid.WalkSpeed = 0
  1920. end
  1921. for _, c in pairs(Character:GetChildren()) do
  1922. if c.ClassName == "Part" and c.Name ~= "Eye" then
  1923. c.Material = "Neon"
  1924. if c:FindFirstChildOfClass("ParticleEmitter") then
  1925. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1926. end
  1927. c.Color = C3(1,1,1)
  1928. if c == Head then
  1929. if c:FindFirstChild("face") then
  1930. c.face:remove()
  1931. end
  1932. end
  1933. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  1934. c:remove()
  1935. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1936. c:remove()
  1937. end
  1938. end
  1939. sick.SoundId = "rbxassetid://1567323605"
  1940. sick.Looped = true
  1941. sick.Pitch = 1
  1942. sick.Volume = 3
  1943. sick:Resume()
  1944. sick.Parent = Torso
  1945. refit()
  1946. if Head:FindFirstChildOfClass("Sound") then
  1947. Head:FindFirstChildOfClass("Sound"):remove()
  1948. end
  1949. end
  1950. game.Lighting.TimeOfDay = "00:00:00"
  1951. game.Lighting.FogEnd = 50
  1952. game.Lighting.FogColor = Color3.fromRGB(0,0,0)
  1953.  
  1954. --//=================================\\
  1955. --\\=================================//
  1956.  
  1957.  
  1958.  
  1959.  
  1960.  
  1961. --//====================================================\\--
  1962. --|| END OF SCRIPT
  1963. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement