Advertisement
memberhero

Cloud Master

May 19th, 2018
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.52 KB | None | 0 0
  1. ---[[ Cloud "Visualizer", Rushed out and made by Zuu_Roku, Credits to Cass for being a cool dood]]---
  2.  
  3. print("Made by Zuu_Roku, Commands are !play !snow !rain !multiplier and !volume")
  4.  
  5. print("Credits to Cass / PPATTA for being a cool dood")
  6.  
  7.  
  8. local Player = game.Players.basstracker1970
  9.  
  10. local Character = Player.Character
  11.  
  12. local H = Character["Head"]
  13.  
  14. local multiplier = 4
  15.  
  16. local Cloud = Instance.new('Part',Character)
  17.  
  18. Cloud.Size = Vector3.new(20,15,20)
  19.  
  20. Cloud.Anchored = true
  21.  
  22. Cloud.CanCollide = false
  23.  
  24. Cloud.Transparency = 0
  25.  
  26.  
  27.  
  28. local CloudMesh = Instance.new('SpecialMesh',Cloud)
  29.  
  30. CloudMesh.Scale = Vector3.new(25,10,25)
  31.  
  32. CloudMesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
  33.  
  34. CloudMesh.Offset = Vector3.new(0,10,0)
  35.  
  36.  
  37. local loudness = 0
  38.  
  39.  
  40.  
  41. local S = Instance.new('Sound',Cloud)
  42.  
  43. S.SoundId = "rbxassetid://911100428"
  44.  
  45. S.Looped = true
  46.  
  47. S.Volume = 8
  48.  
  49. S.MaxDistance = 100
  50.  
  51. S:Play()
  52.  
  53.  
  54.  
  55. local Rain = Instance.new('ParticleEmitter',Cloud)
  56.  
  57. Rain.Color = ColorSequence.new(Color3.new(1,1,1),Color3.fromRGB(175,255,255))
  58.  
  59. Rain.Size = NumberSequence.new(.5)
  60.  
  61. Rain.Texture = "http://www.roblox.com/asset/?id=241876428"
  62.  
  63. Rain.Transparency = NumberSequence.new(0,.6)
  64.  
  65. Rain.Acceleration = Vector3.new(0,-150,0)
  66.  
  67. Rain.Lifetime = NumberRange.new(5,10)
  68.  
  69. Rain.Rate = 100
  70.  
  71. local rad = math.rad
  72.  
  73. local sin = math.sin
  74.  
  75. local tan = math.tan
  76.  
  77. local cos = math.cos
  78.  
  79. Player.Chatted:connect(function(m)
  80.  
  81. if m:match("!play%s%d+") then
  82.  
  83. S:Stop()
  84.  
  85. S.SoundId = "rbxassetid://"..m:match("!play%s(%d+)")
  86.  
  87. S:Play()
  88.  
  89. elseif m:match("!volume%s%d+") then
  90.  
  91. S.Volume = m:match("!volume%s(%d+)")
  92.  
  93. elseif m:match("!pitch%s%d+") then
  94.  
  95. S.Pitch = m:match("!volume%s(%d+)")
  96.  
  97. elseif m:match("!snow") then
  98.  
  99. Rain.Texture = "http://www.roblox.com/asset/?id=605668174"
  100.  
  101. Rain.Acceleration = Vector3.new(0,-10,0)
  102.  
  103. Rain.Lifetime = NumberRange.new(15,20)
  104.  
  105. Rain.Size = NumberSequence.new(.2)
  106.  
  107. elseif m:match("!rain") then
  108.  
  109. Rain.Texture = "http://www.roblox.com/asset/?id=241876428"
  110.  
  111. Rain.Acceleration = Vector3.new(0,-150,0)
  112.  
  113. Rain.Lifetime = NumberRange.new(5,10)
  114.  
  115. Rain.Size = NumberSequence.new(.5)
  116.  
  117. elseif m:match("!multiplier%s%d+") then
  118.  
  119. multiplier = m:match("!multiplier%s(%d+)")
  120.  
  121. elseif m:match("!rr") then
  122.  
  123. print(Rain.Rate)
  124.  
  125. end
  126. end)
  127.  
  128.  
  129.  
  130. function Weld(x,y)
  131.  
  132. local w = Instance.new("Weld")
  133.  
  134. w.Part0 = x
  135.  
  136. w.Part1 = y
  137.  
  138. w.Name = tostring(y.Name).."_Weld"
  139.  
  140. w.Parent = x
  141.  
  142. return w
  143.  
  144. end
  145.  
  146.  
  147.  
  148. function Clerp(start,destination,increment)
  149.  
  150. local function slerp(a,b,c)return (1-c)*a+(c*b)end
  151.  
  152. local c1 = {start.X,start.Y,start.Z,start:toEulerAnglesXYZ()}
  153.  
  154. local c2 = {destination.X,destination.Y,destination.Z,destination:toEulerAnglesXYZ()}
  155.  
  156. for i,v in pairs(c1)do c1[i] = slerp(v,c2[i],increment)end
  157.  
  158. return CFrame.new(c1[1],c1[2],c1[3])*CFrame.Angles(c1[4],c1[5],c1[6])
  159.  
  160. end
  161.  
  162.  
  163.  
  164. while true do
  165.  
  166. Rain.Rate = (S.PlaybackLoudness + 50) * multiplier
  167.  
  168. game:GetService('RunService').Heartbeat:wait()
  169.  
  170. local HP = H.CFrame.p
  171.  
  172. local sizer = S.PlaybackLoudness/50 + 15
  173.  
  174. Cloud.Size = Vector3.new(sizer,15,sizer)
  175.  
  176. CloudMesh.Scale = Vector3.new(sizer,10,sizer)
  177.  
  178. Cloud.CFrame = Clerp(Cloud.CFrame, CFrame.new(HP + Vector3.new(0,4,0))*CFrame.Angles(0,rad(90),0), .1)
  179.  
  180. Cloud.BrickColor = BrickColor.new(Color3.fromRGB(255 - S.PlaybackLoudness*1.1, 255-S.PlaybackLoudness*1.1, 255-S.PlaybackLoudness*1.1))
  181. end
  182.  
  183. local plr = game.Players.LocalPlayer
  184. local chr = plr.Character
  185. local maus = plr:GetMouse()
  186. local PGui=plr.PlayerGui
  187. local lleg = chr["Left Leg"]
  188. local rleg = chr["Right Leg"]
  189. local larm = chr["Left Arm"]
  190. local rarm = chr["Right Arm"]
  191. local hed = chr.Head
  192. local rutprt = chr.HumanoidRootPart
  193. local torso = chr.Torso
  194. local otheranims=false
  195. local armmovement=false
  196. local toss=false
  197. local jamp=false
  198. chr.Animate.Disabled=true
  199. local running=false
  200. local tek=0
  201. local ltdb=false
  202. local surfing=true
  203. local rising=false
  204. local cloudanim='Regular'
  205. local dnc=false
  206. local fldb={['w']=false,['a']=false,['s']=false,['d']=false}
  207. local TotalRate=10
  208. local trcolor = {"Cyan","Deep blue","Really blue","Medium blue"}
  209. clepz = {"138151785","131396502","152626854"}
  210.  
  211. coroutine.resume(coroutine.create(function()
  212. 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))
  213.  
  214.  
  215.  
  216.  
  217.  
  218. chr.Humanoid.WalkSpeed=25
  219.  
  220.  
  221. function Lerp(a, b, i)
  222. local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
  223. local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
  224. local calx = com1[1] + (com2[1] - com1[1]) * i
  225. local caly = com1[2] + (com2[2] - com1[2]) * i
  226. local calz = com1[3] + (com2[3] - com1[3]) * i
  227. local cala = com1[4] + (com2[4] - com1[4]) * i
  228. local calb = com1[5] + (com2[5] - com1[5]) * i
  229. local calc = com1[6] + (com2[6] - com1[6]) * i
  230. return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  231. end
  232.  
  233. function TwnSingleNumber(s,f,m)
  234. local wot=s+(f-s)*m
  235. return wot
  236. end
  237.  
  238. function TwnVector3(q,w,e)
  239. local begin={q.x,q.y,q.z}
  240. local ending={w.x,w.y,w.z}
  241. local bgx=begin[1]+(ending[1]-begin[1])*e
  242. local bgy=begin[2]+(ending[2]-begin[2])*e
  243. local bgz=begin[3]+(ending[3]-begin[3])*e
  244. return Vector3.new(bgx,bgy,bgz)
  245. end
  246.  
  247. newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
  248. wld = Instance.new("Weld", wp1)
  249. wld.Part0 = wp0
  250. wld.Part1 = wp1
  251. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  252. end
  253.  
  254. newWeld(law, torso, larm, -1.5, 0.5, 0)
  255. newWeld(raw, torso, rarm, 1.5, 0.5, 0)
  256. newWeld(llw, torso, lleg, -.5, -2, 0)
  257. newWeld(rlw, torso, rleg, .5, -2, 0)
  258. newWeld(hw, torso, hed, 0, 1.5, 0)
  259. local rutwald=Instance.new('Weld',rutprt)
  260. rutwald.Part0=rutprt
  261. rutwald.Part1=torso
  262. rutwald.Name="RootJoint"
  263. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(10),math.rad(180),0)
  264. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  265. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  266. rleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  267. lleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  268.  
  269. local anim = "Idling"
  270. local lastanim = "Idling"
  271. local val = 0
  272. local syne = 0
  273. local num = 0
  274. local runtime = 0
  275.  
  276. local claud=Instance.new('Part',chr)
  277. claud.CanCollide=false
  278. claud.Anchored=false
  279. claud.Name='Claud'
  280. claud.formFactor='Custom'
  281. claud.Locked=true
  282. claud.Material='SmoothPlastic'
  283. claud.BrickColor=BrickColor.new('Light stone grey')
  284. claud.TopSurface=10
  285. claud.BottomSurface=10
  286. claud.LeftSurface=10
  287. claud.RightSurface=10
  288. claud.FrontSurface=10
  289. claud.BackSurface=10
  290. claud:breakJoints()
  291. local emit=Instance.new("ParticleEmitter",claud)
  292. emit.Lifetime=NumberRange.new(1,2)
  293. emit.RotSpeed=NumberRange.new(3,6)
  294. emit.Name='claudmitterpls'
  295. emit.Acceleration=Vector3.new(math.random(-50,50)*.01,1,math.random(-50,50)*.01)
  296. emit.Size=NumberSequence.new(.5,1)
  297. emit.Transparency=NumberSequence.new(1)
  298. emit.Texture="http://www.roblox.com/asset?id=241541739"
  299. local clms=Instance.new('SpecialMesh',claud)
  300. clms.MeshId="http://www.roblox.com/asset/?id=1095708"
  301. clms.TextureId="http://www.roblox.com/asset/?id=298752372"
  302. clms.Scale=Vector3.new(7,2.5,6)
  303. local clwl=Instance.new('Weld',claud)
  304. clwl.Part0=rutprt
  305. clwl.Part1=claud
  306. clwl.C0=CFrame.new(0,0,.85)*CFrame.Angles(math.rad(100),math.rad(90),0)
  307.  
  308.  
  309. maus.KeyUp:connect(function(kei)
  310. if string.byte(kei)==48 and not otheranims then
  311. if surfing then
  312. chr.Humanoid.WalkSpeed=40
  313. elseif not surfing then
  314. chr.Humanoid.WalkSpeed=25
  315. end
  316. end
  317. if kei=='e' then
  318. floating=false
  319. end
  320. if kei=='q' then
  321. lowering=false
  322. end
  323. if kei=='w' then fldb.w=false end
  324. if kei=='a' then fldb.a=false end
  325. if kei=='s' then fldb.s=false end
  326. if kei=='d' then fldb.d=false end
  327. end)
  328.  
  329. chr.Humanoid.Changed:connect(function(c)
  330. if c=='Jump' then
  331. if otheranims or not surfing then
  332. chr.Humanoid.Jump=false
  333. end
  334. end
  335. end)
  336.  
  337. DrawLightning = function(Start,End,Times,Offset,Color,Thickness)
  338. if Start.y>End.y then
  339. local magz = (Start - End).magnitude
  340. local curpos = Start
  341. local trz = {-Offset,Offset}
  342. for i=1,Times do
  343. local li = Instance.new("Part",workspace)
  344. li.TopSurface =10
  345. li.BottomSurface = 10
  346. li.Anchored = true
  347. li.Transparency = 0
  348. li.BrickColor = Color
  349. li.formFactor = "Custom"
  350. li.CanCollide = false
  351. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  352. local lt=Instance.new("SpotLight",li)
  353. lt.Range=16
  354. lt.Brightness=5
  355. lt.Shadows=true
  356. lt.Angle=45
  357. lt.Face="Top"
  358. lt.Color=li.BrickColor.Color
  359. local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  360. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  361. if Times == i then
  362. local magz2 = (curpos - End).magnitude
  363. li.Size = Vector3.new(Thickness,Thickness,magz2)
  364. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  365. else
  366. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  367. end
  368. 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)
  369. end
  370. for i,x in pairs(workspace:GetChildren()) do if x:IsA'Model' and x:findFirstChild('Torso') and x:findFirstChild('Head') and x~=chr then
  371. 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
  372. local so=Instance.new('Sound',claud)
  373. so.SoundId="http://www.roblox.com/asset?id="..clepz[math.random(1,#clepz)]
  374. so.Volume=.2
  375. so:Play''
  376. end
  377. end
  378.  
  379. maus.KeyDown:connect(function(kei)
  380. if string.byte(kei)==48 and not otheranims then
  381. if surfing then
  382. chr.Humanoid.WalkSpeed=80
  383. elseif not surfing then
  384. chr.Humanoid.WalkSpeed=50
  385. end
  386. end
  387. if kei=='r' then
  388. if torso:findFirstChild('CedarClaudVelo') then
  389. torso['CedarClaudVelo']:Destroy()
  390. else
  391. local veloo=Instance.new('BodyVelocity',torso)
  392. veloo.Name='CedarClaudVelo'
  393. veloo.maxForce=Vector3.new(0,math.huge,0)
  394. end
  395. end
  396. if kei=='w' then fldb.w=true end
  397. if kei=='a' then fldb.a=true end
  398. if kei=='s' then fldb.s=true end
  399. if kei=='d' then fldb.d=true end
  400. if kei=='x' then
  401. if not surfing then surfing=true
  402. chr.Humanoid.WalkSpeed=40
  403. elseif surfing then surfing=false
  404. chr.Humanoid.WalkSpeed=25
  405. end
  406. end
  407. if kei=='e' and not floating and not lowering and surfing then
  408. floating=true
  409. end
  410. if kei=='q' and not lowering and not floating and surfing then
  411. lowering=true
  412. end
  413. if kei=='f' and not otheranims and surfing then
  414. dnc=true
  415. anim='Dance'
  416. end
  417. end)
  418.  
  419. maus.Button1Down:connect(function()
  420. if not otheranims and surfing and not ltdb and (torso.CFrame.p-maus.Hit.p).magnitude<100 then
  421. ltdb=true
  422. DrawLightning(claud.CFrame.p,maus.Hit.p,5,.5,BrickColor.new("New Yeller"),.2)
  423. wait()
  424. ltdb=false
  425. end
  426. end)
  427.  
  428. plr.Chatted:connect(function(m)
  429. if m:lower():sub(1,3)=='/e ' then m=m:sub(4)
  430. if m:lower():sub(1,5)=='dance' and not otheranims and surfing then
  431. dnc=true
  432. anim='Dance'
  433. end
  434. end
  435. end)
  436.  
  437. game:service'RunService'.RenderStepped:connect(function()
  438.  
  439. if fldb.w or fldb.a or fldb.s or fldb.d then
  440. nerrrk=chr.Humanoid.WalkSpeed
  441. TotalRate=10
  442. else
  443. TotalRate=0
  444. nerrrk=0
  445. end
  446. chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
  447. syne=syne+.95
  448. if not otheranims then
  449. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and torso.Velocity.y<1 and torso.Velocity.y>-1 and not dnc then
  450. anim="Idling"
  451. puffing=false
  452.  
  453. 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
  454. anim="Walking"
  455. puffing=true
  456. dnc=false
  457.  
  458. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 43 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
  459. anim="Sprinting"
  460. puffing=true
  461. dnc=false
  462.  
  463. elseif torso.Velocity.y>1 and surfing then
  464. anim='Jumping'
  465. puffing=true
  466. dnc=false
  467.  
  468. elseif (torso.Velocity.y < -1) and surfing then
  469. anim='Falling'
  470. puffing=true
  471. dnc=false
  472. end
  473. end
  474.  
  475. if torso:findFirstChild('CedarClaudVelo') then
  476. if floating and surfing then
  477. torso['CedarClaudVelo'].velocity=((rutprt.CFrame*CFrame.new(0,0,-1)).p-rutprt.CFrame.p).unit*nerrrk+Vector3.new(0,30,0)
  478. elseif lowering and surfing then
  479. torso['CedarClaudVelo'].velocity=((rutprt.CFrame*CFrame.new(0,0,-1)).p-rutprt.CFrame.p).unit*nerrrk+Vector3.new(0,-30,0)
  480. else
  481. torso['CedarClaudVelo'].velocity=((rutprt.CFrame*CFrame.new(0,0,-1)).p-rutprt.CFrame.p).unit*nerrrk
  482. end
  483. end
  484.  
  485. if anim=='Idling' and not surfing then
  486. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(.9,1,0)*CFrame.Angles(math.rad(190),math.rad(0),math.rad(-40)),.1)
  487. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-.9,1,0)*CFrame.Angles(math.rad(190),math.rad(-0),math.rad(40)),.1)
  488. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.45,-.4)*CFrame.Angles(math.rad(-38),0,0),.1)
  489. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.4,-1.7,-.3)*CFrame.Angles(math.rad(15),0,math.rad(-5)),.1)
  490. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.32,-1.9,.1)*CFrame.Angles(math.rad(-5),0,math.rad(10)),.1)
  491. 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)
  492. 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)
  493. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(10),math.rad(180),0)
  494. end
  495. if anim=='Walking' and not surfing then
  496. 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)
  497. 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)
  498. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.45,-.4)*CFrame.Angles(math.rad(-38),0,0),.15)
  499. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.675,-1.8,-.6)*CFrame.Angles(math.rad(40),0,math.rad(10)),.15)
  500. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.675,-1.8,-.6)*CFrame.Angles(math.rad(40),0,math.rad(-10)),.15)
  501. 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)
  502. 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)
  503. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(10),math.rad(180),0)
  504. end
  505. if anim=='Sprinting' and not surfing then
  506. 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)
  507. 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)
  508. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.45,-.4)*CFrame.Angles(math.rad(-28),0,0),.15)
  509. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.3,-.6)*CFrame.Angles(math.rad(20),0,math.rad(5)),.15)
  510. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.575,-1.3,-.6)*CFrame.Angles(math.rad(20),0,math.rad(-5)),.15)
  511. 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)
  512. 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)
  513. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(10),math.rad(180),0)
  514. end
  515. if anim=='Idling' and surfing then
  516. 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)
  517. 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)
  518. 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)
  519. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(5)),.1)
  520. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.575,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(-5)),.1)
  521. 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)
  522. 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)
  523. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(0),math.rad(180),0)
  524. end
  525. if anim=='Walking' and surfing then
  526. 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)
  527. 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)
  528. 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)
  529. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(5)),.15)
  530. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.615,-1.55,-.1)*CFrame.Angles(math.rad(0),0,math.rad(-5)),.15)
  531. 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)
  532. 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)
  533. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(0),math.rad(180),0)
  534. end
  535. if anim=='Sprinting' and surfing then
  536. 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)
  537. 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)
  538. 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)
  539. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(5)),.15)
  540. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.725,-1.3,-.1)*CFrame.Angles(math.rad(0),0,math.rad(-10)),.15)
  541. 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)
  542. 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)
  543. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(0),math.rad(180),0)
  544. end
  545. if anim=='Jumping' and surfing then
  546. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.375,.5,0)*CFrame.Angles(0,math.rad(5),math.rad(48)),.15)
  547. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.25,.4,0)*CFrame.Angles(0,math.rad(-20),math.rad(-35)),.15)
  548. 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)
  549. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(5)),.15)
  550. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.725,-1.2,-.1)*CFrame.Angles(math.rad(0),0,math.rad(-10)),.15)
  551. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(-3,4,0)*CFrame.Angles(math.rad(-30),math.rad(90),0),.15)
  552. clwl.C0=Lerp(clwl.C0,CFrame.new(0,2.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(10)),.15)
  553. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(0),math.rad(180),0)
  554. end
  555. if anim=='Falling' and surfing then
  556. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.375,.5,0)*CFrame.Angles(0,math.rad(-20),math.rad(30)),.15)
  557. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.25,.25,0)*CFrame.Angles(0,math.rad(5),math.rad(-55)),.15)
  558. 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)
  559. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.2,-.1)*CFrame.Angles(math.rad(0),0,math.rad(5)),.15)
  560. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.725,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(-10)),.15)
  561. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(-3,4,-0)*CFrame.Angles(math.rad(15),math.rad(90),0),.15)
  562. clwl.C0=Lerp(clwl.C0,CFrame.new(0,2.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(-20)),.15)
  563. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(0),math.rad(180),0)
  564. end
  565. if anim=='Dance' and surfing and dnc then
  566. 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)
  567. 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)
  568. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.45,-.2)*CFrame.Angles(math.rad(-15),0,0),.1)
  569. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.9,-.1)*CFrame.Angles(math.rad(5),0,math.rad(5)),.1)
  570. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.575,-1.9,-.1)*CFrame.Angles(math.rad(5),0,math.rad(-5)),.1)
  571. 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)
  572. 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)
  573. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(10),math.rad(180),0)
  574. end
  575.  
  576.  
  577. emit.Rate=TotalRate
  578. if surfing then
  579. claud.BrickColor=BrickColor.new("Black")
  580. clms.VertexColor=TwnVector3(clms.VertexColor,Vector3.new(.1,.1,.1),.075)
  581. else
  582. claud.BrickColor=BrickColor.new("Institutional white")
  583. clms.VertexColor=TwnVector3(clms.VertexColor,Vector3.new(1,1,1),.075)
  584. end
  585.  
  586. if puffing then
  587. tek=tek+1
  588. else
  589. tek=0
  590. end
  591. if tek>=15 then
  592. tek=0
  593. local cl2=Instance.new('Part',Workspace)
  594. local p1=math.random(10,30)*.1
  595. local p2=math.random(40,60)*.1
  596. local p3=math.random(70,90)*.1
  597. cl2.CanCollide=false
  598. cl2.Anchored=true
  599. cl2.Name='Claud'
  600. cl2.formFactor='Custom'
  601. cl2.BrickColor=claud.BrickColor
  602. cl2.TopSurface=10
  603. cl2.BottomSurface=10
  604. cl2.LeftSurface=10
  605. cl2.RightSurface=10
  606. cl2.FrontSurface=10
  607. cl2.BackSurface=10
  608. game:service'Debris':AddItem(cl2,1)
  609. cl2.CFrame=claud.CFrame*CFrame.new(-3.5,0,math.random(-15,15)*.1)*CFrame.Angles(math.rad(0),0,math.rad(90))
  610. local cl2l=Instance.new('PointLight',cl2)
  611. cl2l.Range=8
  612. cl2l.Color=Color3.new(1,1,1)
  613. cl2l.Brightness=123123
  614. local clms2=Instance.new('SpecialMesh',cl2)
  615. clms2.MeshId="http://www.roblox.com/asset/?id=1095708"
  616. clms2.Scale=Vector3.new(1,2,1.5)
  617. coroutine.wrap(function()
  618. 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()
  619. end
  620. cl2:Destroy()
  621. end)()
  622. end
  623.  
  624. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement