Advertisement
SirSkyvalky

pixelward fe

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