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