SHOW:
|
|
- or go back to the newest paste.
| 1 | wait(1) | |
| 2 | local plr = game.Players.LocalPlayer | |
| 3 | local chr = plr.Character | |
| 4 | local maus = plr:GetMouse() | |
| 5 | local PGui=plr.PlayerGui | |
| 6 | local lleg = chr["Left Leg"] | |
| 7 | local rleg = chr["Right Leg"] | |
| 8 | local larm = chr["Left Arm"] | |
| 9 | local rarm = chr["Right Arm"] | |
| 10 | local hed = chr.Head | |
| 11 | local rutprt = chr.HumanoidRootPart | |
| 12 | local torso = chr.Torso | |
| 13 | local otheranims=false | |
| 14 | local armmovement=false | |
| 15 | local hitdb=false | |
| 16 | local toss=false | |
| 17 | local jamp=false | |
| 18 | - | chr.Humanoid.WalkSpeed=10 |
| 18 | + | |
| 19 | chr.Humanoid.WalkSpeed=9 | |
| 20 | local running=false | |
| 21 | local tempignore={}
| |
| 22 | ||
| 23 | local weit=Instance.new('Part',hed)
| |
| 24 | - | weit.BrickColor=BrickColor.new('Black')
|
| 24 | + | |
| 25 | - | weit.Material='Neon' |
| 25 | + | weit.BrickColor=BrickColor.new('Bright red')
|
| 26 | - | weit.Size=Vector3.new(3,3,3) |
| 26 | + | weit.Material='Brick' |
| 27 | weit.Size=Vector3.new(2.2,2.2,2.2) | |
| 28 | weit.CanCollide=true | |
| 29 | weit.Name='Weight' | |
| 30 | weit.Friction=1 | |
| 31 | weit.Elasticity=0 | |
| 32 | ||
| 33 | local at1=Instance.new("Attachment",torso)
| |
| 34 | local at2=Instance.new("Attachment",weit)
| |
| 35 | local const=Instance.new("RopeConstraint",chr)
| |
| 36 | const.Attachment0=at2 | |
| 37 | const.Attachment1=at1 | |
| 38 | const.Visible=true | |
| 39 | const.Restitution=0 | |
| 40 | const.Length=math.huge | |
| 41 | - | const.Length=100 |
| 41 | + | |
| 42 | local pseudohead=hed:Clone() | |
| 43 | for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
| |
| 44 | pseudohead.Name='PseudoHead' | |
| 45 | pseudohead.Parent=chr.Head | |
| 46 | local pseudoweld=Instance.new('Weld',torso)
| |
| 47 | pseudoweld.Part0=hed | |
| 48 | pseudoweld.Name='PseudoHedWld' | |
| 49 | pseudoweld.Part1=pseudohead | |
| 50 | hed.Transparency=1 | |
| 51 | ||
| 52 | --[[coroutine.resume(coroutine.create(function() | |
| 53 | local rate=.05 | |
| 54 | local Hats={}
| |
| 55 | for i,x in pairs(chr:GetChildren()) do if x:IsA("Hat") then table.insert(Hats,x) x.Handle.Mesh.TextureId="http://www.roblox.com/asset?id=25701026"
| |
| 56 | end | |
| 57 | end | |
| 58 | local lam=Instance.new("SpecialMesh",larm)
| |
| 59 | lam.MeshId="http://www.roblox.com/asset?id=12221505" | |
| 60 | lam.TextureId="http://www.roblox.com/asset?id=25701026" | |
| 61 | local ram=Instance.new("SpecialMesh",rarm)
| |
| 62 | ram.MeshId="http://www.roblox.com/asset?id=12221505" | |
| 63 | ram.TextureId="http://www.roblox.com/asset?id=25701026" | |
| 64 | local rlm=Instance.new("SpecialMesh",rleg)
| |
| 65 | rlm.MeshId="http://www.roblox.com/asset?id=12221626" | |
| 66 | rlm.TextureId="http://www.roblox.com/asset?id=25701026" | |
| 67 | local llm=Instance.new("SpecialMesh",lleg)
| |
| 68 | llm.MeshId="http://www.roblox.com/asset?id=12221626" | |
| 69 | llm.TextureId="http://www.roblox.com/asset?id=25701026" | |
| 70 | local trm=Instance.new("SpecialMesh",torso)
| |
| 71 | trm.MeshId="http://www.roblox.com/asset?id=12221758" | |
| 72 | trm.TextureId="http://www.roblox.com/asset?id=25701026" | |
| 73 | local hem=Instance.new("SpecialMesh",hed)
| |
| 74 | hem.MeshId="rbxasset://fonts/head.mesh" | |
| 75 | hem.TextureId="http://www.roblox.com/asset?id=25701026" | |
| 76 | local hem2=Instance.new("SpecialMesh",pseudohead)
| |
| 77 | hem2.MeshId="rbxasset://fonts/head.mesh" | |
| 78 | hem2.TextureId="http://www.roblox.com/asset?id=25701026" | |
| 79 | local weitmesh=Instance.new("SpecialMesh",weit)
| |
| 80 | weitmesh.MeshId="http://www.roblox.com/asset/?id=1527559" | |
| 81 | weitmesh.TextureId="http://www.roblox.com/asset?id=25701026" | |
| 82 | local asd=Instance.new('PointLight',torso)
| |
| 83 | asd.Brightness=0 | |
| 84 | - | asd.Brightness=123 |
| 84 | + | asd.Range=0 |
| 85 | - | asd.Range=12 |
| 85 | + | |
| 86 | ||
| 87 | while wait'0' do | |
| 88 | for a=0,1,rate do | |
| 89 | lam.VertexColor=Vector3.new(a,0,-a+1) | |
| 90 | ram.VertexColor=Vector3.new(a,0,-a+1) | |
| 91 | rlm.VertexColor=Vector3.new(a,0,-a+1) | |
| 92 | llm.VertexColor=Vector3.new(a,0,-a+1) | |
| 93 | trm.VertexColor=Vector3.new(a,0,-a+1) | |
| 94 | hem.VertexColor=Vector3.new(a,0,-a+1) | |
| 95 | hem2.VertexColor=Vector3.new(a,0,-a+1) | |
| 96 | weitmesh.VertexColor=Vector3.new(a,0,-a+1) | |
| 97 | asd.Color=Color3.new(a,0,-a+1) | |
| 98 | coroutine.wrap(function() | |
| 99 | for x=1,#Hats do | |
| 100 | Hats[x].Handle.Mesh.VertexColor=Vector3.new(a,0,-a+1) | |
| 101 | end | |
| 102 | end)() | |
| 103 | wait'' | |
| 104 | end | |
| 105 | for a=0,1,rate do | |
| 106 | lam.VertexColor=Vector3.new(-a+1,a,0) | |
| 107 | ram.VertexColor=Vector3.new(-a+1,a,0) | |
| 108 | rlm.VertexColor=Vector3.new(-a+1,a,0) | |
| 109 | llm.VertexColor=Vector3.new(-a+1,a,0) | |
| 110 | trm.VertexColor=Vector3.new(-a+1,a,0) | |
| 111 | hem.VertexColor=Vector3.new(-a+1,a,0) | |
| 112 | hem2.VertexColor=Vector3.new(-a+1,a,0) | |
| 113 | weitmesh.VertexColor=Vector3.new(-a+1,a,0) | |
| 114 | asd.Color=Color3.new(-a+1,a,0) | |
| 115 | coroutine.wrap(function() | |
| 116 | for x=1,#Hats do | |
| 117 | Hats[x].Handle.Mesh.VertexColor=Vector3.new(-a+1,a,0) | |
| 118 | end | |
| 119 | end)() | |
| 120 | wait'' | |
| 121 | end | |
| 122 | for a=0,1,rate do | |
| 123 | lam.VertexColor=Vector3.new(0,-a+1,a) | |
| 124 | ram.VertexColor=Vector3.new(0,-a+1,a) | |
| 125 | rlm.VertexColor=Vector3.new(0,-a+1,a) | |
| 126 | llm.VertexColor=Vector3.new(0,-a+1,a) | |
| 127 | trm.VertexColor=Vector3.new(0,-a+1,a) | |
| 128 | hem.VertexColor=Vector3.new(0,-a+1,a) | |
| 129 | hem2.VertexColor=Vector3.new(0,-a+1,a) | |
| 130 | weitmesh.VertexColor=Vector3.new(0,-a+1,a) | |
| 131 | asd.Color=Color3.new(0,-a+1,a) | |
| 132 | coroutine.wrap(function() | |
| 133 | for x=1,#Hats do | |
| 134 | Hats[x].Handle.Mesh.VertexColor=Vector3.new(0,-a+1,a) | |
| 135 | end | |
| 136 | end)() | |
| 137 | wait'' | |
| 138 | end | |
| 139 | end | |
| 140 | end))]] | |
| 141 | ||
| 142 | ||
| 143 | function Lerp(a, b, i) | |
| 144 | local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
| |
| 145 | local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
| |
| 146 | local calx = com1[1] + (com2[1] - com1[1]) * i | |
| 147 | local caly = com1[2] + (com2[2] - com1[2]) * i | |
| 148 | local calz = com1[3] + (com2[3] - com1[3]) * i | |
| 149 | local cala = com1[4] + (com2[4] - com1[4]) * i | |
| 150 | local calb = com1[5] + (com2[5] - com1[5]) * i | |
| 151 | local calc = com1[6] + (com2[6] - com1[6]) * i | |
| 152 | return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc) | |
| 153 | end | |
| 154 | ||
| 155 | function TwnSingleNumber(s,f,m) | |
| 156 | local wot=s+(f-s)*m | |
| 157 | return wot | |
| 158 | end | |
| 159 | ||
| 160 | function TwnVector3(q,w,e) | |
| 161 | local begin={q.x,q.y,q.z}
| |
| 162 | local ending={w.x,w.y,w.z}
| |
| 163 | local bgx=begin[1]+(ending[1]-begin[1])*e | |
| 164 | local bgy=begin[2]+(ending[2]-begin[2])*e | |
| 165 | local bgz=begin[3]+(ending[3]-begin[3])*e | |
| 166 | return Vector3.new(bgx,bgy,bgz) | |
| 167 | end | |
| 168 | ||
| 169 | newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z) | |
| 170 | wld = Instance.new("Weld", wp1)
| |
| 171 | wld.Part0 = wp0 | |
| 172 | wld.Part1 = wp1 | |
| 173 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 174 | end | |
| 175 | ||
| 176 | newWeld(law, torso, larm, -1.5, 0.5, 0) | |
| 177 | newWeld(raw, torso, rarm, 1.5, 0.5, 0) | |
| 178 | newWeld(llw, torso, lleg, -.5, -2, 0) | |
| 179 | newWeld(rlw, torso, rleg, .5, -2, 0) | |
| 180 | newWeld(hw, torso, hed, 0, 1.5, 0) | |
| 181 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 182 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 183 | rleg.Weld.C1=CFrame.new(0,.25,.05)*CFrame.Angles(math.rad(30),0,0) | |
| 184 | lleg.Weld.C1=CFrame.new(0,.25,.05)*CFrame.Angles(math.rad(30),0,0) | |
| 185 | ||
| 186 | local anim = "Idling" | |
| 187 | local lastanim = "Idling" | |
| 188 | local val = 0 | |
| 189 | local syne = 0 | |
| 190 | local num = 0 | |
| 191 | local runtime = 0 | |
| 192 | ||
| 193 | ||
| 194 | maus.KeyUp:connect(function(kei) | |
| 195 | if string.byte(kei)==48 and not otheranims then | |
| 196 | running=false | |
| 197 | chr.Humanoid.WalkSpeed=19 | |
| 198 | - | chr.Humanoid.WalkSpeed=10 |
| 198 | + | |
| 199 | end) | |
| 200 | ||
| 201 | maus.KeyDown:connect(function(kei) | |
| 202 | if string.byte(kei)==48 and not otheranims then | |
| 203 | running=true | |
| 204 | chr.Humanoid.WalkSpeed=17 | |
| 205 | - | chr.Humanoid.WalkSpeed=18 |
| 205 | + | |
| 206 | ||
| 207 | chr.Humanoid.Changed:connect(function(ch) | |
| 208 | if ch=='Jump' and not chr.Humanoid.Sit and not chr.Humanoid.PlatformStand then | |
| 209 | local rei=Ray.new(torso.CFrame.p,((torso.CFrame*CFrame.new(0,-1,0)).p-torso.CFrame.p).unit*10) | |
| 210 | local t,p=Workspace:FindPartOnRay(rei,chr) | |
| 211 | if t then | |
| 212 | chr.Humanoid.Jump=false | |
| 213 | end | |
| 214 | end | |
| 215 | end) | |
| 216 | ||
| 217 | if kei==' ' and not chr.Humanoid.Jump and not chr.Humanoid.Sit and not chr.Humanoid.PlatformStand and not jamp then | |
| 218 | local rei=Ray.new(torso.CFrame.p,((rutprt.CFrame*CFrame.new(0,-1,0)).p-rutprt.CFrame.p).unit*3) | |
| 219 | local t,p=Workspace:FindPartOnRay(rei,chr) | |
| 220 | if t then | |
| 221 | chr.Humanoid.PlatformStand=true | |
| 222 | jamp=true | |
| 223 | coroutine.wrap(function() | |
| 224 | repeat wait() | |
| 225 | chr.Torso.Velocity=Vector3.new(0,35,0) | |
| 226 | until not chr.Humanoid.PlatformStand | |
| 227 | end)() | |
| 228 | wait(.1) | |
| 229 | chr.Humanoid.PlatformStand=false | |
| 230 | jamp=false | |
| 231 | end | |
| 232 | end | |
| 233 | end) | |
| 234 | ||
| 235 | ||
| 236 | ||
| 237 | local grunt=Instance.new('Sound',hed)
| |
| 238 | grunt.Name='Grunt' | |
| 239 | grunt.Volume=math.huge | |
| 240 | - | grunt.Volume=1 |
| 240 | + | |
| 241 | grunt.Looped=false | |
| 242 | grunt.SoundId="http://www.roblox.com/asset?id=199977917" | |
| 243 | - | grunt.SoundId="http://www.roblox.com/asset?id=143384769" |
| 243 | + | |
| 244 | ||
| 245 | ||
| 246 | local hut=Instance.new('Sound',weit)
| |
| 247 | hut.Name='Hit' | |
| 248 | hut.Volume=math.huge | |
| 249 | - | hut.Volume=1 |
| 249 | + | |
| 250 | hut.Pitch=1 | |
| 251 | hut.SoundId="http://www.roblox.com/asset?id=199977917" | |
| 252 | - | hut.SoundId="http://www.roblox.com/asset?id=146163534" |
| 252 | + | |
| 253 | wtl.Shadows=true | |
| 254 | wtl.Brightness=0 | |
| 255 | - | wtl.Brightness=123 |
| 255 | + | wtl.Range=0 |
| 256 | - | wtl.Range=12 |
| 256 | + | |
| 257 | wtl.Name='WeightLight' | |
| 258 | local wgui=Instance.new('SurfaceGui',weit)
| |
| 259 | wgui.Face='Front' | |
| 260 | wgui.Adornee=weit | |
| 261 | wgui.CanvasSize=Vector2.new(100,100) | |
| 262 | wgui.Name='WeightGui' | |
| 263 | local tb=Instance.new('TextLabel',wgui)
| |
| 264 | tb.Size=UDim2.new(1,0,1,0) | |
| 265 | tb.Text=[[WALL-E]] | |
| 266 | - | tb.Text=[[LAWL'D]] |
| 266 | + | |
| 267 | tb.BackgroundTransparency=1 | |
| 268 | local wtw=Instance.new('Weld',torso)
| |
| 269 | wtw.Name='WeightWeld' | |
| 270 | wtw.Part0=torso | |
| 271 | wtw.Part1=weit | |
| 272 | wtw.C0=CFrame.new(0,.5,-1.8)*CFrame.Angles(math.rad(-20),0,0) | |
| 273 | weit.Touched:connect(function(hit) | |
| 274 | if hit and hit.CanCollide and hit.Parent and hit.Parent~=chr and hit.Parent.Parent~=chr and otheranims then | |
| 275 | hum=hit.Parent:findFirstChild('Humanoid') and hit.Parent:findFirstChild('Torso') and hit.Parent.ClassName=='Model'
| |
| 276 | if hum and not hitdb then | |
| 277 | local ex=Instance.new('Explosion',workspace)
| |
| 278 | ex.DestroyJointRadiusPercent=0 | |
| 279 | ex.BlastPressure=math.huge | |
| 280 | - | ex.BlastPressure=222222 |
| 280 | + | ex.BlastRadius=20 |
| 281 | - | ex.BlastRadius=18 |
| 281 | + | |
| 282 | ex.Position=hit.Parent.Torso.Position | |
| 283 | hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-(101*(hit.Parent.Humanoid.MaxHealth/100)) | |
| 284 | table.insert(tempignore,hit.Parent) | |
| 285 | hut:Play() | |
| 286 | toss=false | |
| 287 | hit.Parent.Humanoid.PlatformStand=true | |
| 288 | coroutine.wrap(function() | |
| 289 | repeat wait() | |
| 290 | hit.Parent.Torso.Velocity=((hit.Parent.Torso.CFrame.p*Vector3.new(1,0,1))-(weit.CFrame.p*Vector3.new(1,0,1))).unit*100 | |
| 291 | weit.Velocity=((hit.Parent.Torso.CFrame.p*Vector3.new(1,0,1))-(weit.CFrame.p*Vector3.new(1,0,1))).unit*-10+Vector3.new(0,20,0) | |
| 292 | until not hit.Parent.Humanoid.PlatformStand | |
| 293 | end)() | |
| 294 | wait(.2) | |
| 295 | hit.Parent.Humanoid.PlatformStand=false | |
| 296 | end | |
| 297 | end | |
| 298 | end) | |
| 299 | maus.Button1Down:connect(function() | |
| 300 | if not otheranims then | |
| 301 | chr.Humanoid.WalkSpeed=0 | |
| 302 | otheranims=true | |
| 303 | anim='PreThrow' | |
| 304 | hitdb=false | |
| 305 | coroutine.resume(coroutine.create(function() | |
| 306 | for fgh,hgf in pairs(tempignore) do | |
| 307 | table.remove(tempignore,hgf) | |
| 308 | end | |
| 309 | end)) | |
| 310 | wait(.3) | |
| 311 | grunt:Play() | |
| 312 | wait(.2) | |
| 313 | anim='Throw' | |
| 314 | const.Parent=nil | |
| 315 | wtw.Parent=nil | |
| 316 | wtw.Part0=nil | |
| 317 | toss=true | |
| 318 | weit.CFrame=rutprt.CFrame*CFrame.new(0,3,-3) | |
| 319 | wait() | |
| 320 | weit.Velocity=((rutprt.CFrame.p*Vector3.new(1,0,1))-(weit.CFrame.p*Vector3.new(1,0,1))).unit*-200+Vector3.new(0,12,0) | |
| 321 | wait(.25) | |
| 322 | const.Parent=chr | |
| 323 | anim='Rest' | |
| 324 | wait(1) | |
| 325 | wtw.Parent=torso | |
| 326 | wtw.Part0=torso | |
| 327 | otheranims=false | |
| 328 | chr.Humanoid.WalkSpeed=9 | |
| 329 | - | chr.Humanoid.WalkSpeed=10 |
| 329 | + | |
| 330 | end | |
| 331 | end) | |
| 332 | ||
| 333 | ----------------------------------------------------------------------------- | |
| 334 | ||
| 335 | game:service'RunService'.RenderStepped:connect(function() | |
| 336 | chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0) | |
| 337 | syne=syne+.95 | |
| 338 | if running and not otheranims then chr.Humanoid.WalkSpeed=17 | |
| 339 | - | if running and not otheranims then chr.Humanoid.WalkSpeed=18 |
| 339 | + | elseif not running and not otheranims then chr.Humanoid.WalkSpeed=9 |
| 340 | - | elseif not running and not otheranims then chr.Humanoid.WalkSpeed=10 |
| 340 | + | |
| 341 | if not otheranims then | |
| 342 | if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and torso.Velocity.y<1 and torso.Velocity.y>-1 then | |
| 343 | anim="Idling" | |
| 344 | ||
| 345 | elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < 12 and torso.Velocity.y<1 and torso.Velocity.y>-1 then | |
| 346 | anim="Walking" | |
| 347 | ||
| 348 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 12 and torso.Velocity.y<1 and torso.Velocity.y>-1 then | |
| 349 | anim="Sprinting" | |
| 350 | ||
| 351 | elseif torso.Velocity.y>1 then | |
| 352 | anim='Jumping' | |
| 353 | ||
| 354 | elseif (torso.Velocity.y < -1) then | |
| 355 | anim='Falling' | |
| 356 | end | |
| 357 | end | |
| 358 | ||
| 359 | if anim=="Idling" then if not armmovement then | |
| 360 | rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(-12.5)),.05) | |
| 361 | end | |
| 362 | wtw.C0=Lerp(wtw.C0,CFrame.new(0,.375,-1.7)*CFrame.Angles(math.rad(-20),0,0),.25) | |
| 363 | larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(12.5)),.05) | |
| 364 | lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-1.3,.35)*CFrame.Angles(math.rad(-7),0,math.rad(-2.5)),.05) | |
| 365 | rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-1.3,.35)*CFrame.Angles(math.rad(-7),0,math.rad(2.5)),.05) | |
| 366 | hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),0,math.cos(syne/30)/25),.05) | |
| 367 | rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/40)/15-.5,0)*CFrame.Angles(math.rad(125),math.rad(180),0),.05) | |
| 368 | end | |
| 369 | if anim=="Walking" then if not armmovement then | |
| 370 | rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(-12.5)),.05) | |
| 371 | end | |
| 372 | wtw.C0=Lerp(wtw.C0,CFrame.new(0,.375,-1.8)*CFrame.Angles(math.rad(-20),0,0),.25) | |
| 373 | larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(12.5)),.05) | |
| 374 | lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,(math.cos(syne/10))-1.3,(math.cos(syne/10))+.475)*CFrame.Angles((math.cos(syne/10))*-1,0,math.rad(-2.5)),.05) | |
| 375 | rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,(math.cos(syne/10))*-1-1.3,(math.cos(syne/10))*-1+.475)*CFrame.Angles((math.cos(syne/10)),0,math.rad(2.5)),.05) | |
| 376 | hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.cos(syne/10)/10*-1,math.cos(syne/10)/20),.05) | |
| 377 | rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/6)/4-.5,0)*CFrame.Angles(math.rad(125),math.cos(syne/10)/10+math.rad(180),0),.05) | |
| 378 | end | |
| 379 | ||
| 380 | if anim=="Sprinting" then if not armmovement then | |
| 381 | rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(-12.5)),.05) | |
| 382 | end | |
| 383 | wtw.C0=Lerp(wtw.C0,CFrame.new(0,.375,-1.8)*CFrame.Angles(math.rad(-20),0,0),.25) | |
| 384 | larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(12.5)),.05) | |
| 385 | lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,(math.cos(syne/7))-1.3,(math.cos(syne/7))+.475)*CFrame.Angles((math.cos(syne/7))*-1,0,math.rad(-2.5)),.05) | |
| 386 | rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,(math.cos(syne/7))*-1-1.3,(math.cos(syne/7))*-1+.475)*CFrame.Angles((math.cos(syne/7)),0,math.rad(2.5)),.05) | |
| 387 | hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.cos(syne/7)/7*-1,math.cos(syne/7)/20),.05) | |
| 388 | rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/6)/4-.5,0)*CFrame.Angles(math.rad(125),math.cos(syne/7)/7+math.rad(180),0),.05) | |
| 389 | end | |
| 390 | ||
| 391 | if anim=="Jumping" then if not armmovement then | |
| 392 | rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(30),0,math.rad(30)),.15) | |
| 393 | end | |
| 394 | larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(30),0,math.rad(-30)),.15) | |
| 395 | lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.85,1)*CFrame.Angles(0,0,math.rad(-2.5)),.05) | |
| 396 | rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.85,1)*CFrame.Angles(0,0,math.rad(2.5)),.05) | |
| 397 | hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),0,0),.05) | |
| 398 | rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/50)/20,.5)*CFrame.Angles(math.rad(75),math.rad(180),math.rad(0)),.05) | |
| 399 | end | |
| 400 | ||
| 401 | if anim=="Falling" then if not armmovement then | |
| 402 | rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.425,.525,0)*CFrame.Angles(math.cos(syne/10)/5+math.rad(120),0,math.rad(22.5)),.15) | |
| 403 | end | |
| 404 | wtw.C0=Lerp(wtw.C0,CFrame.new(0,1.25,-2.25)*CFrame.Angles(math.cos(syne/20)/20,math.cos(syne/10)/30,0),.25) | |
| 405 | larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.425,.525,0)*CFrame.Angles((math.cos(syne/10)/5)*-1+math.rad(120),0,math.rad(-22.5)),.15) | |
| 406 | lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.725,-1.5,-.3)*CFrame.Angles(math.cos(syne/10)/5+math.rad(33),0,math.rad(-15)),.05) | |
| 407 | rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.725,-1.5,-.3)*CFrame.Angles(math.cos(syne/10)/5*-1+math.rad(33),0,math.rad(15)),.05) | |
| 408 | hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),0,0),.05) | |
| 409 | rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,0,1)*CFrame.Angles(math.rad(125),math.rad(180),math.rad(0)),.05) | |
| 410 | end | |
| 411 | ||
| 412 | if anim=="PreThrow" then | |
| 413 | rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.5,-.225)*CFrame.Angles(math.rad(105),0,math.rad(-12.5)),.1) | |
| 414 | wtw.C0=Lerp(wtw.C0,CFrame.new(0,1,-2)*CFrame.Angles(math.rad(-10),0,0),.1) | |
| 415 | larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(105),0,math.rad(12.5)),.1) | |
| 416 | lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-1.3,.3)*CFrame.Angles(math.rad(-10),0,math.rad(-2.5)),.1) | |
| 417 | rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-1.3,.3)*CFrame.Angles(math.rad(-10),0,math.rad(2.5)),.1) | |
| 418 | hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(40),0,0),.1) | |
| 419 | rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/40)/15-.5,0)*CFrame.Angles(math.rad(132.5),math.rad(180),0),.1) | |
| 420 | end | |
| 421 | ||
| 422 | if anim=="Throw" then | |
| 423 | rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.6,-.225)*CFrame.Angles(math.rad(105),0,math.rad(-12.5)),.1) | |
| 424 | larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(105),0,math.rad(12.5)),.1) | |
| 425 | lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-1.3,0)*CFrame.Angles(math.rad(40),0,math.rad(-2.5)),.1) | |
| 426 | rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-1.3,0)*CFrame.Angles(math.rad(40),0,math.rad(2.5)),.1) | |
| 427 | hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),0,0),.1) | |
| 428 | rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/40)/15-.5,0)*CFrame.Angles(math.rad(75),math.rad(180),0),.1) | |
| 429 | end | |
| 430 | ||
| 431 | wait(1) | |
| 432 | ||
| 433 | if anim=="Rest" then | |
| 434 | rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.55,-.225)*CFrame.Angles(math.rad(35),0,math.rad(-12.5)),.1) | |
| 435 | larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(35),0,math.rad(12.5)),.1) | |
| 436 | lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-.85,-.25)*CFrame.Angles(math.rad(40),0,math.rad(-2.5)),.1) | |
| 437 | rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-.85,-.25)*CFrame.Angles(math.rad(40),0,math.rad(2.5)),.1) | |
| 438 | hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),0,0),.1) | |
| 439 | rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/40)/15-1,0)*CFrame.Angles(math.rad(75),math.rad(180),0),.1) | |
| 440 | end | |
| 441 | ||
| 442 | end) |