VoidScriptPlayer

Untitled

May 15th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print("Convert By Creavin13")
  2.  
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  5. do
  6. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  7. script.Parent = Player.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent and t.Function then
  33. t.Function(...)
  34. end
  35. end
  36. m.TrigEvent = te
  37. UIS.TrigEvent = te
  38.  
  39. Event.OnServerEvent:Connect(function(plr,io)
  40. if plr~=Player then return end
  41. if io.isMouse then
  42. m.Target = io.Target
  43. m.Hit = io.Hit
  44. else
  45. local b = io.UserInputState == Enum.UserInputState.Begin
  46. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  47. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  48. end
  49. for _,t in pairs(CAS.Actions) do
  50. for _,k in pairs(t.Keys) do
  51. if k==io.KeyCode then
  52. t.Function(t.Name,io.UserInputState,io)
  53. end
  54. end
  55. end
  56. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  58. end
  59. end)
  60. Event.Parent = NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62. local Event = script:WaitForChild("UserInput_Event")
  63.  
  64. local UIS = game:GetService("UserInputService")
  65. local input = function(io,a)
  66. if a then return end
  67. --Since InputObject is a client-side instance, we create and pass table instead
  68. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  69. end
  70. UIS.InputBegan:Connect(input)
  71. UIS.InputEnded:Connect(input)
  72.  
  73. local Mouse = Player:GetMouse()
  74. local h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  84. end
  85.  
  86. local plr =owner
  87. local chr = plr.Character
  88. local PGui=plr.PlayerGui
  89. local lleg = chr["Left Leg"]
  90. local rleg = chr["Right Leg"]
  91. local larm = chr["Left Arm"]
  92. local rarm = chr["Right Arm"]
  93. local hed = chr.Head
  94. local rutprt = chr.HumanoidRootPart
  95. local torso = chr.Torso
  96. local otheranims=false
  97. local armmovement=false
  98. local toss=false
  99. local jamp=false
  100. chr.Animate.Disabled=true
  101. local running=false
  102. local tek=0
  103. local ltdb=false
  104. local surfing=true
  105. local rising=false
  106. local cloudanim='Regular'
  107. local dnc=false
  108. local fldb={['w']=false,['a']=false,['s']=false,['d']=false}
  109. local TotalRate=10
  110. local trcolor = {"Cyan","Deep blue","Really blue","Medium blue"}
  111. clepz = {"138151785","131396502","152626854"}
  112.  
  113. coroutine.resume(coroutine.create(function()
  114. 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))
  115.  
  116.  
  117.  
  118.  
  119.  
  120. chr.Humanoid.WalkSpeed=25
  121.  
  122.  
  123. function Lerp(a, b, i)
  124. local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
  125. local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
  126. local calx = com1[1] + (com2[1] - com1[1]) * i
  127. local caly = com1[2] + (com2[2] - com1[2]) * i
  128. local calz = com1[3] + (com2[3] - com1[3]) * i
  129. local cala = com1[4] + (com2[4] - com1[4]) * i
  130. local calb = com1[5] + (com2[5] - com1[5]) * i
  131. local calc = com1[6] + (com2[6] - com1[6]) * i
  132. return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  133. end
  134.  
  135. function TwnSingleNumber(s,f,m)
  136. local wot=s+(f-s)*m
  137. return wot
  138. end
  139.  
  140. function TwnVector3(q,w,e)
  141. local begin={q.x,q.y,q.z}
  142. local ending={w.x,w.y,w.z}
  143. local bgx=begin[1]+(ending[1]-begin[1])*e
  144. local bgy=begin[2]+(ending[2]-begin[2])*e
  145. local bgz=begin[3]+(ending[3]-begin[3])*e
  146. return Vector3.new(bgx,bgy,bgz)
  147. end
  148.  
  149. newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
  150. wld = Instance.new("Weld", wp1)
  151. wld.Part0 = wp0
  152. wld.Part1 = wp1
  153. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  154. end
  155.  
  156. newWeld(law, torso, larm, -1.5, 0.5, 0)
  157. newWeld(raw, torso, rarm, 1.5, 0.5, 0)
  158. newWeld(llw, torso, lleg, -.5, -2, 0)
  159. newWeld(rlw, torso, rleg, .5, -2, 0)
  160. newWeld(hw, torso, hed, 0, 1.5, 0)
  161. local rutwald=Instance.new('Weld',rutprt)
  162. rutwald.Part0=rutprt
  163. rutwald.Part1=torso
  164. rutwald.Name="RootJoint"
  165. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(10),math.rad(180),0)
  166. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  167. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  168. rleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  169. lleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  170.  
  171. local anim = "Idling"
  172. local lastanim = "Idling"
  173. local val = 0
  174. local syne = 0
  175. local num = 0
  176. local runtime = 0
  177.  
  178. local claud=Instance.new('Part',chr)
  179. claud.CanCollide=false
  180. claud.Anchored=false
  181. claud.Name='Claud'
  182. claud.formFactor='Custom'
  183. claud.Locked=true
  184. claud.Material='SmoothPlastic'
  185. claud.BrickColor=BrickColor.new('Light stone grey')
  186. claud.TopSurface=10
  187. claud.BottomSurface=10
  188. claud.LeftSurface=10
  189. claud.RightSurface=10
  190. claud.FrontSurface=10
  191. claud.BackSurface=10
  192. claud:breakJoints()
  193. local emit=Instance.new("ParticleEmitter",claud)
  194. emit.Lifetime=NumberRange.new(1,2)
  195. emit.RotSpeed=NumberRange.new(3,6)
  196. emit.Name='claudmitterpls'
  197. emit.Acceleration=Vector3.new(math.random(-50,50)*.01,1,math.random(-50,50)*.01)
  198. emit.Size=NumberSequence.new(.5,1)
  199. emit.Transparency=NumberSequence.new(1)
  200. emit.Texture="http://www.roblox.com/asset?id=241541739"
  201. local clms=Instance.new('SpecialMesh',claud)
  202. clms.MeshId="http://www.roblox.com/asset/?id=1095708"
  203. clms.TextureId="http://www.roblox.com/asset/?id=298752372"
  204. clms.Scale=Vector3.new(7,2.5,6)
  205. local clwl=Instance.new('Weld',claud)
  206. clwl.Part0=rutprt
  207. clwl.Part1=claud
  208. clwl.C0=CFrame.new(0,0,.85)*CFrame.Angles(math.rad(100),math.rad(90),0)
  209.  
  210.  
  211. maus.KeyUp:connect(function(kei)
  212. if string.byte(kei)==48 and not otheranims then
  213. if surfing then
  214. chr.Humanoid.WalkSpeed=40
  215. elseif not surfing then
  216. chr.Humanoid.WalkSpeed=25
  217. end
  218. end
  219. if kei=='e' then
  220. floating=false
  221. end
  222. if kei=='q' then
  223. lowering=false
  224. end
  225. if kei=='w' then fldb.w=false end
  226. if kei=='a' then fldb.a=false end
  227. if kei=='s' then fldb.s=false end
  228. if kei=='d' then fldb.d=false end
  229. end)
  230.  
  231. chr.Humanoid.Changed:connect(function(c)
  232. if c=='Jump' then
  233. if otheranims or not surfing then
  234. chr.Humanoid.Jump=false
  235. end
  236. end
  237. end)
  238.  
  239. DrawLightning = function(Start,End,Times,Offset,Color,Thickness)
  240. if Start.y>End.y then
  241. local magz = (Start - End).magnitude
  242. local curpos = Start
  243. local trz = {-Offset,Offset}
  244. for i=1,Times do
  245. local li = Instance.new("Part",workspace)
  246. li.TopSurface =10
  247. li.BottomSurface = 10
  248. li.Anchored = true
  249. li.Transparency = 0
  250. li.BrickColor = Color
  251. li.formFactor = "Custom"
  252. li.CanCollide = false
  253. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  254. local lt=Instance.new("SpotLight",li)
  255. lt.Range=16
  256. lt.Brightness=5
  257. lt.Shadows=true
  258. lt.Angle=45
  259. lt.Face="Top"
  260. lt.Color=li.BrickColor.Color
  261. local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  262. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  263. if Times == i then
  264. local magz2 = (curpos - End).magnitude
  265. li.Size = Vector3.new(Thickness,Thickness,magz2)
  266. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  267. else
  268. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  269. end
  270. 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)
  271. end
  272. for i,x in pairs(workspace:GetChildren()) do if x:IsA'Model' and x:findFirstChild('Torso') and x:findFirstChild('Head') and x~=chr then
  273. 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
  274. local so=Instance.new('Sound',claud)
  275. so.SoundId="http://www.roblox.com/asset?id="..clepz[math.random(1,#clepz)]
  276. so.Volume=.2
  277. so:Play''
  278. end
  279. end
  280.  
  281. maus.KeyDown:connect(function(kei)
  282. if string.byte(kei)==48 and not otheranims then
  283. if surfing then
  284. chr.Humanoid.WalkSpeed=80
  285. elseif not surfing then
  286. chr.Humanoid.WalkSpeed=50
  287. end
  288. end
  289. if kei=='r' then
  290. if torso:findFirstChild('CedarClaudVelo') then
  291. torso['CedarClaudVelo']:Destroy()
  292. else
  293. local veloo=Instance.new('BodyVelocity',torso)
  294. veloo.Name='CedarClaudVelo'
  295. veloo.maxForce=Vector3.new(0,math.huge,0)
  296. end
  297. end
  298. if kei=='w' then fldb.w=true end
  299. if kei=='a' then fldb.a=true end
  300. if kei=='s' then fldb.s=true end
  301. if kei=='d' then fldb.d=true end
  302. if kei=='x' then
  303. if not surfing then surfing=true
  304. chr.Humanoid.WalkSpeed=40
  305. elseif surfing then surfing=false
  306. chr.Humanoid.WalkSpeed=25
  307. end
  308. end
  309. if kei=='e' and not floating and not lowering and surfing then
  310. floating=true
  311. end
  312. if kei=='q' and not lowering and not floating and surfing then
  313. lowering=true
  314. end
  315. if kei=='f' and not otheranims and surfing then
  316. dnc=true
  317. anim='Dance'
  318. end
  319. end)
  320.  
  321. maus.Button1Down:connect(function()
  322. if not otheranims and surfing and not ltdb and (torso.CFrame.p-maus.Hit.p).magnitude<100 then
  323. ltdb=true
  324. DrawLightning(claud.CFrame.p,maus.Hit.p,5,.5,BrickColor.new("New Yeller"),.2)
  325. wait()
  326. ltdb=false
  327. end
  328. end)
  329.  
  330. plr.Chatted:connect(function(m)
  331. if m:lower():sub(1,3)=='/e ' then m=m:sub(4)
  332. if m:lower():sub(1,5)=='dance' and not otheranims and surfing then
  333. dnc=true
  334. anim='Dance'
  335. end
  336. end
  337. end)
  338.  
  339. game:service'RunService'.Stepped:connect(function()
  340.  
  341. if fldb.w or fldb.a or fldb.s or fldb.d then
  342. nerrrk=chr.Humanoid.WalkSpeed
  343. TotalRate=10
  344. else
  345. TotalRate=0
  346. nerrrk=0
  347. end
  348. chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
  349. syne=syne+.95
  350. if not otheranims then
  351. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and torso.Velocity.y<1 and torso.Velocity.y>-1 and not dnc then
  352. anim="Idling"
  353. puffing=false
  354.  
  355. 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
  356. anim="Walking"
  357. puffing=true
  358. dnc=false
  359.  
  360. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 43 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
  361. anim="Sprinting"
  362. puffing=true
  363. dnc=false
  364.  
  365. elseif torso.Velocity.y>1 and surfing then
  366. anim='Jumping'
  367. puffing=true
  368. dnc=false
  369.  
  370. elseif (torso.Velocity.y < -1) and surfing then
  371. anim='Falling'
  372. puffing=true
  373. dnc=false
  374. end
  375. end
  376.  
  377. if torso:findFirstChild('CedarClaudVelo') then
  378. if floating and surfing then
  379. torso['CedarClaudVelo'].velocity=((rutprt.CFrame*CFrame.new(0,0,-1)).p-rutprt.CFrame.p).unit*nerrrk+Vector3.new(0,30,0)
  380. elseif lowering and surfing then
  381. torso['CedarClaudVelo'].velocity=((rutprt.CFrame*CFrame.new(0,0,-1)).p-rutprt.CFrame.p).unit*nerrrk+Vector3.new(0,-30,0)
  382. else
  383. torso['CedarClaudVelo'].velocity=((rutprt.CFrame*CFrame.new(0,0,-1)).p-rutprt.CFrame.p).unit*nerrrk
  384. end
  385. end
  386.  
  387. if anim=='Idling' and not surfing then
  388. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(.9,1,0)*CFrame.Angles(math.rad(190),math.rad(0),math.rad(-40)),.1)
  389. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-.9,1,0)*CFrame.Angles(math.rad(190),math.rad(-0),math.rad(40)),.1)
  390. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.45,-.4)*CFrame.Angles(math.rad(-38),0,0),.1)
  391. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.4,-1.7,-.3)*CFrame.Angles(math.rad(15),0,math.rad(-5)),.1)
  392. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.32,-1.9,.1)*CFrame.Angles(math.rad(-5),0,math.rad(10)),.1)
  393. 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)
  394. 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)
  395. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(10),math.rad(180),0)
  396. end
  397. if anim=='Walking' and not surfing then
  398. 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)
  399. 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)
  400. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.45,-.4)*CFrame.Angles(math.rad(-38),0,0),.15)
  401. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.675,-1.8,-.6)*CFrame.Angles(math.rad(40),0,math.rad(10)),.15)
  402. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.675,-1.8,-.6)*CFrame.Angles(math.rad(40),0,math.rad(-10)),.15)
  403. 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)
  404. 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)
  405. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(10),math.rad(180),0)
  406. end
  407. if anim=='Sprinting' and not surfing then
  408. 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)
  409. 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)
  410. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.45,-.4)*CFrame.Angles(math.rad(-28),0,0),.15)
  411. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.3,-.6)*CFrame.Angles(math.rad(20),0,math.rad(5)),.15)
  412. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.575,-1.3,-.6)*CFrame.Angles(math.rad(20),0,math.rad(-5)),.15)
  413. 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)
  414. 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)
  415. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(10),math.rad(180),0)
  416. end
  417. if anim=='Idling' and surfing then
  418. 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)
  419. 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)
  420. 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)
  421. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(5)),.1)
  422. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.575,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(-5)),.1)
  423. 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)
  424. 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)
  425. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(0),math.rad(180),0)
  426. end
  427. if anim=='Walking' and surfing then
  428. 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)
  429. 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)
  430. 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)
  431. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(5)),.15)
  432. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.615,-1.55,-.1)*CFrame.Angles(math.rad(0),0,math.rad(-5)),.15)
  433. 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)
  434. 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)
  435. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(0),math.rad(180),0)
  436. end
  437. if anim=='Sprinting' and surfing then
  438. 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)
  439. 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)
  440. 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)
  441. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(5)),.15)
  442. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.725,-1.3,-.1)*CFrame.Angles(math.rad(0),0,math.rad(-10)),.15)
  443. 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)
  444. 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)
  445. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(0),math.rad(180),0)
  446. end
  447. if anim=='Jumping' and surfing then
  448. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.375,.5,0)*CFrame.Angles(0,math.rad(5),math.rad(48)),.15)
  449. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.25,.4,0)*CFrame.Angles(0,math.rad(-20),math.rad(-35)),.15)
  450. 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)
  451. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(5)),.15)
  452. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.725,-1.2,-.1)*CFrame.Angles(math.rad(0),0,math.rad(-10)),.15)
  453. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(-3,4,0)*CFrame.Angles(math.rad(-30),math.rad(90),0),.15)
  454. clwl.C0=Lerp(clwl.C0,CFrame.new(0,2.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(10)),.15)
  455. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(0),math.rad(180),0)
  456. end
  457. if anim=='Falling' and surfing then
  458. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.375,.5,0)*CFrame.Angles(0,math.rad(-20),math.rad(30)),.15)
  459. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.25,.25,0)*CFrame.Angles(0,math.rad(5),math.rad(-55)),.15)
  460. 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)
  461. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.2,-.1)*CFrame.Angles(math.rad(0),0,math.rad(5)),.15)
  462. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.725,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(-10)),.15)
  463. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(-3,4,-0)*CFrame.Angles(math.rad(15),math.rad(90),0),.15)
  464. clwl.C0=Lerp(clwl.C0,CFrame.new(0,2.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(-20)),.15)
  465. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(0),math.rad(180),0)
  466. end
  467. if anim=='Dance' and surfing and dnc then
  468. 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)
  469. 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)
  470. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.45,-.2)*CFrame.Angles(math.rad(-15),0,0),.1)
  471. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.9,-.1)*CFrame.Angles(math.rad(5),0,math.rad(5)),.1)
  472. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.575,-1.9,-.1)*CFrame.Angles(math.rad(5),0,math.rad(-5)),.1)
  473. 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)
  474. 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)
  475. rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(10),math.rad(180),0)
  476. end
  477.  
  478.  
  479. emit.Rate=TotalRate
  480. if surfing then
  481. claud.BrickColor=BrickColor.new("Black")
  482. clms.VertexColor=TwnVector3(clms.VertexColor,Vector3.new(.1,.1,.1),.075)
  483. else
  484. claud.BrickColor=BrickColor.new("Institutional white")
  485. clms.VertexColor=TwnVector3(clms.VertexColor,Vector3.new(1,1,1),.075)
  486. end
  487.  
  488. if puffing then
  489. tek=tek+1
  490. else
  491. tek=0
  492. end
  493. if tek>=15 then
  494. tek=0
  495. local cl2=Instance.new('Part',Workspace)
  496. local p1=math.random(10,30)*.1
  497. local p2=math.random(40,60)*.1
  498. local p3=math.random(70,90)*.1
  499. cl2.CanCollide=false
  500. cl2.Anchored=true
  501. cl2.Name='Claud'
  502. cl2.formFactor='Custom'
  503. cl2.BrickColor=claud.BrickColor
  504. cl2.TopSurface=10
  505. cl2.BottomSurface=10
  506. cl2.LeftSurface=10
  507. cl2.RightSurface=10
  508. cl2.FrontSurface=10
  509. cl2.BackSurface=10
  510. game:service'Debris':AddItem(cl2,1)
  511. cl2.CFrame=claud.CFrame*CFrame.new(-3.5,0,math.random(-15,15)*.1)*CFrame.Angles(math.rad(0),0,math.rad(90))
  512. local cl2l=Instance.new('PointLight',cl2)
  513. cl2l.Range=8
  514. cl2l.Color=Color3.new(1,1,1)
  515. cl2l.Brightness=123123
  516. local clms2=Instance.new('SpecialMesh',cl2)
  517. clms2.MeshId="http://www.roblox.com/asset/?id=1095708"
  518. clms2.Scale=Vector3.new(1,2,1.5)
  519. coroutine.wrap(function()
  520. 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()
  521. end
  522. cl2:Destroy()
  523. end)()
  524. end
  525.  
  526. end)
Advertisement
Add Comment
Please, Sign In to add comment