nguyentuhuy123

Super Cloud Rider

Mar 20th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.11 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local chr = plr.Character
  3. local maus = plr:GetMouse()
  4. local PGui=plr.PlayerGui
  5. local lleg = chr["Left Leg"]
  6. local rleg = chr["Right Leg"]
  7. local larm = chr["Left Arm"]
  8. local rarm = chr["Right Arm"]
  9. local hed = chr.Head
  10. local rutprt = chr.HumanoidRootPart
  11. local torso = chr.Torso
  12. local otheranims=false
  13. local armmovement=false
  14. local toss=false
  15. local jamp=false
  16. chr.Animate.Disabled=true
  17. local running=false
  18. local tek=0
  19. local ltdb=false
  20. local surfing=true
  21. local rising=false
  22. local cloudanim='Regular'
  23. local dnc=false
  24. local fldb={['w']=false,['a']=false,['s']=false,['d']=false}
  25. local TotalRate=10
  26. local trcolor = {"Cyan","Deep blue","Really blue","Medium blue"}
  27. clepz = {"138151785","131396502","152626854"}
  28.  
  29. coroutine.resume(coroutine.create(function()
  30. for i,x in pairs(chr:GetChildren()) do if x:IsA('Part') then x.Material='SmoothPlastic' elseif x:IsA('Hat') then x.Handle.Material='SmoothPlastic' end end end))
  31.  
  32.  
  33.  
  34.  
  35.  
  36. chr.Humanoid.WalkSpeed=25
  37.  
  38.  
  39. function Lerp(a, b, i)
  40. local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
  41. local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
  42. local calx = com1[1] + (com2[1] - com1[1]) * i
  43. local caly = com1[2] + (com2[2] - com1[2]) * i
  44. local calz = com1[3] + (com2[3] - com1[3]) * i
  45. local cala = com1[4] + (com2[4] - com1[4]) * i
  46. local calb = com1[5] + (com2[5] - com1[5]) * i
  47. local calc = com1[6] + (com2[6] - com1[6]) * i
  48. return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  49. end
  50.  
  51. function TwnSingleNumber(s,f,m)
  52. local wot=s+(f-s)*m
  53. return wot
  54. end
  55.  
  56. function TwnVector3(q,w,e)
  57. local begin={q.x,q.y,q.z}
  58. local ending={w.x,w.y,w.z}
  59. local bgx=begin[1]+(ending[1]-begin[1])*e
  60. local bgy=begin[2]+(ending[2]-begin[2])*e
  61. local bgz=begin[3]+(ending[3]-begin[3])*e
  62. return Vector3.new(bgx,bgy,bgz)
  63. end
  64.  
  65. newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
  66. wld = Instance.new("Weld", wp1)
  67. wld.Part0 = wp0
  68. wld.Part1 = wp1
  69. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  70. end
  71.  
  72. newWeld(law, torso, larm, -1.5, 0.5, 0)
  73. newWeld(raw, torso, rarm, 1.5, 0.5, 0)
  74. newWeld(llw, torso, lleg, -.5, -2, 0)
  75. newWeld(rlw, torso, rleg, .5, -2, 0)
  76. newWeld(hw, torso, hed, 0, 1.5, 0)
  77. local rutwald=Instance.new('Weld',rutprt)
  78. rutwald.Part0=rutprt
  79. rutwald.Part1=torso
  80. rutwald.Name="RootJoint"
  81. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(10),math.rad(180),0)
  82. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  83. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  84. rleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  85. lleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  86.  
  87. local anim = "Idling"
  88. local lastanim = "Idling"
  89. local val = 0
  90. local syne = 0
  91. local num = 0
  92. local runtime = 0
  93.  
  94. local claud=Instance.new('Part',chr)
  95. claud.CanCollide=false
  96. claud.Anchored=false
  97. claud.Name='Claud'
  98. claud.formFactor='Custom'
  99. claud.Locked=true
  100. claud.Material='SmoothPlastic'
  101. claud.BrickColor=BrickColor.new('Light stone grey')
  102. claud.TopSurface=10
  103. claud.BottomSurface=10
  104. claud.LeftSurface=10
  105. claud.RightSurface=10
  106. claud.FrontSurface=10
  107. claud.BackSurface=10
  108. claud:breakJoints()
  109. local emit=Instance.new("ParticleEmitter",claud)
  110. emit.Lifetime=NumberRange.new(1,2)
  111. emit.RotSpeed=NumberRange.new(3,6)
  112. emit.Name='claudmitterpls'
  113. emit.Acceleration=Vector3.new(math.random(-50,50)*.01,1,math.random(-50,50)*.01)
  114. emit.Size=NumberSequence.new(.5,1)
  115. emit.Transparency=NumberSequence.new(1)
  116. emit.Texture="http://www.roblox.com/asset?id=457321345"
  117. local clms=Instance.new('SpecialMesh',claud)
  118. clms.MeshId="http://www.roblox.com/asset/?id=1095708"
  119. clms.TextureId="http://www.roblox.com/asset/?id=298752372"
  120. clms.Scale=Vector3.new(7,2.5,6)
  121. local clwl=Instance.new('Weld',claud)
  122. clwl.Part0=rutprt
  123. clwl.Part1=claud
  124. clwl.C0=CFrame.new(0,0,.85)*CFrame.Angles(math.rad(100),math.rad(90),0)
  125.  
  126.  
  127. maus.KeyUp:connect(function(kei)
  128. if string.byte(kei)==48 and not otheranims then
  129. if surfing then
  130. chr.Humanoid.WalkSpeed=55
  131. elseif not surfing then
  132. chr.Humanoid.WalkSpeed=35
  133. end
  134. end
  135. if kei=='e' then
  136. floating=false
  137. end
  138. if kei=='q' then
  139. lowering=false
  140. end
  141. if kei=='w' then fldb.w=false end
  142. if kei=='a' then fldb.a=false end
  143. if kei=='s' then fldb.s=false end
  144. if kei=='d' then fldb.d=false end
  145. end)
  146.  
  147. chr.Humanoid.Changed:connect(function(c)
  148. if c=='Jump' then
  149. if otheranims or not surfing then
  150. chr.Humanoid.Jump=false
  151. end
  152. end
  153. end)
  154.  
  155. DrawLightning = function(Start,End,Times,Offset,Color,Thickness)
  156. if Start.y>End.y then
  157. local magz = (Start - End).magnitude
  158. local curpos = Start
  159. local trz = {-Offset,Offset}
  160. for i=1,Times do
  161. local li = Instance.new("Part",workspace)
  162. li.TopSurface =10
  163. li.BottomSurface = 10
  164. li.Anchored = true
  165. li.Transparency = 0
  166. li.BrickColor = Color
  167. li.formFactor = "Custom"
  168. li.CanCollide = false
  169. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  170. local lt=Instance.new("SpotLight",li)
  171. lt.Range=16
  172. lt.Brightness=5
  173. lt.Shadows=true
  174. lt.Angle=45
  175. lt.Face="Top"
  176. lt.Color=li.BrickColor.Color
  177. local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  178. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  179. if Times == i then
  180. local magz2 = (curpos - End).magnitude
  181. li.Size = Vector3.new(Thickness,Thickness,magz2)
  182. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  183. else
  184. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  185. end
  186. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p Spawn(function() for i=1,5 do wait() li.Transparency = li.Transparency+.2 end li:Destroy() end)
  187. end
  188. for i,x in pairs(workspace:GetChildren()) do if x:IsA'Model' and x:findFirstChild('Torso') and x:findFirstChild('Head') and x~=chr then
  189. for a,v in pairs(x:GetChildren()) do if v:IsA'Humanoid' then if (x.Torso.CFrame.p-End).magnitude<10 then v.Health=v.Health-30 end end end end end
  190. local so=Instance.new('Sound',claud)
  191. so.SoundId="http://www.roblox.com/asset?id="..clepz[math.random(1,#clepz)]
  192. so.Volume=.2
  193. so:Play''
  194. end
  195. end
  196.  
  197. maus.KeyDown:connect(function(kei)
  198. if string.byte(kei)==48 and not otheranims then
  199. if surfing then
  200. chr.Humanoid.WalkSpeed=300
  201. elseif not surfing then
  202. chr.Humanoid.WalkSpeed=499
  203. end
  204. end
  205. if kei=='r' then
  206. if torso:findFirstChild('CedarClaudVelo') then
  207. torso['CedarClaudVelo']:Destroy()
  208. else
  209. local veloo=Instance.new('BodyVelocity',torso)
  210. veloo.Name='CedarClaudVelo'
  211. veloo.maxForce=Vector3.new(0,math.huge,0)
  212. end
  213. end
  214. if kei=='w' then fldb.w=true end
  215. if kei=='a' then fldb.a=true end
  216. if kei=='s' then fldb.s=true end
  217. if kei=='d' then fldb.d=true end
  218. if kei=='x' then
  219. if not surfing then surfing=true
  220. chr.Humanoid.WalkSpeed=55
  221. elseif surfing then surfing=false
  222. chr.Humanoid.WalkSpeed=35
  223. end
  224. end
  225. if kei=='e' and not floating and not lowering and surfing then
  226. floating=true
  227. end
  228. if kei=='q' and not lowering and not floating and surfing then
  229. lowering=true
  230. end
  231. if kei=='f' and not otheranims and surfing then
  232. dnc=true
  233. anim='Dance'
  234. end
  235. end)
  236.  
  237. maus.Button1Down:connect(function()
  238. if not otheranims and surfing and not ltdb and (torso.CFrame.p-maus.Hit.p).magnitude<100 then
  239. ltdb=true
  240. DrawLightning(claud.CFrame.p,maus.Hit.p,5,.5,BrickColor.new("New Yeller"),.2)
  241. wait()
  242. ltdb=false
  243. end
  244. end)
  245.  
  246. plr.Chatted:connect(function(m)
  247. if m:lower():sub(1,3)=='/e ' then m=m:sub(4)
  248. if m:lower():sub(1,5)=='dance' and not otheranims and surfing then
  249. dnc=true
  250. anim='Dance'
  251. end
  252. end
  253. end)
  254.  
  255. game:service'RunService'.RenderStepped:connect(function()
  256.  
  257. if fldb.w or fldb.a or fldb.s or fldb.d then
  258. nerrrk=chr.Humanoid.WalkSpeed
  259. TotalRate=10
  260. else
  261. TotalRate=0
  262. nerrrk=0
  263. end
  264. chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
  265. syne=syne+.95
  266. if not otheranims then
  267. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and torso.Velocity.y<1 and torso.Velocity.y>-1 and not dnc then
  268. anim="Idling"
  269. puffing=false
  270.  
  271. elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < 43 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
  272. anim="Walking"
  273. puffing=true
  274. dnc=false
  275.  
  276. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 43 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
  277. anim="Sprinting"
  278. puffing=true
  279. dnc=false
  280.  
  281. elseif torso.Velocity.y>1 and surfing then
  282. anim='Jumping'
  283. puffing=true
  284. dnc=false
  285.  
  286. elseif (torso.Velocity.y < -1) and surfing then
  287. anim='Falling'
  288. puffing=true
  289. dnc=false
  290. end
  291. end
  292.  
  293. if torso:findFirstChild('CedarClaudVelo') then
  294. if floating and surfing then
  295. torso['CedarClaudVelo'].velocity=((rutprt.CFrame*CFrame.new(0,0,-1)).p-rutprt.CFrame.p).unit*nerrrk+Vector3.new(0,30,0)
  296. elseif lowering and surfing then
  297. torso['CedarClaudVelo'].velocity=((rutprt.CFrame*CFrame.new(0,0,-1)).p-rutprt.CFrame.p).unit*nerrrk+Vector3.new(0,-30,0)
  298. else
  299. torso['CedarClaudVelo'].velocity=((rutprt.CFrame*CFrame.new(0,0,-1)).p-rutprt.CFrame.p).unit*nerrrk
  300. end
  301. end
  302.  
  303. if anim=='Idling' and not surfing then
  304. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(.9,1,0)*CFrame.Angles(math.rad(190),math.rad(0),math.rad(-40)),.1)
  305. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-.9,1,0)*CFrame.Angles(math.rad(190),math.rad(-0),math.rad(40)),.1)
  306. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.45,-.4)*CFrame.Angles(math.rad(-38),0,0),.1)
  307. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.4,-1.7,-.3)*CFrame.Angles(math.rad(15),0,math.rad(-5)),.1)
  308. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.32,-1.9,.1)*CFrame.Angles(math.rad(-5),0,math.rad(10)),.1)
  309. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/30)/3,0)*CFrame.Angles(math.rad(90),math.rad(180),0),.1)
  310. clwl.C0=Lerp(clwl.C0,CFrame.new(0,math.cos(syne/30)/3+2.25,.5)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(-2.5)),.15)
  311. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(10),math.rad(180),0)
  312. end
  313. if anim=='Walking' and not surfing then
  314. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.3,.55,.2)*CFrame.Angles(math.rad(290),math.rad(0),math.rad(-10)),.15)
  315. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.3,.55,.2)*CFrame.Angles(math.rad(290),math.rad(-0),math.rad(10)),.15)
  316. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.45,-.4)*CFrame.Angles(math.rad(-38),0,0),.15)
  317. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.675,-1.8,-.6)*CFrame.Angles(math.rad(40),0,math.rad(10)),.15)
  318. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.675,-1.8,-.6)*CFrame.Angles(math.rad(40),0,math.rad(-10)),.15)
  319. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/30)/3+1,2.625)*CFrame.Angles(math.rad(50),math.rad(180),0),.15)
  320. clwl.C0=Lerp(clwl.C0,CFrame.new(0,math.cos(syne/30)/3+2.25,.5)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(-5)),.15)
  321. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(10),math.rad(180),0)
  322. end
  323. if anim=='Sprinting' and not surfing then
  324. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.3,.5,.15)*CFrame.Angles(math.rad(290),math.rad(0),math.rad(-10)),.15)
  325. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.3,.5,.15)*CFrame.Angles(math.rad(290),math.rad(-0),math.rad(10)),.15)
  326. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.45,-.4)*CFrame.Angles(math.rad(-28),0,0),.15)
  327. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.3,-.6)*CFrame.Angles(math.rad(20),0,math.rad(5)),.15)
  328. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.575,-1.3,-.6)*CFrame.Angles(math.rad(20),0,math.rad(-5)),.15)
  329. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/30)/3+1,2.625)*CFrame.Angles(math.rad(40),math.rad(180),0),.15)
  330. clwl.C0=Lerp(clwl.C0,CFrame.new(0,math.cos(syne/30)/3+2.25,.6)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(-10)),.15)
  331. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(10),math.rad(180),0)
  332. end
  333. if anim=='Idling' and surfing then
  334. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.45,.5,0)*CFrame.Angles(math.cos(syne/30)/10,math.rad(0),math.rad(12.5)),.1)
  335. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.25,.4,0)*CFrame.Angles(math.cos(syne/30)/10*-1,math.rad(-0),math.rad(-15)),.1)
  336. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(-.15,1.45,0)*CFrame.Angles(math.rad(0),math.rad(85),math.rad(0)),.1)
  337. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(5)),.1)
  338. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.575,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(-5)),.1)
  339. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(-3,math.cos(syne/30)/3+4.4,0)*CFrame.Angles(math.rad(0),math.rad(90),0),.1)
  340. clwl.C0=Lerp(clwl.C0,CFrame.new(0,math.cos(syne/30)/3+2.25,-.25)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(-2)),.15)
  341. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(0),math.rad(180),0)
  342. end
  343. if anim=='Walking' and surfing then
  344. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.25,.5,0)*CFrame.Angles(math.cos(syne/30)/10,math.rad(0),math.rad(25)),.15)
  345. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.25,.4,0)*CFrame.Angles(math.cos(syne/30)/10*-1,math.rad(-0),math.rad(-20)),.15)
  346. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(-.15,1.45,0)*CFrame.Angles(math.rad(0),math.rad(89),math.rad(0)),.15)
  347. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(5)),.15)
  348. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.615,-1.55,-.1)*CFrame.Angles(math.rad(0),0,math.rad(-5)),.15)
  349. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(-3,math.cos(syne/30)/3+4.4,-.25)*CFrame.Angles(math.rad(-5),math.rad(90),0),.15)
  350. clwl.C0=Lerp(clwl.C0,CFrame.new(0,math.cos(syne/30)/3+2.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(5)),.15)
  351. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(0),math.rad(180),0)
  352. end
  353. if anim=='Sprinting' and surfing then
  354. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.25,.5,0)*CFrame.Angles(math.cos(syne/30)/10,math.rad(0),math.rad(40)),.15)
  355. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.25,.4,0)*CFrame.Angles(math.cos(syne/30)/10*-1,math.rad(-30),math.rad(-20)),.15)
  356. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(-.25,1.45,0)*CFrame.Angles(math.rad(0),math.rad(89),math.rad(0)),.15)
  357. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(5)),.15)
  358. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.725,-1.3,-.1)*CFrame.Angles(math.rad(0),0,math.rad(-10)),.15)
  359. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(-3,math.cos(syne/30)/3+2.4,-.5)*CFrame.Angles(math.rad(-15),math.rad(90),0),.15)
  360. clwl.C0=Lerp(clwl.C0,CFrame.new(0,math.cos(syne/30)/3+.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(10)),.15)
  361. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(0),math.rad(180),0)
  362. end
  363. if anim=='Jumping' and surfing then
  364. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.375,.5,0)*CFrame.Angles(0,math.rad(5),math.rad(48)),.15)
  365. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.25,.4,0)*CFrame.Angles(0,math.rad(-20),math.rad(-35)),.15)
  366. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(-.25,1.45,0)*CFrame.Angles(math.rad(0),math.rad(89),math.rad(0)),.15)
  367. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(5)),.15)
  368. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.725,-1.2,-.1)*CFrame.Angles(math.rad(0),0,math.rad(-10)),.15)
  369. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(-3,4,0)*CFrame.Angles(math.rad(-30),math.rad(90),0),.15)
  370. clwl.C0=Lerp(clwl.C0,CFrame.new(0,2.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(10)),.15)
  371. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(0),math.rad(180),0)
  372. end
  373. if anim=='Falling' and surfing then
  374. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.375,.5,0)*CFrame.Angles(0,math.rad(-20),math.rad(30)),.15)
  375. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.25,.25,0)*CFrame.Angles(0,math.rad(5),math.rad(-55)),.15)
  376. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(-.25,1.45,0)*CFrame.Angles(math.rad(0),math.rad(89),math.rad(0)),.15)
  377. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.2,-.1)*CFrame.Angles(math.rad(0),0,math.rad(5)),.15)
  378. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.725,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(-10)),.15)
  379. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(-3,4,-0)*CFrame.Angles(math.rad(15),math.rad(90),0),.15)
  380. clwl.C0=Lerp(clwl.C0,CFrame.new(0,2.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(-20)),.15)
  381. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(0),math.rad(180),0)
  382. end
  383. if anim=='Dance' and surfing and dnc then
  384. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.2,1,0)*CFrame.Angles(math.rad(190),math.rad(0),math.rad(-10)),.1)
  385. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.2,1,0)*CFrame.Angles(math.rad(190),math.rad(-0),math.rad(10)),.1)
  386. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.45,-.2)*CFrame.Angles(math.rad(-15),0,0),.1)
  387. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.9,-.1)*CFrame.Angles(math.rad(5),0,math.rad(5)),.1)
  388. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.575,-1.9,-.1)*CFrame.Angles(math.rad(5),0,math.rad(-5)),.1)
  389. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,2.375+math.cos(syne/30)/10,3)*CFrame.Angles(0,math.rad(180),0),.1)
  390. clwl.C0=Lerp(clwl.C0,CFrame.new(0,math.cos(syne/30)/10+5.8,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),.15)
  391. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(10),math.rad(180),0)
  392. end
  393.  
  394.  
  395. emit.Rate=TotalRate
  396. if surfing then
  397. claud.BrickColor=BrickColor.new("Black")
  398. clms.VertexColor=TwnVector3(clms.VertexColor,Vector3.new(.1,.1,.1),.075)
  399. else
  400. claud.BrickColor=BrickColor.new("Institutional white")
  401. clms.VertexColor=TwnVector3(clms.VertexColor,Vector3.new(1,1,1),.075)
  402. end
  403.  
  404. if puffing then
  405. tek=tek+1
  406. else
  407. tek=0
  408. end
  409. if tek>=15 then
  410. tek=0
  411. local cl2=Instance.new('Part',Workspace)
  412. local p1=math.random(10,30)*.1
  413. local p2=math.random(40,60)*.1
  414. local p3=math.random(70,90)*.1
  415. cl2.CanCollide=false
  416. cl2.Anchored=true
  417. cl2.Name='Claud'
  418. cl2.formFactor='Custom'
  419. cl2.BrickColor=claud.BrickColor
  420. cl2.TopSurface=10
  421. cl2.BottomSurface=10
  422. cl2.LeftSurface=10
  423. cl2.RightSurface=10
  424. cl2.FrontSurface=10
  425. cl2.BackSurface=10
  426. game:service'Debris':AddItem(cl2,1)
  427. cl2.CFrame=claud.CFrame*CFrame.new(-3.5,0,math.random(-15,15)*.1)*CFrame.Angles(math.rad(0),0,math.rad(90))
  428. local cl2l=Instance.new('PointLight',cl2)
  429. cl2l.Range=8
  430. cl2l.Color=Color3.new(1,1,1)
  431. cl2l.Brightness=123123
  432. local clms2=Instance.new('SpecialMesh',cl2)
  433. clms2.MeshId="http://www.roblox.com/asset/?id=1095708"
  434. clms2.Scale=Vector3.new(1,2,1.5)
  435. coroutine.wrap(function()
  436. for ttt=0,1.05,.1 do cl2.Transparency=ttt cl2.CFrame=cl2.CFrame*CFrame.Angles(math.rad(p1),math.rad(p2),math.rad(p3)) clms2.Scale=clms2.Scale+Vector3.new(.035,.035,.035) cl2l.Range=cl2l.Range-.5 wait()
  437. end
  438. cl2:Destroy()
  439. end)()
  440. end
  441.  
  442.  
  443. end)
Add Comment
Please, Sign In to add comment