Advertisement
Cute_Sylveon

unfinished edit

Jul 21st, 2018
417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 137.75 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5. print("I hope this was a good edit for everyone. Orignial creator by adam222334II")
  6. warn("Idea was from my own mind. No help from anyone")
  7. print([[
  8. Many more things will be added in the future. This is just a DEMO version if i catch anyone using this in void i will quickly take actions thank you.
  9. Some moves are not showed on the screen so here's the missing moves :
  10. Click : Fire
  11. Y : Emote (Wave)
  12. P : Taunt 2
  13. G : UNBANISH
  14. ]])
  15.  
  16. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  17. local Player,game,owner = owner,game
  18. local RealPlayer = Player
  19. do
  20. print("FE Compatibility code by Mokiros")
  21. local rp = RealPlayer
  22. script.Parent = rp.Character
  23.  
  24. --RemoteEvent for communicating
  25. local Event = Instance.new("RemoteEvent")
  26. Event.Name = "UserInput_Event"
  27.  
  28. --Fake event to make stuff like Mouse.KeyDown work
  29. local function fakeEvent()
  30. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  31. t.connect = t.Connect
  32. return t
  33. end
  34.  
  35. --Creating fake input objects with fake variables
  36. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  37. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  38. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  39. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  40. end}
  41. --Merged 2 functions into one by checking amount of arguments
  42. CAS.UnbindAction = CAS.BindAction
  43.  
  44. --This function will trigger the events that have been :Connect()'ed
  45. local function te(self,ev,...)
  46. local t = m[ev]
  47. if t and t._fakeEvent then
  48. for _,f in pairs(t.Functions) do
  49. f(...)
  50. end
  51. end
  52. end
  53. m.TrigEvent = te
  54. UIS.TrigEvent = te
  55.  
  56. Event.OnServerEvent:Connect(function(plr,io)
  57. if plr~=rp then return end
  58. m.Target = io.Target
  59. m.Hit = io.Hit
  60. if not io.isMouse then
  61. local b = io.UserInputState == Enum.UserInputState.Begin
  62. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  63. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[
  77. local Player = game:GetService("Players").LocalPlayer
  78. local Event = script:WaitForChild("UserInput_Event")
  79.  
  80. local Mouse = Player:GetMouse()
  81. local UIS = game:GetService("UserInputService")
  82. local input = function(io,a)
  83. if a then return end
  84. --Since InputObject is a client-side instance, we create and pass table instead
  85. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  86. end
  87. UIS.InputBegan:Connect(input)
  88. UIS.InputEnded:Connect(input)
  89.  
  90. local h,t
  91. --Give the server mouse data 30 times every second, but only if the values changed
  92. --If player is not moving their mouse, client won't fire events
  93. while wait(1/30) do
  94. if h~=Mouse.Hit or t~=Mouse.Target then
  95. h,t=Mouse.Hit,Mouse.Target
  96. Event:FireServer({isMouse=true,Target=t,Hit=h})
  97. end
  98. end]==],Player.Character)
  99.  
  100. ----Sandboxed game object that allows the usage of client-side methods and services
  101. --Real game object
  102. local _rg = game
  103.  
  104. --Metatable for fake service
  105. local fsmt = {
  106. __index = function(self,k)
  107. local s = rawget(self,"_RealService")
  108. if s then return s[k] end
  109. end,
  110. __newindex = function(self,k,v)
  111. local s = rawget(self,"_RealService")
  112. if s then s[k]=v end
  113. end,
  114. __call = function(self,...)
  115. local s = rawget(self,"_RealService")
  116. if s then return s(...) end
  117. end
  118. }
  119. local function FakeService(t,RealService)
  120. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  121. return setmetatable(t,fsmt)
  122. end
  123.  
  124. --Fake game object
  125. local g = {
  126. GetService = function(self,s)
  127. return self[s]
  128. end,
  129. Players = FakeService({
  130. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  131. },"Players"),
  132. UserInputService = FakeService(UIS,"UserInputService"),
  133. ContextActionService = FakeService(CAS,"ContextActionService"),
  134. }
  135. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  136. g.service = g.GetService
  137.  
  138. g.RunService = FakeService({
  139. RenderStepped = _rg:GetService("RunService").Heartbeat,
  140. BindToRenderStep = function(self,name,_,fun)
  141. self._btrs[name] = self.Heartbeat:Connect(fun)
  142. end,
  143. UnbindFromRenderStep = function(self,name)
  144. self._btrs[name]:Disconnect()
  145. end,
  146. },"RunService")
  147.  
  148. setmetatable(g,{
  149. __index=function(self,s)
  150. return _rg:GetService(s) or typeof(_rg[s])=="function"
  151. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  152. end,
  153. __newindex = fsmt.__newindex,
  154. __call = fsmt.__call
  155. })
  156. --Changing owner to fake player object to support owner:GetMouse()
  157. game,owner = g,g.Players.LocalPlayer
  158. end
  159.  
  160. wait(0.2)
  161.  
  162. Player = owner
  163. PlayerGui = Player.PlayerGui
  164. Cam = workspace.CurrentCamera
  165. Backpack = Player.Backpack
  166. Character = Player.Character
  167. Humanoid = Character.Humanoid
  168. RootPart = Character["HumanoidRootPart"]
  169. Torso = Character["Torso"]
  170. Head = Character["Head"]
  171. RightArm = Character["Right Arm"]
  172. LeftArm = Character["Left Arm"]
  173. RightLeg = Character["Right Leg"]
  174. LeftLeg = Character["Left Leg"]
  175. RootJoint = RootPart["RootJoint"]
  176. Neck = Torso["Neck"]
  177. RightShoulder = Torso["Right Shoulder"]
  178. LeftShoulder = Torso["Left Shoulder"]
  179. RightHip = Torso["Right Hip"]
  180. LeftHip = Torso["Left Hip"]
  181.  
  182. IT = Instance.new
  183. CF = CFrame.new
  184. VT = Vector3.new
  185. RAD = math.rad
  186. C3 = Color3.new
  187. UD2 = UDim2.new
  188. BRICKC = BrickColor.new
  189. ANGLES = CFrame.Angles
  190. EULER = CFrame.fromEulerAnglesXYZ
  191. COS = math.cos
  192. ACOS = math.acos
  193. SIN = math.sin
  194. ASIN = math.asin
  195. ABS = math.abs
  196. MRANDOM = math.random
  197. FLOOR = math.floor
  198.  
  199.  
  200. function swait(num)
  201. if num == 0 or num == nil then
  202. ArtificialHB.Event:wait()
  203. else
  204. for i = 0, num do
  205. ArtificialHB.Event:wait()
  206. end
  207. end
  208. end
  209.  
  210. function chatfunc(text)
  211. local chat = coroutine.wrap(function()
  212. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  213. Character:FindFirstChild("TalkingBillBoard"):destroy()
  214. end
  215. local Bill = Instance.new("BillboardGui",Character)
  216. Bill.Size = UDim2.new(0,100,0,40)
  217. Bill.StudsOffset = Vector3.new(0,5,0)
  218. Bill.Adornee = Character.Head
  219. Bill.Name = "TalkingBillBoard"
  220. local Hehe = Instance.new("TextLabel",Bill)
  221. Hehe.BackgroundTransparency = 1
  222. Hehe.BorderSizePixel = 0
  223. Hehe.Text = ""
  224. Hehe.Font = "Fantasy"
  225. Hehe.TextSize = 30
  226. Hehe.TextStrokeTransparency = 0
  227. Hehe.Size = UDim2.new(1,0,0.5,0)
  228. coroutine.resume(coroutine.create(function()
  229. while Hehe ~= nil do
  230. swait()
  231. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  232. Hehe.Rotation = math.random(-5,5)
  233. Hehe.TextColor3 = Color3.new(1,1,1)
  234. Hehe.TextStrokeColor3 = Color3.new(1,1,1)
  235. end
  236. end))
  237. for i = 1,string.len(text),1 do
  238. swait()
  239. Hehe.Text = string.sub(text,1,i)
  240. end
  241. swait(90)--Re[math.random(1, 93)]
  242. for i = 0, 1, .025 do
  243. swait()
  244. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  245. Hehe.TextStrokeTransparency = i
  246. Hehe.TextTransparency = i
  247. end
  248. Bill:Destroy()
  249. end)
  250. chat()
  251. end
  252.  
  253. function onChatted(msg)
  254. chatfunc(msg)
  255. end
  256.  
  257. Player.Chatted:connect(onChatted)
  258.  
  259. UnBanishTaunts = {"You Are Released.", "If You Do The Same Thing Twice You Shall Not Be Given Mercy.", "Your Actions Have Been Forgiven.", "I shall set you free.", "I have let you go.", "Don't do that again.", "As A Person, i have the emotion of forgiving.", "Its Only Fair To Show You Mercy."}
  260.  
  261.  
  262. Player = game:GetService("Players").LocalPlayer
  263. PlayerGui = Player.PlayerGui
  264. Cam = workspace.CurrentCamera
  265. Backpack = Player.Backpack
  266. Character = Player.Character
  267. Humanoid = Character.Humanoid
  268. Mouse = Player:GetMouse()
  269. RootPart = Character["HumanoidRootPart"]
  270. Torso = Character["Torso"]
  271. Head = Character["Head"]
  272. RightArm = Character["Right Arm"]
  273. LeftArm = Character["Left Arm"]
  274. RightLeg = Character["Right Leg"]
  275. LeftLeg = Character["Left Leg"]
  276. RootJoint = RootPart["RootJoint"]
  277. Neck = Torso["Neck"]
  278. RightShoulder = Torso["Right Shoulder"]
  279. LeftShoulder = Torso["Left Shoulder"]
  280. RightHip = Torso["Right Hip"]
  281. LeftHip = Torso["Left Hip"]
  282. local sick = Instance.new("Sound",Character)
  283. sick.SoundId = "rbxassetid://1494340971"
  284. sick.Looped = true
  285. sick.Pitch = 1
  286. sick.Volume = 1
  287. sick:Play()
  288.  
  289. IT = Instance.new
  290. CF = CFrame.new
  291. VT = Vector3.new
  292. RAD = math.rad
  293. C3 = Color3.new
  294. UD2 = UDim2.new
  295. BRICKC = BrickColor.new
  296. ANGLES = CFrame.Angles
  297. EULER = CFrame.fromEulerAnglesXYZ
  298. COS = math.cos
  299. ACOS = math.acos
  300. SIN = math.sin
  301. ASIN = math.asin
  302. ABS = math.abs
  303. MRANDOM = math.random
  304. FLOOR = math.floor
  305.  
  306. --//=================================\\
  307. --|| USEFUL VALUES
  308. --\\=================================//
  309.  
  310. Animation_Speed = 2.7
  311. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  312. local Speed = 30
  313. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  314. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  315. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  316. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  317. local DAMAGEMULTIPLIER = 1
  318. local ANIM = "Idle"
  319. local ATTACK = false
  320. local EQUIPPED = false
  321. local HOLD = false
  322. local COMBO = 1
  323. local Rooted = false
  324. local SINE = 0
  325. local KEYHOLD = false
  326. local CHANGE = 2 / Animation_Speed
  327. local WALKINGANIM = false
  328. local VALUE1 = false
  329. local VALUE2 = false
  330. local ROBLOXIDLEANIMATION = IT("Animation")
  331. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  332. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  333. --ROBLOXIDLEANIMATION.Parent = Humanoid
  334. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  335. WEAPONGUI.Name = "Weapon GUI"
  336. local Effects = IT("Folder", Character)
  337. Effects.Name = "Effects"
  338. local ANIMATOR = Humanoid.Animator
  339. local ANIMATE = Character.Animate
  340. local UNANCHOR = true
  341. local PLAYMAINANIM = true
  342. local BOLTSOUNDS = {168586621,168586586,178452241}
  343.  
  344. --//=================================\\
  345. --\\=================================//
  346.  
  347.  
  348. --//=================================\\
  349. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  350. --\\=================================//
  351.  
  352. ArtificialHB = Instance.new("BindableEvent", script)
  353. ArtificialHB.Name = "ArtificialHB"
  354.  
  355. script:WaitForChild("ArtificialHB")
  356.  
  357. frame = Frame_Speed
  358. tf = 0
  359. allowframeloss = false
  360. tossremainder = false
  361. lastframe = tick()
  362. script.ArtificialHB:Fire()
  363.  
  364. game:GetService("RunService").Heartbeat:connect(function(s, p)
  365. tf = tf + s
  366. if tf >= frame then
  367. if allowframeloss then
  368. script.ArtificialHB:Fire()
  369. lastframe = tick()
  370. else
  371. for i = 1, math.floor(tf / frame) do
  372. script.ArtificialHB:Fire()
  373. end
  374. lastframe = tick()
  375. end
  376. if tossremainder then
  377. tf = 0
  378. else
  379. tf = tf - frame * math.floor(tf / frame)
  380. end
  381. end
  382. end)
  383.  
  384. --//=================================\\
  385. --\\=================================//
  386.  
  387. --//=================================\\
  388. --|| SOME FUNCTIONS
  389. --\\=================================//
  390.  
  391. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  392. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  393. end
  394.  
  395. function PositiveAngle(NUMBER)
  396. if NUMBER >= 0 then
  397. NUMBER = 0
  398. end
  399. return NUMBER
  400. end
  401.  
  402. function NegativeAngle(NUMBER)
  403. if NUMBER <= 0 then
  404. NUMBER = 0
  405. end
  406. return NUMBER
  407. end
  408.  
  409. function Swait(NUMBER)
  410. if NUMBER == 0 or NUMBER == nil then
  411. ArtificialHB.Event:wait()
  412. else
  413. for i = 1, NUMBER do
  414. ArtificialHB.Event:wait()
  415. end
  416. end
  417. end
  418.  
  419. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  420. local NEWMESH = IT(MESH)
  421. if MESH == "SpecialMesh" then
  422. NEWMESH.MeshType = MESHTYPE
  423. if MESHID ~= "nil" and MESHID ~= "" then
  424. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  425. end
  426. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  427. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  428. end
  429. end
  430. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  431. NEWMESH.Scale = SCALE
  432. NEWMESH.Parent = PARENT
  433. return NEWMESH
  434. end
  435.  
  436. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  437. local NEWPART = IT("Part")
  438. NEWPART.formFactor = FORMFACTOR
  439. NEWPART.Reflectance = REFLECTANCE
  440. NEWPART.Transparency = TRANSPARENCY
  441. NEWPART.CanCollide = false
  442. NEWPART.Locked = true
  443. NEWPART.Anchored = true
  444. if ANCHOR == false then
  445. NEWPART.Anchored = false
  446. end
  447. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  448. NEWPART.Name = NAME
  449. NEWPART.Size = SIZE
  450. NEWPART.Position = Torso.Position
  451. NEWPART.Material = MATERIAL
  452. NEWPART:BreakJoints()
  453. NEWPART.Parent = PARENT
  454. return NEWPART
  455. end
  456.  
  457. local function weldBetween(a, b)
  458. local weldd = Instance.new("ManualWeld")
  459. weldd.Part0 = a
  460. weldd.Part1 = b
  461. weldd.C0 = CFrame.new()
  462. weldd.C1 = b.CFrame:inverse() * a.CFrame
  463. weldd.Parent = a
  464. return weldd
  465. end
  466.  
  467.  
  468. function QuaternionFromCFrame(cf)
  469. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  470. local trace = m00 + m11 + m22
  471. if trace > 0 then
  472. local s = math.sqrt(1 + trace)
  473. local recip = 0.5 / s
  474. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  475. else
  476. local i = 0
  477. if m11 > m00 then
  478. i = 1
  479. end
  480. if m22 > (i == 0 and m00 or m11) then
  481. i = 2
  482. end
  483. if i == 0 then
  484. local s = math.sqrt(m00 - m11 - m22 + 1)
  485. local recip = 0.5 / s
  486. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  487. elseif i == 1 then
  488. local s = math.sqrt(m11 - m22 - m00 + 1)
  489. local recip = 0.5 / s
  490. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  491. elseif i == 2 then
  492. local s = math.sqrt(m22 - m00 - m11 + 1)
  493. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  494. end
  495. end
  496. end
  497.  
  498. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  499. local xs, ys, zs = x + x, y + y, z + z
  500. local wx, wy, wz = w * xs, w * ys, w * zs
  501. local xx = x * xs
  502. local xy = x * ys
  503. local xz = x * zs
  504. local yy = y * ys
  505. local yz = y * zs
  506. local zz = z * zs
  507. 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))
  508. end
  509.  
  510. function QuaternionSlerp(a, b, t)
  511. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  512. local startInterp, finishInterp;
  513. if cosTheta >= 0.0001 then
  514. if (1 - cosTheta) > 0.0001 then
  515. local theta = ACOS(cosTheta)
  516. local invSinTheta = 1 / SIN(theta)
  517. startInterp = SIN((1 - t) * theta) * invSinTheta
  518. finishInterp = SIN(t * theta) * invSinTheta
  519. else
  520. startInterp = 1 - t
  521. finishInterp = t
  522. end
  523. else
  524. if (1 + cosTheta) > 0.0001 then
  525. local theta = ACOS(-cosTheta)
  526. local invSinTheta = 1 / SIN(theta)
  527. startInterp = SIN((t - 1) * theta) * invSinTheta
  528. finishInterp = SIN(t * theta) * invSinTheta
  529. else
  530. startInterp = t - 1
  531. finishInterp = t
  532. end
  533. end
  534. 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
  535. end
  536.  
  537. function Clerp(a, b, t)
  538. local qa = {QuaternionFromCFrame(a)}
  539. local qb = {QuaternionFromCFrame(b)}
  540. local ax, ay, az = a.x, a.y, a.z
  541. local bx, by, bz = b.x, b.y, b.z
  542. local _t = 1 - t
  543. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  544. end
  545.  
  546. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  547. local frame = IT("Frame")
  548. frame.BackgroundTransparency = TRANSPARENCY
  549. frame.BorderSizePixel = BORDERSIZEPIXEL
  550. frame.Position = POSITION
  551. frame.Size = SIZE
  552. frame.BackgroundColor3 = COLOR
  553. frame.BorderColor3 = BORDERCOLOR
  554. frame.Name = NAME
  555. frame.Parent = PARENT
  556. return frame
  557. end
  558.  
  559. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  560. local label = IT("TextLabel")
  561. label.BackgroundTransparency = 1
  562. label.Size = UD2(1, 0, 1, 0)
  563. label.Position = UD2(0, 0, 0, 0)
  564. label.TextColor3 = TEXTCOLOR
  565. label.TextStrokeTransparency = STROKETRANSPARENCY
  566. label.TextTransparency = TRANSPARENCY
  567. label.FontSize = TEXTFONTSIZE
  568. label.Font = TEXTFONT
  569. label.BorderSizePixel = BORDERSIZEPIXEL
  570. label.TextScaled = false
  571. label.Text = TEXT
  572. label.Name = NAME
  573. label.Parent = PARENT
  574. return label
  575. end
  576.  
  577. function NoOutlines(PART)
  578. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  579. end
  580.  
  581. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  582. local NEWWELD = IT(TYPE)
  583. NEWWELD.Part0 = PART0
  584. NEWWELD.Part1 = PART1
  585. NEWWELD.C0 = C0
  586. NEWWELD.C1 = C1
  587. NEWWELD.Parent = PARENT
  588. return NEWWELD
  589. end
  590.  
  591. local S = IT("Sound")
  592. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  593. local NEWSOUND = nil
  594. coroutine.resume(coroutine.create(function()
  595. NEWSOUND = S:Clone()
  596. NEWSOUND.Parent = PARENT
  597. NEWSOUND.Volume = VOLUME
  598. NEWSOUND.Pitch = PITCH
  599. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  600. NEWSOUND:play()
  601. if DOESLOOP == true then
  602. NEWSOUND.Looped = true
  603. else
  604. repeat wait(1) until NEWSOUND.Playing == false
  605. NEWSOUND:remove()
  606. end
  607. end))
  608. return NEWSOUND
  609. end
  610.  
  611. local EyeSizes={
  612. NumberSequenceKeypoint.new(0,2,0),
  613. NumberSequenceKeypoint.new(1,0,0)
  614. }
  615. local EyeTrans={
  616. NumberSequenceKeypoint.new(0,0.5,0),
  617. NumberSequenceKeypoint.new(1,1,0)
  618. }
  619. local PE=Instance.new("ParticleEmitter",nil)
  620. PE.LightEmission=.8
  621. PE.Color = ColorSequence.new(BRICKC("Alder").Color,BRICKC("Really white").Color)
  622. PE.Size=NumberSequence.new(EyeSizes)
  623. PE.Transparency=NumberSequence.new(EyeTrans)
  624. PE.Lifetime=NumberRange.new(0.35,1)
  625. PE.Rotation=NumberRange.new(0,360)
  626. PE.Rate=100
  627. PE.VelocitySpread = 10000
  628. PE.Acceleration = Vector3.new(0,85,0)
  629. PE.Drag = 5
  630. PE.Speed = NumberRange.new(0.1,5)
  631. PE.Texture="http://www.roblox.com/asset/?id=1460745664"
  632. PE.ZOffset = 0.5
  633. PE.Name = "PE"
  634. PE.Enabled = false
  635.  
  636. function Fire(art)
  637. local PARTICLES = PE:Clone()
  638. PARTICLES.Parent = art
  639. PARTICLES.Enabled = true
  640. return PARTICLES
  641. end
  642.  
  643. function CFrameFromTopBack(at, top, back)
  644. local right = top:Cross(back)
  645. 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)
  646. end
  647.  
  648. --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})
  649. function WACKYEFFECT(Table)
  650. local TYPE = (Table.EffectType or "Sphere")
  651. local SIZE = (Table.Size or VT(1,1,1))
  652. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  653. local TRANSPARENCY = (Table.Transparency or 0)
  654. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  655. local CFRAME = (Table.CFrame or Torso.CFrame)
  656. local MOVEDIRECTION = (Table.MoveToPos or nil)
  657. local ROTATION1 = (Table.RotationX or 0)
  658. local ROTATION2 = (Table.RotationY or 0)
  659. local ROTATION3 = (Table.RotationZ or 0)
  660. local MATERIAL = (Table.Material or "Neon")
  661. local COLOR = (Table.Color or C3(1,1,1))
  662. local TIME = (Table.Time or 45)
  663. local SOUNDID = (Table.SoundID or nil)
  664. local SOUNDPITCH = (Table.SoundPitch or nil)
  665. local SOUNDVOLUME = (Table.SoundVolume or nil)
  666. coroutine.resume(coroutine.create(function()
  667. local PLAYSSOUND = false
  668. local SOUND = nil
  669. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  670. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  671. PLAYSSOUND = true
  672. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  673. end
  674. EFFECT.Color = COLOR
  675. local MSH = nil
  676. if TYPE == "Sphere" then
  677. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  678. elseif TYPE == "Block" or TYPE == "Box" then
  679. MSH = IT("BlockMesh",EFFECT)
  680. MSH.Scale = SIZE
  681. elseif TYPE == "Wave" then
  682. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  683. elseif TYPE == "Ring" then
  684. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  685. elseif TYPE == "Slash" then
  686. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  687. elseif TYPE == "Round Slash" then
  688. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  689. elseif TYPE == "Swirl" then
  690. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  691. elseif TYPE == "Skull" then
  692. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  693. elseif TYPE == "Crystal" then
  694. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  695. end
  696. if MSH ~= nil then
  697. local MOVESPEED = nil
  698. if MOVEDIRECTION ~= nil then
  699. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  700. end
  701. local GROWTH = SIZE - ENDSIZE
  702. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  703. if TYPE == "Block" then
  704. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  705. else
  706. EFFECT.CFrame = CFRAME
  707. end
  708. for LOOP = 1, TIME+1 do
  709. Swait()
  710. MSH.Scale = MSH.Scale - GROWTH/TIME
  711. if TYPE == "Wave" then
  712. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  713. end
  714. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  715. if TYPE == "Block" then
  716. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  717. else
  718. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  719. end
  720. if MOVEDIRECTION ~= nil then
  721. local ORI = EFFECT.Orientation
  722. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  723. EFFECT.Orientation = ORI
  724. end
  725. end
  726. if PLAYSSOUND == false then
  727. EFFECT:remove()
  728. else
  729. repeat wait(1) until SOUND.Playing == false
  730. EFFECT:remove()
  731. end
  732. else
  733. if PLAYSSOUND == false then
  734. EFFECT:remove()
  735. else
  736. repeat Swait() until SOUND.Playing == false
  737. EFFECT:remove()
  738. end
  739. end
  740. end))
  741. end
  742.  
  743. function MakeForm(PART,TYPE)
  744. if TYPE == "Cyl" then
  745. local MSH = IT("CylinderMesh",PART)
  746. elseif TYPE == "Ball" then
  747. local MSH = IT("SpecialMesh",PART)
  748. MSH.MeshType = "Sphere"
  749. elseif TYPE == "Wedge" then
  750. local MSH = IT("SpecialMesh",PART)
  751. MSH.MeshType = "Wedge"
  752. end
  753. end
  754.  
  755. Debris = game:GetService("Debris")
  756.  
  757. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  758. local DIRECTION = CF(StartPos,EndPos).lookVector
  759. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  760. end
  761.  
  762. local HATWELD = nil
  763. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  764. PLAYMAINANIM = false
  765. if WhichPose == "Cast1" then
  766. for i=0, Time, 0.1 / Animation_Speed do
  767. Swait()
  768. if Magic == true then
  769. 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 white".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  770. end
  771. if Gyro ~= nil and Gyro ~= false then
  772. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  773. end
  774. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  775. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1) - 1)) * ANGLES(RAD(0 - 5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  776. 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)
  777. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  778. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  779. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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)
  780. end
  781. elseif WhichPose == "Cast2" then
  782. for i=0, Time, 0.1 / Animation_Speed do
  783. Swait()
  784. if Magic == true then
  785. 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 white".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  786. 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 white".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  787. end
  788. if Gyro ~= nil and Gyro ~= false then
  789. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  790. end
  791. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  792. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1) - 1)) * ANGLES(RAD(0 - 5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  793. 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)
  794. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  795. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  796. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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)
  797. end
  798. elseif WhichPose == "RightArmUp" then
  799. for i=0, Time, 0.1 / Animation_Speed do
  800. Swait()
  801. if Magic == true then
  802. 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 white".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  803. end
  804. if Gyro ~= nil and Gyro ~= false then
  805. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  806. end
  807. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  808. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1) - 1)) * ANGLES(RAD(0 - 5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  809. 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)
  810. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  811. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  812. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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)
  813. end
  814. elseif WhichPose == "Taunt" then
  815. for i=0, Time, 0.1 / Animation_Speed do
  816. Swait()
  817. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  818. 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)
  819. 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)
  820. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  821. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  822. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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)
  823. end
  824. HATWELD.Part0 = RightArm
  825. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  826. CreateSound(221057812,Torso,10,1,false)
  827. for i=0, Time*2, 0.1 / Animation_Speed do
  828. Swait()
  829. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  830. 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)
  831. 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)
  832. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  833. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  834. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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)
  835. end
  836. for i=0, Time, 0.1 / Animation_Speed do
  837. Swait()
  838. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  839. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  840. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  841. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  842. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  843. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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)
  844. 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)
  845. end
  846. HATWELD.Part0 = Head
  847. HATWELD.C0 = CF(0,0.35,0)
  848. elseif WhichPose == "Prepare key" then
  849. for i=0, Time, 0.1 / Animation_Speed do
  850. Swait()
  851. if Gyro ~= nil and Gyro ~= false then
  852. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  853. end
  854. 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)
  855. 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)
  856. 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)
  857. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  858. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  859. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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)
  860. end
  861. elseif WhichPose == "Turn key" then
  862. for i=0, Time, 0.1 / Animation_Speed do
  863. Swait()
  864. if Gyro ~= nil and Gyro ~= false then
  865. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  866. end
  867. 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)
  868. 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)
  869. 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)
  870. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  871. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  872. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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)
  873. end
  874. end
  875. PLAYMAINANIM = true
  876. end
  877.  
  878. --LIGHTNING({Material = "Neon", FadeIn = false, 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, FadeTime = 15, Thicken = false})
  879. function Lightning(Table)
  880. local Texture = "rbxassetid://242997264"
  881. local Color = Table.Color or C3(1,1,1)
  882. local StartPos = Table.Start or Torso.Position
  883. local EndPos = Table.End or Mouse.Hit.p
  884. local SegmentLength = Table.SegmentL or 2
  885. local Thickness = Table.Thickness or 0.1
  886. local Dissapear = Table.DoesFade or false
  887. local Parent = Table.Ignore or Character
  888. local MaxDist = Table.MaxDist or 400
  889. local Branches = Table.Branches or false
  890. local Thicken = Table.Thicken or false
  891. local FadeTime = Table.FadeTime or 15
  892. local FadeIn = Table.FadeIn or false
  893. local Material = Table.Material or "Neon"
  894. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  895. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/((SegmentLength/SegmentLength)/1.5))
  896. local LIGHTNINGMODEL = IT("Model",Effects)
  897. LIGHTNINGMODEL.Name = "Lightning"
  898. local LastBolt = nil
  899. for E = 1, DISTANCE do
  900. local ExtraSize = 0
  901. if Thicken == true then
  902. ExtraSize = (DISTANCE-E)/15
  903. end
  904. local TRANSPARENCY = 0
  905. if FadeIn == true then
  906. TRANSPARENCY = 1-(E/(DISTANCE/1.5))
  907. if TRANSPARENCY < 0 then
  908. TRANSPARENCY = 0
  909. end
  910. end
  911. local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  912. PART.Color = Color
  913. MakeForm(PART,"Cyl")
  914. if LastBolt == nil then
  915. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  916. else
  917. 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,DISTANCE-E).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  918. end
  919. LastBolt = PART
  920. if Branches == true and E < (DISTANCE-5) then
  921. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  922. if CHOICE == 1 then
  923. local LASTBRANCH = nil
  924. for i = 1, MRANDOM(2,5) do
  925. local ExtraSize2 = 0
  926. if Thicken == true then
  927. ExtraSize = ((DISTANCE-E)/25)/i
  928. end
  929. local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  930. PART.Color = Color
  931. MakeForm(PART,"Cyl")
  932. if LASTBRANCH == nil then
  933. 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)
  934. else
  935. 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)
  936. end
  937. LASTBRANCH = PART
  938. end
  939. end
  940. end
  941. end
  942. if Dissapear == true then
  943. coroutine.resume(coroutine.create(function()
  944. for i = 1, FadeTime do
  945. Swait()
  946. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  947. if c.ClassName == "Part" then
  948. c.Transparency = c.Transparency + (i/FadeTime)/10
  949. end
  950. end
  951. end
  952. LIGHTNINGMODEL:remove()
  953. end))
  954. elseif Dissapear == false then
  955. Debris:AddItem(LIGHTNINGMODEL,0.1)
  956. end
  957. return {Hit = HIT,Pos = HITPOS,End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  958. end
  959.  
  960.  
  961. --//=================================\\
  962. --|| WEAPON CREATION
  963. --\\=================================//
  964.  
  965. Player = game:GetService("Players").LocalPlayer
  966. PlayerGui = Player.PlayerGui
  967. Cam = workspace.CurrentCamera
  968. Backpack = Player.Backpack
  969. Character = Player.Character
  970. Humanoid = Character.Humanoid
  971. Mouse = Player:GetMouse()
  972. RootPart = Character["HumanoidRootPart"]
  973. Torso = Character["Torso"]
  974. Head = Character["Head"]
  975. RightArm = Character["Right Arm"]
  976. LeftArm = Character["Left Arm"]
  977. RightLeg = Character["Right Leg"]
  978. LeftLeg = Character["Left Leg"]
  979. RootJoint = RootPart["RootJoint"]
  980. Neck = Torso["Neck"]
  981. RightShoulder = Torso["Right Shoulder"]
  982. LeftShoulder = Torso["Left Shoulder"]
  983. RightHip = Torso["Right Hip"]
  984. LeftHip = Torso["Left Hip"]
  985.  
  986. IT = Instance.new
  987. CF = CFrame.new
  988. VT = Vector3.new
  989. RAD = math.rad
  990. C3 = Color3.new
  991. UD2 = UDim2.new
  992. BRICKC = BrickColor.new
  993. ANGLES = CFrame.Angles
  994. EULER = CFrame.fromEulerAnglesXYZ
  995. COS = math.cos
  996. ACOS = math.acos
  997. SIN = math.sin
  998. ASIN = math.asin
  999. ABS = math.abs
  1000. MRANDOM = math.random
  1001. FLOOR = math.floor
  1002.  
  1003.  
  1004. Player = game:GetService("Players").LocalPlayer
  1005. PlayerGui = Player.PlayerGui
  1006. Cam = workspace.CurrentCamera
  1007. Backpack = Player.Backpack
  1008. Character = Player.Character
  1009. Humanoid = Character.Humanoid
  1010. Mouse = Player:GetMouse()
  1011. RootPart = Character["HumanoidRootPart"]
  1012. Torso = Character["Torso"]
  1013. Head = Character["Head"]
  1014. RightArm = Character["Right Arm"]
  1015. LeftArm = Character["Left Arm"]
  1016. RightLeg = Character["Right Leg"]
  1017. LeftLeg = Character["Left Leg"]
  1018. RootJoint = RootPart["RootJoint"]
  1019. Neck = Torso["Neck"]
  1020. RightShoulder = Torso["Right Shoulder"]
  1021. LeftShoulder = Torso["Left Shoulder"]
  1022. RightHip = Torso["Right Hip"]
  1023. LeftHip = Torso["Left Hip"]
  1024.  
  1025. IT = Instance.new
  1026. CF = CFrame.new
  1027. VT = Vector3.new
  1028. RAD = math.rad
  1029. C3 = Color3.new
  1030. UD2 = UDim2.new
  1031. BRICKC = BrickColor.new
  1032. ANGLES = CFrame.Angles
  1033. EULER = CFrame.fromEulerAnglesXYZ
  1034. COS = math.cos
  1035. ACOS = math.acos
  1036. SIN = math.sin
  1037. ASIN = math.asin
  1038. ABS = math.abs
  1039. MRANDOM = math.random
  1040. FLOOR = math.floor
  1041.  
  1042. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really white", "Eye", VT(0.6,0.1,1)/2,false)
  1043. MakeForm(Eye,"Ball")
  1044. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  1045. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really white", "Eye", VT(0.6,0.1,1)/2,false)
  1046. MakeForm(Eye,"Ball")
  1047. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  1048. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really white", "Eye", VT(0.1,1,1)/2,false)
  1049. MakeForm(Eye,"Ball")
  1050. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  1051. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really white", "Eye", VT(0.1,1,1)/2,false)
  1052. MakeForm(Eye,"Ball")
  1053. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  1054.  
  1055. local A = IT("Attachment",Torso)
  1056. A.Position = VT(1,1.3,0)
  1057. A.Orientation = VT(-0.098, -89.999, 0.227)
  1058. local B = IT("Attachment",Torso)
  1059. B.Position = VT(-1.3,-0.6,0)
  1060. B.Orientation = VT(-88.911, -68.808, 158.782)
  1061. local ChainLink = IT("Beam",Torso)
  1062. ChainLink.Texture = "rbxassetid://641078192"
  1063. ChainLink.Color = ColorSequence.new(C3(1,1,1))
  1064. ChainLink.TextureSpeed = 1
  1065. ChainLink.FaceCamera = true
  1066. ChainLink.Width0 = 1
  1067. ChainLink.Width1 = 1
  1068. ChainLink.TextureLength = 3
  1069. ChainLink.Attachment0 = A
  1070. ChainLink.Attachment1 = B
  1071. ChainLink.CurveSize0 = 1.6
  1072. ChainLink.CurveSize1 = 1.6
  1073. ChainLink.FaceCamera = true
  1074. ChainLink.Transparency = NumberSequence.new(0)
  1075. local ChainLink = IT("Beam",Torso)
  1076. ChainLink.Texture = "rbxassetid://641078192"
  1077. ChainLink.Color = ColorSequence.new(C3(1,1,1))
  1078. ChainLink.TextureSpeed = 1
  1079. ChainLink.FaceCamera = true
  1080. ChainLink.Width0 = 1
  1081. ChainLink.Width1 = 1
  1082. ChainLink.TextureLength = 3
  1083. ChainLink.Attachment0 = B
  1084. ChainLink.Attachment1 = A
  1085. ChainLink.CurveSize0 = 1.6
  1086. ChainLink.CurveSize1 = 1.6
  1087. ChainLink.FaceCamera = true
  1088. ChainLink.Transparency = NumberSequence.new(0)
  1089. local A = IT("Attachment",Torso)
  1090. A.Position = VT(1.3,-0.85,0)
  1091. A.Orientation = VT(-0.098, -89.999, 0.227)
  1092. local B = IT("Attachment",Torso)
  1093. B.Position = VT(-1,2,0)
  1094. B.Orientation = VT(-88.911, -68.808, 158.782)
  1095. local ChainLink = IT("Beam",Torso)
  1096. ChainLink.Texture = "rbxassetid://641078192"
  1097. ChainLink.Color = ColorSequence.new(C3(1,1,1))
  1098. ChainLink.TextureSpeed = 1
  1099. ChainLink.FaceCamera = true
  1100. ChainLink.Width0 = 1
  1101. ChainLink.Width1 = 1
  1102. ChainLink.TextureLength = 3
  1103. ChainLink.Attachment0 = A
  1104. ChainLink.Attachment1 = B
  1105. ChainLink.CurveSize0 = 1.3
  1106. ChainLink.CurveSize1 = 1.3
  1107. ChainLink.FaceCamera = true
  1108. ChainLink.Transparency = NumberSequence.new(0)
  1109. local ChainLink = IT("Beam",Torso)
  1110. ChainLink.Texture = "rbxassetid://641078192"
  1111. ChainLink.Color = ColorSequence.new(C3(1,1,1))
  1112. ChainLink.TextureSpeed = 1
  1113. ChainLink.FaceCamera = true
  1114. ChainLink.Width0 = 1
  1115. ChainLink.Width1 = 1
  1116. ChainLink.TextureLength = 3
  1117. ChainLink.Attachment0 = B
  1118. ChainLink.Attachment1 = A
  1119. ChainLink.CurveSize0 = 1.3
  1120. ChainLink.CurveSize1 = 1.3
  1121. ChainLink.FaceCamera = true
  1122. ChainLink.Transparency = NumberSequence.new(0)
  1123.  
  1124.  
  1125. local Handle = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,1.2,0.2),false)
  1126. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0))
  1127. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.8,0.2),false)
  1128. MakeForm(Part,"Wedge")
  1129. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1130. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.6),false)
  1131. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1132. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.4,0.4,0.4),false)
  1133. MakeForm(Part,"Cyl")
  1134. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1135. for i = 1, 8 do
  1136. local Piece = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0,0.35,0.41),false)
  1137. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1138. end
  1139. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false)
  1140. MakeForm(Part,"Wedge")
  1141. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1142. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0.39,0.41,0.39),false)
  1143. MakeForm(Part,"Cyl")
  1144. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1145. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.5),false)
  1146. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1147. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.4,0.5),false)
  1148. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1149. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0,0.6),false)
  1150. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3))
  1151. local RightBarrel = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.28,5,0.28),false)
  1152. MakeForm(RightBarrel,"Cyl")
  1153. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, RightBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0))
  1154. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0,0.2,0.2),false)
  1155. MakeForm(Part,"Wedge")
  1156. CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1157. local Hole = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0.2,0,0.2),false)
  1158. MakeForm(Hole,"Cyl")
  1159. CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, Hole, CF(0, 2.5, 0), CF(0, 0, 0))
  1160.  
  1161. for i = 1, 15 do
  1162. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/15.2, "Dark stone grey", "FaceGradient", VT(1.01,0.58,1.01),false)
  1163. FACE.Color = C3(0,0,0)
  1164. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  1165. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/35,0), CF(0, 0, 0))
  1166. end
  1167. local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2,0.2,2),false)
  1168. MakeForm(HAT1,"Cyl")
  1169. HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0))
  1170. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2.01,0.15,2.01),false)
  1171. BELT.Color = C3(15/255,15/255,15/255)
  1172. MakeForm(BELT,"Cyl")
  1173. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0))
  1174. local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,2.2,1.3),false)
  1175. MakeForm(HAT2,"Cyl")
  1176. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0))
  1177. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.2,1.31),false)
  1178. BELT.Color = C3(15/255,15/255,15/255)
  1179. MakeForm(BELT,"Cyl")
  1180. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0))
  1181. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really white", "Gem", VT(0.25,0.25,0.1),false)
  1182. MakeForm(GEM,"Ball")
  1183. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0))
  1184. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really white", "Gem", VT(0.25,0.25,0.1),false)
  1185. MakeForm(GEM,"Ball")
  1186. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0))
  1187. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really white", "Gem", VT(0.1,0.25,0.25),false)
  1188. MakeForm(GEM,"Ball")
  1189. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0))
  1190. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really white", "Gem", VT(0.1,0.25,0.25),false)
  1191. MakeForm(GEM,"Ball")
  1192. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0))
  1193. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  1194. BELT.Color = C3(15/255,15/255,15/255)
  1195. MakeForm(BELT,"Cyl")
  1196. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0))
  1197. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  1198. BELT.Color = C3(15/255,15/255,15/255)
  1199. MakeForm(BELT,"Cyl")
  1200. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0))
  1201. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  1202. BELT.Color = C3(15/255,15/255,15/255)
  1203. MakeForm(BELT,"Cyl")
  1204. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0))
  1205. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  1206. BELT.Color = C3(15/255,15/255,15/255)
  1207. MakeForm(BELT,"Cyl")
  1208. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0))
  1209. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,0.5,1.3),false)
  1210. MakeForm(BELT,"Ball")
  1211. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0))
  1212. Humanoid.DisplayDistanceType = "None"
  1213. local naeeym2 = IT("BillboardGui",Character)
  1214. naeeym2.AlwaysOnTop = true
  1215. naeeym2.Size = UDim2.new(5,35,2,15)
  1216. naeeym2.StudsOffset = Vector3.new(0,3,0)
  1217. naeeym2.MaxDistance = 75
  1218. naeeym2.Adornee = Character.Head
  1219. naeeym2.Name = "Name"
  1220. naeeym2.PlayerToHideFrom = None
  1221. local tecks2 = IT("TextLabel",naeeym2)
  1222. tecks2.BackgroundTransparency = 1
  1223. tecks2.TextScaled = true
  1224. tecks2.BorderSizePixel = 0
  1225. tecks2.Text = "Warden The Time Master"
  1226. tecks2.Font = "Bodoni"
  1227. tecks2.TextSize = 30
  1228. tecks2.TextStrokeTransparency = 0.5
  1229. tecks2.TextColor3 = C3(0,0,0)
  1230. tecks2.TextStrokeColor3 = BRICKC"Really black".Color
  1231. tecks2.Size = UDim2.new(1,0,0.5,0)
  1232. tecks2.Parent = naeeym2
  1233. local top = Instance.new("Shirt")
  1234. top.ShirtTemplate = "rbxassetid://676428254"
  1235. top.Parent = Character
  1236. top.Name = "Cloth"
  1237. local bottom = Instance.new("Pants")
  1238. bottom.PantsTemplate = "rbxassetid://676428351"
  1239. bottom.Parent = Character
  1240. bottom.Name = "Cloth"
  1241. for _, c in pairs(Character:GetChildren()) do
  1242. if c.ClassName == "Part" and c.Name ~= "FaceGradient" and c.Name ~= "Hat" and c.Name ~= "Gem" then
  1243. c.Material = "Neon"
  1244. if c:FindFirstChildOfClass("ParticleEmitter") then
  1245. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1246. end
  1247. c.Color = C3(1,1,1)
  1248. if c == Head then
  1249. if c:FindFirstChild("face") then
  1250. c.face:remove()
  1251. end
  1252. end
  1253. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  1254. c:remove()
  1255. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1256. c:remove()
  1257. end
  1258. end
  1259. local BODY = {}
  1260. for _, c in pairs(Character:GetDescendants()) do
  1261. if c:IsA("BasePart") and c.Name ~= "Handle" then
  1262. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  1263. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1264. end
  1265. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  1266. elseif c:IsA("JointInstance") then
  1267. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  1268. end
  1269. end
  1270. for e = 1, #BODY do
  1271. if BODY[e] ~= nil then
  1272. local STUFF = BODY[e]
  1273. local PART = STUFF[1]
  1274. local PARENT = STUFF[2]
  1275. local MATERIAL = STUFF[3]
  1276. local COLOR = STUFF[4]
  1277. local TRANSPARENCY = STUFF[5]
  1278. if PART.ClassName == "Part" and PART ~= RootPart then
  1279. PART.Material = MATERIAL
  1280. PART.Color = COLOR
  1281. PART.Transparency = TRANSPARENCY
  1282. end
  1283. PART.AncestryChanged:Connect(function()
  1284. PART.Parent = PARENT
  1285. end)
  1286. end
  1287. end
  1288. function refit()
  1289. Character.Parent = workspace
  1290. for e = 1, #BODY do
  1291. if BODY[e] ~= nil then
  1292. local STUFF = BODY[e]
  1293. local PART = STUFF[1]
  1294. local PARENT = STUFF[2]
  1295. local MATERIAL = STUFF[3]
  1296. local COLOR = STUFF[4]
  1297. local TRANSPARENCY = STUFF[5]
  1298. if PART.ClassName == "Part" and PART ~= RootPart then
  1299. PART.Material = MATERIAL
  1300. PART.Color = COLOR
  1301. PART.Transparency = TRANSPARENCY
  1302. end
  1303. if PART.Parent ~= PARENT then
  1304. Humanoid:remove()
  1305. PART.Parent = PARENT
  1306. Humanoid = IT("Humanoid",Character)
  1307. end
  1308. end
  1309. end
  1310. end
  1311. local SKILLTEXTCOLOR = BRICKC"Really white".Color
  1312. local SKILLFONT = "Bodoni"
  1313. local SKILLTEXTSIZE = 7
  1314.  
  1315. Humanoid.Died:connect(function()
  1316. refit()
  1317. end)
  1318.  
  1319. 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")
  1320. 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")
  1321. 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")
  1322. 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")
  1323. local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  1324. local SKILL6FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.65, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
  1325. local SKILL7FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.07, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame")
  1326. local SKILL8FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.07, 0, 0.60, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 8 Frame")
  1327. local SKILL9FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.65, 0, 0.60, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 9 Frame")
  1328.  
  1329. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Thunderbolt", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
  1330. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Lightning Storm", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  1331. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Flame Ring", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  1332. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warden Wall", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
  1333. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Hell Prison", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
  1334. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[E] Time Stop", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 6")
  1335. local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[Q] Smash", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0,2, 0, "Text 7")
  1336. local SKILL8TEXT = CreateLabel(SKILL8FRAME, "[F] Painful Blast", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 8")
  1337. local SKILL9TEXT = CreateLabel(SKILL9FRAME, "[R] Painless Rain", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 9")
  1338.  
  1339. --//=================================\\
  1340. --|| DAMAGING
  1341. --\\=================================//
  1342.  
  1343. function ApplyAOE(POSITION,RANGE,FLING,BURN)
  1344. local CHILDREN = workspace:GetDescendants()
  1345. for index, CHILD in pairs(CHILDREN) do
  1346. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1347. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1348. if HUM then
  1349. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1350. if TORSO then
  1351. if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
  1352. CHILD:BreakJoints()
  1353. if FLING ~= 0 then
  1354. for _, c in pairs(CHILD:GetChildren()) do
  1355. if c:IsA("BasePart") and c.Transparency == 0 then
  1356. if BURN == true then
  1357. Fire(c)
  1358. end
  1359. local bv = Instance.new("BodyVelocity")
  1360. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1361. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1362. bv.Parent = c
  1363. Debris:AddItem(bv,0.05)
  1364. end
  1365. end
  1366. end
  1367. end
  1368. end
  1369. end
  1370. end
  1371. end
  1372. end
  1373.  
  1374.  
  1375.  
  1376. --
  1377. --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})
  1378. function WACKYEFFECT(Table)
  1379. local TYPE = (Table.EffectType or "Sphere")
  1380. local SIZE = (Table.Size or VT(1,1,1))
  1381. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  1382. local TRANSPARENCY = (Table.Transparency or 0)
  1383. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1384. local CFRAME = (Table.CFrame or Torso.CFrame)
  1385. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1386. local ROTATION1 = (Table.RotationX or 0)
  1387. local ROTATION2 = (Table.RotationY or 0)
  1388. local ROTATION3 = (Table.RotationZ or 0)
  1389. local MATERIAL = (Table.Material or "Neon")
  1390. local COLOR = (Table.Color or C3(1,1,1))
  1391. local TIME = (Table.Time or 45)
  1392. local SOUNDID = (Table.SoundID or nil)
  1393. local SOUNDPITCH = (Table.SoundPitch or nil)
  1394. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1395. coroutine.resume(coroutine.create(function()
  1396. local PLAYSSOUND = false
  1397. local SOUND = nil
  1398. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  1399. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1400. PLAYSSOUND = true
  1401. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1402. end
  1403. EFFECT.Color = COLOR
  1404. local MSH = nil
  1405. if TYPE == "Sphere" then
  1406. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  1407. elseif TYPE == "Block" then
  1408. MSH = IT("BlockMesh",EFFECT)
  1409. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  1410. elseif TYPE == "Wave" then
  1411. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1412. elseif TYPE == "Ring" then
  1413. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1414. elseif TYPE == "Slash" then
  1415. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1416. elseif TYPE == "Round Slash" then
  1417. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1418. elseif TYPE == "Swirl" then
  1419. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1420. elseif TYPE == "Skull" then
  1421. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1422. elseif TYPE == "Crystal" then
  1423. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1424. end
  1425. if MSH ~= nil then
  1426. local MOVESPEED = nil
  1427. if MOVEDIRECTION ~= nil then
  1428. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1429. end
  1430. local GROWTH = SIZE - ENDSIZE
  1431. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1432. if TYPE == "Block" then
  1433. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1434. else
  1435. EFFECT.CFrame = CFRAME
  1436. end
  1437. for LOOP = 1, TIME+1 do
  1438. Swait()
  1439. MSH.Scale = MSH.Scale - GROWTH/TIME
  1440. if TYPE == "Wave" then
  1441. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  1442. end
  1443. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1444. if TYPE == "Block" then
  1445. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1446. else
  1447. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1448. end
  1449. if MOVEDIRECTION ~= nil then
  1450. local ORI = EFFECT.Orientation
  1451. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1452. EFFECT.Orientation = ORI
  1453. end
  1454. end
  1455. if PLAYSSOUND == false then
  1456. EFFECT:remove()
  1457. else
  1458. SOUND.Stopped:Connect(function()
  1459. EFFECT:remove()
  1460. end)
  1461. end
  1462. else
  1463. if PLAYSSOUND == false then
  1464. EFFECT:remove()
  1465. else
  1466. repeat Swait() until SOUND.Playing == false
  1467. EFFECT:remove()
  1468. end
  1469. end
  1470. end))
  1471. end
  1472.  
  1473. function MakeForm(PART,TYPE)
  1474. if TYPE == "Cyl" then
  1475. local MSH = IT("CylinderMesh",PART)
  1476. elseif TYPE == "Ball" then
  1477. local MSH = IT("SpecialMesh",PART)
  1478. MSH.MeshType = "Sphere"
  1479. elseif TYPE == "Wedge" then
  1480. local MSH = IT("SpecialMesh",PART)
  1481. MSH.MeshType = "Wedge"
  1482. end
  1483. end
  1484.  
  1485. Debris = game:GetService("Debris")
  1486.  
  1487. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1488. local DIRECTION = CF(StartPos,EndPos).lookVector
  1489. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1490. end
  1491.  
  1492. function turnto(position)
  1493. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1494. end
  1495.  
  1496. function getbloody(victim,amount)
  1497. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  1498. PART.CFrame = victim.CFrame
  1499. local HITPLAYERSOUNDS = {"356551938","264486467"}
  1500. Debris:AddItem(PART,5)
  1501. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1502. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1503. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1504. local prtcl = asd:Clone()
  1505. prtcl.Parent = PART
  1506. prtcl:Emit(amount*10)
  1507. end
  1508.  
  1509.  
  1510. function SpawnTrail(FROM,TO,BIG)
  1511. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really white", "Trail", VT(0,0,0))
  1512. MakeForm(TRAIL,"Cyl")
  1513. local DIST = (FROM - TO).Magnitude
  1514. if BIG == true then
  1515. TRAIL.Size = VT(0.5,DIST,0.5)
  1516. else
  1517. TRAIL.Size = VT(0.35,DIST,0.35)
  1518. end
  1519. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  1520. coroutine.resume(coroutine.create(function()
  1521. for i = 1, 5 do
  1522. Swait()
  1523. TRAIL.Transparency = TRAIL.Transparency + 0.1
  1524. end
  1525. TRAIL:remove()
  1526. end))
  1527. end
  1528.  
  1529.  
  1530. function ApplyDamage(Humanoid,Damage)
  1531. Damage = Damage * DAMAGEMULTIPLIER
  1532. if Humanoid.Health ~= 0 then
  1533. Humanoid.Health = Humanoid.Health - Damage
  1534. end
  1535. end
  1536.  
  1537. function ApplYAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL,OPTION)
  1538. local CHILDREN = workspace:GetDescendants()
  1539. for index, CHILD in pairs(CHILDREN) do
  1540. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1541. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1542. if HUM then
  1543. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1544. if TORSO then
  1545. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1546. if INSTAKILL == true then
  1547. CHILD:BreakJoints()
  1548. if OPTION ~= nil then
  1549. Kill(CHILD,OPTION)
  1550. end
  1551. else
  1552. local DMG = MRANDOM(MINDMG,MAXDMG)
  1553. ApplyDamage(HUM,DMG)
  1554. end
  1555. if FLING ~= 0 then
  1556. for _, c in pairs(CHILD:GetChildren()) do
  1557. if c:IsA("BasePart") then
  1558. local bv = Instance.new("BodyVelocity")
  1559. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1560. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1561. bv.Parent = c
  1562. Debris:AddItem(bv,0.05)
  1563. end
  1564. end
  1565. end
  1566. end
  1567. end
  1568. end
  1569. end
  1570. end
  1571. end
  1572.  
  1573. --//=================================\\
  1574. --|| ATTACK FUNCTIONS AND STUFF
  1575. --\\=================================//
  1576.  
  1577. function TimeStop()
  1578. local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1579. CreateSound(1193182658, Character, 5, 1, false)
  1580. back = CreateSound(1841228386, Character, 5, 1, false)
  1581. local killsky = Instance.new('Sky', game:GetService'Lighting')
  1582. killsky.SkyboxBk = "rbxassetid://1013852"
  1583. killsky.SkyboxDn = "rbxassetid://1013853"
  1584. killsky.SkyboxFt = "rbxassetid://1013850"
  1585. killsky.SkyboxLf = "rbxassetid://1013851"
  1586. killsky.SkyboxRt = "rbxassetid://1013849"
  1587. killsky.SkyboxUp = "rbxassetid://1013854"
  1588. killsky.StarCount = 0
  1589. killsky.SunAngularSize = 0
  1590. killsky.MoonAngularSize = 0
  1591. killsky.MoonTextureId = ""
  1592. killsky.CelestialBodiesShown = false
  1593. game.Lighting.FogColor = Color3.new(1,1,0)
  1594. game.Lighting.FogEnd = 1400
  1595. if HITFLOOR ~= nil then
  1596. ATTACK = false
  1597. Rooted = false
  1598. local RINGSPIN = true
  1599. local CONSTRUCTING = true
  1600. local RING = CreatePart(3, Effects, "Neon", 0, 1, "Really white", "Ring", VT(0,0,0))
  1601. RING.Color = C3(0,0,0)
  1602. MakeForm(RING,"Cyl")
  1603. RING.CFrame = CF(HITPOS)
  1604. coroutine.resume(coroutine.create(function()
  1605. repeat
  1606. Swait()
  1607. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  1608. until CONSTRUCTING == false
  1609. repeat
  1610. Swait()
  1611. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  1612. until RINGSPIN == false
  1613. for i = 1, 25 do
  1614. Swait()
  1615. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  1616. RING.Size = RING.Size - VT(0.15,0,0.15)
  1617. --DECAL.Transparency = DECAL.Transparency + 1/25
  1618. RING.Transparency = RING.Transparency + 1/25
  1619. end
  1620. RING:remove()
  1621. end))
  1622. for i = 1, 15 do
  1623. Swait()
  1624. RING.Size = RING.Size + VT(0,0,0)
  1625. RING.Transparency = RING.Transparency - 1/15
  1626. end
  1627. end
  1628. local RANDOMEFFECT = MRANDOM(1)
  1629. local BASE = CreatePart(3, Character, "Neon", 0, 0, "New Yeller", "Black", VT(2,1.8,2))
  1630. BASE.Color = C3(0,0,0)
  1631. BASE.Transparency = 1
  1632. BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z))
  1633. if RANDOMEFFECT == 1 then
  1634. local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Field", VT(0.3,0.3,0.3))
  1635. FIELD.CFrame = BASE.CFrame
  1636. MakeForm(FIELD,"Ball")
  1637. for i = 1, 50 do
  1638. Swait()
  1639. FIELD.Size = VT(0,0,0)
  1640. FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
  1641. end
  1642. end
  1643. wait(0.2)
  1644. local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Field", VT(0.3,0.3,0.3))
  1645. FIELD.CFrame = BASE.CFrame
  1646. local LOOP = CreateSound(1393698948, Character, 0, 1, true)
  1647. coroutine.resume(coroutine.create(function()
  1648. for i = 1, 75 do
  1649. Swait()
  1650. LOOP.Volume = LOOP.Volume + 10/75
  1651. LOOP.Parent = FIELD
  1652. local CHILDREN = workspace:GetDescendants()
  1653. for index, CHILD in pairs(CHILDREN) do
  1654. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1655. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1656. if HUM then
  1657. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1658. if TORSO then
  1659. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
  1660. HUM.Health = HUM.Health - 0
  1661. TORSO.Velocity = VT(0,5,0)
  1662. HUM.PlatformStand = true
  1663. if TORSO.RotVelocity.Magnitude < 15 then
  1664. TORSO.Anchored = true
  1665. end
  1666. end
  1667. end
  1668. end
  1669. end
  1670. end
  1671. FIELD.Size = FIELD.Size + VT(90,90,90)
  1672. FIELD.Transparency = FIELD.Transparency + 0.8/75
  1673. end
  1674. for i = 1, 500 do
  1675. Swait()
  1676. LOOP.Parent = FIELD
  1677. local CHILDREN = workspace:GetDescendants()
  1678. for index, CHILD in pairs(CHILDREN) do
  1679. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1680. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1681. if HUM then
  1682. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1683. if TORSO then
  1684. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
  1685. TORSO.Velocity = VT(0,5,0)
  1686. HUM.Health = HUM.Health - 0
  1687. HUM.PlatformStand = true
  1688. if TORSO.RotVelocity.Magnitude < 15 then
  1689. TORSO.Anchored = true
  1690. end
  1691. end
  1692. end
  1693. end
  1694. end
  1695. end
  1696. end
  1697. wait (20)
  1698. back:Remove()
  1699. CreateSound(1538466750, Character, 99999, 1, false)
  1700. killsky:Remove()
  1701. game.Lighting.FogEnd = 90000000
  1702. wait (5)
  1703. CHOICE = MRANDOM (1,5)
  1704. for i = 1, 25 do
  1705. Swait()
  1706. LOOP.Volume = LOOP.Volume + 10/25
  1707. LOOP.Parent = FIELD
  1708. local CHILDREN = workspace:GetDescendants()
  1709. for index, CHILD in pairs(CHILDREN) do
  1710. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1711. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1712. if HUM then
  1713. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1714. if TORSO then
  1715. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then
  1716. TORSO.Velocity = VT(0,5,0)
  1717. HUM.Health = HUM.Health - 0
  1718. HUM.PlatformStand = false
  1719. if TORSO.RotVelocity.Magnitude < 15 then
  1720. TORSO.Anchored = false
  1721. end
  1722. end
  1723. end
  1724. end
  1725. end
  1726. FIELD.Size = FIELD.Size - VT(3,3,3)
  1727. FIELD.Transparency = FIELD.Transparency + 0.2/25
  1728. end
  1729. end
  1730. end))
  1731. FIELD:Remove()
  1732. ATTACK = false
  1733. Rooted = false
  1734. end
  1735.  
  1736.  
  1737.  
  1738. function Warden_Zap()
  1739. ATTACK = true
  1740. Rooted = false
  1741. local GYRO = IT("BodyGyro",RootPart)
  1742. GYRO.D = 750
  1743. GYRO.P = 20000
  1744. GYRO.MaxTorque = VT(0,40000000,0)
  1745. CreateSound(348663022,RightArm,1.5,2,false)
  1746. Pose("Cast1",0.8,1,true,GYRO)
  1747. 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})
  1748. local Hitpos = LightningTable.End
  1749. ApplyAOE(Hitpos,10,35)
  1750. 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 white".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  1751. for i = 1, 4 do
  1752. 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 white".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1753. end
  1754. Pose("Cast1",0.6,1,true)
  1755. GYRO:remove()
  1756. ATTACK = false
  1757. Rooted = false
  1758. end
  1759.  
  1760. function Warden_Thunder()
  1761. ATTACK = true
  1762. Rooted = false
  1763. local GYRO = IT("BodyGyro",RootPart)
  1764. GYRO.D = 750
  1765. GYRO.P = 20000
  1766. GYRO.MaxTorque = VT(0,40000000,0)
  1767. CreateSound(469345336,Torso,3,2,false)
  1768. Pose("Cast2",1.5,2,true,GYRO)
  1769. coroutine.resume(coroutine.create(function()
  1770. local FRAME = RootPart.CFrame
  1771. for i = 1, 25 do
  1772. local POS = FRAME*CF(MRANDOM(-17,17),0,-i*15)
  1773. 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})
  1774. local Hitpos = LightningTable.End
  1775. ApplyAoE(Hitpos,20,15)
  1776. 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 white".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  1777. for i = 1, 4 do
  1778. 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 white".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1779. end
  1780. wait(0.05)
  1781. end
  1782. end))
  1783. Pose("Cast2",1.5,0.7,true)
  1784. GYRO:remove()
  1785. ATTACK = false
  1786. Rooted = false
  1787. end
  1788.  
  1789. function Inferno_Ring()
  1790. ATTACK = true
  1791. Rooted = false
  1792. local GYRO = IT("BodyGyro",RootPart)
  1793. GYRO.D = 750
  1794. GYRO.P = 20000
  1795. GYRO.MaxTorque = VT(0,40000000,0)
  1796. local FIRE = IT("Model",Effects)
  1797. FIRE.Name = "Fire"
  1798. local MAIN = CreatePart(3, FIRE, "Neon", 0, 1, "Really white", "Center", VT(0,0,0))
  1799. FIRE.PrimaryPart = MAIN
  1800. local FIRES = {}
  1801. for i = 1, 45 do
  1802. local PRT = CreatePart(3, FIRE, "Neon", 0, 1, "Really white", "RingPart", VT(8,8,8))
  1803. PRT.CFrame = MAIN.CFrame*ANGLES(RAD(0),RAD((360/45)*i),RAD(0))*CF(0,0,20)
  1804. local F = Fire(PRT)
  1805. table.insert(FIRES,F)
  1806. end
  1807. repeat
  1808. FIRE:SetPrimaryPartCFrame(CF(Mouse.Hit.p))
  1809. Pose("Cast1",1.5,0.01,false,GYRO)
  1810. until HOLD == true
  1811. coroutine.resume(coroutine.create(function()
  1812. for i = 1, 4 do
  1813. ApplyAOE(MAIN.Position,21,-15,true)
  1814. CreateSound(463598785,MAIN,3,1,false)
  1815. for E = 1, #FIRES do
  1816. if FIRES[E] ~= nil then
  1817. FIRES[E].Acceleration = VT(0,300,0)
  1818. FIRES[E].Lifetime=NumberRange.new(0.35,1.5)
  1819. end
  1820. end
  1821. wait(0.3)
  1822. end
  1823. for E = 1, #FIRES do
  1824. if FIRES[E] ~= nil then
  1825. FIRES[E].Enabled = false
  1826. end
  1827. end
  1828. Debris:AddItem(FIRE,5)
  1829. end))
  1830. CreateSound(215395388,RightArm,3,2,false)
  1831. Pose("RightArmUp",1.5,0.5,true)
  1832. GYRO:remove()
  1833. ATTACK = false
  1834. Rooted = false
  1835. end
  1836.  
  1837. Player_Size = 1
  1838.  
  1839. function CreateSound(ID, PARENT, VOLUME, PITCH)
  1840. local NEWSOUND = nil
  1841. coroutine.resume(coroutine.create(function()
  1842. NEWSOUND = IT("Sound", PARENT)
  1843. NEWSOUND.Volume = VOLUME
  1844. NEWSOUND.Pitch = PITCH
  1845. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1846. Swait()
  1847. NEWSOUND:play()
  1848. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  1849. end))
  1850. return NEWSOUND
  1851. end
  1852.  
  1853. function CFrameFromTopBack(at, top, back)
  1854. local right = top:Cross(back)
  1855. 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)
  1856. end
  1857.  
  1858. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1859. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1860. wave.Color = COLOR
  1861. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1862. wave.CFrame = CFRAME
  1863. coroutine.resume(coroutine.create(function(PART)
  1864. for i = 1, WAIT do
  1865. Swait()
  1866. mesh.Scale = mesh.Scale + GROW
  1867. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1868. if DOESROT == true then
  1869. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1870. end
  1871. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1872. if wave.Transparency > 0.99 then
  1873. wave:remove()
  1874. end
  1875. end
  1876. end))
  1877. end
  1878.  
  1879. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  1880. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1881. wave.Color = COLOR
  1882. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
  1883. wave.CFrame = CFRAME
  1884. coroutine.resume(coroutine.create(function(PART)
  1885. for i = 1, WAIT do
  1886. Swait()
  1887. mesh.Scale = mesh.Scale + GROW
  1888. wave.Transparency = wave.Transparency + (1/WAIT)
  1889. if wave.Transparency > 0.99 then
  1890. wave:remove()
  1891. end
  1892. end
  1893. end))
  1894. end
  1895.  
  1896. function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
  1897. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1898. local mesh = nil
  1899. if KIND == "Base" then
  1900. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  1901. elseif KIND == "Thin" then
  1902. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  1903. elseif KIND == "Round" then
  1904. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  1905. end
  1906. wave.CFrame = CFRAME
  1907. coroutine.resume(coroutine.create(function(PART)
  1908. for i = 1, WAIT do
  1909. Swait()
  1910. mesh.Scale = mesh.Scale + GROW/10
  1911. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1912. if wave.Transparency > 0.99 then
  1913. wave:remove()
  1914. end
  1915. end
  1916. end))
  1917. end
  1918.  
  1919. function MakeForm(PART,TYPE)
  1920. if TYPE == "Cyl" then
  1921. local MSH = IT("CylinderMesh",PART)
  1922. elseif TYPE == "Ball" then
  1923. local MSH = IT("SpecialMesh",PART)
  1924. MSH.MeshType = "Sphere"
  1925. elseif TYPE == "Wedge" then
  1926. local MSH = IT("SpecialMesh",PART)
  1927. MSH.MeshType = "Wedge"
  1928. end
  1929. end
  1930.  
  1931. function CheckTableForString(Table, String)
  1932. for i, v in pairs(Table) do
  1933. if string.find(string.lower(String), string.lower(v)) then
  1934. return true
  1935. end
  1936. end
  1937. return false
  1938. end
  1939.  
  1940. function CheckIntangible(Hit)
  1941. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  1942. if Hit and Hit.Parent then
  1943. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  1944. return true
  1945. end
  1946. end
  1947. return false
  1948. end
  1949.  
  1950. Debris = game:GetService("Debris")
  1951.  
  1952. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  1953. local Direction = CFrame.new(StartPos, Vec).lookVector
  1954. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1955. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  1956. if RayHit and CheckIntangible(RayHit) then
  1957. if DelayIfHit then
  1958. wait()
  1959. end
  1960. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  1961. end
  1962. return RayHit, RayPos, RayNormal
  1963. end
  1964.  
  1965. function FireArc(Part,ToLocation,AmountOfTime,Height,DoesCourontine)
  1966. if DoesCourontine == false then
  1967. local Direction = CF(Part.Position,ToLocation)
  1968. local Distance = (Part.Position - ToLocation).magnitude
  1969. for i = 1, AmountOfTime do
  1970. Swait()
  1971. Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
  1972. Direction = Part.CFrame
  1973. end
  1974. Part:remove()
  1975. elseif DoesCourontine == true then
  1976. coroutine.resume(coroutine.create(function()
  1977. local Direction = CF(Part.Position,ToLocation)
  1978. local Distance = (Part.Position - ToLocation).magnitude
  1979. for i = 1, AmountOfTime do
  1980. Swait()
  1981. Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
  1982. Direction = Part.CFrame
  1983. end
  1984. Part:remove()
  1985. end))
  1986. end
  1987. end
  1988.  
  1989. function turnto(position)
  1990. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1991. end
  1992.  
  1993. function ApPlyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, INSTAKILL)
  1994. local CHILDREN = workspace:GetDescendants()
  1995. for index, CHILD in pairs(CHILDREN) do
  1996. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1997. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1998. if HUM then
  1999. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2000. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
  2001. if INSTAKILL == true then
  2002. CHILD:BreakJoints()
  2003. else
  2004. local DMG = MRANDOM(MINDMG, MAXDMG)
  2005. ApplyDamage(HUM, DMG, TORSO)
  2006. end
  2007. if FLING > 0 then
  2008. for _, c in pairs(CHILD:GetChildren()) do
  2009. if c:IsA("BasePart") then
  2010. local bv = Instance.new("BodyVelocity")
  2011. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  2012. bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING
  2013. bv.Parent = c
  2014. Debris:AddItem(bv, 0.05)
  2015. end
  2016. end
  2017. end
  2018. end
  2019. end
  2020. end
  2021. end
  2022. end
  2023.  
  2024. function killnearest(position,range,maxstrength)
  2025. for i,v in ipairs(workspace:GetChildren()) do
  2026. local body = v:GetChildren()
  2027. for part = 1, #body do
  2028. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  2029. if(body[part].Position - position).Magnitude < range then
  2030. if v.ClassName == "Model" then
  2031. v:BreakJoints()
  2032. end
  2033. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  2034. local bv = Instance.new("BodyVelocity")
  2035. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2036. bv.velocity = CF(position,body[part].Position).lookVector*maxstrength
  2037. bv.Parent = body[part]
  2038. Debris:AddItem(bv,0.2)
  2039. end
  2040. end
  2041. end
  2042. if v.ClassName == "Part" then
  2043. if v.Anchored == false and (v.Position - position).Magnitude < range then
  2044. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  2045. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  2046. end
  2047. end
  2048. end
  2049. end
  2050.  
  2051. function Supernova()
  2052. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 7 * Player_Size, Character)
  2053. if HITFLOOR ~= nil then
  2054. local HITBODIES = {}
  2055. ATTACK = true
  2056. Rooted = true
  2057. local ABSOLUTE = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "Star", VT(0,0,0))
  2058. MakeForm(ABSOLUTE,"Ball")
  2059. CreateSound("429459101", ABSOLUTE, 10, 1)
  2060. for i=0, 4, 0.1 / Animation_Speed do
  2061. Swait()
  2062. ABSOLUTE.Size = ABSOLUTE.Size + VT(0.2,0.2,0.2)
  2063. ABSOLUTE.CFrame = RootPart.CFrame*CF(0,5+(ABSOLUTE.Size.Y/2),0)
  2064. ABSOLUTE.Transparency = ABSOLUTE.Transparency - 0.01
  2065. local CHARGE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Star", VT(1,1,1))
  2066. MakeForm(CHARGE,"Ball")
  2067. CHARGE.Color = C3(0,0,0)
  2068. CHARGE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15,15),-6,MRANDOM(-15,15))
  2069. FireArc(CHARGE,ABSOLUTE.Position,45,45,true)
  2070. 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)
  2071. 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)
  2072. 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)
  2073. 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)
  2074. 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)
  2075. 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)
  2076. end
  2077. CreateSound("907332670", Head, 99, 1.1)
  2078. for i = 1, 75 do
  2079. Swait()
  2080. 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)
  2081. 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)
  2082. 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)
  2083. 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)
  2084. 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)
  2085. 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)
  2086. end
  2087. coroutine.resume(coroutine.create(function()
  2088. for i = 1, 13 do
  2089. for e = 1, 8 do
  2090. Swait()
  2091. MagicSphere(VT(1,1,1),15,CF(ABSOLUTE.Position)*CF(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)),C3(1,1,1),VT(0,0,0))
  2092. CreateSwirl(ABSOLUTE.Size/2,15,CF(HITPOS),true,15,BRICKC"Really white".Color,VT(i,0.3,i)*2)
  2093. end
  2094. for i = 1, 5 do
  2095. 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)
  2096. 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(0,0,0),VT(0,0,0))
  2097. end
  2098. CreateSwirl(ABSOLUTE.Size/2,25,CF(ABSOLUTE.Position),true,-25,BRICKC"Really white".Color,VT(i,i*2,i))
  2099. CreateSwirl(ABSOLUTE.Size/2,55,CF(ABSOLUTE.Position),true,25,C3(0,0,0),VT(i,i*2,i))
  2100. CreateSound("168586621", ABSOLUTE, 4, 0.8)
  2101. CreateSound("201858144", ABSOLUTE, 10, 0.8)
  2102. killnearest(ABSOLUTE.Position,i*18,i)
  2103. ABSOLUTE.Size = ABSOLUTE.Size*0.9
  2104. MagicSphere(ABSOLUTE.Size,25,CF(ABSOLUTE.Position),BRICKC"Really black".Color,VT(i,i,i)/1.1)
  2105. MagicSphere(ABSOLUTE.Size,45,CF(ABSOLUTE.Position),C3(1,1,1),VT(i,i,i))
  2106. end
  2107. ABSOLUTE.Transparency = 1
  2108. Debris:AddItem(ABSOLUTE,10)
  2109. end))
  2110. ATTACK = false
  2111. Rooted = false
  2112. end
  2113. end
  2114.  
  2115. local Decal = IT("Decal")
  2116.  
  2117.  
  2118. function Kill(Char)
  2119. local NewCharacter = IT("Model",Effects)
  2120. NewCharacter.Name = "Ow im ded ;-;"
  2121. for _, c in pairs(Char:GetDescendants()) do
  2122. if c:IsA("BasePart") and c.Transparency == 0 then
  2123. if c.Parent == Char then
  2124. getbloody(c,5)
  2125. end
  2126. c:BreakJoints()
  2127. c.Material = "Glass"
  2128. c.Color = C3(0.5,0,0)
  2129. c.CanCollide = true
  2130. c.Transparency = 0.3
  2131. if c:FindFirstChildOfClass("SpecialMesh") then
  2132. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  2133. end
  2134. if c.Name == "Head" then
  2135. c:ClearAllChildren()
  2136. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  2137. end
  2138. if c.ClassName == "MeshPart" then
  2139. c.TextureID = ""
  2140. end
  2141. if c:FindFirstChildOfClass("BodyPosition") then
  2142. c:FindFirstChildOfClass("BodyPosition"):remove()
  2143. end
  2144. if c:FindFirstChildOfClass("ParticleEmitter") then
  2145. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  2146. end
  2147. c.Parent = NewCharacter
  2148. c.Name = "DeadPart"
  2149. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  2150. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  2151. end
  2152. end
  2153. Char:remove()
  2154. Debris:AddItem(NewCharacter,5)
  2155. end
  2156.  
  2157. function ApplyAoE(POSITION,RANGE,BRUTAL)
  2158. local CHILDREN = workspace:GetDescendants()
  2159. for index, CHILD in pairs(CHILDREN) do
  2160. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2161. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2162. if HUM then
  2163. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2164. if TORSO then
  2165. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  2166. if BRUTAL == true then
  2167. Kill(CHILD)
  2168. else
  2169. CHILD:BreakJoints()
  2170. end
  2171. end
  2172. end
  2173. end
  2174. end
  2175. end
  2176. end
  2177.  
  2178.  
  2179. function Morning_Star()
  2180. ATTACK = true
  2181. Rooted = true
  2182. for i=0, 1, 0.1 / Animation_Speed do
  2183. Swait()
  2184. 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)
  2185. 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)
  2186. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2187. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2188. end
  2189. coroutine.resume(coroutine.create(function()
  2190. local POS = Mouse.Hit.p
  2191. local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really white", "Strike", VT(0,2000,0))
  2192. MakeForm(RAY,"Cyl")
  2193. local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really white", "Strike", VT(0,0,0))
  2194. MakeForm(SPHERE,"Ball")
  2195. local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really white", "Strike", VT(0,0,0))
  2196. MakeForm(SHIELD,"Ball")
  2197. SHIELD.CFrame = CF(POS)
  2198. RAY.CFrame = CF(POS)
  2199. SPHERE.CFrame = CF(POS)
  2200. CreateSound(440145570, SPHERE, 10, 0.8, false)
  2201. CreateSound(415700134, SPHERE, 10, 0.8, false)
  2202. for i = 1, 200 do
  2203. Swait()
  2204. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2205. RAY.Size = RAY.Size + VT(0.05,0,0.05)
  2206. SPHERE.Size = SPHERE.Size + VT(2,2,2)
  2207. SHIELD.Size = SPHERE.Size + VT(3,3,3)
  2208. ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
  2209. end
  2210. for i = 1, 45 do
  2211. Swait()
  2212. RAY.Transparency = RAY.Transparency + 1/45
  2213. SPHERE.Transparency = RAY.Transparency
  2214. SHIELD.Transparency = SPHERE.Transparency + 1/45
  2215. end
  2216. RAY:remove()
  2217. SHIELD:remove()
  2218. SPHERE:remove()
  2219. end))
  2220. for i=0, 1, 0.1 / Animation_Speed do
  2221. Swait()
  2222. 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)
  2223. 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)
  2224. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2225. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2226. end
  2227. ATTACK = false
  2228. Rooted = false
  2229. end
  2230.  
  2231.  
  2232.  
  2233. function Warden_Wall()
  2234. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 8, Character)
  2235. if HITFLOOR ~= nil then
  2236. if HITFLOOR.Anchored == true then
  2237. local WALL = HITFLOOR:Clone()
  2238. WALL.Size = VT(55,55,5)
  2239. WALL.Parent = Effects
  2240. WALL.Name = "Wall"
  2241. WALL.CFrame = RootPart.CFrame*CF(0,-65/2.1,-5)*ANGLES(RAD(-15),RAD(0),RAD(0))
  2242. CreateSound(130972023,WALL,5,0.8,false)
  2243. ATTACK = true
  2244. Rooted = true
  2245. local HIT = WALL.Touched:Connect(function(hit)
  2246. if hit.Parent ~= Character then
  2247. hit:BreakJoints()
  2248. end
  2249. end)
  2250. coroutine.resume(coroutine.create(function()
  2251. 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 white".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2252. for i = 1, 90 do
  2253. Swait()
  2254. WALL.CFrame = WALL.CFrame*CF(0,0.5,0)
  2255. end
  2256. HIT:disconnect()
  2257. wait(5)
  2258. for i = 1, 46 do
  2259. Swait()
  2260. WALL.CFrame = WALL.CFrame*CF(0,-1,0)
  2261. end
  2262. WALL:remove()
  2263. end))
  2264. Pose("RightArmUp",1.5,1.2,true)
  2265. ATTACK = false
  2266. Rooted = false
  2267. end
  2268. end
  2269. end
  2270.  
  2271. function Prison_Key()
  2272. if Mouse.Target ~= nil then
  2273. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2274. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  2275. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  2276. local GYRO = IT("BodyGyro",RootPart)
  2277. GYRO.D = 750
  2278. GYRO.P = 20000
  2279. GYRO.MaxTorque = VT(0,40000000,0)
  2280. local grav = Instance.new("BodyPosition",TORSO)
  2281. grav.D = 15
  2282. grav.P = 20000
  2283. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2284. grav.position = TORSO.Position
  2285. local GYRO2 = IT("BodyGyro",TORSO)
  2286. GYRO2.D = 750
  2287. GYRO2.P = 20000
  2288. GYRO2.MaxTorque = VT(0,40000000,0)
  2289. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2290. grav.Name = "Jail"
  2291. local LOCKPARTS = {}
  2292. ATTACK = true
  2293. Rooted = false
  2294. local LOCK = IT("Model",Effects)
  2295. LOCK.Name = "Lock"
  2296. local LOCK2 = IT("Model",LOCK)
  2297. LOCK2.Name = "Metal"
  2298. --CREATE LOCK--
  2299. local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
  2300. LOCK.PrimaryPart = BASE
  2301. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  2302. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
  2303. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  2304. MakeForm(PRT,"Cyl")
  2305. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
  2306. PRT.Color = C3(0,0,0)
  2307. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  2308. MakeForm(PRT,"Cyl")
  2309. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
  2310. PRT.Color = C3(0,0,0)
  2311. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  2312. for i = 1, 45 do
  2313. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  2314. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  2315. end
  2316. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  2317. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  2318. LOCK2.PrimaryPart = PRT
  2319. ---------------
  2320. local CHILDREN = LOCK:GetDescendants()
  2321. for index, CHILD in pairs(CHILDREN) do
  2322. if CHILD:IsA("BasePart") then
  2323. CHILD.Transparency = 1
  2324. end
  2325. end
  2326. for i = 1, 75 do
  2327. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  2328. Swait()
  2329. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2330. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  2331. local CHILDREN = LOCK:GetDescendants()
  2332. for index, CHILD in pairs(CHILDREN) do
  2333. if CHILD:IsA("BasePart") then
  2334. CHILD.Transparency = CHILD.Transparency - 1/75
  2335. end
  2336. end
  2337. end
  2338. HUM.DisplayDistanceType = "None"
  2339. local KEY = IT("Model",Effects)
  2340. KEY.Name = "Key"
  2341. --CREATE KEY--
  2342. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Really white", "KeyBase", VT(0.1, 1, 0.1),false)
  2343. KEY.PrimaryPart = KBASE
  2344. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  2345. local WLD = weldBetween(RightArm,KBASE)
  2346. for i = 1, 45 do
  2347. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really white", "Key", VT(0.1, 0.1, 0.1),false)
  2348. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  2349. weldBetween(KBASE,PRT)
  2350. end
  2351. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really white", "Key", VT(0.3, 0.1, 0.1),false)
  2352. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  2353. weldBetween(KBASE,PRT)
  2354. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really white", "Key", VT(0.3, 0.1, 0.1),false)
  2355. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  2356. weldBetween(KBASE,PRT)
  2357. --------------
  2358. Rooted = true
  2359. Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
  2360. coroutine.resume(coroutine.create(function()
  2361. for i = 1, 10 do
  2362. Swait()
  2363. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2364. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  2365. end
  2366. CreateSound(1149318312,BASE,5,1,false)
  2367. CreateSound(160772554,BASE,3,1,false)
  2368. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  2369. for i = 1, 4 do
  2370. 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 white".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2371. end
  2372. 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 white".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  2373. wait(1)
  2374. TORSO.Parent.Parent = LOCK
  2375. for i = 1, 75 do
  2376. Swait()
  2377. local CHILDREN = KEY:GetDescendants()
  2378. for index, CHILD in pairs(CHILDREN) do
  2379. if CHILD:IsA("BasePart") then
  2380. CHILD.Transparency = i/25
  2381. end
  2382. end
  2383. local CHILDREN = LOCK:GetDescendants()
  2384. for index, CHILD in pairs(CHILDREN) do
  2385. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  2386. CHILD.Transparency = CHILD.Transparency + 1/75
  2387. elseif CHILD.ClassName == "Decal" then
  2388. CHILD.Transparency = CHILD.Transparency + 1/75
  2389. end
  2390. end
  2391. end
  2392. TORSO.Parent:ClearAllChildren()
  2393. KEY:remove()
  2394. LOCK:remove()
  2395. end))
  2396. Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
  2397. GYRO:remove()
  2398. ATTACK = false
  2399. Rooted = false
  2400. end
  2401. end
  2402. end
  2403.  
  2404. function Hat()
  2405. ATTACK = true
  2406. Rooted = false
  2407. Pose("Taunt",0.4,1.2,false)
  2408. ATTACK = false
  2409. Rooted = false
  2410. end
  2411.  
  2412.  
  2413. Player = game:GetService("Players").LocalPlayer
  2414. PlayerGui = Player.PlayerGui
  2415. Cam = workspace.CurrentCamera
  2416. Backpack = Player.Backpack
  2417. Character = Player.Character
  2418. Humanoid = Character.Humanoid
  2419. Mouse = Player:GetMouse()
  2420. RootPart = Character["HumanoidRootPart"]
  2421. Torso = Character["Torso"]
  2422. Head = Character["Head"]
  2423. RightArm = Character["Right Arm"]
  2424. LeftArm = Character["Left Arm"]
  2425. RightLeg = Character["Right Leg"]
  2426. LeftLeg = Character["Left Leg"]
  2427. RootJoint = RootPart["RootJoint"]
  2428. Neck = Torso["Neck"]
  2429. RightShoulder = Torso["Right Shoulder"]
  2430. LeftShoulder = Torso["Left Shoulder"]
  2431. RightHip = Torso["Right Hip"]
  2432. LeftHip = Torso["Left Hip"]
  2433.  
  2434. IT = Instance.new
  2435. CF = CFrame.new
  2436. VT = Vector3.new
  2437. RAD = math.rad
  2438. C3 = Color3.new
  2439. UD2 = UDim2.new
  2440. BRICKC = BrickColor.new
  2441. ANGLES = CFrame.Angles
  2442. EULER = CFrame.fromEulerAnglesXYZ
  2443. COS = math.cos
  2444. ACOS = math.acos
  2445. SIN = math.sin
  2446. ASIN = math.asin
  2447. ABS = math.abs
  2448. MRANDOM = math.random
  2449. FLOOR = math.floor
  2450.  
  2451.  
  2452. --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})
  2453. function WACKYEFFECT(Table)
  2454. local TYPE = (Table.EffectType or "Sphere")
  2455. local SIZE = (Table.Size or VT(1,1,1))
  2456. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  2457. local TRANSPARENCY = (Table.Transparency or 0)
  2458. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  2459. local CFRAME = (Table.CFrame or Torso.CFrame)
  2460. local MOVEDIRECTION = (Table.MoveToPos or nil)
  2461. local ROTATION1 = (Table.RotationX or 0)
  2462. local ROTATION2 = (Table.RotationY or 0)
  2463. local ROTATION3 = (Table.RotationZ or 0)
  2464. local MATERIAL = (Table.Material or "Neon")
  2465. local COLOR = (Table.Color or C3(1,1,1))
  2466. local TIME = (Table.Time or 45)
  2467. local SOUNDID = (Table.SoundID or nil)
  2468. local SOUNDPITCH = (Table.SoundPitch or nil)
  2469. local SOUNDVOLUME = (Table.SoundVolume or nil)
  2470. coroutine.resume(coroutine.create(function()
  2471. local PLAYSSOUND = false
  2472. local SOUND = nil
  2473. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  2474. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  2475. PLAYSSOUND = true
  2476. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  2477. end
  2478. EFFECT.Color = COLOR
  2479. local MSH = nil
  2480. if TYPE == "Sphere" then
  2481. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  2482. elseif TYPE == "Block" then
  2483. MSH = IT("BlockMesh",EFFECT)
  2484. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  2485. elseif TYPE == "Wave" then
  2486. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  2487. elseif TYPE == "Ring" then
  2488. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  2489. elseif TYPE == "Slash" then
  2490. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  2491. elseif TYPE == "Round Slash" then
  2492. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  2493. elseif TYPE == "Swirl" then
  2494. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  2495. elseif TYPE == "Skull" then
  2496. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  2497. elseif TYPE == "Crystal" then
  2498. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  2499. end
  2500. if MSH ~= nil then
  2501. local MOVESPEED = nil
  2502. if MOVEDIRECTION ~= nil then
  2503. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  2504. end
  2505. local GROWTH = SIZE - ENDSIZE
  2506. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  2507. if TYPE == "Block" then
  2508. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  2509. else
  2510. EFFECT.CFrame = CFRAME
  2511. end
  2512. for LOOP = 1, TIME+1 do
  2513. Swait()
  2514. MSH.Scale = MSH.Scale - GROWTH/TIME
  2515. if TYPE == "Wave" then
  2516. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  2517. end
  2518. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  2519. if TYPE == "Block" then
  2520. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  2521. else
  2522. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  2523. end
  2524. if MOVEDIRECTION ~= nil then
  2525. local ORI = EFFECT.Orientation
  2526. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  2527. EFFECT.Orientation = ORI
  2528. end
  2529. end
  2530. if PLAYSSOUND == false then
  2531. EFFECT:remove()
  2532. else
  2533. repeat Swait() until SOUND.Playing == false
  2534. EFFECT:remove()
  2535. end
  2536. else
  2537. if PLAYSSOUND == false then
  2538. EFFECT:remove()
  2539. else
  2540. repeat Swait() until SOUND.Playing == false
  2541. EFFECT:remove()
  2542. end
  2543. end
  2544. end))
  2545. end
  2546.  
  2547.  
  2548. function Smack()
  2549. ATTACK = true
  2550. Rooted = true
  2551. for i=0, 0.2, 0.1 / Animation_Speed do
  2552. Swait()
  2553. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 + 0.25 * SIN(SINE / 12), 0, 0 + 0.25 * COS(SINE / 24)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  2554. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25+(i/15) - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2555. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.15 - 0.03 * SIN(SINE / 12), 0) * ANGLES(RAD(135), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2556. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.03 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2557. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.1, -0.7) * ANGLES(RAD(15), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2558. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2559. end
  2560. for i= 1, 90 do
  2561. Swait()
  2562. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 + 0.25 * SIN(SINE / 12), 0, 0 + 0.25 * COS(SINE / 24)) * ANGLES(RAD(-25-(i/15)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2563. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25+(i/15) - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2564. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.15 - 0.03 * SIN(SINE / 12), 0) * ANGLES(RAD(135+(i/15)), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2565. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.03 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2566. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.1, -0.7) * ANGLES(RAD(15), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2567. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2568. end
  2569. CreateSound(165970126,RightArm,7,MRANDOM(8,13)/10,false)
  2570. for i=0, 0.10, 0.1 / Animation_Speed do
  2571. Swait()
  2572. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 + 0.25 * SIN(SINE / 12), 0, 0 + 0.25 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed)
  2573. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  2574. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.15 - 0.03 * SIN(SINE / 12), -0.25) * ANGLES(RAD(25), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  2575. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.03 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2576. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.1, -0.7) * ANGLES(RAD(15), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2577. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2578. end
  2579. for i = 1, 3 do
  2580. ApplyAoE(RightArm.Position,40*i,15,15,15,false)
  2581. end
  2582. for i = 1, 4 do
  2583. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,1,1), Size2 = VT(36*i,15-(3*i),36*i), Transparency = 0, Transparency2 = 1, CFrame = CF(RightArm.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Fabric", Color = BRICKC"Really white".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2584. end
  2585. for i = 1, 3 do
  2586. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(17,17,17)*i, Transparency = 0.5, Transparency2 = 1, CFrame = CF(RightArm.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"White".Color, SoundID = 438666542, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 1})
  2587. end
  2588. for i=0, 0.35, 0.1 / Animation_Speed do
  2589. Swait()
  2590. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 + 0.25 * SIN(SINE / 12), 0, 0 + 0.25 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed)
  2591. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  2592. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.15 - 0.03 * SIN(SINE / 12), -0.25) * ANGLES(RAD(25), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  2593. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.03 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2594. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.1, -0.7) * ANGLES(RAD(15), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2595. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2596. end
  2597. ATTACK = false
  2598. Rooted = false
  2599. end
  2600.  
  2601. function EMOTE()
  2602. ATTACK = true
  2603. Rooted = false
  2604. local LOOP = 0
  2605. for i=0, 0.1, 0.1 / Animation_Speed do
  2606. Swait()
  2607. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2608. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1) - 1)) * ANGLES(RAD(0 - 5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2609. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5, -1) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2610. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(5-3 * COS(SINE / 6)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2611. end
  2612. for i=0, 3, 0.1 / Animation_Speed do
  2613. Swait()
  2614. LOOP = LOOP + 1
  2615. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2616. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1) - 1)) * ANGLES(RAD(0 - 5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2617. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5, -1) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2618. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.8, 0.4) * ANGLES(RAD(170), RAD(0), RAD(-25 - 25 * SIN(LOOP / 5))) * ANGLES(RAD(0), RAD(-45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2619. end
  2620. for i=0, 0.1, 0.1 / Animation_Speed do
  2621. Swait()
  2622. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2623. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1) - 1)) * ANGLES(RAD(0 - 5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2624. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5, -1) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2625. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(5-3 * COS(SINE / 6)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2626. end
  2627. ATTACK = false
  2628. Rooted = false
  2629. end
  2630.  
  2631. function Taunt2()
  2632. ATTACK = true
  2633. Rooted = true
  2634. local TAUNT = CreateSound(907333294, Torso, 7, 1, false)
  2635. repeat
  2636. Swait()
  2637. TAUNT.Parent = Torso
  2638. TAUNT.Playing = true
  2639. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2640. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(-0.02, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed)
  2641. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5, -1) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2642. 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)
  2643. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2644. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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)
  2645. until TAUNT.TimePosition >= 1.25
  2646. for i=0, 1.6, 0.1 / Animation_Speed do
  2647. Swait()
  2648. TAUNT.Parent = Torso
  2649. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2650. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(-0.02, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed)
  2651. 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)
  2652. 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)
  2653. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2654. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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)
  2655. end
  2656. ATTACK = false
  2657. Rooted = false
  2658. end
  2659.  
  2660. function Kill(Victim,Fire)
  2661. coroutine.resume(coroutine.create(function()
  2662. local NIL = script.TotalNil:Clone()
  2663. NIL.Parent = Victim
  2664. NIL.Disabled = false
  2665. if Fire ~= true then
  2666. Victim:BreakJoints()
  2667. for _, c in pairs(Victim:GetChildren()) do
  2668. if c:IsA("BasePart") then
  2669. c.Anchored = true
  2670. end
  2671. end
  2672. for _, c in pairs(Victim:GetChildren()) do
  2673. if c:IsA("BasePart") then
  2674. Shatter(c)
  2675. end
  2676. end
  2677. else
  2678. Victim:BreakJoints()
  2679. local FIRES = {}
  2680. for _, e in pairs(Victim:GetDescendants()) do
  2681. if e:IsA("BasePart") and e.Name ~= "HumanoidRootPart" and e.Parent.ClassName ~= "Folder" then
  2682. e.Transparency = 1
  2683. e:ClearAllChildren()
  2684. local FIRE = script.HellFire:Clone()
  2685. FIRE.Parent = e
  2686. FIRE.Enabled = true
  2687. table.insert(FIRES,FIRE)
  2688. elseif e.ClassName == "Decal" then
  2689. e:remove()
  2690. end
  2691. end
  2692. for i = 1, 50 do
  2693. Victim:BreakJoints()
  2694. wait()
  2695. end
  2696. for i = 1, #FIRES do
  2697. FIRES[i].Enabled = false
  2698. end
  2699. wait(1.1)
  2700. Victim:remove()
  2701. end
  2702. end))
  2703. end
  2704.  
  2705.  
  2706. function PainlessRain()
  2707. ATTACK = true
  2708. Rooted = true
  2709. local SPOTS = {}
  2710. local BULLETS = 0
  2711. repeat
  2712. BULLETS = BULLETS + 1
  2713. for i = 1, 15 do
  2714. Swait()
  2715. 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(25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2716. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 0.1 / Animation_Speed)
  2717. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed)
  2718. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2719. end
  2720. WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(15,15,15), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.6, CFrame = RightBarrel.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really white".Color, SoundID = nil, SoundPitch = 1, SoundVolume = 7})
  2721. until KEYHOLD == false
  2722. for i = 1, BULLETS do
  2723. for i=0, 0.5, 0.1 / Animation_Speed do
  2724. Swait()
  2725. 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(65 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2726. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-65 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2727. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2728. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2729. end
  2730. local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 150, Character)
  2731. table.insert(SPOTS,HITPOS)
  2732. CreateSound(145080998, RightBarrel, 2, 1, false)
  2733. Lightning({Material = "Neon", FadeIn = false, Color = C3(1,1,1), Start = RightBarrel.CFrame*CF(0, 1, 0.045).p, End = RightBarrel.CFrame*CF(0, 1000, 0.045).p, SegmentL = 1, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 400, Branches = false, FadeTime = 22, Thicken = false})
  2734. for i=0, 0.35, 0.1 / Animation_Speed do
  2735. Swait()
  2736. 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(65 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2737. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-65 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2738. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2739. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2740. end
  2741. end
  2742. coroutine.resume(coroutine.create(function()
  2743. for i = 1, #SPOTS do
  2744. wait(0.1)
  2745. coroutine.resume(coroutine.create(function()
  2746. local SPOT = SPOTS[i]
  2747. local BOLT = Lightning({Material = "Neon", FadeIn = true, Color = C3(1,1,1), Start = SPOT+VT(0,150,0), End = SPOT, SegmentL = 1, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 400, Branches = false, FadeTime = 125, Thicken = true})
  2748. local POSITION = BOLT.Pos
  2749. ApplYAoE(POSITION,75/2,0,0,350,true)
  2750. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(50,150,50), Transparency = 0.3, Transparency2 = 1, CFrame = CF(POSITION), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = 1, SoundVolume = 3})
  2751. WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(15,0,15), Size2 = VT(75,5,75), Transparency = 0, Transparency2 = 1, CFrame = CF(POSITION), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really white".Color, SoundID = 165970126, SoundPitch = 1, SoundVolume = 4})
  2752. WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(15,0,15), Size2 = VT(35,15,35), Transparency = 0, Transparency2 = 1, CFrame = CF(POSITION), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really white".Color, SoundID = nil, SoundPitch = 1, SoundVolume = 7})
  2753. end))
  2754. end
  2755. end))
  2756. ATTACK = false
  2757. Rooted = false
  2758. end
  2759.  
  2760. Player = game:GetService("Players").LocalPlayer
  2761. PlayerGui = Player.PlayerGui
  2762. Cam = workspace.CurrentCamera
  2763. Backpack = Player.Backpack
  2764. Character = Player.Character
  2765. Humanoid = Character.Humanoid
  2766. Mouse = Player:GetMouse()
  2767. RootPart = Character["HumanoidRootPart"]
  2768. Torso = Character["Torso"]
  2769. Head = Character["Head"]
  2770. RightArm = Character["Right Arm"]
  2771. LeftArm = Character["Left Arm"]
  2772. RightLeg = Character["Right Leg"]
  2773. LeftLeg = Character["Left Leg"]
  2774. RootJoint = RootPart["RootJoint"]
  2775. Neck = Torso["Neck"]
  2776. RightShoulder = Torso["Right Shoulder"]
  2777. LeftShoulder = Torso["Left Shoulder"]
  2778. RightHip = Torso["Right Hip"]
  2779. LeftHip = Torso["Left Hip"]
  2780.  
  2781. IT = Instance.new
  2782. CF = CFrame.new
  2783. VT = Vector3.new
  2784. RAD = math.rad
  2785. C3 = Color3.new
  2786. UD2 = UDim2.new
  2787. BRICKC = BrickColor.new
  2788. ANGLES = CFrame.Angles
  2789. EULER = CFrame.fromEulerAnglesXYZ
  2790. COS = math.cos
  2791. ACOS = math.acos
  2792. SIN = math.sin
  2793. ASIN = math.asin
  2794. ABS = math.abs
  2795. MRANDOM = math.random
  2796. FLOOR = math.floor
  2797. local TOBANISH = {}
  2798. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  2799. WEAPONGUI.Name = "BanishV3Gui"
  2800. local Weapon = IT("Model")
  2801. Weapon.Name = "Adds"
  2802. local Effects = IT("Folder", Weapon)
  2803. Effects.Name = "Effects"
  2804.  
  2805. --WACKYEFFECTt({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})
  2806. function WackyEffect(Table)
  2807. local TYPE = (Table.EffectType or "Sphere")
  2808. local SIZE = (Table.Size or VT(1,1,1))
  2809. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  2810. local TRANSPARENCY = (Table.Transparency or 0)
  2811. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  2812. local CFRAME = (Table.CFrame or Torso.CFrame)
  2813. local MOVEDIRECTION = (Table.MoveToPos or nil)
  2814. local ROTATION1 = (Table.RotationX or 0)
  2815. local ROTATION2 = (Table.RotationY or 0)
  2816. local ROTATION3 = (Table.RotationZ or 0)
  2817. local MATERIAL = (Table.Material or "Neon")
  2818. local COLOR = (Table.Color or C3(1,1,1))
  2819. local TIME = (Table.Time or 45)
  2820. local SOUNDID = (Table.SoundID or nil)
  2821. local SOUNDPITCH = (Table.SoundPitch or nil)
  2822. local SOUNDVOLUME = (Table.SoundVolume or nil)
  2823. coroutine.resume(coroutine.create(function()
  2824. local PLAYSSOUND = false
  2825. local SOUND = nil
  2826. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  2827. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  2828. PLAYSSOUND = true
  2829. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  2830. end
  2831. EFFECT.Color = COLOR
  2832. local MSH = nil
  2833. if TYPE == "Sphere" then
  2834. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  2835. elseif TYPE == "Block" then
  2836. MSH = IT("BlockMesh",EFFECT)
  2837. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  2838. elseif TYPE == "Wave" then
  2839. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  2840. elseif TYPE == "Ring" then
  2841. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  2842. elseif TYPE == "Slash" then
  2843. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  2844. elseif TYPE == "Round Slash" then
  2845. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  2846. elseif TYPE == "Swirl" then
  2847. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  2848. elseif TYPE == "Skull" then
  2849. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  2850. elseif TYPE == "Crystal" then
  2851. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  2852. end
  2853. if MSH ~= nil then
  2854. local MOVESPEED = nil
  2855. if MOVEDIRECTION ~= nil then
  2856. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  2857. end
  2858. local GROWTH = SIZE - ENDSIZE
  2859. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  2860. if TYPE == "Block" then
  2861. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  2862. else
  2863. EFFECT.CFrame = CFRAME
  2864. end
  2865. for LOOP = 1, TIME+1 do
  2866. Swait()
  2867. MSH.Scale = MSH.Scale - GROWTH/TIME
  2868. if TYPE == "Wave" then
  2869. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  2870. end
  2871. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  2872. if TYPE == "Block" then
  2873. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  2874. else
  2875. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  2876. end
  2877. if MOVEDIRECTION ~= nil then
  2878. local ORI = EFFECT.Orientation
  2879. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  2880. EFFECT.Orientation = ORI
  2881. end
  2882. end
  2883. if PLAYSSOUND == false then
  2884. EFFECT:remove()
  2885. else
  2886. SOUND.Stopped:Connect(function()
  2887. EFFECT:remove()
  2888. end)
  2889. end
  2890. else
  2891. if PLAYSSOUND == false then
  2892. EFFECT:remove()
  2893. else
  2894. repeat Swait() until SOUND.Playing == false
  2895. EFFECT:remove()
  2896. end
  2897. end
  2898. end))
  2899. end
  2900.  
  2901. Debris = game:GetService("Debris")
  2902.  
  2903. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  2904. local DIRECTION = CF(StartPos,EndPos).lookVector
  2905. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  2906. end
  2907.  
  2908. function turnto(position)
  2909. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  2910. end
  2911.  
  2912. function MakeForm(PART,TYPE)
  2913. if TYPE == "Cyl" then
  2914. local MSH = IT("CylinderMesh",PART)
  2915. elseif TYPE == "Ball" then
  2916. local MSH = IT("SpecialMesh",PART)
  2917. MSH.MeshType = "Sphere"
  2918. elseif TYPE == "Wedge" then
  2919. local MSH = IT("SpecialMesh",PART)
  2920. MSH.MeshType = "Wedge"
  2921. end
  2922. end
  2923.  
  2924.  
  2925. function printbye(Name)
  2926. local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
  2927. chatfunc(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  2928. end
  2929.  
  2930. workspace.ChildAdded:connect(function(instance)
  2931. for BANISH = 1, #TOBANISH do
  2932. if TOBANISH[BANISH] ~= nil then
  2933. if instance.Name == TOBANISH[BANISH] then
  2934. coroutine.resume(coroutine.create(function()
  2935. printbye(instance.Name)
  2936. instance:ClearAllChildren()
  2937. Debris:AddItem(instance,0.0005)
  2938. end))
  2939. end
  2940. end
  2941. end
  2942. end)
  2943. function Banish(Foe)
  2944. if Foe then
  2945. coroutine.resume(coroutine.create(function()
  2946. --if game.Players:FindFirstChild(Foe.Name) then
  2947. table.insert(TOBANISH,Foe.Name)
  2948. printbye(Foe.Name)
  2949. --end
  2950. Foe.Archivable = true
  2951. local CLONE = Foe:Clone()
  2952. Foe:Destroy()
  2953. CLONE.Parent = Effects
  2954. CLONE:BreakJoints()
  2955. local MATERIALS = {"Glass","Neon"}
  2956. for _, c in pairs(CLONE:GetDescendants()) do
  2957. if c:IsA("BasePart") then
  2958. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  2959. CreateSound(340722848, c, 10, 1, false)
  2960. end
  2961. c.Anchored = true
  2962. c.Transparency = c.Transparency + 0.2
  2963. c.Material = MATERIALS[MRANDOM(1,2)]
  2964. c.Color = C3(1,0,0)
  2965. if c.ClassName == "MeshPart" then
  2966. c.TextureID = ""
  2967. end
  2968. if c:FindFirstChildOfClass("SpecialMesh") then
  2969. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  2970. end
  2971. if c:FindFirstChildOfClass("Decal") then
  2972. c:FindFirstChildOfClass("Decal"):remove()
  2973. end
  2974. c.Name = "Banished"
  2975. c.CanCollide = false
  2976. else
  2977. c:remove()
  2978. end
  2979. end
  2980. local A = false
  2981. for i = 1, 35 do
  2982. if A == false then
  2983. A = true
  2984. elseif A == true then
  2985. A = false
  2986. end
  2987. for _, c in pairs(CLONE:GetDescendants()) do
  2988. if c:IsA("BasePart") then
  2989. c.Anchored = true
  2990. c.Material = MATERIALS[MRANDOM(1,2)]
  2991. c.Transparency = c.Transparency + 0.8/35
  2992. if A == false then
  2993. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  2994. elseif A == true then
  2995. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  2996. end
  2997. end
  2998. end
  2999. Swait()
  3000. end
  3001. CLONE:remove()
  3002. end))
  3003. end
  3004. end
  3005.  
  3006. function ApplyAoE(POSITION,RANGE,ISBANISH)
  3007. local CHILDREN = workspace:GetDescendants()
  3008. for index, CHILD in pairs(CHILDREN) do
  3009. if CHILD.ClassName == "Model" and CHILD ~= Character then
  3010. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  3011. if HUM then
  3012. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  3013. if TORSO then
  3014. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  3015. if ISBANISH == true then
  3016. Banish(CHILD)
  3017. else
  3018. if ISBANISH == "Gravity" then
  3019. HUM.PlatformStand = true
  3020. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  3021. local grav = Instance.new("BodyPosition",TORSO)
  3022. grav.D = 15
  3023. grav.P = 20000
  3024. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  3025. grav.position = TORSO.Position
  3026. grav.Name = "V3BanishForce"..Player.Name
  3027. else
  3028. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  3029. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  3030. end
  3031. else
  3032. HUM.PlatformStand = false
  3033. end
  3034. end
  3035. elseif ISBANISH == "Gravity" then
  3036. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  3037. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  3038. HUM.PlatformStand = false
  3039. end
  3040. end
  3041. end
  3042. end
  3043. end
  3044. end
  3045. end
  3046.  
  3047. function Bullet()
  3048. ATTACK = true
  3049. Rooted = false
  3050. for i=0, 0.4, 0.1 / Animation_Speed do
  3051. Swait()
  3052. turnto(Mouse.Hit.p)
  3053. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3054. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1) - 1)) * ANGLES(RAD(0 - 5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3055. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  3056. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3057. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3058. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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)
  3059. end
  3060. repeat
  3061. for i=0, 0.2, 0.1 / Animation_Speed do
  3062. Swait()
  3063. turnto(Mouse.Hit.p)
  3064. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3065. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1) - 1)) * ANGLES(RAD(0 - 5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3066. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  3067. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3068. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3069. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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)
  3070. end
  3071. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  3072. SpawnTrail(Hole.Position,POS)
  3073. if HIT ~= nil then
  3074. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  3075. Banish(HIT.Parent)
  3076. end
  3077. end
  3078. CreateSound(145080998, RightBarrel, 2, 1, false)
  3079. WackyEffect({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3080. WackyEffect({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  3081. WackyEffect({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  3082. WackyEffect({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  3083. for i=0, 0.3, 0.1 / Animation_Speed do
  3084. Swait()
  3085. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3086. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1) - 1)) * ANGLES(RAD(0 - 5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3087. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  3088. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3089. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3090. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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)
  3091. end
  3092. until KEYHOLD == false
  3093. ATTACK = false
  3094. Rooted = false
  3095. end
  3096.  
  3097. --//=================================\\
  3098. --|| ASSIGN THINGS TO KEYS
  3099. --\\=================================//
  3100.  
  3101. function MouseDown(Mouse)
  3102. HOLD = true
  3103. if ATTACK == false then
  3104. Bullet()
  3105. end
  3106. end
  3107.  
  3108. function MouseUp(Mouse)
  3109. HOLD = false
  3110. end
  3111.  
  3112. function KeyDown(Key)
  3113. KEYHOLD = true
  3114. if Key == "z" and ATTACK == false then
  3115. Warden_Zap()
  3116. end
  3117.  
  3118. if Key == "e" and ATTACK == false then
  3119. TimeStop()
  3120. end
  3121.  
  3122. if Key == "b" and ATTACK == false then
  3123. Warden_Thunder()
  3124. end
  3125.  
  3126. if Key == "c" and ATTACK == false then
  3127. Inferno_Ring()
  3128. end
  3129.  
  3130. if Key == "v" and ATTACK == false then
  3131. Warden_Wall()
  3132. end
  3133.  
  3134. if Key == "n" and ATTACK == false then
  3135. Supernova()
  3136. end
  3137.  
  3138. if Key == "g" and ATTACK == false then
  3139. chatfunc(UnBanishTaunts[MRANDOM(1,#UnBanishTaunts)])
  3140. TOBANISH = {}
  3141. end
  3142.  
  3143. if Key == "q" and ATTACK == false then
  3144. Smack()
  3145. end
  3146.  
  3147. if Key == "x" and ATTACK == false then
  3148. Prison_Key()
  3149. end
  3150.  
  3151. if Key == "f" and ATTACK == false then
  3152. Morning_Star()
  3153. end
  3154.  
  3155. if Key == "y" and ATTACK == false then
  3156. EMOTE()
  3157. end
  3158.  
  3159. if Key == "r" and ATTACK == false then
  3160. PainlessRain()
  3161. end
  3162.  
  3163. if Key == "p" and ATTACK == false then
  3164. Taunt2()
  3165. end
  3166.  
  3167. if Key == "t" and ATTACK == false then
  3168. Hat()
  3169. end
  3170. end
  3171.  
  3172. function KeyUp(Key)
  3173. KEYHOLD = false
  3174. end
  3175.  
  3176. Mouse.Button1Down:connect(function(NEWKEY)
  3177. MouseDown(NEWKEY)
  3178. end)
  3179. Mouse.Button1Up:connect(function(NEWKEY)
  3180. MouseUp(NEWKEY)
  3181. end)
  3182. Mouse.KeyDown:connect(function(NEWKEY)
  3183. KeyDown(NEWKEY)
  3184. end)
  3185. Mouse.KeyUp:connect(function(NEWKEY)
  3186. KeyUp(NEWKEY)
  3187. end)
  3188.  
  3189. --//=================================\\
  3190. --\\=================================//
  3191.  
  3192.  
  3193. function unanchor()
  3194. if UNANCHOR == true then
  3195. g = Character:GetChildren()
  3196. for i = 1, #g do
  3197. if g[i].ClassName == "Part" then
  3198. g[i].Anchored = false
  3199. end
  3200. end
  3201. end
  3202. end
  3203.  
  3204.  
  3205. --//=================================\\
  3206. --|| WRAP THE WHOLE SCRIPT UP
  3207. --\\=================================//
  3208.  
  3209. Humanoid.Changed:connect(function(Jump)
  3210. if Jump == "Jump" and (Disable_Jump == true) then
  3211. Humanoid.Jump = false
  3212. end
  3213. end)
  3214.  
  3215. while true do
  3216. Swait()
  3217. script.Parent = WEAPONGUI
  3218. Humanoid.Parent = Character
  3219. if Humanoid then
  3220. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  3221. IDLEANIMATION:Play()
  3222. end
  3223. if ANIMATE.Parent == Character then
  3224. ANIMATE:Destroy()
  3225. end
  3226. RightArmGrasp.C0 = Clerp(RightArmGrasp.C0, CF(0, -0.815+0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(90-4.5 * SIN(SINE / 12)), RAD(-1.5 * SIN(SINE / 12)), RAD(0)), 1 / Animation_Speed)
  3227. SINE = SINE + CHANGE
  3228. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  3229. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  3230. Humanoid.HipHeight = 1
  3231. Humanoid.Name = "Warden"
  3232. Humanoid.PlatformStand = false
  3233. if PLAYMAINANIM == true then
  3234. if TORSOVELOCITY < 1 then
  3235. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3236. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1) - 1)) * ANGLES(RAD(0 - 5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3237. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5, -1) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  3238. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3239. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3240. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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)
  3241. elseif TORSOVELOCITY > 1 then
  3242. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3243. 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)
  3244. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5, -1) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  3245. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3246. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3247. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 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)
  3248. end
  3249. end
  3250. unanchor()
  3251. Humanoid.MaxHealth = "inf"
  3252. Humanoid.Health = "inf"
  3253. if Rooted == false then
  3254. Disable_Jump = false
  3255. Humanoid.WalkSpeed = Speed
  3256. elseif Rooted == true then
  3257. Disable_Jump = true
  3258. Humanoid.WalkSpeed = 0
  3259. end
  3260. for _, c in pairs(Character:GetChildren()) do
  3261. if c.ClassName == "Part" and c.Name ~= "Eye" then
  3262. c.Material = "Neon"
  3263. if c:FindFirstChildOfClass("ParticleEmitter") then
  3264. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  3265. end
  3266. c.Color = C3(1,1,1)
  3267. if c == Head then
  3268. if c:FindFirstChild("face") then
  3269. c.face:remove()
  3270. end
  3271. end
  3272. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" then
  3273. c:remove()
  3274. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  3275. c:remove()
  3276. end
  3277. end
  3278. sick.SoundId = "rbxassetid://1996312061"
  3279. sick.Looped = true
  3280. sick.Pitch = 1
  3281. sick.Volume = 2.5
  3282. sick:Resume()
  3283. sick.Parent = Torso
  3284. refit()
  3285. if Head:FindFirstChildOfClass("Sound") then
  3286. Head:FindFirstChildOfClass("Sound"):remove()
  3287. end
  3288. end
  3289.  
  3290. --//=================================\\
  3291. --\\=================================//
  3292.  
  3293.  
  3294.  
  3295.  
  3296.  
  3297. --//====================================================\\--
  3298. --|| END OF SCRIPT
  3299. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement