Hugo1234cool

Untitled

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