Advertisement
cat568

Untitled

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