Advertisement
Zebula_The_Scripter

Mr Pixels FE

Sep 1st, 2018
872
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 68.58 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player = owner
  3. local Mouse,mouse,UserInputService,ContextActionService
  4. do
  5. script.Parent = Player.Character
  6. local CAS = {Actions={}}
  7. local Event = Instance.new("RemoteEvent")
  8. Event.Name = "UserInput_Event"
  9. Event.Parent = Player.Character
  10. local fakeEvent = function()
  11. local t = {_fakeEvent=true}
  12. t.Connect = function(self,f)self.Function=f end
  13. t.connect = t.Connect
  14. return t
  15. end
  16. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  17. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  18. function CAS:BindAction(name,fun,touch,...)
  19. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  20. end
  21. function CAS:UnbindAction(name)
  22. CAS.Actions[name] = nil
  23. end
  24. local function te(self,ev,...)
  25. local t = m[ev]
  26. if t and t._fakeEvent and t.Function then
  27. t.Function(...)
  28. end
  29. end
  30. m.TrigEvent = te
  31. UIS.TrigEvent = te
  32. Event.OnServerEvent:Connect(function(plr,io)
  33. if plr~=Player then return end
  34. if io.isMouse then
  35. m.Target = io.Target
  36. m.Hit = io.Hit
  37. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  38. if io.UserInputState == Enum.UserInputState.Begin then
  39. m:TrigEvent("Button1Down")
  40. else
  41. m:TrigEvent("Button1Up")
  42. end
  43. else
  44. for n,t in pairs(CAS.Actions) do
  45. for _,k in pairs(t.Keys) do
  46. if k==io.KeyCode then
  47. t.Function(t.Name,io.UserInputState,io)
  48. end
  49. end
  50. end
  51. if io.UserInputState == Enum.UserInputState.Begin then
  52. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  53. UIS:TrigEvent("InputBegan",io,false)
  54. else
  55. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  56. UIS:TrigEvent("InputEnded",io,false)
  57. end
  58. end
  59. end)
  60. NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62.  
  63. local Char = Player.Character
  64. local Event = Char:WaitForChild("UserInput_Event")
  65.  
  66. local UIS = game:GetService("UserInputService")
  67.  
  68. local input = function(io,a)
  69. if a then return end
  70. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  71. Event:FireServer(io)
  72. end
  73. UIS.InputBegan:Connect(input)
  74. UIS.InputEnded:Connect(input)
  75. local Changed = false
  76.  
  77. local h,t = Mouse.Hit,Mouse.Target
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  81. h,t=Mouse.Hit,Mouse.Target
  82. end
  83. end
  84. ]==],Player.Character)
  85. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  86. end
  87.  
  88. --//====================================================\\--
  89. --|| CREATED BY SHACKLUSTER
  90. --\\====================================================//--
  91.  
  92. wait(0.2)
  93.  
  94. Player = owner
  95. PlayerGui = Player.PlayerGui
  96. Cam = workspace.CurrentCamera
  97. Backpack = Player.Backpack
  98. Character = Player.Character
  99. Humanoid = Character.Humanoid
  100. RootPart = Character["HumanoidRootPart"]
  101. Torso = Character["Torso"]
  102. Head = Character["Head"]
  103. RightArm = Character["Right Arm"]
  104. LeftArm = Character["Left Arm"]
  105. RightLeg = Character["Right Leg"]
  106. LeftLeg = Character["Left Leg"]
  107. RootJoint = RootPart["RootJoint"]
  108. Neck = Torso["Neck"]
  109. RightShoulder = Torso["Right Shoulder"]
  110. LeftShoulder = Torso["Left Shoulder"]
  111. RightHip = Torso["Right Hip"]
  112. LeftHip = Torso["Left Hip"]
  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 = 20
  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 = "PIXELGUI"
  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 SONG = 853518668
  167. local DEAD = false
  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. function CFrameFromTopBack(at, top, back)
  437. local right = top:Cross(back)
  438. 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)
  439. end
  440.  
  441. --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})
  442. function WACKYEFFECT(Table)
  443. local TYPE = (Table.EffectType or "Sphere")
  444. local SIZE = (Table.Size or VT(1,1,1))
  445. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  446. local TRANSPARENCY = (Table.Transparency or 0)
  447. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  448. local CFRAME = (Table.CFrame or Torso.CFrame)
  449. local MOVEDIRECTION = (Table.MoveToPos or nil)
  450. local ROTATION1 = (Table.RotationX or 0)
  451. local ROTATION2 = (Table.RotationY or 0)
  452. local ROTATION3 = (Table.RotationZ or 0)
  453. local MATERIAL = (Table.Material or "Neon")
  454. local COLOR = (Table.Color or C3(1,1,1))
  455. local TIME = (Table.Time or 45)
  456. local SOUNDID = (Table.SoundID or nil)
  457. local SOUNDPITCH = (Table.SoundPitch or nil)
  458. local SOUNDVOLUME = (Table.SoundVolume or nil)
  459. coroutine.resume(coroutine.create(function()
  460. local PLAYSSOUND = false
  461. local SOUND = nil
  462. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  463. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  464. PLAYSSOUND = true
  465. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  466. end
  467. EFFECT.Color = COLOR
  468. local MSH = nil
  469. if TYPE == "Sphere" then
  470. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  471. elseif TYPE == "Block" or TYPE == "Box" then
  472. MSH = IT("BlockMesh",EFFECT)
  473. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  474. elseif TYPE == "Wave" then
  475. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  476. elseif TYPE == "Ring" then
  477. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  478. elseif TYPE == "Slash" then
  479. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  480. elseif TYPE == "Round Slash" then
  481. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  482. elseif TYPE == "Swirl" then
  483. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  484. elseif TYPE == "Skull" then
  485. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  486. elseif TYPE == "Crystal" then
  487. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  488. end
  489. if MSH ~= nil then
  490. local MOVESPEED = nil
  491. if MOVEDIRECTION ~= nil then
  492. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  493. end
  494. local GROWTH = SIZE - ENDSIZE
  495. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  496. if TYPE == "Block" then
  497. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  498. else
  499. EFFECT.CFrame = CFRAME
  500. end
  501. for LOOP = 1, TIME+1 do
  502. Swait()
  503. MSH.Scale = MSH.Scale - GROWTH/TIME
  504. if TYPE == "Wave" then
  505. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  506. end
  507. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  508. if TYPE == "Block" then
  509. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  510. else
  511. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  512. end
  513. if MOVEDIRECTION ~= nil then
  514. local ORI = EFFECT.Orientation
  515. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  516. EFFECT.Orientation = ORI
  517. end
  518. end
  519. if PLAYSSOUND == false then
  520. EFFECT:remove()
  521. else
  522. repeat Swait() until SOUND.Playing == false
  523. EFFECT:remove()
  524. end
  525. else
  526. if PLAYSSOUND == false then
  527. EFFECT:remove()
  528. else
  529. repeat Swait() until SOUND.Playing == false
  530. EFFECT:remove()
  531. end
  532. end
  533. end))
  534. end
  535.  
  536. function MakeForm(PART,TYPE)
  537. if TYPE == "Cyl" then
  538. local MSH = IT("CylinderMesh",PART)
  539. elseif TYPE == "Ball" then
  540. local MSH = IT("SpecialMesh",PART)
  541. MSH.MeshType = "Sphere"
  542. elseif TYPE == "Wedge" then
  543. local MSH = IT("SpecialMesh",PART)
  544. MSH.MeshType = "Wedge"
  545. end
  546. end
  547.  
  548. Debris = game:GetService("Debris")
  549.  
  550. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  551. local DIRECTION = CF(StartPos,EndPos).lookVector
  552. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  553. end
  554.  
  555. function turnto(position)
  556. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  557. end
  558.  
  559. --//=================================\\
  560. --|| WEAPON CREATION
  561. --\\=================================//
  562.  
  563. local sick = CreateSound(853518668, Torso, 3, 0.9, true)
  564.  
  565. Head:ClearAllChildren()
  566.  
  567. local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Detail", VT(2,0.2,2),false)
  568. HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0))
  569. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Part", VT(1.35,0.4,1.35),false)
  570. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0.25,0), CF(0, 0, 0))
  571. local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Detail", VT(1.3,2.2,1.3),false)
  572. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0))
  573.  
  574. local TIE1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Detail", VT(0.5,0.5,0),false)
  575. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, TIE1, CF(0,0.8,-0.5), CF(0, 0, 0))
  576. local TIE2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Detail", VT(0.2,0.5,0),false)
  577. CreateWeldOrSnapOrMotor("Weld", TIE1, TIE1, TIE2, CF(0,-0.5,0), CF(0, 0, 0))
  578. local TIE3 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Detail", VT(0.5,1,0),false)
  579. CreateWeldOrSnapOrMotor("Weld", TIE2, TIE2, TIE3, CF(0,-0.75,0), CF(0, 0, 0))
  580.  
  581. Humanoid.DisplayDistanceType = "None"
  582. local naeeym2 = IT("BillboardGui",Character)
  583. naeeym2.AlwaysOnTop = true
  584. naeeym2.Size = UDim2.new(5,35,2,15)
  585. naeeym2.StudsOffset = Vector3.new(0,6,0)
  586. naeeym2.MaxDistance = 75
  587. naeeym2.Adornee = RootPart
  588. naeeym2.Name = "Name"
  589. naeeym2.PlayerToHideFrom = Player
  590. local tecks2 = IT("TextLabel",naeeym2)
  591. tecks2.BackgroundTransparency = 1
  592. tecks2.TextScaled = true
  593. tecks2.BorderSizePixel = 0
  594. tecks2.Text = "Mr Pixels"
  595. tecks2.Font = "Arcade"
  596. tecks2.TextSize = 20
  597. tecks2.TextStrokeTransparency = 1
  598. tecks2.TextColor3 = BRICKC"Cyan".Color
  599. tecks2.TextStrokeColor3 = BRICKC"Cyan".Color
  600. tecks2.Size = UDim2.new(1,0,0.5,0)
  601. tecks2.Parent = naeeym2
  602.  
  603. local MESH = IT("BlockMesh",Head)
  604. MESH.Scale = VT(0.5,1,1)
  605.  
  606. local SKILLTEXTCOLOR = BRICKC"Cyan".Color
  607. local SKILLFONT = "Arcade"
  608. local SKILLTEXTSIZE = 7
  609.  
  610. Humanoid.Died:connect(function()
  611. for _, c in pairs(Character:GetChildren()) do
  612. if c:IsA("BasePart") then
  613. c.Anchored = true
  614. end
  615. end
  616. naeeym2:remove()
  617. ATTACK = true
  618. DEAD = true
  619. UNANCHOR = false
  620. Character.PrimaryPart = RootPart
  621. CreateSound(580288658, Effects, 3, 1, false)
  622. Humanoid:remove()
  623. for i = 1, 50 do
  624. wait()
  625. Character:SetPrimaryPartCFrame(RootPart.CFrame *CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(90)))
  626. end
  627. UNANCHOR = true
  628. for _, c in pairs(Character:GetChildren()) do
  629. if c:IsA("BasePart") then
  630. c.CanCollide = true
  631. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(45,85),MRANDOM(-45,45))
  632. end
  633. end
  634. end)
  635.  
  636. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  637. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  638. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  639. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.72, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  640.  
  641. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
  642. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  643. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  644. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
  645.  
  646. --//=================================\\
  647. --|| DAMAGING
  648. --\\=================================//
  649.  
  650. function ApplyDamage(Humanoid,Damage)
  651. Damage = Damage * DAMAGEMULTIPLIER
  652. if Humanoid.Health ~= 0 then
  653. Humanoid.Health = Humanoid.Health - Damage
  654. end
  655. end
  656.  
  657. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  658. local CHILDREN = workspace:GetDescendants()
  659. for index, CHILD in pairs(CHILDREN) do
  660. if CHILD.ClassName == "Model" and CHILD ~= Character then
  661. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  662. if HUM then
  663. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  664. if TORSO then
  665. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  666. if INSTAKILL == true then
  667. CHILD:BreakJoints()
  668. else
  669. local DMG = MRANDOM(MINDMG,MAXDMG)
  670. ApplyDamage(HUM,DMG)
  671. end
  672. if FLING > 0 then
  673. for _, c in pairs(CHILD:GetChildren()) do
  674. if c:IsA("BasePart") then
  675. local bv = Instance.new("BodyVelocity")
  676. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  677. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  678. bv.Parent = c
  679. Debris:AddItem(bv,0.05)
  680. end
  681. end
  682. end
  683. end
  684. end
  685. end
  686. end
  687. end
  688. end
  689.  
  690. function APPLYMELEE(PART,MINDMG,MAXDMG)
  691. local ONESHOT = false
  692. if MINDMG == "inf" then
  693. ONESHOT = true
  694. end
  695. local HITS = {}
  696. local TOUCH = PART.Touched:Connect(function(hit)
  697. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent ~= Character then
  698. local HUM = hit.Parent:FindFirstChildOfClass("Humanoid")
  699. local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  700. if TORSO and HUM.Health > 0 then
  701. local PASS = true
  702. for i = 1, #HITS do
  703. if HITS[i] == hit.Parent then
  704. PASS = false
  705. end
  706. end
  707. table.insert(HITS,hit.Parent)
  708. if PASS == true then
  709. if ONESHOT == false then
  710. ApplyDamage(HUM,MRANDOM(MINDMG,MAXDMG))
  711. else
  712. CreateSound(1538571923, TORSO, 10, 1, false)
  713. HUM.Parent:BreakJoints()
  714. HUM:remove()
  715. for _, c in pairs(TORSO.Parent:GetChildren()) do
  716. if c:IsA("BasePart") then
  717. c.CanCollide = true
  718. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(45,85),MRANDOM(-45,45))
  719. Debris:AddItem(c,MRANDOM(5,20)/10)
  720. end
  721. end
  722. end
  723. end
  724. end
  725. end
  726. end)
  727. return TOUCH
  728. end
  729.  
  730. function GoombaStomp(OBJECT)
  731. for _, c in pairs(OBJECT:GetChildren()) do
  732. if c:IsA("BasePart") then
  733. c.Size = VT(c.Size.X,0,c.Size.Z)
  734. end
  735. end
  736. end
  737.  
  738. --//=================================\\
  739. --|| ATTACK FUNCTIONS AND STUFF
  740. --\\=================================//
  741.  
  742. function MushroomAi(Mushroom)
  743. coroutine.resume(coroutine.create(function()
  744. for i = 1, 500 do
  745. wait()
  746. local DISTANCE = 500
  747. local TARGET = nil
  748. local HUMAN = nil
  749. for _, c in pairs(workspace:GetChildren()) do
  750. if c.ClassName == "Model" and c:FindFirstChildOfClass("Humanoid") and c ~= Character then
  751. local HUM = c:FindFirstChildOfClass("Humanoid")
  752. local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
  753. if TORSO and HUM.Health > 0 then
  754. if (TORSO.Position - Mushroom.PrimaryPart.Position).Magnitude < DISTANCE then
  755. DISTANCE = (TORSO.Position - Mushroom.PrimaryPart.Position).Magnitude
  756. TARGET = TORSO
  757. HUMAN = HUM
  758. end
  759. end
  760. end
  761. end
  762. if TARGET then
  763. local HITFLOOR,HITPOS = Raycast(Mushroom.PrimaryPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 1, Mushroom)
  764. if HITFLOOR then
  765. local CFRAME = CF(Mushroom.PrimaryPart.Position,VT(TARGET.Position.X,Mushroom.PrimaryPart.Position.Y,TARGET.Position.Z))*CF(0,0,-0.3).p
  766. Mushroom:SetPrimaryPartCFrame(CF(CFRAME))
  767. local DIST = (TARGET.Position - Mushroom.PrimaryPart.Position).Magnitude
  768. if DIST < 4*(TARGET.Size.Y/2) then
  769. HUMAN.Health = HUMAN.Health - (HUMAN.MaxHealth-1)
  770. break
  771. end
  772. else
  773. Mushroom:SetPrimaryPartCFrame(CF(HITPOS))
  774. end
  775. end
  776. end
  777. Mushroom:remove()
  778. end))
  779. end
  780.  
  781. function QuestionMarkBlock()
  782. ATTACK = true
  783. Rooted = true
  784. local BLOCKMODEL = IT("Model",Effects)
  785. local LOAD = false
  786. local BLOCK = CreatePart(3, BLOCKMODEL, "Neon", 0, 0, "New Yeller", "Base", VT(2,2,2))
  787. BLOCK.CFrame = CF(RootPart.CFrame*CF(0,15,0).p)
  788. BLOCKMODEL.PrimaryPart = BLOCK
  789. for i = 1, 4 do
  790. local BASE = CreatePart(3, BLOCKMODEL, "Neon", 0, 1, "New Yeller", "Blocc", VT(1.3,1.3,2)*1.001)
  791. BASE.CFrame = BLOCK.CFrame * ANGLES(RAD(0), RAD((360/4)*i), RAD(0))
  792. local DECAL = IT("Decal",BASE)
  793. DECAL.Texture = "http://www.roblox.com/asset/?id=1019185679"
  794. local PART = CreatePart(3, BLOCKMODEL, "Neon", 0, 0, "Pearl", "Blocc", VT(0.2,0.2,2.1))
  795. PART.CFrame = BASE.CFrame*CF(0.75,0.75,0)
  796. local PART = CreatePart(3, BLOCKMODEL, "Neon", 0, 0, "Pearl", "Blocc", VT(0.2,0.2,2.1))
  797. PART.CFrame = BASE.CFrame*CF(0.75,-0.75,0)
  798. end
  799. local LANDED = false
  800. local HIT = false
  801. local LOOP = 0
  802. coroutine.resume(coroutine.create(function()
  803. repeat
  804. Swait()
  805. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  806. 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)
  807. 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)
  808. 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)
  809. 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)
  810. 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)
  811. until LOAD == true
  812. repeat
  813. Swait()
  814. if HIT == false then
  815. local HITFLOOR = Raycast(BLOCK.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 1.2, BLOCKMODEL)
  816. if HITFLOOR then
  817. HIT = true
  818. coroutine.resume(coroutine.create(function()
  819. local CFRAME = BLOCK.CFrame
  820. RootPart.Velocity = VT(0,0,0)
  821. RootPart.RotVelocity = VT(0,0,0)
  822. for i = 1, 5 do
  823. wait()
  824. RootPart.Velocity = VT(0,-i*4,0)
  825. RootPart.RotVelocity = VT(0,0,0)
  826. BLOCKMODEL:SetPrimaryPartCFrame(Clerp(CFRAME, CFRAME*CF(0,(5-i),0), 1 / Animation_Speed))
  827. end
  828. BLOCK.BrickColor = BRICKC"Dirt brown"
  829. for _, c in pairs(BLOCKMODEL:GetChildren()) do
  830. if c:IsA("BasePart") and c.Name ~= "Base" then
  831. c:remove()
  832. end
  833. end
  834. CreateSound(1246464612, BLOCK, 10, 1, false)
  835. local SIZE = 2.25
  836. local MUSHROOM = IT("Model",Effects)
  837. local BASE = CreatePart(3, MUSHROOM, "Neon", 0, 0, "Fawn brown", "Shroom", VT(0.5,0.5,0.5)*SIZE)
  838. MUSHROOM.PrimaryPart = BASE
  839. local HEAD = CreatePart(3, MUSHROOM, "Neon", 0, 0, "Mulberry", "Shroom", VT(0.75,0.45,0.75)*SIZE)
  840. HEAD.CFrame = BASE.CFrame*CF(0,0.35*SIZE,0)
  841. for i = 1, 2 do
  842. local DOT = CreatePart(3, MUSHROOM, "Neon", 0, 0, "Lime green", "Shroom", VT(0.35,0.35,0.8)*SIZE)
  843. DOT.CFrame = HEAD.CFrame * ANGLES(RAD(0), RAD((180/2)*i), RAD(0))
  844. end
  845. local HEAD = CreatePart(3, MUSHROOM, "Neon", 0, 0, "Mulberry", "Shroom", VT(0.55,0.45,0.55)*SIZE)
  846. HEAD.CFrame = BASE.CFrame*CF(0,0.55*SIZE,0)
  847. MUSHROOM:SetPrimaryPartCFrame(BLOCK.CFrame)
  848. for i = 1, 30 do
  849. wait()
  850. MUSHROOM:SetPrimaryPartCFrame(BLOCK.CFrame*CF(0,-0.35+(i/18),0))
  851. end
  852. MushroomAi(MUSHROOM)
  853. Debris:AddItem(BLOCKMODEL,5)
  854. end))
  855. end
  856. else
  857. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  858. if HITFLOOR then
  859. LANDED = true
  860. end
  861. end
  862. LOOP = LOOP + 1
  863. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  864. 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)
  865. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, -0.2) * ANGLES(RAD(150), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  866. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  867. 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)
  868. 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)
  869. until LANDED == true or ATTACK == false
  870. end))
  871. wait(1)
  872. LOAD = true
  873. CreateSound(158309736, Torso, 10, 1, false)
  874. local bv = Instance.new("BodyVelocity",RootPart)
  875. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  876. bv.velocity = CF(RootPart.Position,BLOCK.Position).lookVector*150
  877. Debris:AddItem(bv,0.05)
  878. repeat wait() until LANDED == true or LOOP > 45
  879. Debris:AddItem(BLOCKMODEL,5)
  880. ATTACK = false
  881. Rooted = false
  882. end
  883.  
  884. function SwordBeam()
  885. ATTACK = true
  886. Rooted = false
  887. local SWORDMODEL = IT("Model",Effects)
  888. local HANDLE = CreatePart(3, SWORDMODEL, "Neon", 0, 0, "Shamrock", "Stic", VT(0.2,2,0.2),false)
  889. local GRIP = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, HANDLE, CF(0,-1,0)* ANGLES(RAD(-90), RAD(90), RAD(0)), CF(0, -0.3, 0))
  890. local PART = CreatePart(3, SWORDMODEL, "Neon", 0, 0, "Shamrock", "Stic", VT(1,0.2,0.2),false)
  891. CreateWeldOrSnapOrMotor("Weld", HANDLE, HANDLE, PART, CF(0,1,0), CF(0, 0, 0))
  892. local PART = CreatePart(3, SWORDMODEL, "Neon", 0, 0, "Pearl", "Stic", VT(0.5,2,0.1),false)
  893. CreateWeldOrSnapOrMotor("Weld", HANDLE, HANDLE, PART, CF(0,2,0), CF(0, 0, 0))
  894. local PART = CreatePart(3, SWORDMODEL, "Neon", 0, 0, "Pearl", "Stic", VT(0.25,2,0.1),false)
  895. CreateWeldOrSnapOrMotor("Weld", HANDLE, HANDLE, PART, CF(0,2.25,0), CF(0, 0, 0))
  896. for i=0, 1, 0.1 / Animation_Speed do
  897. Swait()
  898. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  899. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  900. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(160), RAD(15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  901. 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)
  902. 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)
  903. 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)
  904. end
  905. coroutine.resume(coroutine.create(function()
  906. local BEAM = IT("Model",Effects)
  907. local BASE = CreatePart(3, BEAM, "Neon", 0, 0, "Really red", "Stic", VT(0.1,0.5,2))
  908. BASE.CFrame = RootPart.CFrame*CF(1.5,-0.4,0)
  909. local PART = CreatePart(3, BEAM, "Neon", 0, 0, "Really red", "Stic", VT(0.1,0.25,2))
  910. PART.CFrame = BASE.CFrame*CF(0,0,-0.2)
  911. for i = 1, 4 do
  912. local PART = CreatePart(3, BEAM, "Neon", 0, 0, "Really red", "Stic", VT(0.1,0.75,0.1))
  913. PART.CFrame = BASE.CFrame*CF(0,0,-0.8+(i/2.5))
  914. end
  915. BEAM.PrimaryPart = BASE
  916. for i = 1, 75 do
  917. wait()
  918. BEAM:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0,-2))
  919. local HITFLOOR = Raycast(BASE.Position, BASE.CFrame.lookVector, 2.1, Character)
  920. if HITFLOOR then
  921. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  922. local HUM = HITFLOOR.Parent:FindFirstChildOfClass("Humanoid")
  923. ApplyDamage(HUM,15)
  924. end
  925. break
  926. end
  927. end
  928. BEAM:remove()
  929. end))
  930. for i=0, 0.05, 0.1 / Animation_Speed do
  931. Swait()
  932. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  933. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  934. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(25), RAD(15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  935. 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)
  936. 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)
  937. 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)
  938. end
  939. for i=0, 0.5, 0.1 / Animation_Speed do
  940. Swait()
  941. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  942. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  943. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(-25), RAD(15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  944. 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)
  945. 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)
  946. 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)
  947. end
  948. SWORDMODEL:remove()
  949. ATTACK = false
  950. Rooted = false
  951. end
  952.  
  953. function Candy()
  954. ATTACK = true
  955. Rooted = true
  956. local CANDYMODEL = IT("Model",Effects)
  957. local HANDLE = CreatePart(3, CANDYMODEL, "Neon", 0, 0, "Dirt brown", "Stic", VT(0.2,1,0.2),false)
  958. local GRIP = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, HANDLE, CF(0,-1,0)* ANGLES(RAD(-90), RAD(90), RAD(0)), CF(0, -0.3, 0))
  959. local HEAD1 = CreatePart(3, CANDYMODEL, "Neon", 0, 0, "Pearl", "Stic", VT(1,1,0.21),false)
  960. CreateWeldOrSnapOrMotor("Weld", HANDLE, HANDLE, HEAD1, CF(0,1,0)* ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  961. local HEAD2 = CreatePart(3, CANDYMODEL, "Neon", 0, 0, "Really red", "Stic", VT(0.85,0.85,0.22),false)
  962. CreateWeldOrSnapOrMotor("Weld", HEAD1, HEAD1, HEAD2, CF(0,0,0)* ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  963. local HEAD3 = CreatePart(3, CANDYMODEL, "Neon", 0, 0, "Pearl", "Stic", VT(0.55,0.55,0.23),false)
  964. CreateWeldOrSnapOrMotor("Weld", HEAD2, HEAD2, HEAD3, CF(0,0,0)* ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  965. local HEAD4 = CreatePart(3, CANDYMODEL, "Neon", 0, 0, "Really red", "Stic", VT(0.25,0.25,0.24),false)
  966. CreateWeldOrSnapOrMotor("Weld", HEAD3, HEAD3, HEAD4, CF(0,0,0)* ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  967. local THROWN = false
  968. local THROW = Mouse.Button1Down:connect(function(NEWKEY)
  969. THROWN = true
  970. end)
  971. for i=0, 2, 0.1 / Animation_Speed do
  972. Swait()
  973. if THROWN == true then
  974. break
  975. end
  976. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  977. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  978. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(120), RAD(15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  979. 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)
  980. 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)
  981. 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)
  982. end
  983. THROW:disconnect()
  984. for i=0, 1, 0.1 / Animation_Speed do
  985. Swait()
  986. if THROWN == true then
  987. break
  988. end
  989. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  990. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
  991. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.15+sick.PlaybackLoudness/1200, 0.3) * ANGLES(RAD(100), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  992. 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)
  993. 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)
  994. 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)
  995. end
  996. if THROWN == false then
  997. CANDYMODEL:remove()
  998. coroutine.resume(coroutine.create(function()
  999. SONG = 554418756
  1000. Speed = 35
  1001. sick:Play()
  1002. for i = 1, 150 do
  1003. local MELEES = {}
  1004. for _, c in pairs(Character:GetChildren()) do
  1005. if c:IsA("BasePart") then
  1006. local MELEE = APPLYMELEE(c,"inf","inf")
  1007. table.insert(MELEES,MELEE)
  1008. WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(1,1,1)/2, Size2 = VT(1,1,1)/2, Transparency = .7, Transparency2 = 1, CFrame = c.CFrame*ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))*CF(0,0,2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1009. end
  1010. end
  1011. wait(0.1)
  1012. for e = 1, #MELEES do
  1013. MELEES[e]:disconnect()
  1014. end
  1015. end
  1016. sick:Play()
  1017. Speed = 20
  1018. SONG = 853518668
  1019. end))
  1020. else
  1021. local GIVEINV = function(OBJECT,HUMAN)
  1022. local TORSO = OBJECT:FindFirstChild("Torso") or OBJECT:FindFirstChild("UpperTorso")
  1023. if TORSO then
  1024. if TORSO:FindFirstChild("YAY") == nil then
  1025. local MUSIC = CreateSound(554418756, TORSO, 3, 1, true)
  1026. MUSIC.Name = "YAY"
  1027. HUMAN.WalkSpeed = 35
  1028. local HEALTH = HUMAN.MaxHealth
  1029. for i = 1, 150 do
  1030. HUMAN.MaxHealth = 999999999999999999*999999999999999999*999999999999999999*999999999999999999
  1031. HUMAN.Health = HUMAN.MaxHealth
  1032. MUSIC.Parent = TORSO
  1033. local MELEES = {}
  1034. for _, c in pairs(OBJECT:GetChildren()) do
  1035. if c:IsA("BasePart") then
  1036. local MELEE = APPLYMELEE(c,"inf","inf")
  1037. table.insert(MELEES,MELEE)
  1038. WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(1,1,1)/2, Size2 = VT(1,1,1)/2, Transparency = .7, Transparency2 = 1, CFrame = c.CFrame*ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))*CF(0,0,2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1039. end
  1040. end
  1041. wait(0.1)
  1042. for e = 1, #MELEES do
  1043. MELEES[e]:disconnect()
  1044. end
  1045. end
  1046. HUMAN.MaxHealth = HEALTH
  1047. HUMAN.Health = HUMAN.MaxHealth
  1048. MUSIC:remove()
  1049. HUMAN.WalkSpeed = 16
  1050. end
  1051. end
  1052. end
  1053. for i=0, 1, 0.1 / Animation_Speed do
  1054. Swait()
  1055. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1056. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1057. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(160), RAD(15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1058. 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)
  1059. 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)
  1060. 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)
  1061. end
  1062. for i=0, 0.05, 0.1 / Animation_Speed do
  1063. Swait()
  1064. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1065. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1066. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(25), RAD(15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1067. 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)
  1068. 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)
  1069. 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)
  1070. end
  1071. for _, c in pairs(CANDYMODEL:GetChildren()) do
  1072. if c:IsA("BasePart") then
  1073. c.CanCollide = true
  1074. c.Touched:Connect(function(hit)
  1075. if hit.Parent ~= Character then
  1076. if hit.Parent:FindFirstChildOfClass("Humanoid") then
  1077. CANDYMODEL:remove()
  1078. GIVEINV(hit.Parent,hit.Parent:FindFirstChildOfClass("Humanoid"))
  1079. end
  1080. end
  1081. end)
  1082. end
  1083. end
  1084. GRIP:remove()
  1085. HANDLE.Velocity = CF(HANDLE.Position,Torso.CFrame*CF(0,7,-15).p).lookVector*MRANDOM(45,80)
  1086. Debris:AddItem(CANDYMODEL,10)
  1087. for i=0, 0.4, 0.1 / Animation_Speed do
  1088. Swait()
  1089. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1090. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1091. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(25), RAD(15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1092. 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)
  1093. 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)
  1094. 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)
  1095. end
  1096. end
  1097. ATTACK = false
  1098. Rooted = false
  1099. end
  1100.  
  1101. function Peashooter()
  1102. ATTACK = true
  1103. Rooted = true
  1104. local LOADED = false
  1105. local BLASTER = IT("Model",Effects)
  1106. local HANDLE = CreatePart(3, BLASTER, "Neon", 0, 1, "Cyan", "Shooter", VT(1.3,1.4,1.3),false)
  1107. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, HANDLE, CF(0,-0.5,0), CF(0, 0, 0))
  1108. local HANDLE = CreatePart(3, BLASTER, "Neon", 0, 1, "Cyan", "Shooter", VT(1.1,1.4,1.1),false)
  1109. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, HANDLE, CF(0,-0.75,0), CF(0, 0, 0))
  1110. local SHOT = false
  1111. local FINISHED = false
  1112. coroutine.resume(coroutine.create(function()
  1113. for i=0, 1, 0.1 / Animation_Speed do
  1114. Swait()
  1115. turnto(Mouse.Hit.p)
  1116. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1117. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1118. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(160), RAD(15), RAD(-2+sick.PlaybackLoudness/45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1119. 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)
  1120. 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)
  1121. 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)
  1122. end
  1123. LOADED = true
  1124. WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(1,1,1)*3, Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1125. for _, c in pairs(BLASTER:GetChildren()) do
  1126. if c:IsA("BasePart") then
  1127. c.Transparency = 0
  1128. end
  1129. end
  1130. repeat
  1131. Swait()
  1132. turnto(Mouse.Hit.p)
  1133. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1134. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1135. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(80), RAD(15), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1136. 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)
  1137. 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)
  1138. 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)
  1139. until SHOT == true
  1140. repeat
  1141. turnto(Mouse.Hit.p)
  1142. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1143. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1144. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(80), RAD(15), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1145. 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)
  1146. 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)
  1147. 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)
  1148. coroutine.resume(coroutine.create(function()
  1149. local BULLET = IT("Model",Effects)
  1150. local MAIN = CreatePart(3, BULLET, "Neon", 0, 0, "Cork", "Bullet", VT(1,1,1.5))
  1151. CreateSound(635556833, RightArm, 3, 1, false)
  1152. BULLET.PrimaryPart = MAIN
  1153. local PART = CreatePart(3, BULLET, "Neon", 0, 0, "Cork", "Bullet", VT(0.8,0.8,2))
  1154. MAIN.CFrame = CF(RightArm.CFrame*CF(0,-2,0).p,Mouse.Hit.p)
  1155. PART.CFrame = MAIN.CFrame
  1156. for i = 1, 75 do
  1157. wait()
  1158. BULLET:SetPrimaryPartCFrame(MAIN.CFrame*CF(0,0,-2))
  1159. local HITFLOOR = Raycast(MAIN.Position, MAIN.CFrame.lookVector, 2.1, Character)
  1160. if HITFLOOR then
  1161. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  1162. local HUM = HITFLOOR.Parent:FindFirstChildOfClass("Humanoid")
  1163. ApplyDamage(HUM,10)
  1164. end
  1165. break
  1166. end
  1167. end
  1168. BULLET:remove()
  1169. end))
  1170. for i = 1, 25 do
  1171. Swait()
  1172. turnto(Mouse.Hit.p)
  1173. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1174. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1175. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(80), RAD(15), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1176. 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)
  1177. 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)
  1178. 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)
  1179. end
  1180. until HOLD == false
  1181. for i=0, 0.2, 0.1 / Animation_Speed do
  1182. Swait()
  1183. turnto(Mouse.Hit.p)
  1184. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1185. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1+sick.PlaybackLoudness/800) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1186. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5+sick.PlaybackLoudness/1200, 0) * ANGLES(RAD(80), RAD(15), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1187. 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)
  1188. 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)
  1189. 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)
  1190. end
  1191. WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(1,1,1)*3, Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1192. BLASTER:remove()
  1193. FINISHED = true
  1194. end))
  1195. repeat wait() until LOADED == true
  1196. wait(0.5)
  1197. local FIRE = Mouse.Button1Down:connect(function(NEWKEY)
  1198. SHOT = true
  1199. end)
  1200. repeat wait() until SHOT == true
  1201. FIRE:disconnect()
  1202. repeat wait() until FINISHED == true
  1203. ATTACK = false
  1204. Rooted = false
  1205. end
  1206.  
  1207. function QuestionMarkBlock2()
  1208. ATTACK = true
  1209. Rooted = true
  1210. local BLOCKMODEL = IT("Model",Effects)
  1211. local LOAD = false
  1212. local BLOCK = CreatePart(3, BLOCKMODEL, "Neon", 0, 0, "New Yeller", "Base", VT(2,2,2))
  1213. BLOCK.CFrame = CF(RootPart.CFrame*CF(0,15,0).p)
  1214. BLOCKMODEL.PrimaryPart = BLOCK
  1215. local FRAME = RootPart.CFrame*CF(0,15,0)
  1216. for i = 1, 4 do
  1217. local BASE = CreatePart(3, BLOCKMODEL, "Neon", 0, 1, "New Yeller", "Blocc", VT(1.3,1.3,2)*1.001)
  1218. BASE.CFrame = BLOCK.CFrame * ANGLES(RAD(0), RAD((360/4)*i), RAD(0))
  1219. local DECAL = IT("Decal",BASE)
  1220. DECAL.Texture = "http://www.roblox.com/asset/?id=1019185679"
  1221. local PART = CreatePart(3, BLOCKMODEL, "Neon", 0, 0, "Pearl", "Blocc", VT(0.2,0.2,2.1))
  1222. PART.CFrame = BASE.CFrame*CF(0.75,0.75,0)
  1223. local PART = CreatePart(3, BLOCKMODEL, "Neon", 0, 0, "Pearl", "Blocc", VT(0.2,0.2,2.1))
  1224. PART.CFrame = BASE.CFrame*CF(0.75,-0.75,0)
  1225. end
  1226. local LANDED = false
  1227. local HIT = false
  1228. local LOOP = 0
  1229. coroutine.resume(coroutine.create(function()
  1230. repeat
  1231. Swait()
  1232. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1233. 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)
  1234. 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)
  1235. 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)
  1236. 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)
  1237. 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)
  1238. until LOAD == true
  1239. repeat
  1240. Swait()
  1241. if HIT == false then
  1242. local HITFLOOR = Raycast(BLOCK.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 1.2, BLOCKMODEL)
  1243. if HITFLOOR then
  1244. HIT = true
  1245. coroutine.resume(coroutine.create(function()
  1246. local CFRAME = BLOCK.CFrame
  1247. RootPart.Velocity = VT(0,0,0)
  1248. RootPart.RotVelocity = VT(0,0,0)
  1249. coroutine.resume(coroutine.create(function()
  1250. CreateSound(138702491, BLOCK, 10, 1, false)
  1251. local COIN = CreatePart(3, BLOCKMODEL, "Neon", 0, 1, "New Yeller", "Coin", VT(1.8,1.8,0))
  1252. COIN.CFrame = BLOCK.CFrame
  1253. local DECAL = IT("Decal",COIN)
  1254. DECAL.Texture = "http://www.roblox.com/asset/?id=1512322302"
  1255. local DECAL = IT("Decal",COIN)
  1256. DECAL.Texture = "http://www.roblox.com/asset/?id=1512322302"
  1257. DECAL.Face = "Back"
  1258. for i = 1, 15 do
  1259. wait()
  1260. COIN.CFrame = Clerp(FRAME, FRAME*CF(0,(15-(i/10)),0), 1 / Animation_Speed)
  1261. end
  1262. COIN:remove()
  1263. end))
  1264. for i = 1, 5 do
  1265. wait()
  1266. RootPart.Velocity = VT(0,-i*4,0)
  1267. RootPart.RotVelocity = VT(0,0,0)
  1268. BLOCKMODEL:SetPrimaryPartCFrame(Clerp(CFRAME, CFRAME*CF(0,(5-i),0), 1 / Animation_Speed))
  1269. end
  1270. BLOCK.BrickColor = BRICKC"Dirt brown"
  1271. for _, c in pairs(BLOCKMODEL:GetChildren()) do
  1272. if c:IsA("BasePart") and c.Name ~= "Base" then
  1273. c:remove()
  1274. end
  1275. end
  1276. Debris:AddItem(BLOCKMODEL,5)
  1277. end))
  1278. end
  1279. else
  1280. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1281. if HITFLOOR then
  1282. LANDED = true
  1283. end
  1284. end
  1285. LOOP = LOOP + 1
  1286. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1287. 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)
  1288. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, -0.2) * ANGLES(RAD(150), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1289. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1290. 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)
  1291. 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)
  1292. until LANDED == true or ATTACK == false
  1293. end))
  1294. wait(0.3)
  1295. LOAD = true
  1296. CreateSound(158309736, Torso, 10, 1, false)
  1297. local bv = Instance.new("BodyVelocity",RootPart)
  1298. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1299. bv.velocity = CF(RootPart.Position,BLOCK.Position).lookVector*150
  1300. Debris:AddItem(bv,0.05)
  1301. repeat wait() until LANDED == true or LOOP > 45
  1302. Debris:AddItem(BLOCKMODEL,5)
  1303. ATTACK = false
  1304. Rooted = false
  1305. end
  1306.  
  1307. --//=================================\\
  1308. --|| ASSIGN THINGS TO KEYS
  1309. --\\=================================//
  1310.  
  1311. function MouseDown(Mouse)
  1312. HOLD = true
  1313. if ATTACK == false then
  1314. end
  1315. end
  1316.  
  1317. function MouseUp(Mouse)
  1318. HOLD = false
  1319. end
  1320.  
  1321. function KeyDown(Key)
  1322. KEYHOLD = true
  1323. if Key == "z" and ATTACK == false then
  1324. QuestionMarkBlock()
  1325. end
  1326.  
  1327. if Key == "b" and ATTACK == false then
  1328. SwordBeam()
  1329. end
  1330.  
  1331. if Key == "c" and ATTACK == false and SONG == 853518668 then
  1332. Candy()
  1333. end
  1334.  
  1335. if Key == "v" and ATTACK == false then
  1336. Peashooter()
  1337. end
  1338.  
  1339. if Key == "t" and ATTACK == false then
  1340. QuestionMarkBlock2()
  1341. end
  1342. end
  1343.  
  1344. function KeyUp(Key)
  1345. KEYHOLD = false
  1346. end
  1347.  
  1348. Mouse.Button1Down:connect(function(NEWKEY)
  1349. MouseDown(NEWKEY)
  1350. end)
  1351. Mouse.Button1Up:connect(function(NEWKEY)
  1352. MouseUp(NEWKEY)
  1353. end)
  1354. Mouse.KeyDown:connect(function(NEWKEY)
  1355. KeyDown(NEWKEY)
  1356. end)
  1357. Mouse.KeyUp:connect(function(NEWKEY)
  1358. KeyUp(NEWKEY)
  1359. end)
  1360.  
  1361. --//=================================\\
  1362. --\\=================================//
  1363.  
  1364. function unanchor()
  1365. if UNANCHOR == true then
  1366. for _, c in pairs(Character:GetChildren()) do
  1367. if c:IsA("BasePart") then
  1368. c.Anchored = false
  1369. end
  1370. end
  1371. else
  1372. for _, c in pairs(Character:GetChildren()) do
  1373. if c:IsA("BasePart") then
  1374. c.Anchored = true
  1375. end
  1376. end
  1377. end
  1378. end
  1379.  
  1380. --//=================================\\
  1381. --|| WRAP THE WHOLE SCRIPT UP
  1382. --\\=================================//
  1383.  
  1384. local JUMPED = false
  1385.  
  1386. Humanoid.Changed:connect(function(Jump)
  1387. if Jump == "Jump" and (Disable_Jump == true) then
  1388. Humanoid.Jump = false
  1389. elseif Jump == "Jump" and Disable_Jump == false and JUMPED == false then
  1390. JUMPED = true
  1391. CreateSound(158309736, Torso, 10, 1, false)
  1392. end
  1393. end)
  1394.  
  1395. while true do
  1396. Swait()
  1397. script.Parent = WEAPONGUI
  1398. ANIMATE.Parent = nil
  1399. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1400. v:Stop();
  1401. end
  1402. Humanoid.JumpPower = 75
  1403. SINE = SINE + CHANGE
  1404. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1405. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1406. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1407. local WALKSPEEDVALUE = 4 / (Humanoid.WalkSpeed / 16)
  1408. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1409. 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)
  1410. 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)
  1411. 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)
  1412. 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)
  1413. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1414. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1415. 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)
  1416. 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)
  1417. 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)
  1418. end
  1419. if HITFLOOR == nil then
  1420. ANIM = "Midair"
  1421. local JUMPHIT = Raycast(RootPart.Position, (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. local JUMPHIT = Raycast(RootPart.CFrame*CF(-1,0,0).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 5, Character)
  1464. if JUMPHIT ~= nil and TORSOVERTICALVELOCITY < 0 then
  1465. if JUMPHIT.Name == "Head" and JUMPHIT:FindFirstChild("Stomped") == nil then
  1466. local HIT = IT("Folder",JUMPHIT)
  1467. HIT.Name = "Stomped"
  1468. CreateSound(165013277, JUMPHIT, 10, 1, false)
  1469. RootPart.Velocity = VT(0,80,0)
  1470. GoombaStomp(JUMPHIT.Parent)
  1471. elseif JUMPHIT.Parent.ClassName == "Accessory" then
  1472. local HEAD = JUMPHIT.Parent.Parent:FindFirstChild("Head")
  1473. if HEAD then
  1474. if HEAD:FindFirstChild("Stomped") == nil then
  1475. local HIT = IT("Folder",HEAD)
  1476. HIT.Name = "Stomped"
  1477. CreateSound(165013277, HEAD, 10, 1, false)
  1478. RootPart.Velocity = VT(0,80,0)
  1479. GoombaStomp(HEAD.Parent)
  1480. end
  1481. end
  1482. end
  1483. end
  1484. if ATTACK == false then
  1485. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1486. 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)
  1487. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, -0.2) * ANGLES(RAD(150), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1488. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1489. 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)
  1490. 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)
  1491. end
  1492. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1493. ANIM = "Idle"
  1494. JUMPED = false
  1495. if ATTACK == false then
  1496. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+sick.PlaybackLoudness/800) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1497. 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)
  1498. 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)
  1499. 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)
  1500. 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)
  1501. 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)
  1502. end
  1503. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1504. ANIM = "Walk"
  1505. JUMPED = false
  1506. if ATTACK == false then
  1507. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1+sick.PlaybackLoudness/800) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1508. 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)
  1509. 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)
  1510. 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)
  1511. 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)
  1512. 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)
  1513. end
  1514. end
  1515. unanchor()
  1516. Humanoid.MaxHealth = 999999999999999999*999999999999999999*999999999999999999*999999999999999999
  1517. Humanoid.Health = Humanoid.MaxHealth
  1518. if Rooted == false then
  1519. Disable_Jump = false
  1520. Humanoid.WalkSpeed = Speed
  1521. elseif Rooted == true then
  1522. Disable_Jump = true
  1523. Humanoid.WalkSpeed = 0
  1524. end
  1525. local COLOR = C3((0+sick.PlaybackLoudness/200)/510,(115+sick.PlaybackLoudness/25)/510,(150+sick.PlaybackLoudness*1.5)/610)
  1526. for _, c in pairs(Character:GetChildren()) do
  1527. if c:IsA("BasePart") and c.Name ~= "Detail" then
  1528. c.Material = "Neon"
  1529. if c:FindFirstChildOfClass("ParticleEmitter") then
  1530. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1531. end
  1532. c.Color = BRICKC"Steel blue".Color
  1533. if c == Head then
  1534. if c:FindFirstChild("face") then
  1535. c.face:remove()
  1536. end
  1537. end
  1538. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1539. c:remove()
  1540. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1541. c:remove()
  1542. elseif c.Name == "Detail" then
  1543. c.Material = "Neon"
  1544. c.Color = COLOR
  1545. end
  1546. end
  1547. if DEAD == false then
  1548. sick.SoundId = "rbxassetid://"..SONG
  1549. sick.Looped = true
  1550. sick.Pitch = 1
  1551. sick.Volume = 2
  1552. sick.Playing = true
  1553. sick.Parent = Torso
  1554. else
  1555. sick:remove()
  1556. end
  1557. Humanoid.Name = "Mr Pixels"
  1558. end
  1559.  
  1560. --//=================================\\
  1561. --\\=================================//
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567. --//====================================================\\--
  1568. --|| END OF SCRIPT
  1569. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement