Advertisement
Xector666X

Untitled

Jan 16th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 92.43 KB | None | 0 0
  1. -----------//KRYSTAL DANCE V2\\-----------
  2. --[[Movelist
  3. Q = The Swoosher
  4. E = The nutty
  5. R = Spin me right round!
  6. T = Plum juice dance
  7. Y = Moonwalk
  8. U = Slav dance
  9. P = Barrel roll
  10. F = The Jerky
  11. G = The Shuffle
  12. H = The Spongebob
  13. J = Here comes the money!
  14. K = Runnin' in the 90's
  15. ---------]]
  16.  
  17. --Alright so before i start rambling on about absolute nonsense, please subscribe to Pewdiepie on youtube! Help him defeat T-Series!--
  18. --Also subscribe to Vengefulprogram--
  19. --Krystal dance! The old famous script that sadly has been broken(sorta), i've decided to rework this thing because... nostalgia.--
  20. --This is one of the first scripts i've ever ran on SB, seeing this back again really reminds me of how much of a noob i was.--
  21. --Credits to Krystalteam, they made the original krystal dance! Be sure to respect them or else...--
  22. --#makeoldscriptsgreatagain--
  23.  
  24. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  25. do
  26. script.Parent = owner.Character
  27. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  28. local function NewFakeEvent()
  29. local Bind = Instance.new("BindableEvent")
  30. local Fake;Fake = {Connections = {},
  31. fakeEvent=true;
  32. Connect=function(self,Func)
  33. Bind.Event:connect(Func)
  34. self.Connections[Bind] = true
  35. return setmetatable({Connected = true},{
  36. __index = function (self,Index)
  37. if Index:lower() == "disconnect" then
  38. return function() Fake.Connections[Bind] = false;self.Connected = false end
  39. end
  40. return Fake[Index]
  41. end;
  42. __tostring = function() return "Connection" end;
  43. })
  44. end}
  45. Fake.connect = Fake.Connect;return Fake;
  46. end
  47. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  48. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  49. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  50. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  51. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  52. local function TriggerEvent(self,Event,...)
  53. local Trigger = Mouse[Event]
  54. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  55. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  56. end
  57. end
  58. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  59. Event.OnServerEvent:Connect(function(FiredBy,Input)
  60. if FiredBy.Name ~= owner.Name then return end
  61. if Input.MouseEvent then
  62. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  63. else
  64. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  65. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  66. for _,Action in pairs(ContextActionService.Actions) do
  67. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  68. end
  69. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  70. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  71. end
  72. end)
  73. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  74. Event.Parent = NLS([[
  75. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  76. local Input = function(Input,gameProcessedEvent)
  77. if gameProcessedEvent then return end
  78. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  79. end
  80. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  81. local Hit,Target
  82. while wait(1/30) do
  83. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  84. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  85. end
  86. end
  87. ]],owner.Character)
  88. end
  89. RealGame = game;game = setmetatable({},{
  90. __index = function (self,Index)
  91. local Sandbox = function (Thing)
  92. if Thing:IsA("Player") then
  93. local RealPlayer = Thing
  94. return setmetatable({},{
  95. __index = function (self,Index)
  96. local Type = type(RealPlayer[Index])
  97. if Type == "function" then
  98. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  99. return function (self)return InternalData["Mouse"] end
  100. end
  101. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  102. end
  103. return RealPlayer[Index]
  104. end;
  105. __tostring = function(self) return RealPlayer.Name end
  106. })
  107. end
  108. end
  109. if RealGame[Index] then
  110. local Type = type(RealGame[Index])
  111. if Type == "function" then
  112. if Index:lower() == "getservice" or Index:lower() == "service" then
  113. return function (self,Service)
  114. local FakeServices = {
  115. ["players"] = function()
  116. return setmetatable({},{
  117. __index = function (self2,Index2)
  118. local RealService = RealGame:GetService(Service)
  119. local Type2 = type(Index2)
  120. if Type2 == "function" then
  121. return function (self,...) return RealService[Index2](RealService,...)end
  122. else
  123. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  124. return RealService[Index2]
  125. end
  126. end;
  127. __tostring = function(self) return RealGame:GetService(Service).Name end
  128. })
  129. end;
  130. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  131. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  132. ["runservice"] = function()
  133. return setmetatable({},{
  134. __index = function(self2,Index2)
  135. local RealService = RealGame:GetService(Service)
  136. local Type2 = type(Index2)
  137. if Type2 == "function" then
  138. return function (self,...) return RealService[Index2](RealService,...) end
  139. else
  140. local RunServices = {
  141. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  142. ["renderstepped"] = function() return RealService["Stepped"] end
  143. }
  144. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  145. return RealService[Index2]
  146. end
  147. end
  148. })
  149. end
  150. }
  151. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  152. return RealGame:GetService(Service)
  153. end
  154. end
  155. return function (self,...) return RealGame[Index](RealGame,...) end
  156. else
  157. if game:GetService(Index) then return game:GetService(Index) end
  158. return RealGame[Index]
  159. end
  160. end
  161. return nil
  162. end
  163. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  164.  
  165. --//====================================================\\--
  166. --|| CREATED BY SHACKLUSTER
  167. --\\====================================================//--
  168.  
  169. wait(0.2)
  170.  
  171. Player = game:GetService("Players").LocalPlayer
  172. PlayerGui = Player.PlayerGui
  173. Cam = workspace.CurrentCamera
  174. Backpack = Player.Backpack
  175. Character = Player.Character
  176. Humanoid = Character.Humanoid
  177. Mouse = Player:GetMouse()
  178. RootPart = Character["HumanoidRootPart"]
  179. Torso = Character["Torso"]
  180. Head = Character["Head"]
  181. RightArm = Character["Right Arm"]
  182. LeftArm = Character["Left Arm"]
  183. RightLeg = Character["Right Leg"]
  184. LeftLeg = Character["Left Leg"]
  185. RootJoint = RootPart["RootJoint"]
  186. Neck = Torso["Neck"]
  187. RightShoulder = Torso["Right Shoulder"]
  188. LeftShoulder = Torso["Left Shoulder"]
  189. RightHip = Torso["Right Hip"]
  190. LeftHip = Torso["Left Hip"]
  191. local sick = Instance.new("Sound",Character)
  192. sick.SoundId = "rbxassetid://1494340971"
  193. sick.Looped = true
  194. sick.Pitch = 1
  195. sick.Volume = 1
  196. sick:Play()
  197.  
  198. IT = Instance.new
  199. CF = CFrame.new
  200. VT = Vector3.new
  201. RAD = math.rad
  202. C3 = Color3.new
  203. UD2 = UDim2.new
  204. BRICKC = BrickColor.new
  205. ANGLES = CFrame.Angles
  206. EULER = CFrame.fromEulerAnglesXYZ
  207. COS = math.cos
  208. ACOS = math.acos
  209. SIN = math.sin
  210. ASIN = math.asin
  211. ABS = math.abs
  212. MRANDOM = math.random
  213. FLOOR = math.floor
  214.  
  215. --//=================================\\
  216. --|| USEFUL VALUES
  217. --\\=================================//
  218.  
  219. Animation_Speed = 3
  220. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  221. local Speed = 25
  222. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  223. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  224. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  225. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  226. local DAMAGEMULTIPLIER = 1
  227. local ANIM = "Idle"
  228. local ATTACK = false
  229. local EQUIPPED = false
  230. local HOLD = false
  231. local COMBO = 1
  232. local Rooted = false
  233. local SINE = 0
  234. local KEYHOLD = false
  235. local CHANGE = 2 / Animation_Speed
  236. local WALKINGANIM = false
  237. local VALUE1 = false
  238. local VALUE2 = false
  239. local ROBLOXIDLEANIMATION = IT("Animation")
  240. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  241. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  242. --ROBLOXIDLEANIMATION.Parent = Humanoid
  243. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  244. WEAPONGUI.Name = "Weapon GUI"
  245. local Effects = IT("Folder", Character)
  246. Effects.Name = "Effects"
  247. local ANIMATOR = Humanoid.Animator
  248. local ANIMATE = Character.Animate
  249. local UNANCHOR = true
  250. local PLAYMAINANIM = true
  251. local BOLTSOUNDS = {168586621,168586586,178452241}
  252.  
  253. --//=================================\\
  254. --\\=================================//
  255.  
  256.  
  257. --//=================================\\
  258. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  259. --\\=================================//
  260.  
  261. ArtificialHB = Instance.new("BindableEvent", script)
  262. ArtificialHB.Name = "ArtificialHB"
  263.  
  264. script:WaitForChild("ArtificialHB")
  265.  
  266. frame = Frame_Speed
  267. tf = 0
  268. allowframeloss = false
  269. tossremainder = false
  270. lastframe = tick()
  271. script.ArtificialHB:Fire()
  272.  
  273. game:GetService("RunService").Heartbeat:connect(function(s, p)
  274. tf = tf + s
  275. if tf >= frame then
  276. if allowframeloss then
  277. script.ArtificialHB:Fire()
  278. lastframe = tick()
  279. else
  280. for i = 1, math.floor(tf / frame) do
  281. script.ArtificialHB:Fire()
  282. end
  283. lastframe = tick()
  284. end
  285. if tossremainder then
  286. tf = 0
  287. else
  288. tf = tf - frame * math.floor(tf / frame)
  289. end
  290. end
  291. end)
  292.  
  293. --//=================================\\
  294. --\\=================================//
  295.  
  296. --//=================================\\
  297. --|| SOME FUNCTIONS
  298. --\\=================================//
  299.  
  300. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  301. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  302. end
  303.  
  304. function PositiveAngle(NUMBER)
  305. if NUMBER >= 0 then
  306. NUMBER = 0
  307. end
  308. return NUMBER
  309. end
  310.  
  311. function NegativeAngle(NUMBER)
  312. if NUMBER <= 0 then
  313. NUMBER = 0
  314. end
  315. return NUMBER
  316. end
  317.  
  318. function Swait(NUMBER)
  319. if NUMBER == 0 or NUMBER == nil then
  320. ArtificialHB.Event:wait()
  321. else
  322. for i = 1, NUMBER do
  323. ArtificialHB.Event:wait()
  324. end
  325. end
  326. end
  327.  
  328. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  329. local NEWMESH = IT(MESH)
  330. if MESH == "SpecialMesh" then
  331. NEWMESH.MeshType = MESHTYPE
  332. if MESHID ~= "nil" and MESHID ~= "" then
  333. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  334. end
  335. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  336. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  337. end
  338. end
  339. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  340. NEWMESH.Scale = SCALE
  341. NEWMESH.Parent = PARENT
  342. return NEWMESH
  343. end
  344.  
  345. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  346. local NEWPART = IT("Part")
  347. NEWPART.formFactor = FORMFACTOR
  348. NEWPART.Reflectance = REFLECTANCE
  349. NEWPART.Transparency = TRANSPARENCY
  350. NEWPART.CanCollide = false
  351. NEWPART.Locked = true
  352. NEWPART.Anchored = true
  353. if ANCHOR == false then
  354. NEWPART.Anchored = false
  355. end
  356. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  357. NEWPART.Name = NAME
  358. NEWPART.Size = SIZE
  359. NEWPART.Position = Torso.Position
  360. NEWPART.Material = MATERIAL
  361. NEWPART:BreakJoints()
  362. NEWPART.Parent = PARENT
  363. return NEWPART
  364. end
  365.  
  366. local function weldBetween(a, b)
  367. local weldd = Instance.new("ManualWeld")
  368. weldd.Part0 = a
  369. weldd.Part1 = b
  370. weldd.C0 = CFrame.new()
  371. weldd.C1 = b.CFrame:inverse() * a.CFrame
  372. weldd.Parent = a
  373. return weldd
  374. end
  375.  
  376.  
  377. function QuaternionFromCFrame(cf)
  378. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  379. local trace = m00 + m11 + m22
  380. if trace > 0 then
  381. local s = math.sqrt(1 + trace)
  382. local recip = 0.5 / s
  383. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  384. else
  385. local i = 0
  386. if m11 > m00 then
  387. i = 1
  388. end
  389. if m22 > (i == 0 and m00 or m11) then
  390. i = 2
  391. end
  392. if i == 0 then
  393. local s = math.sqrt(m00 - m11 - m22 + 1)
  394. local recip = 0.5 / s
  395. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  396. elseif i == 1 then
  397. local s = math.sqrt(m11 - m22 - m00 + 1)
  398. local recip = 0.5 / s
  399. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  400. elseif i == 2 then
  401. local s = math.sqrt(m22 - m00 - m11 + 1)
  402. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  403. end
  404. end
  405. end
  406.  
  407. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  408. local xs, ys, zs = x + x, y + y, z + z
  409. local wx, wy, wz = w * xs, w * ys, w * zs
  410. local xx = x * xs
  411. local xy = x * ys
  412. local xz = x * zs
  413. local yy = y * ys
  414. local yz = y * zs
  415. local zz = z * zs
  416. 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))
  417. end
  418.  
  419. function QuaternionSlerp(a, b, t)
  420. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  421. local startInterp, finishInterp;
  422. if cosTheta >= 0.0001 then
  423. if (1 - cosTheta) > 0.0001 then
  424. local theta = ACOS(cosTheta)
  425. local invSinTheta = 1 / SIN(theta)
  426. startInterp = SIN((1 - t) * theta) * invSinTheta
  427. finishInterp = SIN(t * theta) * invSinTheta
  428. else
  429. startInterp = 1 - t
  430. finishInterp = t
  431. end
  432. else
  433. if (1 + cosTheta) > 0.0001 then
  434. local theta = ACOS(-cosTheta)
  435. local invSinTheta = 1 / SIN(theta)
  436. startInterp = SIN((t - 1) * theta) * invSinTheta
  437. finishInterp = SIN(t * theta) * invSinTheta
  438. else
  439. startInterp = t - 1
  440. finishInterp = t
  441. end
  442. end
  443. 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
  444. end
  445.  
  446. function Clerp(a, b, t)
  447. local qa = {QuaternionFromCFrame(a)}
  448. local qb = {QuaternionFromCFrame(b)}
  449. local ax, ay, az = a.x, a.y, a.z
  450. local bx, by, bz = b.x, b.y, b.z
  451. local _t = 1 - t
  452. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  453. end
  454.  
  455. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  456. local frame = IT("Frame")
  457. frame.BackgroundTransparency = TRANSPARENCY
  458. frame.BorderSizePixel = BORDERSIZEPIXEL
  459. frame.Position = POSITION
  460. frame.Size = SIZE
  461. frame.BackgroundColor3 = COLOR
  462. frame.BorderColor3 = BORDERCOLOR
  463. frame.Name = NAME
  464. frame.Parent = PARENT
  465. return frame
  466. end
  467.  
  468. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  469. local label = IT("TextLabel")
  470. label.BackgroundTransparency = 1
  471. label.Size = UD2(1, 0, 1, 0)
  472. label.Position = UD2(0, 0, 0, 0)
  473. label.TextColor3 = TEXTCOLOR
  474. label.TextStrokeTransparency = STROKETRANSPARENCY
  475. label.TextTransparency = TRANSPARENCY
  476. label.FontSize = TEXTFONTSIZE
  477. label.Font = TEXTFONT
  478. label.BorderSizePixel = BORDERSIZEPIXEL
  479. label.TextScaled = false
  480. label.Text = TEXT
  481. label.Name = NAME
  482. label.Parent = PARENT
  483. return label
  484. end
  485.  
  486. function NoOutlines(PART)
  487. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  488. end
  489.  
  490. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  491. local NEWWELD = IT(TYPE)
  492. NEWWELD.Part0 = PART0
  493. NEWWELD.Part1 = PART1
  494. NEWWELD.C0 = C0
  495. NEWWELD.C1 = C1
  496. NEWWELD.Parent = PARENT
  497. return NEWWELD
  498. end
  499.  
  500. local S = IT("Sound")
  501. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  502. local NEWSOUND = nil
  503. coroutine.resume(coroutine.create(function()
  504. NEWSOUND = S:Clone()
  505. NEWSOUND.Parent = PARENT
  506. NEWSOUND.Volume = VOLUME
  507. NEWSOUND.Pitch = PITCH
  508. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  509. NEWSOUND:play()
  510. if DOESLOOP == true then
  511. NEWSOUND.Looped = true
  512. else
  513. repeat wait(1) until NEWSOUND.Playing == false
  514. NEWSOUND:remove()
  515. end
  516. end))
  517. return NEWSOUND
  518. end
  519.  
  520. local EyeSizes={
  521. NumberSequenceKeypoint.new(0,2,0),
  522. NumberSequenceKeypoint.new(1,0,0)
  523. }
  524. local EyeTrans={
  525. NumberSequenceKeypoint.new(0,0.5,0),
  526. NumberSequenceKeypoint.new(1,1,0)
  527. }
  528. local PE=Instance.new("ParticleEmitter",nil)
  529. PE.LightEmission=.8
  530. PE.Color = ColorSequence.new(BRICKC("Alder").Color,BRICKC("Lavender").Color)
  531. PE.Size=NumberSequence.new(EyeSizes)
  532. PE.Transparency=NumberSequence.new(EyeTrans)
  533. PE.Lifetime=NumberRange.new(0.35,1)
  534. PE.Rotation=NumberRange.new(0,360)
  535. PE.Rate=100
  536. PE.VelocitySpread = 10000
  537. PE.Acceleration = Vector3.new(0,85,0)
  538. PE.Drag = 5
  539. PE.Speed = NumberRange.new(0.1,5)
  540. PE.Texture="http://www.roblox.com/asset/?id=1460745664"
  541. PE.ZOffset = 0.5
  542. PE.Name = "PE"
  543. PE.Enabled = false
  544.  
  545. function Fire(art)
  546. local PARTICLES = PE:Clone()
  547. PARTICLES.Parent = art
  548. PARTICLES.Enabled = true
  549. return PARTICLES
  550. end
  551.  
  552. function CFrameFromTopBack(at, top, back)
  553. local right = top:Cross(back)
  554. 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)
  555. end
  556.  
  557. --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})
  558. function WACKYEFFECT(Table)
  559. local TYPE = (Table.EffectType or "Sphere")
  560. local SIZE = (Table.Size or VT(1,1,1))
  561. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  562. local TRANSPARENCY = (Table.Transparency or 0)
  563. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  564. local CFRAME = (Table.CFrame or Torso.CFrame)
  565. local MOVEDIRECTION = (Table.MoveToPos or nil)
  566. local ROTATION1 = (Table.RotationX or 0)
  567. local ROTATION2 = (Table.RotationY or 0)
  568. local ROTATION3 = (Table.RotationZ or 0)
  569. local MATERIAL = (Table.Material or "Neon")
  570. local COLOR = (Table.Color or C3(1,1,1))
  571. local TIME = (Table.Time or 45)
  572. local SOUNDID = (Table.SoundID or nil)
  573. local SOUNDPITCH = (Table.SoundPitch or nil)
  574. local SOUNDVOLUME = (Table.SoundVolume or nil)
  575. coroutine.resume(coroutine.create(function()
  576. local PLAYSSOUND = false
  577. local SOUND = nil
  578. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  579. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  580. PLAYSSOUND = true
  581. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  582. end
  583. EFFECT.Color = COLOR
  584. local MSH = nil
  585. if TYPE == "Sphere" then
  586. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  587. elseif TYPE == "Block" or TYPE == "Box" then
  588. MSH = IT("BlockMesh",EFFECT)
  589. MSH.Scale = SIZE
  590. elseif TYPE == "Wave" then
  591. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  592. elseif TYPE == "Ring" then
  593. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  594. elseif TYPE == "Slash" then
  595. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  596. elseif TYPE == "Round Slash" then
  597. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  598. elseif TYPE == "Swirl" then
  599. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  600. elseif TYPE == "Skull" then
  601. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  602. elseif TYPE == "Crystal" then
  603. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  604. end
  605. if MSH ~= nil then
  606. local MOVESPEED = nil
  607. if MOVEDIRECTION ~= nil then
  608. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  609. end
  610. local GROWTH = SIZE - ENDSIZE
  611. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  612. if TYPE == "Block" then
  613. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  614. else
  615. EFFECT.CFrame = CFRAME
  616. end
  617. for LOOP = 1, TIME+1 do
  618. Swait()
  619. MSH.Scale = MSH.Scale - GROWTH/TIME
  620. if TYPE == "Wave" then
  621. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  622. end
  623. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  624. if TYPE == "Block" then
  625. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  626. else
  627. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  628. end
  629. if MOVEDIRECTION ~= nil then
  630. local ORI = EFFECT.Orientation
  631. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  632. EFFECT.Orientation = ORI
  633. end
  634. end
  635. if PLAYSSOUND == false then
  636. EFFECT:remove()
  637. else
  638. repeat wait(1) until SOUND.Playing == false
  639. EFFECT:remove()
  640. end
  641. else
  642. if PLAYSSOUND == false then
  643. EFFECT:remove()
  644. else
  645. repeat Swait() until SOUND.Playing == false
  646. EFFECT:remove()
  647. end
  648. end
  649. end))
  650. end
  651.  
  652. function MakeForm(PART,TYPE)
  653. if TYPE == "Cyl" then
  654. local MSH = IT("CylinderMesh",PART)
  655. elseif TYPE == "Ball" then
  656. local MSH = IT("SpecialMesh",PART)
  657. MSH.MeshType = "Sphere"
  658. elseif TYPE == "Wedge" then
  659. local MSH = IT("SpecialMesh",PART)
  660. MSH.MeshType = "Wedge"
  661. end
  662. end
  663.  
  664. Debris = game:GetService("Debris")
  665.  
  666. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  667. local DIRECTION = CF(StartPos,EndPos).lookVector
  668. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  669. end
  670.  
  671. local HATWELD = nil
  672. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  673. PLAYMAINANIM = false
  674. if WhichPose == "Cast1" then
  675. for i=0, Time, 0.1 / Animation_Speed do
  676. Swait()
  677. if Magic == true then
  678. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  679. end
  680. if Gyro ~= nil and Gyro ~= false then
  681. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  682. end
  683. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed)
  684. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed)
  685. 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)
  686. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  687. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  688. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  689. end
  690. elseif WhichPose == "Cast2" then
  691. for i=0, Time, 0.1 / Animation_Speed do
  692. Swait()
  693. if Magic == true then
  694. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  695. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  696. end
  697. if Gyro ~= nil and Gyro ~= false then
  698. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  699. end
  700. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  701. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  702. 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)
  703. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  704. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  705. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  706. end
  707. elseif WhichPose == "RightArmUp" then
  708. for i=0, Time, 0.1 / Animation_Speed do
  709. Swait()
  710. if Magic == true then
  711. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  712. end
  713. if Gyro ~= nil and Gyro ~= false then
  714. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  715. end
  716. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed)
  717. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed)
  718. 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)
  719. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  720. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  721. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  722. end
  723. elseif WhichPose == "Taunt" then
  724. for i=0, Time, 0.1 / Animation_Speed do
  725. Swait()
  726. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  727. 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)
  728. 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)
  729. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  730. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  731. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  732. end
  733. HATWELD.Part0 = RightArm
  734. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  735. CreateSound(221057812,Torso,10,1,false)
  736. for i=0, Time*2, 0.1 / Animation_Speed do
  737. Swait()
  738. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  739. 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)
  740. 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)
  741. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  742. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  743. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  744. end
  745. for i=0, Time, 0.1 / Animation_Speed do
  746. Swait()
  747. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  748. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  749. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  750. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  751. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  752. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  753. 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)
  754. end
  755. HATWELD.Part0 = Head
  756. HATWELD.C0 = CF(0,0.72*SIZE,0.1) * ANGLES(RAD(15), RAD(0), RAD(0))
  757. elseif WhichPose == "FacePose" then
  758. for i=0, Time, 0.1 / Animation_Speed do
  759. Swait()
  760. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  761. 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)
  762. 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)
  763. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  764. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  765. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  766. end
  767. FACEWELD.Part0 = RightArm
  768. FACEWELD2.Part0 = RightArm
  769. FACEWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  770. FACEWELD2.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  771. CreateSound(221057812,Torso,10,1,false)
  772. for i=0, Time*2, 0.1 / Animation_Speed do
  773. Swait()
  774. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  775. 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)
  776. 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)
  777. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  778. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  779. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  780. end
  781. for i=0, Time, 0.1 / Animation_Speed do
  782. Swait()
  783. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  784. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  785. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  786. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  787. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  788. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  789. FACEWELD.C0 = Clerp(FACEWELD.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)
  790. FACEWELD2.C0 = Clerp(FACEWELD2.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)
  791. end
  792. FACEWELD.Part0 = Head
  793. FACEWELD2.Part0 = Head
  794. FACEWELD.C0 = CF(0,0,-.5*SIZE) * ANGLES(RAD(15), RAD(0), RAD(0))
  795. FACEWELD2.C0 = CF(0,0,-.5*SIZE)
  796. elseif WhichPose == "Prepare key" then
  797. for i=0, Time, 0.1 / Animation_Speed do
  798. Swait()
  799. if Gyro ~= nil and Gyro ~= false then
  800. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  801. end
  802. 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)
  803. 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)
  804. 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)
  805. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  806. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  807. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  808. end
  809. elseif WhichPose == "Turn key" then
  810. for i=0, Time, 0.1 / Animation_Speed do
  811. Swait()
  812. if Gyro ~= nil and Gyro ~= false then
  813. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  814. end
  815. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed)
  816. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed)
  817. 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)
  818. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  819. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  820. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  821. end
  822. end
  823. PLAYMAINANIM = true
  824. end
  825.  
  826. --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false})
  827. function Lightning(Table)
  828. local Color = Table.Color or C3(1,1,1)
  829. local StartPos = Table.Start or Torso.Position
  830. local EndPos = Table.End or Mouse.Hit.p
  831. local SegmentLength = Table.SegmentL or 2
  832. local Thickness = Table.Thickness or 0.1
  833. local Dissapear = Table.DoesFade or false
  834. local Parent = Table.Ignore or Character
  835. local MaxDist = Table.MaxDist or 400
  836. local Branches = Table.Branches or false
  837. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  838. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  839. local LIGHTNINGMODEL = IT("Model",Effects)
  840. LIGHTNINGMODEL.Name = "Lightning"
  841. local LastBolt = nil
  842. for E = 1, DISTANCE do
  843. local ExtraSize = (DISTANCE-E)/15
  844. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  845. PART.Color = Color
  846. MakeForm(PART,"Cyl")
  847. if LastBolt == nil then
  848. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  849. else
  850. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  851. end
  852. LastBolt = PART
  853. if Branches == true then
  854. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  855. if CHOICE == 1 then
  856. local LASTBRANCH = nil
  857. for i = 1, MRANDOM(2,5) do
  858. local ExtraSize2 = ((DISTANCE-E)/25)/i
  859. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  860. PART.Color = Color
  861. MakeForm(PART,"Cyl")
  862. if LASTBRANCH == nil then
  863. 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)
  864. else
  865. 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)
  866. end
  867. LASTBRANCH = PART
  868. end
  869. end
  870. end
  871. end
  872. if Dissapear == true then
  873. coroutine.resume(coroutine.create(function()
  874. for i = 1, 10 do
  875. Swait()
  876. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  877. if c.ClassName == "Part" then
  878. c.Transparency = i/10
  879. end
  880. end
  881. end
  882. LIGHTNINGMODEL:remove()
  883. end))
  884. elseif Dissapear == false then
  885. Debris:AddItem(LIGHTNINGMODEL,0.1)
  886. end
  887. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  888. end
  889.  
  890. --//=================================\\
  891. --|| WEAPON CREATION
  892. --\\=================================//
  893.  
  894. for i = 1, 15 do
  895. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/15.2, "Dark stone grey", "FaceGradient", VT(1.01,0.58,1.01),false)
  896. FACE.Color = C3(0,0,0)
  897. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  898. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/35,0), CF(0, 0, 0))
  899. end
  900.  
  901. Humanoid.DisplayDistanceType = "None"
  902. local naeeym2 = IT("BillboardGui",Character)
  903. naeeym2.AlwaysOnTop = true
  904. naeeym2.Size = UDim2.new(5,35,2,15)
  905. naeeym2.StudsOffset = Vector3.new(0,3,0)
  906. naeeym2.MaxDistance = 75
  907. naeeym2.Adornee = Character.Head
  908. naeeym2.Name = "Name"
  909. naeeym2.PlayerToHideFrom = Player
  910. local tecks2 = IT("TextLabel",naeeym2)
  911. tecks2.BackgroundTransparency = 1
  912. tecks2.TextScaled = true
  913. tecks2.BorderSizePixel = 0
  914. tecks2.Text = "The Warden"
  915. tecks2.Font = "Bodoni"
  916. tecks2.TextSize = 30
  917. tecks2.TextStrokeTransparency = 0.5
  918. tecks2.TextColor3 = C3(0,0,0)
  919. tecks2.TextStrokeColor3 = BRICKC"Lavender".Color
  920. tecks2.Size = UDim2.new(1,0,0.5,0)
  921. tecks2.Parent = naeeym2
  922. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Lilac", "FaceGradient", VT(0.15,0.15,0.15),false)
  923. MakeForm(EYE,"Ball")
  924. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.22,-0.55), CF(0, 0, 0))
  925. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Lilac", "FaceGradient", VT(0.05,0.14,0.05),false)
  926. EYE.Color = C3(0,0,0)
  927. MakeForm(EYE,"Ball")
  928. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.22,-0.6), CF(0, 0, 0))
  929. local top = Instance.new("Shirt")
  930. top.ShirtTemplate = "rbxassetid://676428254"
  931. top.Parent = Character
  932. top.Name = "Cloth"
  933. local bottom = Instance.new("Pants")
  934. bottom.PantsTemplate = "rbxassetid://676428351"
  935. bottom.Parent = Character
  936. bottom.Name = "Cloth"
  937. for _, c in pairs(Character:GetChildren()) do
  938. if c.ClassName == "Part" and c.Name ~= "FaceGradient" and c.Name ~= "Hat" and c.Name ~= "Gem" then
  939. c.Material = "Neon"
  940. if c:FindFirstChildOfClass("ParticleEmitter") then
  941. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  942. end
  943. c.Color = C3(1,1,1)
  944. if c == Head then
  945. if c:FindFirstChild("face") then
  946. c.face:remove()
  947. end
  948. end
  949. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  950. c:remove()
  951. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  952. c:remove()
  953. end
  954. end
  955. local BODY = {}
  956. for _, c in pairs(Character:GetDescendants()) do
  957. if c:IsA("BasePart") and c.Name ~= "Handle" then
  958. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  959. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  960. end
  961. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  962. elseif c:IsA("JointInstance") then
  963. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  964. end
  965. end
  966. for e = 1, #BODY do
  967. if BODY[e] ~= nil then
  968. local STUFF = BODY[e]
  969. local PART = STUFF[1]
  970. local PARENT = STUFF[2]
  971. local MATERIAL = STUFF[3]
  972. local COLOR = STUFF[4]
  973. local TRANSPARENCY = STUFF[5]
  974. if PART.ClassName == "Part" and PART ~= RootPart then
  975. PART.Material = MATERIAL
  976. PART.Color = COLOR
  977. PART.Transparency = TRANSPARENCY
  978. end
  979. PART.AncestryChanged:Connect(function()
  980. PART.Parent = PARENT
  981. end)
  982. end
  983. end
  984. function refit()
  985. Character.Parent = workspace
  986. for e = 1, #BODY do
  987. if BODY[e] ~= nil then
  988. local STUFF = BODY[e]
  989. local PART = STUFF[1]
  990. local PARENT = STUFF[2]
  991. local MATERIAL = STUFF[3]
  992. local COLOR = STUFF[4]
  993. local TRANSPARENCY = STUFF[5]
  994. if PART.ClassName == "Part" and PART ~= RootPart then
  995. PART.Material = MATERIAL
  996. PART.Color = COLOR
  997. PART.Transparency = TRANSPARENCY
  998. end
  999. if PART.Parent ~= PARENT then
  1000. Humanoid:remove()
  1001. PART.Parent = PARENT
  1002. Humanoid = IT("Humanoid",Character)
  1003. end
  1004. end
  1005. end
  1006. end
  1007. local SKILLTEXTCOLOR = BRICKC"Lavender".Color
  1008. local SKILLFONT = "Bodoni"
  1009. local SKILLTEXTSIZE = 7
  1010.  
  1011. Humanoid.Died:connect(function()
  1012. refit()
  1013. end)
  1014.  
  1015. 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")
  1016. 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")
  1017. 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")
  1018. 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")
  1019. 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")
  1020. local SKILL6FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.05, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
  1021. local SKILL7FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.15, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame")
  1022.  
  1023. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Warden Zap", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
  1024. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Warden Thunder", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  1025. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Inferno Ring", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  1026. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warden Wall", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
  1027. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Prison Key", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
  1028. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[N] Shoot", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 6")
  1029. local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[M] Burst", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7")
  1030.  
  1031. --//=================================\\
  1032. --|| DAMAGING
  1033. --\\=================================//
  1034.  
  1035. function ApplyAoE(POSITION,RANGE,FLING,BURN)
  1036. local CHILDREN = workspace:GetDescendants()
  1037. for index, CHILD in pairs(CHILDREN) do
  1038. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1039. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1040. if HUM then
  1041. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1042. if TORSO then
  1043. if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
  1044. CHILD:BreakJoints()
  1045. if FLING ~= 0 then
  1046. for _, c in pairs(CHILD:GetChildren()) do
  1047. if c:IsA("BasePart") and c.Transparency == 0 then
  1048. if BURN == true then
  1049. Fire(c)
  1050. end
  1051. local bv = Instance.new("BodyVelocity")
  1052. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1053. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1054. bv.Parent = c
  1055. Debris:AddItem(bv,0.05)
  1056. end
  1057. end
  1058. end
  1059. end
  1060. end
  1061. end
  1062. end
  1063. end
  1064. end
  1065.  
  1066. --//=================================\\
  1067. --|| ATTACK FUNCTIONS AND STUFF
  1068. --\\=================================//
  1069.  
  1070. function Warden_Zap()
  1071. ATTACK = true
  1072. Rooted = false
  1073. local GYRO = IT("BodyGyro",RootPart)
  1074. GYRO.D = 750
  1075. GYRO.P = 20000
  1076. GYRO.MaxTorque = VT(0,40000000,0)
  1077. CreateSound(348663022,RightArm,1.5,2,false)
  1078. Pose("Cast1",0.8,1,true,GYRO)
  1079. 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})
  1080. local Hitpos = LightningTable.End
  1081. ApplyAoE(Hitpos,10,35)
  1082. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(1,1,1)*15, Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  1083. for i = 1, 4 do
  1084. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,45,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1085. end
  1086. Pose("Cast1",0.8,1,true)
  1087. GYRO:remove()
  1088. ATTACK = false
  1089. Rooted = false
  1090. end
  1091.  
  1092. function Warden_Thunder()
  1093. ATTACK = true
  1094. Rooted = false
  1095. local GYRO = IT("BodyGyro",RootPart)
  1096. GYRO.D = 750
  1097. GYRO.P = 20000
  1098. GYRO.MaxTorque = VT(0,40000000,0)
  1099. CreateSound(469345336,Torso,3,2,false)
  1100. Pose("Cast2",1.5,2,true,GYRO)
  1101. coroutine.resume(coroutine.create(function()
  1102. local FRAME = RootPart.CFrame
  1103. for i = 1, 25 do
  1104. local POS = FRAME*CF(MRANDOM(-17,17),0,-i*15)
  1105. 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})
  1106. local Hitpos = LightningTable.End
  1107. ApplyAoE(Hitpos,20,15)
  1108. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(1,1,1)*15, Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  1109. for i = 1, 4 do
  1110. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,75,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1111. end
  1112. wait(0.05)
  1113. end
  1114. end))
  1115. Pose("Cast2",1.5,0.7,true)
  1116. GYRO:remove()
  1117. ATTACK = false
  1118. Rooted = false
  1119. end
  1120.  
  1121. function Inferno_Ring()
  1122. ATTACK = true
  1123. Rooted = false
  1124. local GYRO = IT("BodyGyro",RootPart)
  1125. GYRO.D = 750
  1126. GYRO.P = 20000
  1127. GYRO.MaxTorque = VT(0,40000000,0)
  1128. local FIRE = IT("Model",Effects)
  1129. FIRE.Name = "Fire"
  1130. local MAIN = CreatePart(3, FIRE, "Neon", 0, 1, "Lavender", "Center", VT(0,0,0))
  1131. FIRE.PrimaryPart = MAIN
  1132. local FIRES = {}
  1133. for i = 1, 45 do
  1134. local PRT = CreatePart(3, FIRE, "Neon", 0, 1, "Lavender", "RingPart", VT(3,3,3))
  1135. PRT.CFrame = MAIN.CFrame*ANGLES(RAD(0),RAD((360/45)*i),RAD(0))*CF(0,0,20)
  1136. local F = Fire(PRT)
  1137. table.insert(FIRES,F)
  1138. end
  1139. repeat
  1140. FIRE:SetPrimaryPartCFrame(CF(Mouse.Hit.p))
  1141. Pose("Cast1",1.5,0.01,false,GYRO)
  1142. until HOLD == true
  1143. coroutine.resume(coroutine.create(function()
  1144. for i = 1, 4 do
  1145. ApplyAoE(MAIN.Position,21,-15,true)
  1146. CreateSound(463598785,MAIN,3,1,false)
  1147. for E = 1, #FIRES do
  1148. if FIRES[E] ~= nil then
  1149. FIRES[E].Acceleration = VT(0,300,0)
  1150. FIRES[E].Lifetime=NumberRange.new(0.35,1.5)
  1151. end
  1152. end
  1153. wait(0.3)
  1154. end
  1155. for E = 1, #FIRES do
  1156. if FIRES[E] ~= nil then
  1157. FIRES[E].Enabled = false
  1158. end
  1159. end
  1160. Debris:AddItem(FIRE,5)
  1161. end))
  1162. CreateSound(215395388,RightArm,3,2,false)
  1163. Pose("RightArmUp",1.5,0.5,true)
  1164. GYRO:remove()
  1165. ATTACK = false
  1166. Rooted = false
  1167. end
  1168.  
  1169. function Warden_Wall()
  1170. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 8, Character)
  1171. if HITFLOOR ~= nil then
  1172. if HITFLOOR.Anchored == true then
  1173. local WALL = HITFLOOR:Clone()
  1174. WALL.Size = VT(45,45,5)
  1175. WALL.Parent = Effects
  1176. WALL.Name = "Wall"
  1177. WALL.CFrame = RootPart.CFrame*CF(0,-65/2.1,-5)*ANGLES(RAD(-15),RAD(0),RAD(0))
  1178. CreateSound(130972023,WALL,5,0.8,false)
  1179. ATTACK = true
  1180. Rooted = true
  1181. local HIT = WALL.Touched:Connect(function(hit)
  1182. if hit.Parent ~= Character then
  1183. hit:BreakJoints()
  1184. end
  1185. end)
  1186. coroutine.resume(coroutine.create(function()
  1187. WACKYEFFECT({Time = 35, EffectType = "Box", Size = WALL.Size, Size2 = WALL.Size*2, Transparency = 0, Transparency2 = 1, CFrame = WALL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1188. for i = 1, 90 do
  1189. Swait()
  1190. WALL.CFrame = WALL.CFrame*CF(0,0.5,0)
  1191. end
  1192. HIT:disconnect()
  1193. wait(5)
  1194. for i = 1, 46 do
  1195. Swait()
  1196. WALL.CFrame = WALL.CFrame*CF(0,-1,0)
  1197. end
  1198. WALL:remove()
  1199. end))
  1200. Pose("RightArmUp",1.5,1.2,true)
  1201. ATTACK = false
  1202. Rooted = false
  1203. end
  1204. end
  1205. end
  1206.  
  1207. function Prison_Key()
  1208. if Mouse.Target ~= nil then
  1209. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1210. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1211. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1212. local GYRO = IT("BodyGyro",RootPart)
  1213. GYRO.D = 750
  1214. GYRO.P = 20000
  1215. GYRO.MaxTorque = VT(0,40000000,0)
  1216. local grav = Instance.new("BodyPosition",TORSO)
  1217. grav.D = 15
  1218. grav.P = 20000
  1219. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1220. grav.position = TORSO.Position
  1221. local GYRO2 = IT("BodyGyro",TORSO)
  1222. GYRO2.D = 750
  1223. GYRO2.P = 20000
  1224. GYRO2.MaxTorque = VT(0,40000000,0)
  1225. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1226. grav.Name = "Jail"
  1227. local LOCKPARTS = {}
  1228. ATTACK = true
  1229. Rooted = false
  1230. local LOCK = IT("Model",Effects)
  1231. LOCK.Name = "Lock"
  1232. local LOCK2 = IT("Model",LOCK)
  1233. LOCK2.Name = "Metal"
  1234. --CREATE LOCK--
  1235. local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
  1236. LOCK.PrimaryPart = BASE
  1237. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  1238. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
  1239. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  1240. MakeForm(PRT,"Cyl")
  1241. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
  1242. PRT.Color = C3(0,0,0)
  1243. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  1244. MakeForm(PRT,"Cyl")
  1245. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
  1246. PRT.Color = C3(0,0,0)
  1247. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  1248. for i = 1, 45 do
  1249. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1250. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  1251. end
  1252. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1253. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  1254. LOCK2.PrimaryPart = PRT
  1255. ---------------
  1256. local CHILDREN = LOCK:GetDescendants()
  1257. for index, CHILD in pairs(CHILDREN) do
  1258. if CHILD:IsA("BasePart") then
  1259. CHILD.Transparency = 1
  1260. end
  1261. end
  1262. for i = 1, 75 do
  1263. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  1264. Swait()
  1265. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1266. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1267. local CHILDREN = LOCK:GetDescendants()
  1268. for index, CHILD in pairs(CHILDREN) do
  1269. if CHILD:IsA("BasePart") then
  1270. CHILD.Transparency = CHILD.Transparency - 1/75
  1271. end
  1272. end
  1273. end
  1274. HUM.DisplayDistanceType = "None"
  1275. local KEY = IT("Model",Effects)
  1276. KEY.Name = "Key"
  1277. --CREATE KEY--
  1278. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "KeyBase", VT(0.1, 1, 0.1),false)
  1279. KEY.PrimaryPart = KBASE
  1280. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  1281. local WLD = weldBetween(RightArm,KBASE)
  1282. for i = 1, 45 do
  1283. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.1, 0.1, 0.1),false)
  1284. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  1285. weldBetween(KBASE,PRT)
  1286. end
  1287. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false)
  1288. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  1289. weldBetween(KBASE,PRT)
  1290. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false)
  1291. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  1292. weldBetween(KBASE,PRT)
  1293. --------------
  1294. Rooted = true
  1295. Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
  1296. coroutine.resume(coroutine.create(function()
  1297. for i = 1, 10 do
  1298. Swait()
  1299. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1300. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1301. end
  1302. CreateSound(1149318312,BASE,5,1,false)
  1303. CreateSound(160772554,BASE,3,1,false)
  1304. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  1305. for i = 1, 4 do
  1306. WACKYEFFECT({Time = 35, EffectType = "Crystal", Size = VT(1,1,1), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(1,1.45,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1307. end
  1308. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  1309. wait(1)
  1310. TORSO.Parent.Parent = LOCK
  1311. for i = 1, 75 do
  1312. Swait()
  1313. local CHILDREN = KEY:GetDescendants()
  1314. for index, CHILD in pairs(CHILDREN) do
  1315. if CHILD:IsA("BasePart") then
  1316. CHILD.Transparency = i/25
  1317. end
  1318. end
  1319. local CHILDREN = LOCK:GetDescendants()
  1320. for index, CHILD in pairs(CHILDREN) do
  1321. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  1322. CHILD.Transparency = CHILD.Transparency + 1/75
  1323. elseif CHILD.ClassName == "Decal" then
  1324. CHILD.Transparency = CHILD.Transparency + 1/75
  1325. end
  1326. end
  1327. end
  1328. TORSO.Parent:ClearAllChildren()
  1329. KEY:remove()
  1330. LOCK:remove()
  1331. end))
  1332. Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
  1333. GYRO:remove()
  1334. ATTACK = false
  1335. Rooted = false
  1336. end
  1337. end
  1338. end
  1339.  
  1340. function Hat()
  1341. ATTACK = true
  1342. Rooted = false
  1343. Pose("Taunt",0.4,1.2,false)
  1344. ATTACK = false
  1345. Rooted = false
  1346. end
  1347.  
  1348. local Particle = IT("ParticleEmitter",nil)
  1349. Particle.Enabled = false
  1350. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  1351. Particle.LightEmission = 0.5
  1352. Particle.Rate = 150
  1353. Particle.ZOffset = 0.2
  1354. Particle.Rotation = NumberRange.new(-180, 180)
  1355. Particle.RotSpeed = NumberRange.new(-180, 180)
  1356. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  1357. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  1358.  
  1359. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  1360. function ParticleEmitter(Table)
  1361. local PRTCL = Particle:Clone()
  1362. local Speed = Table.Speed or 5
  1363. local Drag = Table.Drag or 0
  1364. local Size1 = Table.Size1 or 1
  1365. local Size2 = Table.Size2 or 5
  1366. local Lifetime1 = Table.Lifetime1 or 1
  1367. local Lifetime2 = Table.Lifetime2 or 1.5
  1368. local Parent = Table.Parent or Torso
  1369. local Emit = Table.Emit or 100
  1370. local Offset = Table.Offset or 360
  1371. local Acel = Table.Acel or VT(0,0,0)
  1372. local Enabled = Table.Enabled or false
  1373. PRTCL.Parent = Parent
  1374. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1375. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1376. PRTCL.Speed = NumberRange.new(Speed)
  1377. PRTCL.VelocitySpread = Offset
  1378. PRTCL.Drag = Drag
  1379. PRTCL.Acceleration = Acel
  1380. if Enabled == false then
  1381. PRTCL:Emit(Emit)
  1382. Debris:AddItem(PRTCL,Lifetime2)
  1383. else
  1384. PRTCL.Enabled = true
  1385. end
  1386. return PRTCL
  1387. end
  1388.  
  1389. local Weapon = IT("Model")
  1390. Weapon.Name = "Adds"
  1391. local Effects = IT("Folder", Weapon)
  1392. Effects.Name = "Effects"
  1393.  
  1394. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  1395. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  1396. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1397. MakeForm(Part,"Wedge")
  1398. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1399. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  1400. MakeForm(Part,"Wedge")
  1401. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  1402. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  1403. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1404. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1405. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1406. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1407. MakeForm(Part,"Cyl")
  1408. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1409. for i = 1, 8 do
  1410. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1411. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1412. end
  1413. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  1414. MakeForm(Part,"Cyl")
  1415. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1416. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  1417. MakeForm(Part,"Ball")
  1418. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1419. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  1420. MakeForm(Part,"Wedge")
  1421. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  1422. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  1423. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1424. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  1425. MakeForm(Part,"Cyl")
  1426. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1427. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  1428. MakeForm(Part,"Cyl")
  1429. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1430. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1431. MakeForm(Part,"Cyl")
  1432. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1433. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1434. MakeForm(Part,"Wedge")
  1435. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1436. local LASTPART = Handle
  1437. for i = 1, 10 do
  1438. if LASTPART == Handle then
  1439. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1440. LASTPART = Part
  1441. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1442. else
  1443. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1444. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1445. LASTPART = Part
  1446. end
  1447. end
  1448.  
  1449. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  1450. MakeForm(Barrel,"Cyl")
  1451. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1452. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1453. MakeForm(Part,"Cyl")
  1454. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1455. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1456. MakeForm(Part,"Wedge")
  1457. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1458. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1459. MakeForm(Hole,"Cyl")
  1460. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  1461. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1462. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1463. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1464. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1465. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1466. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1467. coroutine.resume(coroutine.create(function()
  1468. while wait() do
  1469. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1470. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1471. end
  1472. end))
  1473.  
  1474. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  1475. --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  1476.  
  1477. for _, c in pairs(Weapon:GetDescendants()) do
  1478. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1479. c.Material = "Glass"
  1480. c.Color = C3(0,0,0)
  1481. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1482. c.Color = C3(1,0,0)
  1483. c.Material = "Neon"
  1484. end
  1485. end
  1486.  
  1487. Weapon.Parent = Character
  1488. for _, c in pairs(Weapon:GetChildren()) do
  1489. if c.ClassName == "Part" then
  1490. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1491. end
  1492. end
  1493. function turnto(position)
  1494. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1495. end
  1496. function SpawnTrail(FROM,TO,BIG)
  1497. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  1498. MakeForm(TRAIL,"Cyl")
  1499. local DIST = (FROM - TO).Magnitude
  1500. if BIG == true then
  1501. TRAIL.Size = VT(0.5,DIST,0.5)
  1502. else
  1503. TRAIL.Size = VT(0.25,DIST,0.25)
  1504. end
  1505. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  1506. coroutine.resume(coroutine.create(function()
  1507. for i = 1, 5 do
  1508. Swait()
  1509. TRAIL.Transparency = TRAIL.Transparency + 0.1
  1510. end
  1511. TRAIL:remove()
  1512. end))
  1513. end
  1514. local TOBANISH = {}
  1515. function printbye(Name)
  1516. local MESSAGES = {"You are so beautiful, ","Wow, ","Hello, ","NUGE!!!!!, ","so i had to banish ","OK, ","sorry, ","nope, ","ok goodbye, ","return for die, ","NUGI, ","hahaahhahahaha, ","yes this is copied from ","x, ","d, ","a, ","okbye ","a, "}
  1517. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1518. end
  1519. function Banish(Foe)
  1520. if Foe then
  1521. coroutine.resume(coroutine.create(function()
  1522. --if game.Players:FindFirstChild(Foe.Name) then
  1523. table.insert(TOBANISH,Foe.Name)
  1524. printbye(Foe.Name)
  1525. --end
  1526. Foe.Archivable = true
  1527. local CLONE = Foe:Clone()
  1528. Foe:Destroy()
  1529. CLONE.Parent = Effects
  1530. CLONE:BreakJoints()
  1531. local MATERIALS = {"Glass","Neon"}
  1532. for _, c in pairs(CLONE:GetDescendants()) do
  1533. if c:IsA("BasePart") then
  1534. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1535. CreateSound(340722848, c, 10, 1, false)
  1536. end
  1537. c.Anchored = true
  1538. c.Transparency = c.Transparency + 0.2
  1539. c.Material = MATERIALS[MRANDOM(1,2)]
  1540. c.Color = C3(1,0,0)
  1541. if c.ClassName == "MeshPart" then
  1542. c.TextureID = ""
  1543. end
  1544. if c:FindFirstChildOfClass("SpecialMesh") then
  1545. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1546. end
  1547. if c:FindFirstChildOfClass("Decal") then
  1548. c:FindFirstChildOfClass("Decal"):remove()
  1549. end
  1550. c.Name = "Banished"
  1551. c.CanCollide = false
  1552. else
  1553. c:remove()
  1554. end
  1555. end
  1556. local A = false
  1557. for i = 1, 35 do
  1558. if A == false then
  1559. A = true
  1560. elseif A == true then
  1561. A = false
  1562. end
  1563. for _, c in pairs(CLONE:GetDescendants()) do
  1564. if c:IsA("BasePart") then
  1565. c.Anchored = true
  1566. c.Material = MATERIALS[MRANDOM(1,2)]
  1567. c.Transparency = c.Transparency + 0.8/35
  1568. if A == false then
  1569. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1570. elseif A == true then
  1571. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1572. end
  1573. end
  1574. end
  1575. Swait()
  1576. end
  1577. CLONE:remove()
  1578. end))
  1579. end
  1580. end
  1581. workspace.ChildAdded:connect(function(instance)
  1582. for BANISH = 1, #TOBANISH do
  1583. if TOBANISH[BANISH] ~= nil then
  1584. if instance.Name == TOBANISH[BANISH] then
  1585. coroutine.resume(coroutine.create(function()
  1586. printbye(instance.Name)
  1587. instance:ClearAllChildren()
  1588. Debris:AddItem(instance,0.0005)
  1589. end))
  1590. end
  1591. end
  1592. end
  1593. end)
  1594. function Shot()
  1595. ATTACK = true
  1596. Rooted = false
  1597. for i=0, 0.4, 0.1 / Animation_Speed do
  1598. Swait()
  1599. turnto(Mouse.Hit.p)
  1600. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1601. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1602. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1603. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1604. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1605. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1606. end
  1607. repeat
  1608. for i=0, 0.2, 0.1 / Animation_Speed do
  1609. Swait()
  1610. turnto(Mouse.Hit.p)
  1611. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1612. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1613. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1614. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1615. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1616. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1617. end
  1618. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1619. SpawnTrail(Hole.Position,POS)
  1620. if HIT ~= nil then
  1621. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1622. Banish(HIT.Parent)
  1623. end
  1624. end
  1625. 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,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1626. 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,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1627. 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,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1628. 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,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1629. for i=0, 0.3, 0.1 / Animation_Speed do
  1630. Swait()
  1631. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1632. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1633. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1634. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1635. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1636. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1637. end
  1638. until KEYHOLD == false
  1639. ATTACK = false
  1640. Rooted = false
  1641. end
  1642.  
  1643. SIZE = 1.4
  1644.  
  1645. local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false)
  1646. PRT.Color = C3(0,0,0)
  1647. HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.72*SIZE,0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0))
  1648. CreateMesh("SpecialMesh", PRT, "FileMesh", "26768040", "", VT(1,1,1)*SIZE, VT(0,0,0))
  1649. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false)
  1650. PRT.Color = C3(1,1,1)
  1651. FACEWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  1652. CreateMesh("SpecialMesh", PRT, "FileMesh", "13520257", "", VT(1,1,1)*SIZE, VT(0,0,0))
  1653. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(1,1.2,0.2),false)
  1654. PRT.Color = C3(159/255, 111/255, 183/255)
  1655. MakeForm(PRT,"Ball")
  1656. FACEWELD2 = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  1657.  
  1658. function Face()
  1659. ATTACK = true
  1660. Rooted = false
  1661. Pose("FacePose",0.4,1.2,false)
  1662. ATTACK = false
  1663. Rooted = false
  1664. end
  1665.  
  1666. rainbowmode = true
  1667. chaosmode = true
  1668.  
  1669. function sphereMK(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  1670. local type = type
  1671. local rng = Instance.new("Part", Character)
  1672. rng.Anchored = true
  1673. rng.BrickColor = color
  1674. rng.CanCollide = false
  1675. rng.FormFactor = 3
  1676. rng.Name = "Ring"
  1677. rng.Material = "Neon"
  1678. rng.Size = Vector3.new(1, 1, 1)
  1679. rng.Transparency = 0
  1680. rng.TopSurface = 0
  1681. rng.BottomSurface = 0
  1682. rng.CFrame = pos
  1683. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1684. local rngm = Instance.new("SpecialMesh", rng)
  1685. rngm.MeshType = "Sphere"
  1686. rngm.Scale = Vec3(x1, y1, z1)
  1687. if rainbowmode == true then
  1688. rng.Color = Color3.new(255 / 255, 255 / 255, 255 / 255)
  1689. end
  1690. local scaler2 = 1
  1691. local speeder = FastSpeed
  1692. if type == "Add" then
  1693. scaler2 = 1 * value
  1694. elseif type == "Divide" then
  1695. scaler2 = 1 / value
  1696. end
  1697. coroutine.resume(coroutine.create(function()
  1698. for i = 0, 10 / bonuspeed, 0.1 do
  1699. Swait()
  1700. if rainbowmode == true then
  1701. rng.Color = Color3.new(255 / 255, 0 / 255, 0 / 255)
  1702. end
  1703. if type == "Add" then
  1704. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1705. elseif type == "Divide" then
  1706. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1707. end
  1708. if chaosmode == true then
  1709. rng.BrickColor = BrickColor.random()
  1710. end
  1711. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1712. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1713. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1714. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1715. end
  1716. rng:Destroy()
  1717. end))
  1718. end
  1719. function sphere(bonuspeed, type, pos, scale, value, color)
  1720. local type = type
  1721. local rng = Instance.new("Part", Character)
  1722. rng.Anchored = true
  1723. rng.BrickColor = color
  1724. rng.CanCollide = false
  1725. rng.FormFactor = 3
  1726. rng.Name = "Ring"
  1727. rng.Material = "Neon"
  1728. rng.Size = Vector3.new(1, 1, 1)
  1729. rng.Transparency = 0
  1730. rng.TopSurface = 0
  1731. rng.BottomSurface = 0
  1732. rng.CFrame = pos
  1733. local rngm = Instance.new("SpecialMesh", rng)
  1734. rngm.MeshType = "Sphere"
  1735. rngm.Scale = scale
  1736. if rainbowmode == true then
  1737. rng.Color = Color3.new(255 / 255, 255 / 255, 255 / 255)
  1738. end
  1739. local scaler2 = 1
  1740. if type == "Add" then
  1741. scaler2 = 1 * value
  1742. elseif type == "Divide" then
  1743. scaler2 = 1 / value
  1744. end
  1745. coroutine.resume(coroutine.create(function()
  1746. for i = 0, 10 / bonuspeed, 0.1 do
  1747. Swait()
  1748. if rainbowmode == true then
  1749. rng.Color = Color3.new(255 / 255, 255 / 255, 255 / 255)
  1750. end
  1751. if type == "Add" then
  1752. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1753. elseif type == "Divide" then
  1754. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1755. end
  1756. if chaosmode == true then
  1757. rng.BrickColor = BrickColor.random()
  1758. end
  1759. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1760. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  1761. end
  1762. rng:Destroy()
  1763. end))
  1764. end
  1765.  
  1766. function RemoveOutlines(part)
  1767. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1768. end
  1769.  
  1770. CFuncs = {
  1771. Part = {
  1772. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1773. local Part = Instance.new("Part")
  1774. Part.Parent = Parent
  1775. Part.Reflectance = Reflectance
  1776. Part.Transparency = Transparency
  1777. Part.CanCollide = false
  1778. Part.Locked = true
  1779. Part.BrickColor = BrickColor.new(tostring(BColor))
  1780. Part.Name = Name
  1781. Part.Size = Size
  1782. Part.Material = Material
  1783.  
  1784. RemoveOutlines(Part)
  1785. return Part
  1786. end
  1787. },
  1788. Mesh = {
  1789. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1790. local Msh = Instance.new(Mesh)
  1791. Msh.Parent = Part
  1792. Msh.Offset = OffSet
  1793. Msh.Scale = Scale
  1794. if Mesh == "SpecialMesh" then
  1795. Msh.MeshType = MeshType
  1796. Msh.MeshId = MeshId
  1797. end
  1798. return Msh
  1799. end
  1800. },
  1801. Weld = {
  1802. Create = function(Parent, Part0, Part1, C0, C1)
  1803. local Weld = Instance.new("Weld")
  1804. Weld.Parent = Parent
  1805. Weld.Part0 = Part0
  1806. Weld.Part1 = Part1
  1807. Weld.C0 = C0
  1808. Weld.C1 = C1
  1809.  
  1810. return Weld
  1811. end
  1812. },
  1813. Sound = {
  1814. Create = function(id, par, vol, pit)
  1815. coroutine.resume(coroutine.create(function()
  1816. local S = Instance.new("Sound")
  1817. S.Volume = vol
  1818. S.Pitch = pit or 1
  1819. S.SoundId = id
  1820. S.Parent = par or workspace
  1821.  
  1822. wait()
  1823. S:Play()
  1824. game:GetService("Debris"):AddItem(S, 6)
  1825. end))
  1826. end
  1827. },
  1828. ParticleEmitter = {
  1829. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1830. local fp = Instance.new("ParticleEmitter")
  1831. fp.Parent = Parent
  1832. fp.Color = ColorSequence.new(Color1, Color2)
  1833. fp.LightEmission = LightEmission
  1834. fp.Size = Size
  1835. fp.Texture = Texture
  1836. fp.Transparency = Transparency
  1837. fp.ZOffset = ZOffset
  1838. fp.Acceleration = Accel
  1839. fp.Drag = Drag
  1840. fp.LockedToPart = LockedToPart
  1841. fp.VelocityInheritance = VelocityInheritance
  1842. fp.EmissionDirection = EmissionDirection
  1843. fp.Enabled = Enabled
  1844. fp.Lifetime = LifeTime
  1845. fp.Rate = Rate
  1846. fp.Rotation = Rotation
  1847. fp.RotSpeed = RotSpeed
  1848. fp.Speed = Speed
  1849. fp.VelocitySpread = VelocitySpread
  1850. return fp
  1851. end
  1852. }
  1853. }
  1854.  
  1855. radian = math.rad
  1856. random = math.random
  1857. Vec3 = Vector3.new
  1858. Inst = Instance.new
  1859. cFrame = CFrame.new
  1860. Euler = CFrame.fromEulerAnglesXYZ
  1861. vt = Vector3.new
  1862. bc = BrickColor.new
  1863. br = BrickColor.random
  1864. it = Instance.new
  1865. cf = CFrame.new
  1866.  
  1867. function CameraEnshaking(Length, Intensity)
  1868. coroutine.resume(coroutine.create(function()
  1869. local intensity = 1 * Intensity
  1870. local rotM = 0.01 * Intensity
  1871. for i = 0, Length, 0.1 do
  1872. Swait()
  1873. intensity = intensity - 0.05 * Intensity / Length
  1874. rotM = rotM - 5.0E-4 * Intensity / Length
  1875. Humanoid.CameraOffset = Vector3.new(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  1876. workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  1877. end
  1878. Humanoid.CameraOffset = Vec3(0, 0, 0)
  1879. end))
  1880. end
  1881.  
  1882. function dmg(dude)
  1883. if dude.Name ~= Character then
  1884. local bgf = Instance.new("BodyGyro", dude.Head)
  1885. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  1886. local val = Instance.new("BoolValue", dude)
  1887. val.Name = "IsHit"
  1888. local ds = coroutine.wrap(function()
  1889. dude:WaitForChild("Head"):BreakJoints()
  1890. wait(0.5)
  1891. targetted = nil
  1892. CFuncs.Sound.Create("rbxassetid://62339698", char, 0.5, 0.3)
  1893. coroutine.resume(coroutine.create(function()
  1894. for i, v in pairs(dude:GetChildren()) do
  1895. if v:IsA("Accessory") then
  1896. v:Destroy()
  1897. end
  1898. if v:IsA("Humanoid") then
  1899. v:Destroy()
  1900. end
  1901. if v:IsA("CharacterMesh") then
  1902. v:Destroy()
  1903. end
  1904. if v:IsA("Model") then
  1905. v:Destroy()
  1906. end
  1907. if v:IsA("Part") or v:IsA("MeshPart") then
  1908. for x, o in pairs(v:GetChildren()) do
  1909. if o:IsA("Decal") then
  1910. o:Destroy()
  1911. end
  1912. end
  1913. coroutine.resume(coroutine.create(function()
  1914. v.Material = "Neon"
  1915. v.CanCollide = false
  1916. local bld = Instance.new("ParticleEmitter", v)
  1917. bld.LightEmission = 1
  1918. bld.Texture = "rbxassetid://284205403"
  1919. bld.Color = ColorSequence.new(Color3.new(1, 1, 1))
  1920. bld.Rate = 50
  1921. bld.Lifetime = NumberRange.new(1)
  1922. bld.Size = NumberSequence.new({
  1923. NumberSequenceKeypoint.new(0, 0.75, 0),
  1924. NumberSequenceKeypoint.new(1, 0, 0)
  1925. })
  1926. bld.Transparency = NumberSequence.new({
  1927. NumberSequenceKeypoint.new(0, 0, 0),
  1928. NumberSequenceKeypoint.new(1, 1, 0)
  1929. })
  1930. bld.Speed = NumberRange.new(0, 0)
  1931. bld.VelocitySpread = 50000
  1932. bld.Rotation = NumberRange.new(-500, 500)
  1933. bld.RotSpeed = NumberRange.new(-500, 500)
  1934. local sbs = Instance.new("BodyPosition", v)
  1935. sbs.P = 3000
  1936. sbs.D = 1000
  1937. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1938. sbs.position = v.Position + Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5))
  1939. v.Color = Color3.new(1, 1, 1)
  1940. coroutine.resume(coroutine.create(function()
  1941. for i = 0, 49 do
  1942. Swait(1)
  1943. v.Transparency = v.Transparency + 0.02
  1944. end
  1945. CFuncs.Sound.Create("rbxassetid://1192402877", v, 0.25, 1)
  1946. bld.Speed = NumberRange.new(1, 5)
  1947. bld.Acceleration = vt(0, 10, 0)
  1948. wait(0.5)
  1949. bld.Enabled = false
  1950. wait(3)
  1951. v:Destroy()
  1952. dude:Destroy()
  1953. end))
  1954. end))
  1955. end
  1956. end
  1957. end))
  1958. end)
  1959. ds()
  1960. end
  1961. end
  1962. function FindNearestHead(Position, Distance, SinglePlayer)
  1963. if SinglePlayer then
  1964. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1965. end
  1966. local List = {}
  1967. for i, v in pairs(workspace:GetChildren()) do
  1968. if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
  1969. table.insert(List, v)
  1970. end
  1971. end
  1972. return List
  1973. end
  1974.  
  1975. function ChaosGroundStrike()
  1976. ATTACK = true
  1977. RH = RightHip
  1978. LH = LeftHip
  1979. RootCF = ROOTC0
  1980. necko = NECKC0
  1981. RW = RightShoulder
  1982. LW = LeftShoulder
  1983. angles = ANGLES
  1984. root = RootPart
  1985. ATTACK = true
  1986. for i = 0, 2, 0.1 do
  1987. Swait()
  1988. RightHip.C0 = Clerp(RightHip.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  1989. LeftHip.C0 = Clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  1990. RootJoint.C0 = Clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  1991. Torso.Neck.C0 = Clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  1992. RW.C0 = Clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  1993. LW.C0 = Clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  1994. end
  1995. CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1)
  1996. CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1)
  1997. CameraEnshaking(4, 12)
  1998. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  1999. if v:FindFirstChild("Head") then
  2000. dmg(v)
  2001. end
  2002. end
  2003. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, BrickColor.random())
  2004. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, BrickColor.random())
  2005. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100, 0.1, 100), 0.01, BrickColor.random())
  2006. spawn(function()
  2007. for i = 0, 2, 0.1 do
  2008. Swait()
  2009. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-52.5, 52.5), -5, math.random(-52.5, 52.5)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  2010. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-52.5, 52.5), -5, math.random(-52.5, 52.5)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  2011. RH.C0 = Clerp(RH.C0, cf(1, -1, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
  2012. LH.C0 = Clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
  2013. RootJoint.C0 = Clerp()(RootJoint.C0, RootCF * cf(0.01, 0.01, 0.01) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  2014. Torso.Neck.C0 = Clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  2015. RW.C0 = Clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  2016. LW.C0 = Clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  2017. end
  2018. end)
  2019. for i = 0, 2, 0.1 do
  2020. Swait()
  2021. end
  2022. ATTACK = false
  2023. end
  2024.  
  2025. --//=================================\\
  2026. --|| ASSIGN THINGS TO KEYS
  2027. --\\=================================//
  2028.  
  2029. function MouseDown(Mouse)
  2030. HOLD = true
  2031. if ATTACK == false then
  2032. end
  2033. end
  2034.  
  2035. function MouseUp(Mouse)
  2036. HOLD = false
  2037. end
  2038.  
  2039. function KeyDown(Key)
  2040. KEYHOLD = true
  2041. if Key == "z" and ATTACK == false then
  2042. Warden_Zap()
  2043. end
  2044.  
  2045. if Key == "b" and ATTACK == false then
  2046. Warden_Thunder()
  2047. end
  2048.  
  2049. if Key == "c" and ATTACK == false then
  2050. Inferno_Ring()
  2051. end
  2052.  
  2053. if Key == "v" and ATTACK == false then
  2054. Warden_Wall()
  2055. end
  2056.  
  2057. if Key == "x" and ATTACK == false then
  2058. Prison_Key()
  2059. end
  2060.  
  2061. if Key == "t" and ATTACK == false then
  2062. Hat()
  2063. end
  2064. if Key == "n" and ATTACK == false then
  2065. Shot()
  2066. end
  2067. if Key == "y" and ATTACK == false then
  2068. Face()
  2069. end
  2070. if Key == "m" and ATTACK == false then
  2071. ChaosGroundStrike()
  2072. end
  2073. end
  2074.  
  2075. function KeyUp(Key)
  2076. KEYHOLD = false
  2077. end
  2078.  
  2079. Mouse.Button1Down:connect(function(NEWKEY)
  2080. MouseDown(NEWKEY)
  2081. end)
  2082. Mouse.Button1Up:connect(function(NEWKEY)
  2083. MouseUp(NEWKEY)
  2084. end)
  2085. Mouse.KeyDown:connect(function(NEWKEY)
  2086. KeyDown(NEWKEY)
  2087. end)
  2088. Mouse.KeyUp:connect(function(NEWKEY)
  2089. KeyUp(NEWKEY)
  2090. end)
  2091.  
  2092. --//=================================\\
  2093. --\\=================================//
  2094.  
  2095.  
  2096. function unanchor()
  2097. if UNANCHOR == true then
  2098. g = Character:GetChildren()
  2099. for i = 1, #g do
  2100. if g[i].ClassName == "Part" then
  2101. g[i].Anchored = false
  2102. end
  2103. end
  2104. end
  2105. end
  2106.  
  2107.  
  2108. --//=================================\\
  2109. --|| WRAP THE WHOLE SCRIPT UP
  2110. --\\=================================//
  2111.  
  2112. Humanoid.Changed:connect(function(Jump)
  2113. if Jump == "Jump" and (Disable_Jump == true) then
  2114. Humanoid.Jump = false
  2115. end
  2116. end)
  2117.  
  2118. while true do
  2119. Swait()
  2120. script.Parent = WEAPONGUI
  2121. Humanoid.Parent = Character
  2122. if Humanoid then
  2123. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2124. IDLEANIMATION:Play()
  2125. end
  2126. if ANIMATE.Parent == Character then
  2127. ANIMATE:Destroy()
  2128. end
  2129. SINE = SINE + CHANGE
  2130. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2131. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2132. Humanoid.HipHeight = 1
  2133. Humanoid.Name = "Warden"
  2134. Humanoid.PlatformStand = false
  2135. if PLAYMAINANIM == true then
  2136. if TORSOVELOCITY < 1 then
  2137. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2138. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2139. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2140. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2141. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  2142. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2143. elseif TORSOVELOCITY > 1 then
  2144. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2145. 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)
  2146. 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)
  2147. 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)
  2148. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-20)), 0.15 / Animation_Speed)
  2149. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(10)), 0.15 / Animation_Speed)
  2150. end
  2151. end
  2152. unanchor()
  2153. Humanoid.MaxHealth = "inf"
  2154. Humanoid.Health = "inf"
  2155. if Rooted == false then
  2156. Disable_Jump = false
  2157. Humanoid.WalkSpeed = Speed
  2158. elseif Rooted == true then
  2159. Disable_Jump = true
  2160. Humanoid.WalkSpeed = 0
  2161. end
  2162. for _, c in pairs(Character:GetChildren()) do
  2163. if c.ClassName == "Part" and c.Name ~= "Eye" then
  2164. c.Material = "Neon"
  2165. if c:FindFirstChildOfClass("ParticleEmitter") then
  2166. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  2167. end
  2168. c.Color = C3(1,1,1)
  2169. if c == Head then
  2170. if c:FindFirstChild("face") then
  2171. c.face:remove()
  2172. end
  2173. end
  2174. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  2175. c:remove()
  2176. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  2177. c:remove()
  2178. end
  2179. end
  2180. sick.SoundId = "rbxassetid://1494340971"
  2181. sick.Looped = true
  2182. sick.Pitch = 1
  2183. sick.Volume = 3
  2184. sick:Resume()
  2185. sick.Parent = Torso
  2186. refit()
  2187. if Head:FindFirstChildOfClass("Sound") then
  2188. Head:FindFirstChildOfClass("Sound"):remove()
  2189. end
  2190. end
  2191.  
  2192. --//=================================\\
  2193. --\\=================================//
  2194.  
  2195.  
  2196.  
  2197.  
  2198.  
  2199. --//====================================================\\--
  2200. --|| END OF SCRIPT
  2201. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement