SHARE
TWEET

rain cloud

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