Advertisement
Nico1702

Ultra Greed Script

Apr 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.88 KB | None | 0 0
  1. --[[Cancer ultra greed script i'm never gonna finish
  2.  
  3.  
  4. Have fun I guess
  5.  
  6. by:makhail07
  7. also most of this code is fucking stolen from my other scripts cause im a lazy bitch
  8. ]]--
  9.  
  10.  
  11.  
  12. local plr=game:GetService("Players").LocalPlayer
  13. Player=game:GetService("Players").LocalPlayer
  14. local char = plr.Character
  15. local RootPart=char.HumanoidRootPart
  16. local tors = char.Torso
  17. local head = char.Head
  18. Torso=char.Torso
  19. mouse=Player:GetMouse()
  20. if Torso == nil then
  21. print'Disable R15'
  22. end
  23. Character=plr.Character
  24. cf=CFrame.new
  25. euler=CFrame.fromEulerAnglesXYZ
  26. angles=CFrame.Angles
  27. LS=Torso["Left Shoulder"]
  28. LH=Torso["Left Hip"]
  29. RS=Torso["Right Shoulder"]
  30. RH=Torso["Right Hip"]
  31. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  32. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  33. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  34. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  35. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  36. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  37. ra = char:findFirstChild("Right Arm")
  38. la = char:findFirstChild("Left Arm")
  39. rl = char:findFirstChild("Right Leg")
  40. ll = char:findFirstChild("Left Leg")
  41. RootPart=Character.HumanoidRootPart
  42. RootJoint=RootPart.RootJoint
  43. RootCF=euler(-1.57,0,3.14)
  44. attack = false
  45. function rayCast(Pos, Dir, Max, Ignore)
  46. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  47. end
  48. function swait(num)
  49. if num==0 or num==nil then
  50. game:service'RunService'.Stepped:wait(0)
  51. else
  52. for i=0,num do
  53. game:service'RunService'.Stepped:wait(0)
  54. end
  55. end
  56. end
  57. function thread(f)
  58. coroutine.resume(coroutine.create(f))
  59. end
  60. function clerp(c1,c2,al) --iwanttodrinkbleachtoday
  61. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  62. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  63. for i,v in pairs(com1) do
  64. com1[i] = v+(com2[i]-v)*al--imsmart
  65. end
  66. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  67. end
  68. --save shoulders
  69. RSH, LSH=nil, nil
  70. --welds
  71. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  72. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  73. LH=tors["Left Hip"]
  74. RH=tors["Right Hip"]
  75. TorsoColor=tors.BrickColor
  76. function NoOutline(Part)
  77. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  78. end
  79. player=Player
  80. ch=Character
  81. RSH=ch.Torso["Right Shoulder"]
  82. LSH=ch.Torso["Left Shoulder"]
  83. --
  84. RSH.Parent=nil
  85. LSH.Parent=nil
  86. --
  87. RW.Name="Right Shoulder"
  88. RW.Part0=ch.Torso
  89. RW.C0=CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  90. RW.C1=CFrame.new(0, 0.5, 0)
  91. RW.Part1=ch["Right Arm"]
  92. RW.Parent=ch.Torso
  93. --
  94. LW.Name="Left Shoulder"
  95. LW.Part0=ch.Torso
  96. LW.C0=CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  97. LW.C1=CFrame.new(0, 0.5, 0)
  98. LW.Part1=ch["Left Arm"]
  99. LW.Parent=ch.Torso
  100.  
  101.  
  102.  
  103. Player=game:GetService('Players').LocalPlayer
  104. Character=Player.Character
  105. mouse=Player:GetMouse()
  106. m=Instance.new('Model',Character)
  107.  
  108.  
  109. local function weldBetween(a, b)
  110. local weldd = Instance.new("ManualWeld")
  111. weldd.Part0 = a
  112. weldd.Part1 = b
  113. weldd.C0 = CFrame.new()
  114. weldd.C1 = b.CFrame:inverse() * a.CFrame
  115. weldd.Parent = a
  116. return weldd
  117. end
  118.  
  119. ArtificialHB = Instance.new("BindableEvent", script)
  120. ArtificialHB.Name = "Heartbeat"
  121.  
  122. script:WaitForChild("Heartbeat")
  123.  
  124. frame = 1 / 60
  125. tf = 0
  126. allowframeloss = false
  127. tossremainder = false
  128. lastframe = tick()
  129. script.Heartbeat:Fire()
  130.  
  131. game:GetService("RunService").Heartbeat:connect(function(s, p)
  132. tf = tf + s
  133. if tf >= frame then
  134. if allowframeloss then
  135. script.Heartbeat:Fire()
  136. lastframe = tick()
  137. else
  138. for i = 1, math.floor(tf / frame) do
  139. script.Heartbeat:Fire()
  140. end
  141. lastframe = tick()
  142. end
  143. if tossremainder then
  144. tf = 0
  145. else
  146. tf = tf - frame * math.floor(tf / frame)
  147. end
  148. end
  149. end)
  150.  
  151. equipped=false
  152.  
  153. Humanoid=Character.Humanoid
  154.  
  155.  
  156. ---------------------------------- Thank shackluster for this cause im way to lazy to put my own fucking soundfunc xdxd
  157. function CreateSound(ID, PARENT, VOLUME, PITCH)
  158. coroutine.resume(coroutine.create(function()
  159. local NEWSOUND = Instance.new("Sound", PARENT)
  160. NEWSOUND.Volume = VOLUME
  161. NEWSOUND.Pitch = PITCH
  162. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  163. swait()
  164. NEWSOUND:play()
  165. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  166. end))
  167. end
  168.  
  169.  
  170.  
  171.  
  172.  
  173. --------------------------------------------------
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180. mouse.KeyDown:connect(function(key)
  181. if key == 'z' and attack == false then
  182. coinstomp()
  183. end
  184. if key == 'x' and attack == false then
  185. coinspin()
  186. end
  187. end)
  188.  
  189.  
  190. music = Instance.new("Sound",tors)
  191. music.SoundId = "rbxassetid://288036901"
  192. music.Volume = 1.5
  193. music.Looped = true
  194. music:Play()
  195.  
  196. RWC0 = cf(.1, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
  197. LWC0 = cf(-.1, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
  198. function coinspin()
  199. attack = true
  200. for i = 0, 2, 0.1 do
  201. swait()
  202. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  203. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-15)), 0.3)
  204. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-30)) * angles(math.rad(0), math.rad(90), math.rad(0)) * RWC0, 0.3)
  205. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)) * LWC0, 0.3)
  206. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(60), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  207. LH.C0=clerp(LH.C0,cf(-1,-.5,-0.5)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  208.  
  209. end
  210.  
  211. for i = 0, 25, 0.1 do
  212. swait()
  213. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30 - 360 * i)), 0.45)
  214. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.45)
  215. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)) * angles(math.rad(0), math.rad(90), math.rad(0)) * RWC0, 0.45)
  216. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-60)) * LWC0, 0.45)
  217. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.45)
  218. LH.C0=clerp(LH.C0,cf(-1,-.5,-0.5)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  219.  
  220. end
  221. for i = 0, 2, 0.1 do
  222. swait()
  223. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  224. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  225. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)) * angles(math.rad(0), math.rad(90), math.rad(0)) * RWC0, 0.3)
  226. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)) * LWC0, 0.3)
  227. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  228. LH.C0=clerp(LH.C0,cf(-1,-.5,-0.5)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  229.  
  230. end
  231.  
  232. attack = false
  233. end
  234.  
  235.  
  236. function coinstomp()
  237. attack = true
  238. for i = 0, 2, 0.1 do
  239. swait()
  240. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  241. LH.C0=clerp(LH.C0,cf(-1,-.5,-0.5)*angles(math.rad(2.5),math.rad(-60),math.rad(-2.5)),.3)
  242. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05, 0) * angles(math.rad(20), math.rad(20), math.rad(50)),.2)
  243. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05, 0) * angles(math.rad(-20), math.rad(-20), math.rad(-50)),.2)
  244. end
  245. for i = 0, 2, 0.1 do
  246. swait()
  247. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  248. LH.C0=clerp(LH.C0,cf(-1,-.9,-0.5)*angles(math.rad(2.5),math.rad(-60),math.rad(-2.5)),.3)
  249. end
  250. for i = 0, 2, 0.1 do
  251. swait()
  252. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  253. RH.C0=clerp(RH.C0,cf(1,-.5,-0.5)*angles(math.rad(2.5),math.rad(60),math.rad(-2.5)),.3)
  254. LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1,0.025)*angles(math.rad(-2.5),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  255. end
  256. for i = 0, 2, 0.1 do
  257. swait()
  258. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  259. RH.C0=clerp(RH.C0,cf(1,-0.9-0.1,0.025)*angles(math.rad(-2.5),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  260. end
  261. for i = 0, 2, 0.1 do
  262. swait()
  263. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  264. LH.C0=clerp(LH.C0,cf(-1,-.5,-0.5)*angles(math.rad(2.5),math.rad(-60),math.rad(-2.5)),.3)
  265. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05, 0) * angles(math.rad(20), math.rad(20), math.rad(50)),.2)
  266. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05, 0) * angles(math.rad(-20), math.rad(-20), math.rad(-50)),.2)
  267. end
  268. for i = 0, 2, 0.1 do
  269. swait()
  270. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  271. LH.C0=clerp(LH.C0,cf(-1,-.9,-0.5)*angles(math.rad(2.5),math.rad(-60),math.rad(-2.5)),.3)
  272. end
  273. for i = 0, 2, 0.1 do
  274. swait()
  275. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  276. RH.C0=clerp(RH.C0,cf(1,-.5,-0.5)*angles(math.rad(2.5),math.rad(60),math.rad(-2.5)),.3)
  277. LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1,0.025)*angles(math.rad(-2.5),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  278. end
  279. for i = 0, 2, 0.1 do
  280. swait()
  281. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  282. RH.C0=clerp(RH.C0,cf(1,-0.9-0.1,0.025)*angles(math.rad(-2.5),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  283. end
  284. attack=false
  285. end
  286.  
  287.  
  288. New = function(Object, Parent, Name, Data)
  289. local Object = Instance.new(Object)
  290. for Index, Value in pairs(Data or {}) do
  291. Object[Index] = Value
  292. end
  293. Object.Parent = Parent
  294. Object.Name = Name
  295. return Object
  296. end
  297.  
  298. Model = New("Model",workspace,"Model",{}) --Thanks neb too fucking lazy like I said.
  299. ring = New("Part",Model,"ring",{CanCollide=false,BrickColor = BrickColor.new("Brick yellow"),Elasticity = 0,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(5, 5, 5),CFrame = CFrame.new(-72.0287933, 6.52005148, 33.66502, -0.0191105176, -0.965736747, 0.258819014, -0.246841118, -0.246295646, -0.937234163, 0.96886754, -0.0817982107, -0.233676717),Anchored = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.843137, 0.772549, 0.603922),})
  300. Mesh = New("SpecialMesh",ring,"Mesh",{MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,})
  301. ring.CFrame = head.CFrame
  302. local a1 = Instance.new("Attachment",ring)
  303. wait(.05)
  304. local hw = Instance.new("Weld",char)
  305. hw.Part0 = head
  306. hw.Part1 = ring
  307. hw.C1 = CFrame.new(0,0,0.5)*CFrame.Angles(math.rad(90),0,0)
  308.  
  309.  
  310. idle=0
  311. local sine = 0
  312. local change = 1
  313. local val = 0
  314. toim = 0
  315. Humanoid.Animator.Parent = nil
  316. idleanim=.4
  317. while true do
  318. swait()
  319. sine = sine + change
  320. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  321. local velderp=RootPart.Velocity.y
  322. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  323. if equipped==true or equipped==false then
  324. if attack==false then
  325. idle=idle+1
  326. else
  327. idle=0
  328. end
  329. if idle>=500 then
  330. if attack==false then
  331. --thoumagic()
  332. end
  333. end
  334. if RootPart.Velocity.y > 1 and hitfloor==nil then
  335. Anim="Jump"
  336. if attack==false then
  337. change = 2
  338.  
  339. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  340. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  341. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(10)), 0.3)
  342. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  343. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
  344. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  345. end
  346. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  347. Anim="Fall"
  348. change = 1
  349. if attack==false then
  350.  
  351. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
  352. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  353. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  354. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.3)
  355. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(90)), 0.3)
  356. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-90)), 0.3)
  357. end
  358. elseif torvel<1 and hitfloor~=nil then
  359. Anim="Idle"
  360. if attack==false then
  361.  
  362. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/30))*angles(math.rad(-2.5*math.cos(sine/30)),math.rad(0),math.rad(0)),0.15)
  363. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  364. RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/30),0.025*math.cos(sine/30))*angles(math.rad(-2.5*math.cos(sine/30)),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  365. LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/30),0.025*math.cos(sine/30))*angles(math.rad(-2.5*math.cos(sine/30)),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  366. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/60), 0) * angles(math.rad(3), math.rad(3*math.cos(sine/20)), math.rad(10)),.2)
  367. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05*math.sin(sine/60), 0) * angles(math.rad(-3), math.rad(-3*math.cos(sine/20)), math.rad(-10)),.2)
  368. end
  369. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  370. Anim="Walk"
  371. if attack==false then
  372. change= 0.9
  373. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/15))* angles(math.rad(10),math.rad(0),math.rad(0)),.2)
  374. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  375. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(30*math.cos(sine/15)),math.rad(5*math.cos(sine/30)),math.rad(10)),0.15)
  376. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-30*math.cos(sine/15))+ -math.sin(sine/15)/2.5,math.rad(0),math.rad(-10)),0.15)
  377. RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/10),0.025*math.cos(sine/10))*angles(math.rad(-2.5*math.cos(sine/10))+ -math.sin(sine/10),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  378. LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/10),0.025*math.cos(sine/10))*angles(math.rad(-2.5*math.cos(sine/10))+ math.sin(sine/10),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  379.  
  380. end
  381. elseif torvel>=22 and hitfloor~=nil then
  382. Anim="Run"
  383. if attack==false then
  384.  
  385. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.2)
  386. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-4+2*math.sin(sine/18)),math.rad(0),math.rad(0)),.2)
  387. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 25 * math.cos(sine / 8)),math.rad(0),math.rad(10 + 1.25 * math.cos(sine / 16))),.3)
  388. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 25 * math.cos(sine / 8)),math.rad(0),math.rad(-10 - 1.25 * math.cos(sine / 16))),.3)
  389. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/8)/2, 0 *math.sin(sine/8)/2) * CFrame.Angles(math.rad(0) + -math.sin(sine/8)/1.2, math.rad(0), 0), .8)
  390. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/8)/2,0 *-math.sin(sine/8)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/8)/1.2, math.rad(0), 0), .8)
  391. end
  392. end
  393. end
  394. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement