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