Advertisement
Guest User

Hover board script (original script : cloudrider)

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