Advertisement
doryna2281337

Untitled

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