Advertisement
HenloMyDude

ememer loarder actually it though

Aug 29th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 73.74 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. LocalScript0 = Instance.new("LocalScript")
  20. ObjectValue1 = Instance.new("ObjectValue")
  21. ObjectValue2 = Instance.new("ObjectValue")
  22. ObjectValue3 = Instance.new("ObjectValue")
  23. Script4 = Instance.new("Script")
  24. RemoteEvent5 = Instance.new("RemoteEvent")
  25. ObjectValue6 = Instance.new("ObjectValue")
  26. Folder7 = Instance.new("Folder")
  27. StringValue8 = Instance.new("StringValue")
  28. RemoteEvent9 = Instance.new("RemoteEvent")
  29. LocalScript0.Name = "meem"
  30. LocalScript0.Parent = mas
  31. table.insert(cors,sandbox(LocalScript0,function()
  32. local dplr = game:GetService('Players').LocalPlayer
  33. local plr = script:WaitForChild('Player').Value
  34. local atremote = script:WaitForChild('Trigger').Value
  35. local maremote = script:WaitForChild('Master').Value
  36. local stremote = script:WaitForChild('Stop').Value
  37.  
  38. Player = plr
  39. Character = Player.Character
  40. Backpack = Player.Backpack
  41. Torso = Character.Torso
  42. Head = Character.Head
  43. Humanoid = Character.Humanoid
  44. LeftArm = Character["Left Arm"]
  45. LeftLeg = Character["Left Leg"]
  46. RightArm = Character["Right Arm"]
  47. RightLeg = Character["Right Leg"]
  48. ch = Character
  49. RootPart = Character.HumanoidRootPart
  50. RootJoint = RootPart.RootJoint
  51. local Mouse = nil
  52. if dplr == plr then
  53. Mouse = plr:GetMouse()
  54. PlayerGui = Player.PlayerGui
  55. end
  56. local Anim="Idle"
  57. local inAir = false
  58. local inAir2 = false
  59. local attack = false
  60. it=Instance.new
  61. vt=Vector3.new
  62. cf=CFrame.new
  63. euler=CFrame.fromEulerAnglesXYZ
  64. angles=CFrame.Angles
  65. local cn = CFrame.new
  66. mr=math.rad
  67. local sprintmode=false
  68. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  69. local NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  70. local Anim="Idle"
  71. local RJ = Character.HumanoidRootPart:FindFirstChild("RootJoint")
  72. local Neck = Character.Torso:FindFirstChild("Neck")
  73. function weld(parent,part0,part1,c0)
  74. local weld=it("Weld")
  75. weld.Parent=parent
  76. weld.Part0=part0
  77. weld.Part1=part1
  78. weld.C0=c0
  79. return weld
  80. end
  81. local inairvel=0
  82. local sine = 0
  83. local change = 1
  84. local nextstep=0
  85. local CanUseWalkSound = true
  86. idletime = 0
  87. idletimeM = 0
  88. idleAnim=0
  89. local mouse = Player:GetMouse()
  90. local s2=Instance.new("Sound",Torso)
  91. local CurId = 1
  92. s2.EmitterSize = 30
  93. local s2c=s2:Clone()
  94. local lastid= "http://www.roblox.com/asset/?id=762141368"
  95. omegawait = false
  96. playsong = false
  97. CookieMode = 1
  98. s2.SoundId = lastid
  99. if playsong == true then
  100. s2:play()
  101. elseif playsong == false then
  102. s2:stop()
  103. end
  104. lastsongpos= 0
  105.  
  106. warn('MeeM script by 123jl123')
  107. warn('Edit a little by williaminRoblox113')
  108. warn('Added Actaul Sounds What Where Banned')
  109.  
  110.  
  111. function stopAnimations()
  112. coroutine.resume(coroutine.create(function()
  113. Character.Animate:Destroy()
  114. end))
  115. coroutine.resume(coroutine.create(function()
  116. for _,v in pairs(Humanoid:GetPlayingAnimationTracks()) do
  117. v:Stop()
  118.  
  119. end
  120. end))
  121. end
  122.  
  123. local cR=255
  124. local cG=0
  125. local cB=0
  126. local flg5=1
  127. local omgidk=1
  128. local add=7.5
  129. local color
  130. game:GetService('RunService').Stepped:Connect(function()
  131. if omgidk>10000 then omgidk=0 end
  132. omgidk=omgidk+1
  133. if cR>=255 then flg5=1 end
  134. if cG>=255 then flg5=2 end
  135. if cB>=255 then flg5=3 end
  136. if flg5==1 then cR=cR-add cG=cG+add end
  137. if flg5==2 then cG=cG-add cB=cB+add end
  138. if flg5==3 then cB=cB-add cR=cR+add end
  139. color=Color3.fromRGB(cR,cG,cB)
  140. end)
  141.  
  142. stopAnimations()
  143. coroutine.resume(coroutine.create(function()
  144. Character:WaitForChild("Sound")
  145. Character.Sound:Destroy()
  146. end))
  147.  
  148. local RbxUtility = LoadLibrary("RbxUtility")
  149. local Create = RbxUtility.Create
  150. local Ang=Instance.new("Model")
  151. Ang.Name="Angles"
  152. Ang.Parent=Character
  153.  
  154. local rrx=Instance.new("NumberValue")
  155. rrx.Name="X"
  156. rrx.Parent=Ang
  157. rrx.Value=0
  158. local rry=Instance.new("NumberValue")
  159. rry.Name="Y"
  160. rry.Parent=Ang
  161. rry.Value=0
  162. local rrz=Instance.new("NumberValue")
  163. rrz.Name="Z"
  164. rrz.Parent=Ang
  165. rrz.Value=0
  166.  
  167.  
  168. function RemoveOutlines(part)
  169. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  170. end
  171.  
  172.  
  173.  
  174.  
  175. CFuncs = {
  176. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  177.  
  178. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  179. RemoveOutlines(Part)
  180. return Part
  181. end
  182. }
  183. ,
  184. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  185.  
  186. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  187. if Mesh == "SpecialMesh" then
  188. Msh.MeshType = MeshType
  189. Msh.MeshId = MeshId
  190. end
  191. return Msh
  192. end
  193. }
  194. ,
  195. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  196.  
  197. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  198. if Mesh == "SpecialMesh" then
  199. Msh.MeshType = MeshType
  200. Msh.MeshId = MeshId
  201. end
  202. return Msh
  203. end
  204. }
  205. ,
  206. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  207.  
  208. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  209. return Weld
  210. end
  211. }
  212. ,
  213. Sound = {Create = function(id, par, vol, pit)
  214.  
  215. coroutine.resume(coroutine.create(function()
  216.  
  217. local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = "http://www.roblox.com/asset/?id="..id, Parent = par or workspace})
  218. wait()
  219. S:play()
  220. game:GetService("Debris"):AddItem(S, 6)
  221. end
  222. ))
  223. end
  224. }
  225. ,
  226. ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  227.  
  228. local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
  229. return fp
  230. end
  231. }
  232. }
  233.  
  234. local Particle0 = Create("ParticleEmitter"){
  235. Color = ColorSequence.new(Color3.new (1,1,1), Color3.new (0, 0, 0)),
  236. Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.1,.8),NumberSequenceKeypoint.new(0.3,.6),NumberSequenceKeypoint.new(0.5,.2),NumberSequenceKeypoint.new(1,.8)}),
  237. Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.65),NumberSequenceKeypoint.new(0.25,.20),NumberSequenceKeypoint.new(0.7,.18),NumberSequenceKeypoint.new(1,0)}),
  238. Texture = "rbxassetid://118641183",
  239. Lifetime = NumberRange.new(0.95),
  240. Rate = 100,
  241. VelocitySpread = 60,
  242. Rotation = NumberRange.new(0),
  243. RotSpeed = NumberRange.new(-200,200),
  244. Speed = NumberRange.new(8.0),
  245. LightEmission = .6,
  246. LockedToPart = false,
  247. Acceleration = Vector3.new(0, 4, 0),
  248. EmissionDirection = "Top",
  249. Drag = 4,
  250. Enabled = false
  251. }
  252. local Particle1 = Create("ParticleEmitter"){
  253. Color = ColorSequence.new(Color3.new (0,0,0), Color3.new (.5, .5, .5)),
  254. Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.8),NumberSequenceKeypoint.new(.5,.8),NumberSequenceKeypoint.new(1,1)}),
  255. Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.2),NumberSequenceKeypoint.new(.5,1),NumberSequenceKeypoint.new(1,.5)}),
  256. Texture = "rbxassetid://688705835",
  257. Lifetime = NumberRange.new(.8),
  258. Rate = 0,
  259. VelocitySpread = 50,
  260. ZOffset = .5,
  261. Rotation = NumberRange.new(0),
  262. RotSpeed = NumberRange.new(-200,200),
  263. Speed = NumberRange.new(5.0),
  264. LightEmission = 0,
  265. LockedToPart = false,
  266. Acceleration = Vector3.new(0, -10, 0),
  267. EmissionDirection = "Top",
  268. Drag = 1,
  269. Enabled = false
  270. }
  271.  
  272. so = function(id, par, vol, pit)
  273.  
  274. CFuncs.Sound.Create(id, par, vol, pit)
  275.  
  276.  
  277. end
  278.  
  279. rayCast = function(Pos, Dir, Max, Ignore)
  280.  
  281. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  282. end
  283.  
  284.  
  285. function swait(num)
  286. if num==0 or num==nil then
  287. --if Stagger.Value==false or Stun.Value<=100 then
  288. --Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
  289. game:GetService('RunService').Stepped:Wait(0)
  290. --end
  291. else
  292. for i=0,num do
  293. --Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
  294. game:GetService('RunService').Stepped:Wait(0)
  295. --[[if Stagger.Value==true or Stun.Value>=StunT.Value then
  296. break
  297. end]]
  298. end
  299. end
  300. end
  301.  
  302. function CreateMesh2(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  303. local NEWMESH = it(MESH)
  304. if MESH == "SpecialMesh" then
  305. NEWMESH.MeshType = MESHTYPE
  306. if MESHID ~= "nil" and MESHID ~= "" then
  307. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  308. end
  309. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  310. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  311. end
  312. end
  313. NEWMESH.Offset = OFFSET or Vector3.new(0, 0, 0)
  314. NEWMESH.Scale = SCALE
  315. NEWMESH.Parent = PARENT
  316. return NEWMESH
  317. end
  318. function clerp(a,b,t)
  319. local qa = {QuaternionFromCFrame(a)}
  320. local qb = {QuaternionFromCFrame(b)}
  321. local ax, ay, az = a.x, a.y, a.z
  322. local bx, by, bz = b.x, b.y, b.z
  323. local _t = 1-t
  324. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  325. end
  326.  
  327. function QuaternionFromCFrame(cf)
  328. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  329. local trace = m00 + m11 + m22
  330. if trace > 0 then
  331. local s = math.sqrt(1 + trace)
  332. local recip = 0.5/s
  333. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  334. else
  335. local i = 0
  336. if m11 > m00 then
  337. i = 1
  338. end
  339. if m22 > (i == 0 and m00 or m11) then
  340. i = 2
  341. end
  342. if i == 0 then
  343. local s = math.sqrt(m00-m11-m22+1)
  344. local recip = 0.5/s
  345. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  346. elseif i == 1 then
  347. local s = math.sqrt(m11-m22-m00+1)
  348. local recip = 0.5/s
  349. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  350. elseif i == 2 then
  351. local s = math.sqrt(m22-m00-m11+1)
  352. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  353. end
  354. end
  355. end
  356. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  357. local xs, ys, zs = x + x, y + y, z + z
  358. local wx, wy, wz = w*xs, w*ys, w*zs
  359. local xx = x*xs
  360. local xy = x*ys
  361. local xz = x*zs
  362. local yy = y*ys
  363. local yz = y*zs
  364. local zz = z*zs
  365. 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))
  366. end
  367. function QuaternionSlerp(a, b, t)
  368. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  369. local startInterp, finishInterp;
  370. if cosTheta >= 0.0001 then
  371. if (1 - cosTheta) > 0.0001 then
  372. local theta = math.acos(cosTheta)
  373. local invSinTheta = 1/math.sin(theta)
  374. startInterp = math.sin((1-t)*theta)*invSinTheta
  375. finishInterp = math.sin(t*theta)*invSinTheta
  376. else
  377. startInterp = 1-t
  378. finishInterp = t
  379. end
  380. else
  381. if (1+cosTheta) > 0.0001 then
  382. local theta = math.acos(-cosTheta)
  383. local invSinTheta = 1/math.sin(theta)
  384. startInterp = math.sin((t-1)*theta)*invSinTheta
  385. finishInterp = math.sin(t*theta)*invSinTheta
  386. else
  387. startInterp = t-1
  388. finishInterp = t
  389. end
  390. end
  391. 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
  392. end
  393.  
  394.  
  395.  
  396.  
  397.  
  398. local RW=weld(Torso,Torso,RightArm,cf(0,0,0))
  399.  
  400. local LW=weld(Torso,Torso,LeftArm,cf(0,0,0))
  401.  
  402. local RH=weld(Torso,Torso,RightLeg,cf(0,0,0))
  403.  
  404. local LH=weld(Torso,Torso,LeftLeg,cf(0,0,0))
  405.  
  406.  
  407.  
  408. RW.C1 = cn(0, 0.5, 0)
  409. LW.C1 = cn(0, 0.5, 0)
  410. RH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  411. LH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  412.  
  413.  
  414. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  415. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  416.  
  417. spawn(function()
  418. while Torso:FindFirstChild('Neck') do
  419. swait()
  420. sine = sine + change
  421. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  422.  
  423.  
  424. coroutine.resume(coroutine.create(function()
  425.  
  426.  
  427. if s2.Parent == nil or s2 == nil then
  428.  
  429. s2 = s2c:Clone()
  430. s2.Parent = Torso
  431. s2.Name = "BGMusic"
  432. -- s2.SoundId = lastid
  433. s2.Pitch = 1
  434. s2.Volume = 1.5
  435. s2.Looped = true
  436. s2.archivable = false
  437. s2.TimePosition = lastsongpos
  438. if playsong == true then
  439. s2:play()
  440. elseif playsong == false then
  441. s2:stop()
  442. end
  443.  
  444.  
  445. else
  446. lastsongpos=s2.TimePosition
  447. s2.Pitch = 1
  448.  
  449. s2.Volume = 1.5
  450.  
  451. s2.Looped = true
  452. s2.SoundId = lastid
  453. s2.EmitterSize = 30
  454. end
  455.  
  456.  
  457.  
  458. end))
  459.  
  460.  
  461. if hitfloor ~= nil then
  462. inAir = true
  463. else
  464. inAir = false
  465. end
  466.  
  467. if inAir == true then
  468. if inAir2 == false then
  469.  
  470.  
  471. JumpAfterEffect()
  472.  
  473. end
  474. end
  475.  
  476. if hitfloor ~= nil then
  477. inAir2 = true
  478. else
  479. inAir2 = false
  480. end
  481.  
  482.  
  483.  
  484.  
  485. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  486. local velderp = RootPart.Velocity.y
  487.  
  488.  
  489.  
  490. local wasnotidle = false
  491.  
  492. if Anim ~= "Idle" then
  493. wasnotidle = true
  494. end
  495.  
  496.  
  497. inairvel=torvel
  498.  
  499.  
  500. if inairvel > 30 then
  501. inairvel=30
  502. end
  503. inairvel=inairvel/50
  504. if RootPart.Velocity.y > 1 and hitfloor == nil then
  505. Anim = "Jump"
  506. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  507. Anim = "Fall"
  508. elseif Humanoid.Sit == true then
  509. Anim = "Sit"
  510. elseif torvel < 1 and hitfloor ~= nil then
  511. Anim = "Idle"
  512. elseif torvel > 2 and hitfloor ~= nil then
  513. if sprintmode == true then
  514. Anim = "Run"
  515. else
  516. Anim = "Walk"
  517. end
  518. else
  519. Anim = ""
  520.  
  521. end
  522.  
  523.  
  524. if attack == false then
  525. if Anim == "Walk" then
  526.  
  527.  
  528. if hitfloor ~= nil then
  529. nextstep = math.cos(sine / 8)
  530.  
  531. if nextstep > -0.1 and nextstep < 0.1 and CanUseWalkSound == true then
  532. CanUseWalkSound = false
  533. local MaterialName = hitfloor.Material.Name
  534.  
  535. if MaterialName =="Plastic"or MaterialName =="SmoothPlastic"then
  536. so("379483672", Torso,.5, math.random(30,60)/100)
  537.  
  538. elseif MaterialName =="Pebble"then
  539. so("267882971", Torso,.5, math.random(80,100)/100)
  540.  
  541. elseif MaterialName =="Marble"or MaterialName =="Granite"then
  542. so("379483672", Torso,.5, math.random(80,100)/100)
  543.  
  544.  
  545. elseif MaterialName =="Grass"then
  546. so("267882764", Torso,.35, math.random(90,100)/100)
  547.  
  548. elseif MaterialName =="Ice"then
  549. so("265653271", Torso,.8, math.random(70,90)/100)
  550.  
  551. elseif MaterialName =="Foil"then
  552. so("265653271", Torso,.5, math.random(40,60)/100)
  553.  
  554.  
  555.  
  556. elseif MaterialName =="Concrete"or MaterialName =="Slate"or MaterialName =="Brick" then
  557. so("267454199", Torso,.5, math.random(80,100)/100)
  558.  
  559.  
  560.  
  561. elseif MaterialName =="Wood" or MaterialName =="WoodPlanks"then
  562. so("267454275", Torso,.5, math.random(80,100)/100)
  563.  
  564. elseif MaterialName =="Sand" then
  565. so("265653329", Torso,.5, math.random(80,100)/100)
  566.  
  567. elseif MaterialName =="CorrodedMetal"or MaterialName =="Metal" or MaterialName =="DiamondPlate" then
  568. so("267882776", Torso,.5, math.random(80,100)/100)
  569.  
  570. elseif MaterialName =="Neon" or hitfloor.Transparency >0.1 then
  571. so("145180170", Torso,.5, math.random(80,100)/100)
  572.  
  573.  
  574. end
  575. --nextstep = Humanoid.WalkSpeed
  576.  
  577.  
  578. coroutine.resume(coroutine.create(function()
  579. wait(.2)
  580. CanUseWalkSound = true
  581. end))
  582.  
  583.  
  584. else
  585. -- nextstep = nextstep - 1
  586.  
  587. end
  588.  
  589.  
  590.  
  591. end
  592.  
  593.  
  594.  
  595. end
  596. end
  597.  
  598. if Anim == "Idle" then
  599. idletime = idletime + 1
  600. else
  601. if idleAnim == 0 then
  602. idletime = 0 end
  603. end
  604. if idleAnim == 0 and idletime > idletimeM then
  605. idleAnim =math.random(0,5)
  606. idletime = 0
  607.  
  608. idletimeM = math.random(100,600)
  609. end
  610.  
  611.  
  612.  
  613. if wasnotidle == true then
  614. if Anim == "Idle" then
  615. idletime = 40
  616. else
  617. idletime = 0
  618. end
  619. end
  620.  
  621.  
  622.  
  623. if attack == false then
  624. if Anim == "Jump" then
  625.  
  626.  
  627. change = 0.5
  628. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0 + (0.0395/2) * math.cos(sine / 8), -0.1 + 0.0395 * math.cos(sine / 8)) * angles(math.rad(-90.5 - 1.5 * math.cos(sine / 8))+inairvel/2, math.rad(0), math.rad(0)), .10)
  629. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 3.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 3.5 * math.cos(sine / 8/3))), .15)
  630. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(1 - 5 * math.cos(sine / 8)), math.rad(7), math.rad(90 + 5 * math.cos(sine / 8))), 0.1)
  631. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(1 - 5 * math.cos(sine / 8)), math.rad(-7), math.rad(-90 - 5 * math.cos(sine / 8))), 0.1)
  632. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  633. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  634. elseif Anim == "Fall" then
  635.  
  636.  
  637. change = 0.5
  638. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0 + (0.0395/2) * math.cos(sine / 8), -0.1 + 0.0395 * math.cos(sine / 8)) * angles(math.rad(90 - 1.5 * math.cos(sine / 8))-inairvel, math.rad(0), math.rad(0)), .10)
  639. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 3.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 3.5 * math.cos(sine / 8/3))), .15)
  640. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(1 - 5 * math.cos(sine / 8)), math.rad(7), math.rad(90 + 5 * math.cos(sine / 8))), 0.1)
  641. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(1 - 5 * math.cos(sine / 8)), math.rad(-7), math.rad(-90 - 5 * math.cos(sine / 8))), 0.1)
  642. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  643. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  644.  
  645. elseif Anim == "Idle" then
  646.  
  647. Humanoid.WalkSpeed = 12
  648. Humanoid.JumpPower = 60
  649. if idleAnim == 0 then
  650. change = 0.6
  651.  
  652. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.1 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
  653. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 3.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 3.5 * math.cos(sine / 8/3))), .15)
  654. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(0 - 5 * math.cos(sine / 8)), math.rad(0), math.rad(5 + 5 * math.cos(sine / 8))), 0.1)
  655. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0 - 5 * math.cos(sine / 8)), math.rad(-0), math.rad(-5 - 5 * math.cos(sine / 8))), 0.1)
  656. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  657. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  658.  
  659. elseif idleAnim == 1 then
  660. change = 0.6
  661.  
  662. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(math.random(-10,10)/100, math.random(-10,10)/100, -0.15 + 0.1 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(20)), .8)
  663. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(13.5 - 0.5 * math.cos(sine / 8)), math.rad(-10), math.rad(-20 - 3.5 * math.cos(sine / 8/3))), .8)
  664. RW.C0 = clerp(RW.C0, CFrame.new(1.3 , 0.6, -.2) * angles(math.rad(1 - 0.5 * math.cos(sine / 8)), math.rad(-27), math.rad(-105 + 0.5 * math.cos(sine / 8))), 0.8)
  665. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(1 - 0.5 * math.cos(sine / 8)), math.rad(-7), math.rad(-110 - 0.5 * math.cos(sine / 8))), 0.8)
  666. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.8)
  667. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.8)
  668. if idletime > 10 then
  669. idleAnim =0
  670. idletime = 0
  671. change = 0.6
  672.  
  673. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.1 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), 1)
  674. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 3.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 3.5 * math.cos(sine / 8/3))), 1)
  675. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(1 - 5 * math.cos(sine / 8)), math.rad(7), math.rad(5 + 5 * math.cos(sine / 8))), .6)
  676. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(1 - 5 * math.cos(sine / 8)), math.rad(-7), math.rad(-5 - 5 * math.cos(sine / 8))), .6)
  677. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),1)
  678. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),1)
  679.  
  680.  
  681.  
  682.  
  683. end
  684.  
  685.  
  686.  
  687.  
  688.  
  689. elseif idleAnim == 2 then
  690. change = 0.6
  691.  
  692.  
  693.  
  694. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.1 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((idletime*10 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
  695. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 3.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 3.5 * math.cos(sine / 8/3))), .15)
  696. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(1 - 0 * math.cos(sine / 8)), math.rad(7), math.rad(90 + 0 * math.cos(sine / 8))), 0.1)
  697. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(1 - 0 * math.cos(sine / 8)), math.rad(-7), math.rad(-90 - 0 * math.cos(sine / 8))), 0.1)
  698. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  699. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  700.  
  701.  
  702.  
  703. if idletime > 36 then
  704. idleAnim =0
  705. idletime = 0
  706.  
  707.  
  708. end
  709.  
  710.  
  711.  
  712. elseif idleAnim == 3 then
  713. change = 0.6
  714.  
  715.  
  716.  
  717. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.1 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((-idletime*10 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
  718. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 3.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 3.5 * math.cos(sine / 8/3))), .15)
  719. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(1 - 0 * math.cos(sine / 8)), math.rad(7), math.rad(90 + 0 * math.cos(sine / 8))), 0.1)
  720. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(1 - 0 * math.cos(sine / 8)), math.rad(-7), math.rad(-90 - 0 * math.cos(sine / 8))), 0.1)
  721. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  722. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  723.  
  724.  
  725.  
  726. if idletime > 36 then
  727. idleAnim =0
  728. idletime = 0
  729.  
  730.  
  731. end
  732.  
  733. elseif idleAnim == 4 then
  734. change = 0.6
  735.  
  736.  
  737.  
  738. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.1 * math.cos(sine / 8)) * angles(math.rad(idletime*10 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
  739. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 3.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 3.5 * math.cos(sine / 8/3))), .15)
  740. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(1 - 0 * math.cos(sine / 8)), math.rad(7), math.rad(90 + 0 * math.cos(sine / 8))), 0.1)
  741. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(1 - 0 * math.cos(sine / 8)), math.rad(-7), math.rad(-90 - 0 * math.cos(sine / 8))), 0.1)
  742. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  743. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  744.  
  745.  
  746.  
  747. if idletime > 36 then
  748. idleAnim =0
  749. idletime = 0
  750.  
  751.  
  752. end
  753. elseif idleAnim == 5 then
  754. change = 0.6
  755.  
  756.  
  757.  
  758. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.1 * math.cos(sine / 8)) * angles(math.rad(-idletime*10 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
  759. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 3.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 3.5 * math.cos(sine / 8/3))), .15)
  760. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(1 - 0 * math.cos(sine / 8)), math.rad(7), math.rad(90 + 0 * math.cos(sine / 8))), 0.1)
  761. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(1 - 0 * math.cos(sine / 8)), math.rad(-7), math.rad(-90 - 0 * math.cos(sine / 8))), 0.1)
  762. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  763. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- .1 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  764.  
  765.  
  766.  
  767. if idletime > 36 then
  768. idleAnim =0
  769. idletime = 0
  770.  
  771.  
  772. end
  773.  
  774. end
  775.  
  776.  
  777. elseif Anim == "Walk" then
  778.  
  779.  
  780. change = 1.5
  781. Humanoid.WalkSpeed = 26
  782. Humanoid.JumpPower = 60
  783. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0,-0.05 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7, -0.3 + 0.3 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * angles(math.rad(-25 - 13 * math.cos(sine / 3.5)),math.rad(2 * math.cos(sine / 7)) + RootPart.RotVelocity.Y / 70, math.rad(8 * math.cos(sine / 7))), 0.2)
  784. Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.new(0, 0, 0 + 0.02 * math.cos(sine / 3.5)) * angles(math.rad(-10 + 3.5 * math.cos(sine / 3.5)), math.rad(0 - 0 * math.cos(sine / 3.5)), math.rad(-8 * math.cos(sine / 7)) + RootPart.RotVelocity.Y / 16), 0.2)
  785. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -.0) * angles(math.rad(-10.5 * math.cos(sine / 7*2)) ,math.rad(-70-5 * math.cos(sine / 7)), math.rad(80) - RootPart.RotVelocity.Y / 90), 0.2)
  786. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, -.0) * angles(math.rad(-10.5 * math.cos(sine / 7*2)),math.rad(70-5 * math.cos(sine / 7)), math.rad(-80) - RootPart.RotVelocity.Y / 90), 0.2)
  787. RH.C0 = RH.C0:lerp( cf(.5, -0.625 - 1 * math.cos(sine / 7) / 2,-0.1+ 0.5 * math.cos(sine / 7) / 2) * CFrame.Angles(math.rad(-26.5 - 80 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(90 - 10 * math.cos(sine / 7)), math.rad(0)) * CFrame.Angles(math.rad(0 + 2.5 * math.cos(sine / 7)), math.rad(-90) + RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 7))), 0.2)
  788. LH.C0 = LH.C0:lerp( cf(-.5, -0.625 + 1 * math.cos(sine / 7) / 2,-0.1+ -0.5 * math.cos(sine / 7) / 2) * CFrame.Angles(math.rad(-26.5 + 80 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(-90 - 10 * math.cos(sine / 7)), math.rad(0)) * CFrame.Angles(math.rad(0 - 2.5 * math.cos(sine / 7)), math.rad(90) + RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 7))), 0.2)
  789.  
  790. else
  791. Humanoid.WalkSpeed = 12
  792. Humanoid.JumpPower = 60
  793.  
  794. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
  795. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 0 * math.cos(sine / 8/3))), .15)
  796. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(90 + 0 * math.cos(sine / 8))), 0.15)
  797. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-90 - 0 * math.cos(sine / 8))), 0.15)
  798. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  799. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  800.  
  801.  
  802.  
  803.  
  804. end
  805. end
  806. end
  807. end)
  808.  
  809. --[[
  810. for i = 0,5,.1 do swait()
  811. Humanoid.WalkSpeed = 12
  812. Humanoid.JumpPower = 60
  813.  
  814. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
  815. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 0 * math.cos(sine / 8/3))), .15)
  816. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(90 + 0 * math.cos(sine / 8))), 0.15)
  817. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-90 - 0 * math.cos(sine / 8))), 0.15)
  818. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  819. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  820.  
  821.  
  822.  
  823.  
  824. end
  825. ]]--
  826.  
  827. function Attack1()
  828. attack = true
  829.  
  830. for i = 0,2,.1 do swait()
  831. Humanoid.WalkSpeed = 12
  832. Humanoid.JumpPower = 60
  833.  
  834. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-40)), .15)
  835. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(40 - 0 * math.cos(sine / 8/3))), .15)
  836. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(-90 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.15)
  837. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-90 - 0 * math.cos(sine / 8))), 0.15)
  838. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  839. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  840.  
  841.  
  842.  
  843.  
  844. end
  845.  
  846. HTorso=nil
  847. local TheGunHandle = Instance.new("Part")
  848. TheGunHandle.Reflectance = 0
  849. TheGunHandle.Transparency = 1
  850. TheGunHandle.CanCollide = false
  851. TheGunHandle.Locked = true
  852. TheGunHandle.Anchored=false
  853. TheGunHandle.BrickColor = BrickColor.new("Really blue")
  854. TheGunHandle.Name = "BHandle"
  855. TheGunHandle.Size = RightArm.Size
  856. TheGunHandle.Material = "SmoothPlastic"
  857. TheGunHandle:BreakJoints()
  858. TheGunHandle.Parent = Character
  859. TheGunHandle.CFrame = RightArm.CFrame
  860. local SWeld=weld(TheGunHandle,RightArm,TheGunHandle,cf(0,0,0))
  861. local function onTouch(part)
  862. if part.Parent ~= Character and part.Parent.Parent ~= Character then
  863. if part.Parent:FindFirstChildOfClass("Humanoid") then
  864.  
  865.  
  866. if part.Parent:FindFirstChild("Head") then
  867. HTorso= part.Parent:FindFirstChild("Head")
  868. end
  869. coroutine.resume(coroutine.create(function()
  870. TheGunHandle:Destroy()
  871. end))
  872.  
  873.  
  874. end
  875. end
  876. end
  877.  
  878.  
  879.  
  880. TheGunHandle.Touched:connect(onTouch)
  881.  
  882. for i = 0,5,.1 do if HTorso== nil then
  883.  
  884. swait()
  885. Humanoid.WalkSpeed = 12
  886. Humanoid.JumpPower = 60
  887. local bodvol = Create("BodyVelocity")({velocity = RootPart.CFrame.lookVector * 23, P = 50, maxForce = Vector3.new(math.huge, 0, math.huge), Parent = RootPart})
  888.  
  889. game:GetService("Debris"):AddItem(bodvol, 0.1)
  890. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(40)), .3)
  891. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-40 - 0 * math.cos(sine / 8/3))), .3)
  892. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(90 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.3)
  893. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-90 - 0 * math.cos(sine / 8))), 0.3)
  894. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.3)
  895. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.3)
  896.  
  897. end
  898.  
  899.  
  900. end
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907. coroutine.resume(coroutine.create(function()
  908. TheGunHandle:Destroy()
  909. end))
  910.  
  911. if HTorso ~= nil then
  912. local keeps=true
  913. local TorsoCF = HTorso.CFrame
  914. so("1956239759", RootPart,2, 1)
  915. coroutine.resume(coroutine.create(function()
  916. TorsoCF = HTorso.CFrame
  917. while keeps==true do wait()
  918. HTorso.Anchored=true
  919. HTorso.CFrame = TorsoCF
  920. end
  921. HTorso.Anchored=false
  922. end))
  923. RootPart.CFrame= cn(HTorso.Position+Vector3.new(0,-1,0)+HTorso.CFrame.lookVector * 3 ,HTorso.Position)
  924. RootPart.Anchored=true
  925. RootPart.Velocity = Vector3.new(0,0,0)
  926. for i = 0,5,.1 do swait()
  927. Humanoid.WalkSpeed = 12
  928. Humanoid.JumpPower = 60
  929.  
  930. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
  931. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 0 * math.cos(sine / 8/3))), .15)
  932. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(90 + 0 * math.cos(sine / 8))), 0.15)
  933. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-90 - 0 * math.cos(sine / 8))), 0.15)
  934. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  935. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  936.  
  937.  
  938.  
  939.  
  940. end
  941. for i = 0,16,.1 do swait()
  942. Humanoid.WalkSpeed = 12
  943. Humanoid.JumpPower = 60
  944.  
  945. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(360*i)), .35)
  946. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-360*i - 0 * math.cos(sine / 8/3))), .35)
  947. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(75 + 0 * math.cos(sine / 8))), 0.15)
  948. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-75 - 0 * math.cos(sine / 8))), 0.15)
  949. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(0 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  950. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(0 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  951.  
  952. coroutine.resume(coroutine.create(function()
  953. RootPart.CFrame= cn(HTorso.Position+Vector3.new(0,-1,0)+HTorso.CFrame.lookVector * 3 ,HTorso.Position)
  954. RootPart.Anchored=true
  955. RootPart.Velocity = Vector3.new(0,0,0)
  956. end))
  957. end
  958.  
  959. coroutine.resume(coroutine.create(function()
  960. coroutine.resume(coroutine.create(function()
  961. RootPart.CFrame= cn(HTorso.Position+Vector3.new(0,-1,0)+HTorso.CFrame.lookVector * 3 ,HTorso.Position+Vector3.new(0,-1,0))
  962. RootPart.Anchored=true
  963. RootPart.Velocity = Vector3.new(0,0,0)
  964. end))
  965. HTorso.Parent:BreakJoints()
  966. keeps=false end))
  967.  
  968. for i = 0,2,.1 do swait()
  969. Humanoid.WalkSpeed = 12
  970. Humanoid.JumpPower = 60
  971.  
  972. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
  973. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 0 * math.cos(sine / 8/3))), .15)
  974. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(90 + 0 * math.cos(sine / 8))), 0.15)
  975. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-90 - 0 * math.cos(sine / 8))), 0.15)
  976. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  977. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  978.  
  979. coroutine.resume(coroutine.create(function()
  980. RootPart.Anchored=false
  981.  
  982. end))
  983.  
  984.  
  985. end
  986.  
  987. for i = 0,5,.1 do swait()
  988. Humanoid.WalkSpeed = 12
  989. Humanoid.JumpPower = 60
  990.  
  991. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
  992. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(-23.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 0 * math.cos(sine / 8/3))), .15)
  993. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(160 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.15)
  994. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(160 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.15)
  995. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  996. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  997.  
  998.  
  999. coroutine.resume(coroutine.create(function()
  1000. RootPart.Anchored=false
  1001.  
  1002. end))
  1003. end
  1004.  
  1005. for i = 0,2,.1 do swait()
  1006. Humanoid.WalkSpeed = 12
  1007. Humanoid.JumpPower = 60
  1008.  
  1009. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
  1010. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 0 * math.cos(sine / 8/3))), .15)
  1011. RW.C0 = clerp(RW.C0, CFrame.new(1.2 , 0.5, -.2) * angles(math.rad(45 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-60 + 0 * math.cos(sine / 8))), 0.15)
  1012. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.2) * angles(math.rad(45 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(60 - 0 * math.cos(sine / 8))), 0.15)
  1013. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  1014. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  1015.  
  1016.  
  1017. coroutine.resume(coroutine.create(function()
  1018. RootPart.Anchored=false
  1019.  
  1020. end))
  1021.  
  1022. end
  1023. RootPart.Anchored=false
  1024. RootPart.Velocity = Vector3.new(0,0,0)
  1025. end
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033. attack = false
  1034. end
  1035.  
  1036.  
  1037.  
  1038.  
  1039. function ChangeCookie()
  1040. attack = true
  1041.  
  1042. CookieMode = CookieMode+1
  1043. if CookieMode > 6 then
  1044. CookieMode = 1
  1045. end
  1046. for i = 0,1,.1 do swait()
  1047. Humanoid.WalkSpeed = 0
  1048. Humanoid.JumpPower = 0
  1049.  
  1050. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-10)), .15)
  1051. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(10 - 0 * math.cos(sine / 8/3))), .15)
  1052. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.7, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.15)
  1053. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.15)
  1054. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  1055. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  1056.  
  1057.  
  1058.  
  1059.  
  1060. end
  1061.  
  1062. local TheGunHandle = Instance.new("Part")
  1063. TheGunHandle.Reflectance = 0
  1064. TheGunHandle.Transparency = 0
  1065. TheGunHandle.CanCollide = true
  1066. TheGunHandle.Locked = true
  1067. TheGunHandle.Anchored=false
  1068. TheGunHandle.BrickColor = BrickColor.new("Really blue")
  1069. TheGunHandle.Name = "BHandle"
  1070. TheGunHandle.Size = Vector3.new(1,0.2,1)
  1071. TheGunHandle.Material = "SmoothPlastic"
  1072. TheGunHandle:BreakJoints()
  1073. TheGunHandle.Parent = workspace
  1074. TheGunHandle.CFrame = RightArm.CFrame
  1075.  
  1076.  
  1077. local MSH = CreateMesh2("SpecialMesh", TheGunHandle, "FileMesh", "1202473244", "", vt(1,1,1), vt(0,0,0))
  1078. MSH.TextureId = "rbxassetid://1202473285"
  1079.  
  1080.  
  1081. if CookieMode == 1 then
  1082. MSH.VertexColor = Vector3.new(1,1,1)
  1083. elseif CookieMode == 2 then
  1084. MSH.VertexColor = Vector3.new(.05,1,.05)
  1085. elseif CookieMode == 3 then
  1086. game:GetService('RunService').Stepped:Connect(function()
  1087. if MSH ~= nil then
  1088. MSH.VertexColor = Vector3.new(color.r,color.g,color.b)
  1089. end
  1090. end)
  1091. elseif CookieMode == 4 then
  1092. MSH.VertexColor = Vector3.new(1,.5,1)
  1093. elseif CookieMode == 5 then
  1094. MSH.VertexColor = Vector3.new(.0,.0,.0)
  1095. elseif CookieMode == 6 then
  1096. MSH.VertexColor = Vector3.new(1,.3,.3)
  1097. end
  1098.  
  1099.  
  1100. local SWeld=weld(TheGunHandle,RightArm,TheGunHandle,cf(0,-1.5,0)*angles(math.rad(90),math.rad(0),math.rad(180)))
  1101.  
  1102. for i = 0,2,.1 do swait()
  1103. Humanoid.WalkSpeed = 0
  1104. Humanoid.JumpPower = 0
  1105.  
  1106. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-0)), .2)
  1107. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-20 - 0 * math.cos(sine / 8/3))), .2)
  1108. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(90 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.2)
  1109. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.15)
  1110. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  1111. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  1112.  
  1113.  
  1114.  
  1115.  
  1116. end
  1117.  
  1118.  
  1119.  
  1120. for i = 0,1,.1 do swait()
  1121. Humanoid.WalkSpeed = 0
  1122. Humanoid.JumpPower = 0
  1123.  
  1124. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-10)), .15)
  1125. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(10 - 0 * math.cos(sine / 8/3))), .15)
  1126. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.7, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.15)
  1127. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.15)
  1128. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  1129. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  1130.  
  1131.  
  1132.  
  1133.  
  1134. end
  1135. TheGunHandle:Destroy()
  1136.  
  1137. Humanoid.WalkSpeed = 12
  1138. Humanoid.JumpPower = 60
  1139. attack=false
  1140. end
  1141.  
  1142.  
  1143. function Attack2()
  1144. attack = true
  1145. for i = 0,.5,.1 do swait()
  1146. Humanoid.WalkSpeed = 12
  1147. Humanoid.JumpPower = 60
  1148.  
  1149. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-80)), .15)
  1150. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(80 - 0 * math.cos(sine / 8/3))), .15)
  1151. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.7, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.15)
  1152. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.15)
  1153. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  1154. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  1155.  
  1156.  
  1157.  
  1158.  
  1159. end
  1160.  
  1161. local TheGunHandle = Instance.new("Part")
  1162. TheGunHandle.Reflectance = 0
  1163. TheGunHandle.Transparency = 0
  1164. TheGunHandle.CanCollide = true
  1165. TheGunHandle.Locked = true
  1166. TheGunHandle.Anchored=false
  1167. TheGunHandle.BrickColor = BrickColor.new("Really blue")
  1168. TheGunHandle.Name = "BHandle"
  1169. TheGunHandle.Size = Vector3.new(1,0.2,1)
  1170. TheGunHandle.Material = "SmoothPlastic"
  1171. TheGunHandle:BreakJoints()
  1172. TheGunHandle.Parent = workspace
  1173. TheGunHandle.CFrame = RightArm.CFrame
  1174.  
  1175.  
  1176. local MSH = CreateMesh2("SpecialMesh", TheGunHandle, "FileMesh", "1202473244", "", vt(1,1,1), vt(0,0,0))
  1177. MSH.TextureId = "rbxassetid://1202473285"
  1178. if CookieMode == 1 then
  1179. MSH.VertexColor = Vector3.new(1,1,1)
  1180. elseif CookieMode == 2 then
  1181. MSH.VertexColor = Vector3.new(.05,1,.05)
  1182. elseif CookieMode == 3 then
  1183. game:GetService('RunService').Stepped:Connect(function()
  1184. if MSH ~= nil then
  1185. MSH.VertexColor = Vector3.new(color.r,color.g,color.b)
  1186. end
  1187. end)
  1188. elseif CookieMode == 4 then
  1189. MSH.VertexColor = Vector3.new(1,.5,1)
  1190. elseif CookieMode == 5 then
  1191. MSH.VertexColor = Vector3.new(.0,.0,.0)
  1192. elseif CookieMode == 6 then
  1193. MSH.VertexColor = Vector3.new(1,.3,.3)
  1194. end
  1195. local SWeld=weld(TheGunHandle,RightArm,TheGunHandle,cf(0,-1.5,0)*angles(math.rad(90),math.rad(0),math.rad(180)))
  1196. for i = 0,.5,.1 do swait()
  1197. Humanoid.WalkSpeed = 12
  1198. Humanoid.JumpPower = 60
  1199.  
  1200. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-80)), .2)
  1201. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(80 - 0 * math.cos(sine / 8/3))), .2)
  1202. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(90 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(90 + 0 * math.cos(sine / 8))), 0.2)
  1203. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.15)
  1204. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  1205. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  1206.  
  1207.  
  1208.  
  1209.  
  1210. end
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217. for i = 0,.5,.1 do swait()
  1218. Humanoid.WalkSpeed = 12
  1219. Humanoid.JumpPower = 60
  1220.  
  1221. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(70)), .3)
  1222. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-70 - 0 * math.cos(sine / 8/3))), .3)
  1223. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(90 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.3)
  1224. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.15)
  1225. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  1226. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  1227.  
  1228.  
  1229.  
  1230.  
  1231. end
  1232.  
  1233. local bodvol = Create("BodyVelocity")({velocity = RootPart.CFrame.lookVector * 50, P = 50, maxForce = Vector3.new(math.huge, math.huge, math.huge), Parent = TheGunHandle})
  1234.  
  1235.  
  1236.  
  1237. game:GetService("Debris"):AddItem(bodvol, 0.1)
  1238.  
  1239.  
  1240. local function onTouch(part)
  1241. if part.Parent ~= Character and part.Parent.Parent ~= Character then
  1242. if part.Parent:FindFirstChildOfClass("Humanoid") then
  1243.  
  1244.  
  1245. if part.Parent:FindFirstChild("Head") then
  1246. HTorso= part.Parent:FindFirstChild("Head")
  1247. end
  1248.  
  1249. if HTorso ~= nil then
  1250.  
  1251.  
  1252. so("1575472350", HTorso,1.5, 1)
  1253. local HC = TheGunHandle:Clone()
  1254. coroutine.resume(coroutine.create(function()
  1255. TheGunHandle.TouchInterest:Destroy()
  1256. end))
  1257. coroutine.resume(coroutine.create(function()
  1258. TheGunHandle.Parent = nil
  1259. end))
  1260.  
  1261. local RandomEffect=CookieMode
  1262. if RandomEffect == 1 then
  1263. wait(.5)
  1264. coroutine.resume(coroutine.create(function()
  1265. TheGunHandle:Destroy()
  1266. end))
  1267. local HHH = part.Parent:FindFirstChildOfClass("Humanoid")
  1268. if dplr == plr then
  1269. script.DEvent:FireServer(HHH.MaxHealth, HHH)
  1270. end
  1271. so("260421433", HTorso,1.5, 1)
  1272.  
  1273. elseif RandomEffect == 2 then
  1274. so("260421433", HTorso,1.5, 1)
  1275. wait(1.5)
  1276. HC.Parent = workspace
  1277. HC.CanCollide = false
  1278. HC.Transparency = 1
  1279. HC.Anchored=true
  1280. game:GetService("Debris"):AddItem(HC, 3)
  1281. so("1597566679", HTorso,3, 0.75)
  1282. local HHH = part.Parent:FindFirstChildOfClass("Humanoid")
  1283. coroutine.resume(coroutine.create(function()
  1284. TheGunHandle:Destroy()
  1285. for i=1,20 do wait(.15)
  1286. if dplr == plr then
  1287. script.DEvent:FireServer(5, HHH)
  1288. end
  1289. end
  1290. wait(.25)
  1291. so("463770058", Torso,5, 1)
  1292. for i=1,5 do
  1293. idleAnim = 1
  1294. idletime = 0
  1295. so("387927244", HTorso,3, 1)
  1296. wait(0.25) end
  1297. end))
  1298.  
  1299. elseif RandomEffect == 3 then
  1300. so("260421433", HTorso,1.5, 1)
  1301. wait(1.5)
  1302. HC.Parent = workspace
  1303. HC.CanCollide = false
  1304. HC.Transparency = 1
  1305. HC.Anchored=true
  1306. game:GetService("Debris"):AddItem(HC, 3)
  1307. so("131314452", HTorso,3, 1)
  1308. local v = Instance.new("BodyVelocity",HTorso)
  1309. v.Velocity = HTorso.CFrame.upVector * 45 v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  1310. local HHH = part.Parent:FindFirstChildOfClass("Humanoid")
  1311. coroutine.resume(coroutine.create(function()
  1312. TheGunHandle:Destroy()
  1313. wait(0.25)
  1314. v:Destroy()
  1315. wait(0.6)
  1316. if dplr == plr then
  1317. script.DEvent:FireServer(math.huge, HHH)
  1318. end
  1319. so("1561246147", HTorso,10, 1.1)
  1320. wait(1)
  1321. so("2148986081", Torso,10, 0.95)
  1322. for i=1,3 do
  1323. idleAnim = 2
  1324. idletime = 0
  1325. wait(0.5) end
  1326. end))
  1327.  
  1328. elseif RandomEffect == 4 then
  1329. coroutine.resume(coroutine.create(function()
  1330. TheGunHandle:Destroy()
  1331. end))
  1332.  
  1333. so("1460707372", HTorso,1.5, 1.3)
  1334. local HHH = part.Parent:FindFirstChildOfClass("Humanoid")
  1335. HHH.PlatformStand = true
  1336. if dplr == plr then
  1337. script.DEvent:FireServer(HHH.MaxHealth/10, HHH)
  1338. end
  1339. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(math.huge, math.huge, math.huge), angularvelocity = HTorso.CFrame.lookVector*3, Parent = HTorso})
  1340.  
  1341. game:GetService("Debris"):AddItem(rl, .2)
  1342.  
  1343. wait(1.6)
  1344. HHH.PlatformStand = false
  1345. elseif RandomEffect == 5 then
  1346. wait(.5)
  1347. wait(.8)
  1348. coroutine.resume(coroutine.create(function()
  1349. part.Parent:BreakJoints()
  1350. part.Parent.Parent = nil
  1351. part.Parent:Destroy()
  1352. end))
  1353. swait()
  1354. TheGunHandle.Parent = workspace
  1355. so("138093019", TheGunHandle,1.5, 1)
  1356.  
  1357. wait(2)
  1358. so("525166232", TheGunHandle,1.5, 1)
  1359. game:GetService("Debris"):AddItem(TheGunHandle, 1.5)
  1360. elseif RandomEffect == 6 then
  1361. so("425191758", HTorso,1.5, 1)
  1362. wait(1.35)
  1363. HC.Parent = workspace
  1364. HC.CanCollide = false
  1365. HC.Transparency = 1
  1366. HC.Anchored=true
  1367. game:GetService("Debris"):AddItem(HC, 3)
  1368. so("633129949", HC,3, 1.5)
  1369. local EX = Instance.new("Explosion", workspace)
  1370.  
  1371. EX.Position = HTorso.Position
  1372. EX.BlastPressure = 100000
  1373. EX.BlastRadius = 2
  1374. HTorso:Destroy()
  1375. coroutine.resume(coroutine.create(function()
  1376. TheGunHandle:Destroy()
  1377. end))
  1378.  
  1379. end
  1380.  
  1381. end
  1382.  
  1383. end
  1384. end
  1385. end
  1386.  
  1387.  
  1388.  
  1389. TheGunHandle.Touched:connect(onTouch)
  1390.  
  1391.  
  1392. game:GetService("Debris"):AddItem(TheGunHandle, 60*5)
  1393.  
  1394. coroutine.resume(coroutine.create(function()
  1395. SWeld:Destroy()
  1396. end))
  1397. for i = 0,1,.1 do swait()
  1398. Humanoid.WalkSpeed = 12
  1399. Humanoid.JumpPower = 60
  1400.  
  1401. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(70)), .15)
  1402. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-70 - 0 * math.cos(sine / 8/3))), .15)
  1403. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(90 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.15)
  1404. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.15)
  1405. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  1406. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  1407.  
  1408.  
  1409.  
  1410.  
  1411. end
  1412.  
  1413.  
  1414.  
  1415. attack = false
  1416. end
  1417. function Attack3()
  1418. attack = true
  1419.  
  1420. so("132026302", HTorso,2.0, 1.0)
  1421. for i = 0,5,.1 do swait()
  1422. Humanoid.WalkSpeed = 12
  1423. Humanoid.JumpPower = 60
  1424.  
  1425. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
  1426. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 0 * math.cos(sine / 8/3))), .15)
  1427. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(90 + 0 * math.cos(sine / 8))), 0.15)
  1428. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-90 - 0 * math.cos(sine / 8))), 0.15)
  1429. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  1430. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  1431.  
  1432.  
  1433.  
  1434.  
  1435. end
  1436. HTorso=nil
  1437. local TheGunHandle = Instance.new("Part")
  1438. TheGunHandle.Reflectance = 0
  1439. TheGunHandle.Transparency = 1
  1440. TheGunHandle.CanCollide = false
  1441. TheGunHandle.Locked = true
  1442. TheGunHandle.Anchored=false
  1443. TheGunHandle.BrickColor = BrickColor.new("Really blue")
  1444. TheGunHandle.Name = "BHandle"
  1445. TheGunHandle.Size = Head.Size*2
  1446. TheGunHandle.Material = "SmoothPlastic"
  1447. TheGunHandle:BreakJoints()
  1448. TheGunHandle.Parent = Character
  1449. TheGunHandle.CFrame = Head.CFrame
  1450. local SWeld=weld(TheGunHandle,Head,TheGunHandle,cf(0,0,0))
  1451. local function onTouch(part)
  1452. if part.Parent and part.Parent ~= Character and part.Parent.Parent ~= Character then
  1453. if part.Parent:FindFirstChildOfClass("Humanoid") then
  1454.  
  1455. local EX = Instance.new("Explosion", workspace)
  1456.  
  1457. EX.Position = Head.Position
  1458. EX.BlastPressure = 0
  1459. EX.BlastRadius = 0
  1460.  
  1461. coroutine.resume(coroutine.create(function()
  1462. part.Parent:BreakJoints()
  1463. part.Parent.Parent = nil
  1464. part.Parent:Destroy()
  1465. end))
  1466.  
  1467.  
  1468. end
  1469. end
  1470. end
  1471.  
  1472.  
  1473.  
  1474. TheGunHandle.Touched:connect(onTouch)
  1475. coroutine.resume(coroutine.create(function()
  1476. while TheGunHandle.Parent ~= nil do
  1477. so("132026314", HTorso,1.5, 1.0)
  1478. wait(.25)
  1479. end
  1480.  
  1481. end))
  1482.  
  1483. for i = 0,25,.1 do swait()
  1484. Humanoid.WalkSpeed = 64
  1485. Humanoid.JumpPower = 60
  1486.  
  1487. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(math.random(-40,40)/10, math.random(-40,40)/10, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(10+math.random(-40,40) - 0 * math.cos(sine / 8)), math.rad((math.random(-40,40) + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
  1488. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 0 * math.cos(sine / 8/3))), .15)
  1489. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(90 + 0 * math.cos(sine / 8))), 0.15)
  1490. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-90 - 0 * math.cos(sine / 8))), 0.15)
  1491. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  1492. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  1493.  
  1494.  
  1495.  
  1496.  
  1497. end
  1498. coroutine.resume(coroutine.create(function()
  1499. TheGunHandle:Destroy()
  1500. end))
  1501. so("864152455", HTorso,3.0, 1.25)
  1502. for i = 0,9,.025 do swait()
  1503. Humanoid.WalkSpeed = 0
  1504. Humanoid.JumpPower = 0
  1505.  
  1506. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -2.5 + 0.0 * math.cos(sine / 8)) * angles(math.rad(90 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
  1507. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 0 * math.cos(sine / 8/3))), .15)
  1508. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(90 + 0 * math.cos(sine / 8))), 0.15)
  1509. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-90 - 0 * math.cos(sine / 8))), 0.15)
  1510. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
  1511. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
  1512.  
  1513.  
  1514.  
  1515.  
  1516. end
  1517. so("131552951", HTorso,2.0, 1)
  1518. attack = false
  1519. end
  1520. function Attack4()
  1521. attack = true
  1522.  
  1523.  
  1524.  
  1525.  
  1526. attack = false
  1527. end
  1528.  
  1529.  
  1530.  
  1531.  
  1532. function JumpAfterEffect()
  1533. if attack == false then
  1534. attack = true
  1535.  
  1536.  
  1537.  
  1538. if sprintmode == true then
  1539. Humanoid.WalkSpeed= 10
  1540. else
  1541. Humanoid.WalkSpeed= 3
  1542. end
  1543. Humanoid.JumpPower= 0
  1544. coroutine.resume(coroutine.create(function()
  1545. local NewParticle = Particle1:Clone()
  1546.  
  1547.  
  1548. local EffectFloor,PosFloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1549.  
  1550. local EffectHolder = Instance.new("Part")
  1551. EffectHolder.Parent = Character
  1552. EffectHolder.Size = Vector3.new(0.05, 0.05, 0.05)
  1553. EffectHolder.Transparency = 1
  1554. EffectHolder.Anchored=true
  1555.  
  1556. EffectHolder.Material = "Neon"
  1557. EffectHolder.CanCollide = false
  1558.  
  1559.  
  1560. EffectHolder.CFrame = cn(PosFloor)
  1561.  
  1562. NewParticle.Color = ColorSequence.new(EffectFloor.Color, Color3.new (.5, .5, .5))
  1563. NewParticle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,EffectFloor.Transparency+.3),NumberSequenceKeypoint.new(.5,EffectFloor.Transparency+.8),NumberSequenceKeypoint.new(1,1)})
  1564. NewParticle.Parent = EffectHolder
  1565. NewParticle:Emit(30)
  1566. so("1161221108", EffectHolder,.7, math.random(100,120)/100)
  1567. game:GetService("Debris"):AddItem(EffectHolder, 3)
  1568.  
  1569.  
  1570. end))
  1571.  
  1572. for i = 1,2.4,.1 do
  1573. swait()
  1574. Neck.C0 = Neck.C0:lerp(NeckCF*CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(25-3 * math.cos(sine / 15)),math.rad(0),math.rad(0)),.1)
  1575. RJ.C0 = RJ.C0:lerp(RootCF*CFrame.new(0, .3, -.6 +-.05 * math.cos(sine / 15.5)) * CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.2)
  1576. RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.60, -.0) * angles(math.rad(20 - 2 * math.cos(sine / 8)), math.rad(0), math.rad(15 + 0 * math.cos(sine / 8))), 0.1)
  1577. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(20 - 2 * math.cos(sine / 8)), math.rad(0), math.rad(-15 - 2 * math.cos(sine / 8))), 0.1)
  1578. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.65+ .05 * math.cos(sine / 15), -.2) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  1579. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.65+ .05 * math.cos(sine / 15), -.2) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  1580. end
  1581.  
  1582.  
  1583. attack = false
  1584. end
  1585. end
  1586.  
  1587. central = atremote.OnClientEvent:Connect(function(type, key, sctype, target, hit, mtarget)
  1588. if sctype == 'meem' and target == plr then
  1589. if type == 'KeyDown' then
  1590. if key == "z" and attack == false then
  1591. Attack1()
  1592. end
  1593. if key == "x" and attack == false then
  1594. Attack2()
  1595. end
  1596.  
  1597. if key == "c" and attack == false then
  1598. Attack3()
  1599. end
  1600. if key == "v" and attack == false then
  1601. Attack4()
  1602. end
  1603.  
  1604.  
  1605.  
  1606.  
  1607. if key == "e" and attack == false then
  1608. ChangeCookie()
  1609. end
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615. if key == "m" then
  1616.  
  1617. if playsong == true then
  1618. playsong = false
  1619. s2:stop()
  1620. elseif playsong == false then
  1621. playsong = true
  1622.  
  1623.  
  1624. s2:play()
  1625. end
  1626.  
  1627. end
  1628.  
  1629.  
  1630.  
  1631. if key == "n" then
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638. CurId = CurId + 1
  1639. if CurId > 5 then
  1640. CurId = 1
  1641.  
  1642. end
  1643. if CurId == 1 then
  1644. lastid= "http://www.roblox.com/asset/?id=762141368"
  1645.  
  1646.  
  1647. elseif CurId == 2 then
  1648. lastid= "http://www.roblox.com/asset/?id=1526833227"
  1649.  
  1650.  
  1651. elseif CurId == 3 then
  1652. lastid= "http://www.roblox.com/asset/?id=972495527"
  1653.  
  1654.  
  1655. elseif CurId == 4 then
  1656. lastid= "http://www.roblox.com/asset/?id=2738012216"
  1657.  
  1658.  
  1659. elseif CurId == 5 then
  1660. lastid= "http://www.roblox.com/asset/?id=1856178072"
  1661.  
  1662. end
  1663.  
  1664.  
  1665. lastsongpos = 0
  1666. s2.TimePosition = lastsongpos
  1667.  
  1668.  
  1669. end
  1670.  
  1671.  
  1672. end
  1673. end
  1674. end)
  1675.  
  1676. stremote.OnClientEvent:Connect(function(plrtype)
  1677. if plrtype == plr then
  1678. central:Disconnect()
  1679. script:Destroy()
  1680. end
  1681. end)
  1682.  
  1683. pcall(function()
  1684. Mouse.Button1Down:Connect(function()
  1685. maremote:FireServer('Button1Down', 'NONE', 'meem', plr, Mouse.Hit, Mouse.Target)
  1686. end)
  1687. Mouse.Button1Up:Connect(function()
  1688. maremote:FireServer('Button1Up', 'NONE', 'meem', plr, Mouse.Hit, Mouse.Target)
  1689. end)
  1690. Mouse.KeyDown:Connect(function(key)
  1691. maremote:FireServer('KeyDown', key, 'meem', plr, Mouse.Hit, Mouse.Target)
  1692. end)
  1693. end)
  1694. end))
  1695. ObjectValue1.Name = "Player"
  1696. ObjectValue1.Parent = LocalScript0
  1697. ObjectValue2.Name = "Trigger"
  1698. ObjectValue2.Parent = LocalScript0
  1699. ObjectValue2.Value = nil
  1700. ObjectValue3.Name = "Master"
  1701. ObjectValue3.Parent = LocalScript0
  1702. ObjectValue3.Value = nil
  1703. Script4.Name = "Damage"
  1704. Script4.Parent = LocalScript0
  1705. table.insert(cors,sandbox(Script4,function()
  1706. local e = script.Parent:WaitForChild('DEvent')
  1707. local r = script.Parent:WaitForChild('REvent')
  1708. function dam(player, d,h)
  1709. h:TakeDamage(d)
  1710. end
  1711. e.OnServerEvent:Connect(dam)
  1712. function ragdoll(player, Character, form)
  1713. local humanoid = Character:FindFirstChildOfClass("Humanoid")
  1714. spawn(function()
  1715. local v = Instance.new('BodyVelocity',Character.Torso)
  1716. v.Velocity = form
  1717. v.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1718. wait(0.3)
  1719. v:Destroy()
  1720. end)
  1721. if humanoid.PlatformStand == false then
  1722. humanoid.JumpPower = 0
  1723. humanoid.PlatformStand = true
  1724. humanoid.WalkSpeed = 0
  1725. local findlefthip = Character.Torso:findFirstChild("Left Hip")
  1726. if findlefthip then
  1727. findlefthip:Remove()
  1728. end
  1729. local glue = Instance.new("Glue", Character.Torso)
  1730. glue.Part0 = Character.Torso
  1731. glue.Part1 = Character["Left Leg"]
  1732. glue.Name = "Left leg"
  1733. local collider = Instance.new("Part", humanoid.Parent["Left Leg"])
  1734. collider.Position = Vector3.new(0,999,0)
  1735. collider.Size = Vector3.new(1.5, 1, 1)
  1736. collider.Shape = "Cylinder"
  1737. local weld = Instance.new("Weld", collider)
  1738. weld.Part0 = humanoid.Parent["Left Leg"]
  1739. weld.Part1 = collider
  1740. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  1741. collider.TopSurface = "Smooth"
  1742. collider.BottomSurface = "Smooth"
  1743. collider.formFactor = "Symmetric"
  1744. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1745. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1746. collider.Transparency = 1
  1747.  
  1748. --
  1749. local findrighthip = Character.Torso:findFirstChild("Right Hip")
  1750. if findrighthip then
  1751. findrighthip:Remove()
  1752. end
  1753. local glue = Instance.new("Glue", Character.Torso)
  1754. glue.Part0 = humanoid.Parent.Torso
  1755. glue.Part1 = humanoid.Parent["Right Leg"]
  1756. glue.Name = "Right leg"
  1757. local collider = Instance.new("Part", humanoid.Parent["Right Leg"])
  1758. collider.Position = Vector3.new(0,999,0)
  1759. collider.Size = Vector3.new(1.5, 1, 1)
  1760. collider.Shape = "Cylinder"
  1761. local weld = Instance.new("Weld", collider)
  1762. weld.Part0 = humanoid.Parent["Right Leg"]
  1763. weld.Part1 = collider
  1764. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  1765. collider.TopSurface = "Smooth"
  1766. collider.BottomSurface = "Smooth"
  1767. collider.formFactor = "Symmetric"
  1768. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1769. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1770. collider.Transparency = 1
  1771.  
  1772. --
  1773. local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder")
  1774. if findrightshoulder then
  1775. findrightshoulder:Remove()
  1776. end
  1777. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  1778. glue.Part0 = humanoid.Parent.Torso
  1779. glue.Part1 = humanoid.Parent["Right Arm"]
  1780. glue.Name = "Right arm"
  1781. local collider = Instance.new("Part", humanoid.Parent["Right Arm"])
  1782. collider.Position = Vector3.new(0,999,0)
  1783. collider.Size = Vector3.new(1.5, 1, 1)
  1784. collider.Shape = "Cylinder"
  1785. local weld = Instance.new("Weld", collider)
  1786. weld.Part0 = humanoid.Parent["Right Arm"]
  1787. weld.Part1 = collider
  1788. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  1789. collider.TopSurface = "Smooth"
  1790. collider.BottomSurface = "Smooth"
  1791. collider.formFactor = "Symmetric"
  1792. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1793. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1794. collider.Transparency = 1
  1795.  
  1796. --
  1797. local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder")
  1798. if findleftshoulder then
  1799. findleftshoulder:Remove()
  1800. end
  1801. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  1802. glue.Part0 = humanoid.Parent.Torso
  1803. glue.Part1 = humanoid.Parent["Left Arm"]
  1804. glue.Name = "Left arm"
  1805. local collider = Instance.new("Part", humanoid.Parent["Left Arm"])
  1806. collider.Position = Vector3.new(0,999,0)
  1807. collider.Size = Vector3.new(1.5, 1, 1)
  1808. collider.Shape = "Cylinder"
  1809. local weld = Instance.new("Weld", collider)
  1810. weld.Part0 = humanoid.Parent["Left Arm"]
  1811. weld.Part1 = collider
  1812. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  1813. collider.TopSurface = "Smooth"
  1814. collider.BottomSurface = "Smooth"
  1815. collider.formFactor = "Symmetric"
  1816. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1817. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1818. collider.Transparency = 1
  1819.  
  1820. local findhead = humanoid.Parent:findFirstChild("Head")
  1821. local findneckat = Character.Torso:findFirstChild("NeckAttachment")
  1822. if findhead and findneckat then
  1823. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  1824. attachment.Position = Vector3.new(0, -0.5, 0)
  1825. attachment.Name = "lol"
  1826. attachment.Visible = false
  1827. humanoid.Parent.Torso.NeckAttachment.Visible = false
  1828. humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  1829. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  1830. ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
  1831. ball.Attachment1 = attachment
  1832. ball.LimitsEnabled = true
  1833. ball.TwistLimitsEnabled = true
  1834. ball.UpperAngle = 90
  1835. ball.Restitution = 0.5
  1836. ball.TwistUpperAngle = 90
  1837. ball.TwistLowerAngle = -90
  1838. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  1839. collidepartofleftleg.Name = "Bone"
  1840. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  1841. collidepartofleftleg.Transparency = 1
  1842. collidepartofleftleg:BreakJoints()
  1843. local weeld = Instance.new("Weld", collidepartofleftleg)
  1844. weeld.Part0 = collidepartofleftleg
  1845. weeld.Part1 = humanoid.Parent["Head"]
  1846. if humanoid.Parent.Torso:findFirstChild("Neck") then
  1847. humanoid.Parent.Torso.Neck:destroy()
  1848. end
  1849. end
  1850. end
  1851. end
  1852. r.OnServerEvent:Connect(ragdoll)
  1853. end))
  1854. RemoteEvent5.Name = "DEvent"
  1855. RemoteEvent5.Parent = LocalScript0
  1856. ObjectValue6.Name = "Stop"
  1857. ObjectValue6.Parent = LocalScript0
  1858. ObjectValue6.Value = nil
  1859. Folder7.Name = "VALUES"
  1860. Folder7.Parent = LocalScript0
  1861. StringValue8.Name = "MODE"
  1862. StringValue8.Parent = Folder7
  1863. RemoteEvent9.Name = "REvent"
  1864. RemoteEvent9.Parent = LocalScript0
  1865. for i,v in pairs(mas:GetChildren()) do
  1866. v.Parent = script
  1867. pcall(function() v:MakeJoints() end)
  1868. end
  1869. mas:Destroy()
  1870. for i,v in pairs(cors) do
  1871. spawn(function()
  1872. pcall(v)
  1873. end)
  1874. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement