VoidScriptPlayer

Untitled

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