Advertisement
Dark_EccentricYT

Untitled

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