Advertisement
Fogdoggy

Untitled

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