Advertisement
cat568

Untitled

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