SHOW:
|
|
- or go back to the newest paste.
| 1 | pls=game:GetService'Players'; | |
| 2 | rs=game:GetService'RunService'; | |
| 3 | uinps=game:GetService'UserInputService'; | |
| 4 | lp=pls.LocalPlayer; | |
| 5 | mouse=lp:GetMouse(); | |
| 6 | c=lp.Character; | |
| 7 | rayModel=Instance.new('Model',c);
| |
| 8 | human=c.Humanoid; | |
| 9 | Cone=nil; | |
| 10 | human.MaxHealth=math.huge; | |
| 11 | - | human.MaxHealth=5000; |
| 11 | + | |
| 12 | human.Health=math.huge; | |
| 13 | - | human.Health=5000; |
| 13 | + | |
| 14 | Debounces={
| |
| 15 | FPS=0; | |
| 16 | isAttacking=false; | |
| 17 | isMoving=false; | |
| 18 | isSprinting=false; | |
| 19 | Debounce=false; | |
| 20 | isTyping=false; | |
| 21 | isJumping=false; | |
| 22 | isFlash=false; | |
| 23 | }; | |
| 24 | numLerp=function(start,goal,alpha) | |
| 25 | return(((goal-start)*alpha)+start); | |
| 26 | end; | |
| 27 | CFrameZero=function() | |
| 28 | return CFrame.new(Vector3.new()); | |
| 29 | end; | |
| 30 | local function a() | |
| 31 | local t=tick(); | |
| 32 | local l=t%1*3; | |
| 33 | local t=.5*math.pi*(l%1); | |
| 34 | if l<1 then | |
| 35 | return Color3.new(1,1-math.cos(t),1-math.sin(t)); | |
| 36 | elseif l<2 then | |
| 37 | return Color3.new(1-math.sin(t),1,1-math.cos(t)); | |
| 38 | else | |
| 39 | return Color3.new(1-math.cos(t),1-math.sin(t),1); | |
| 40 | end; | |
| 41 | end; | |
| 42 | rad=function(value) | |
| 43 | return math.rad(value); | |
| 44 | end; | |
| 45 | CFAngles=function(Vector) | |
| 46 | return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z)); | |
| 47 | end; | |
| 48 | AnimStat={
| |
| 49 | lerpSpeed=.2; | |
| 50 | lerpSpeed2=.35; | |
| 51 | lerpTween=0; | |
| 52 | }; | |
| 53 | Joints={
| |
| 54 | c.HumanoidRootPart.RootJoint; | |
| 55 | c.Torso.Neck; | |
| 56 | c.Torso['Left Shoulder']; | |
| 57 | c.Torso['Right Shoulder']; | |
| 58 | c.Torso['Left Hip']; | |
| 59 | c.Torso['Right Hip']; | |
| 60 | }; | |
| 61 | JointTargets={
| |
| 62 | CFrameZero(); | |
| 63 | CFrameZero(); | |
| 64 | CFrameZero(); | |
| 65 | CFrameZero(); | |
| 66 | CFrameZero(); | |
| 67 | CFrameZero(); | |
| 68 | }; | |
| 69 | local Music = SFX(414654191) | |
| 70 | - | prepareCharacter=function() |
| 70 | + | Music.Looped = true; |
| 71 | - | music=Instance.new('Sound',c.HumanoidRootPart);
|
| 71 | + | wait(1) |
| 72 | - | music.SoundId='rbxassetid://394144904'; |
| 72 | + | Music:Play(); |
| 73 | - | music.Looped=true; |
| 73 | + | -- ~CL 2016 |
| 74 | - | music.Volume=.6; |
| 74 | + | music5.Volume=50; |
| 75 | - | music2=Instance.new('Sound',c);
|
| 75 | + | |
| 76 | - | music2.SoundId='rbxassetid://259613634'; |
| 76 | + | human.JumpPower=150; |
| 77 | - | music2.Looped=true; |
| 77 | + | |
| 78 | - | music2.Volume=1; |
| 78 | + | |
| 79 | - | music3=Instance.new('Sound',c.HumanoidRootPart);
|
| 79 | + | |
| 80 | - | music3.SoundId='rbxassetid://266530326'; |
| 80 | + | |
| 81 | - | music3.Looped=true; |
| 81 | + | |
| 82 | - | music3.Volume=1; |
| 82 | + | |
| 83 | - | music4=Instance.new('Sound',c.HumanoidRootPart);
|
| 83 | + | |
| 84 | - | music4.SoundId='rbxassetid://155738252'; |
| 84 | + | shirt = Instance.new("Shirt",game.Players.LocalPlayer.Character) shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821325"
|
| 85 | - | music4.Looped=true; |
| 85 | + | pants = Instance.new("Pants",game.Players.LocalPlayer.Character) pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821538"
|
| 86 | - | music4.Volume=1; |
| 86 | + | game.Players.LocalPlayer.Character.Head.Mesh.Scale = Vector3.new(0.45,0.45,0.45) |
| 87 | - | music5=Instance.new('Sound',c.HumanoidRootPart);
|
| 87 | + | game.Players.LocalPlayer.Character.Head.Mesh.Offset = Vector3.new(0,0.3,-0.1) |
| 88 | - | music5.SoundId='rbxassetid://215391212'; |
| 88 | + | game.Players.LocalPlayer.Character.Head.face:remove() |
| 89 | - | music5.Looped=true; |
| 89 | + | game.Players.LocalPlayer.Character.Head.Mesh.MeshId = "rbxassetid://494265290" |
| 90 | - | music5.Volume=1; |
| 90 | + | game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "rbxassetid://494265293" |
| 91 | ||
| 92 | - | human.JumpPower=0; |
| 92 | + | game.Players.LocalPlayer.Character.Head.Jumping.SoundId = "rbxassetid://158309736" |
| 93 | Head:BreakJoints(); | |
| 94 | local hw=Instance.new('Weld',c.Head);
| |
| 95 | hw.Part0=c.Head; | |
| 96 | hw.Part1=Head; | |
| 97 | hw.C0=CFrame.new(0,.3,0); | |
| 98 | faceDecal=Instance.new('Decal',Head);
| |
| 99 | faceDecal.Face=Enum.NormalId.Front; | |
| 100 | - | local shirt=c:FindFirstChild'Shirt'or Instance.new('Shirt',c);
|
| 100 | + | |
| 101 | - | local pants=c:FindFirstChild'Pants'or Instance.new('Pants',c);
|
| 101 | + | |
| 102 | - | shirt.ShirtTemplate='rbxassetid://334755544'; |
| 102 | + | |
| 103 | - | pants.PantsTemplate='rbxassetid://315964941'; |
| 103 | + | |
| 104 | - | local Head=Instance.new('Part',c);
|
| 104 | + | |
| 105 | - | Head.Size=Vector3.new(2.5,2.5,1); |
| 105 | + | |
| 106 | - | Head.Transparency=1; |
| 106 | + | |
| 107 | setJointCFrames=function(table) | |
| 108 | for i=1,#table do | |
| 109 | JointTargets[i]=table[i]; | |
| 110 | end; | |
| 111 | end; | |
| 112 | triWave=function(x) | |
| 113 | local pi2=math.pi/2; | |
| 114 | return math.abs((x/pi2)%4-2)-1; | |
| 115 | end; | |
| 116 | setLerp=function(speed) | |
| 117 | - | backDecal.Texture='rbxassetid://400377807'; |
| 117 | + | |
| 118 | end; | |
| 119 | setTween=function(tween) | |
| 120 | AnimStat.lerpTween=tween; | |
| 121 | end; | |
| 122 | playSound=function(id,part,vol,pitch) | |
| 123 | local vol=vol or 1; | |
| 124 | local pitch=pitch or 1; | |
| 125 | local x=Instance.new('Sound',part);
| |
| 126 | x.Volume=vol; | |
| 127 | x.Pitch=pitch; | |
| 128 | x.SoundId='rbxassetid://'..id; | |
| 129 | spawn(function() | |
| 130 | wait(); | |
| 131 | x:Play(); | |
| 132 | wait(x.TimeLength+.2); | |
| 133 | x:Destroy(); | |
| 134 | end); | |
| 135 | end; | |
| 136 | lerpBoom=function() | |
| 137 | if Cone then | |
| 138 | Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0); | |
| 139 | cMesh.Scale=Vector3.new(20,20+c.HumanoidRootPart.Velocity.magnitude/10,20); | |
| 140 | Cone.Transparency=1-c.HumanoidRootPart.Velocity.magnitude/1000; | |
| 141 | else | |
| 142 | Cone=Instance.new('Part',c);
| |
| 143 | Cone.Anchored=true; | |
| 144 | Cone.CanCollide=false; | |
| 145 | Cone.Transparency=math.random(50,70)/100; | |
| 146 | Cone.Size=Vector3.new(1,1,1); | |
| 147 | Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0); | |
| 148 | cMesh=Instance.new('SpecialMesh',Cone);
| |
| 149 | cMesh.MeshId='rbxassetid://1033714'; | |
| 150 | cMesh.Scale=Vector3.new(20,50,20); | |
| 151 | end; | |
| 152 | end; | |
| 153 | noBoom=function() | |
| 154 | if Cone then local x=Cone Cone=nil; | |
| 155 | for i=1,20 do | |
| 156 | wait(); | |
| 157 | x.Mesh.Scale=x.Mesh.Scale+Vector3.new(-.5,1,-.5); | |
| 158 | x.Transparency=x.Transparency+1/30; | |
| 159 | end; | |
| 160 | end; | |
| 161 | end; | |
| 162 | gasterBlast=function(tCFrame,aimPos,charge) | |
| 163 | local aimTarget; | |
| 164 | if aimPos then | |
| 165 | aimTarget=CFrame.new(tCFrame,aimPos); | |
| 166 | else | |
| 167 | aimTarget=tCFrame; | |
| 168 | end; | |
| 169 | local gast=Instance.new('Part',c);
| |
| 170 | gast.Size=Vector3.new(12,.2,12); | |
| 171 | gast.CanCollide=false; | |
| 172 | gast.Anchored=true; | |
| 173 | gast.Transparency=1; | |
| 174 | if charge then | |
| 175 | playSound(400523331,gast,math.random(90,110)/100); | |
| 176 | end; | |
| 177 | wait(); | |
| 178 | for i=1,2 do | |
| 179 | local decal=Instance.new('Decal',gast);
| |
| 180 | decal.Texture='rbxassetid://1247832932'; | |
| 181 | if i==1 then | |
| 182 | decal.Face=Enum.NormalId.Top; | |
| 183 | else | |
| 184 | decal.Face=Enum.NormalId.Bottom; | |
| 185 | end; | |
| 186 | end; | |
| 187 | gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10)); | |
| 188 | spawn(function() | |
| 189 | local tarCFrame=gast.CFrame; | |
| 190 | local isLooping=true; | |
| 191 | spawn(function() | |
| 192 | while rs.RenderStepped:wait()and isLooping do | |
| 193 | gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60)); | |
| 194 | end; | |
| 195 | end); | |
| 196 | for i=1,30 do | |
| 197 | wait(); | |
| 198 | tarCFrame=gast.CFrame:lerp(aimTarget,.24); | |
| 199 | end; | |
| 200 | playSound(340722848,gast,math.random(90,110)/100); | |
| 201 | isLooping=false; | |
| 202 | wait(.08); | |
| 203 | local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999); | |
| 204 | local _,pos=workspace:FindPartOnRay(ray,c); | |
| 205 | local dis=(aimTarget.p-pos).magnitude; | |
| 206 | local rayCFrame=CFrame.new(gast.CFrame.p+(pos-gast.CFrame.p).unit*(dis/2+200),gast.CFrame.p+(pos-gast.CFrame.p).unit*dis*2)*CFrame.Angles(0,math.pi/2,0); | |
| 207 | local rayPart=Instance.new('Part',rayModel);
| |
| 208 | rayPart.Material='Neon'; | |
| 209 | rayPart.FormFactor='Custom'; | |
| 210 | rayPart.Color=a(); | |
| 211 | rayPart.Anchored=true; | |
| 212 | rayPart.CanCollide=false; | |
| 213 | rayPart.Shape='Cylinder'; | |
| 214 | rayPart.Size=Vector3.new(dis+400,8,8); | |
| 215 | rayPart.CFrame=rayCFrame; | |
| 216 | gast:Destroy(); | |
| 217 | end); | |
| 218 | end; | |
| 219 | largegasterBlast=function(tCFrame,aimPos) | |
| 220 | local aimTarget; | |
| 221 | if aimPos then | |
| 222 | aimTarget=CFrame.new(tCFrame,aimPos); | |
| 223 | else | |
| 224 | aimTarget=tCFrame; | |
| 225 | end; | |
| 226 | local gast=Instance.new('Part',c);
| |
| 227 | gast.Size=Vector3.new(25,.2,25); | |
| 228 | gast.CanCollide=false; | |
| 229 | gast.Anchored=true; | |
| 230 | gast.Transparency=1; | |
| 231 | playSound(400523331,gast,math.random(85,97)/100); | |
| 232 | wait(); | |
| 233 | for i=1,2 do | |
| 234 | local decal=Instance.new('Decal',gast);
| |
| 235 | decal.Texture='rbxassetid://323497117'; | |
| 236 | if i==1 then | |
| 237 | decal.Face=Enum.NormalId.Top; | |
| 238 | else | |
| 239 | decal.Face=Enum.NormalId.Bottom; | |
| 240 | end; | |
| 241 | end; | |
| 242 | gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10)); | |
| 243 | spawn(function() | |
| 244 | local tarCFrame=gast.CFrame; | |
| 245 | local isLooping=true; | |
| 246 | spawn(function() | |
| 247 | while rs.RenderStepped:wait()and isLooping do | |
| 248 | gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60)); | |
| 249 | end; | |
| 250 | end); | |
| 251 | for i=1,40 do | |
| 252 | wait(); | |
| 253 | tarCFrame=gast.CFrame:lerp(aimTarget,.18); | |
| 254 | end; | |
| 255 | playSound(340722848,gast,math.random(80,95)/100); | |
| 256 | isLooping=false; | |
| 257 | wait(.08); | |
| 258 | local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999); | |
| 259 | local _,pos=workspace:FindPartOnRay(ray,c); | |
| 260 | local dis=(aimTarget.p-pos).magnitude; | |
| 261 | local rayCFrame=CFrame.new(gast.CFrame.p+(pos-gast.CFrame.p).unit*(dis/2+200),gast.CFrame.p+(pos-gast.CFrame.p).unit*dis*2)*CFrame.Angles(0,math.pi/2,0); | |
| 262 | local rayPart=Instance.new('Part',rayModel);
| |
| 263 | rayPart.Material='Neon'; | |
| 264 | rayPart.FormFactor='Custom'; | |
| 265 | rayPart.Color=a(); | |
| 266 | rayPart.Anchored=true; | |
| 267 | rayPart.CanCollide=false; | |
| 268 | rayPart.Shape='Cylinder'; | |
| 269 | rayPart.Size=Vector3.new(dis+400,17,17); | |
| 270 | rayPart.CFrame=rayCFrame; | |
| 271 | gast:Destroy(); | |
| 272 | end); | |
| 273 | end; | |
| 274 | prepareCharacter(); | |
| 275 | spawn(function() | |
| 276 | local sine=0; | |
| 277 | while wait()do | |
| 278 | if Debounces.isFlash then | |
| 279 | if(tick()*8)%2>1 then | |
| 280 | faceDecal.Texture='rbxassetid://400377503'; | |
| 281 | else | |
| 282 | faceDecal.Texture='rbxassetid://400387868'; | |
| 283 | end; | |
| 284 | else | |
| 285 | faceDecal.Texture='rbxassetid://400387868'; | |
| 286 | end; | |
| 287 | if Debounces.isAttacking==false and Debounces.isMoving==false and Debounces.Debounce==false and Debounces.isJumping==false then | |
| 288 | setLerp(.8); | |
| 289 | local spasm=math.abs(math.sin(tick()*20))*1.1; | |
| 290 | local spasm2=math.abs(math.sin(tick()*20-2))*1.1; | |
| 291 | local spasm3=math.abs(math.sin(tick()*20-2.3))*1.1; | |
| 292 | setJointCFrames({
| |
| 293 | CFrame.new(Vector3.new(0,0-spasm,0))*CFAngles(Vector3.new(0,0,0)); | |
| 294 | CFrame.new(Vector3.new(0,1.5,0))*CFAngles(Vector3.new(-0.011,-0.502,-1.177)); | |
| 295 | CFrame.new(Vector3.new(-1.5-spasm2^2/3,-0.001,0))*CFAngles(Vector3.new(-2.344,7.899,-2.82+spasm3^2*-60)); | |
| 296 | CFrame.new(Vector3.new(1.569+spasm2^2/3,0,-0.1))*CFAngles(Vector3.new(4.822,1.123,6.383+spasm3^2*60)); | |
| 297 | CFrame.new(Vector3.new(-0.61,-2+spasm/1.01,-.15))*CFAngles(Vector3.new(-2.206,0.767,-0.582)); | |
| 298 | CFrame.new(Vector3.new(0.55,-2+spasm/1.01,-.1))*CFAngles(Vector3.new(-0.026,0.463,3.184)); | |
| 299 | }); | |
| 300 | elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==false and Debounces.isJumping==false then | |
| 301 | sine=tick()*18; | |
| 302 | human.WalkSpeed=120; | |
| 303 | setLerp(.35); | |
| 304 | setJointCFrames({
| |
| 305 | CFrame.new(Vector3.new(0,math.sin(sine)/50-.3,0))*CFAngles(Vector3.new(-30-math.sin(sine*2)*3,math.sin(sine*2)*15,0)); | |
| 306 | CFrame.new(Vector3.new(0,1.48,0.099))*CFAngles(Vector3.new(14.999,-0.001,0)); | |
| 307 | CFrame.new(Vector3.new(-1.5,-0.001,0.2+math.sin(sine*2+math.pi)*1.2))*CFAngles(Vector3.new(-25.001+math.sin(sine*2+math.pi)*-90,0,-15)); | |
| 308 | CFrame.new(Vector3.new(1.5,-0.001,0.2+math.sin(sine*2)*1.2))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-90,-0.001,14.999)); | |
| 309 | CFrame.new(Vector3.new(-0.501,-2+math.cos(sine*2+math.pi)/3,.3+math.sin(sine*2)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-70,0,-0.001)); | |
| 310 | CFrame.new(Vector3.new(0.499,-2+math.cos(sine*2)/3,.3+math.sin(sine*2+math.pi)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*70,0,0)); | |
| 311 | }); | |
| 312 | elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==true and Debounces.isJumping==false then | |
| 313 | sine=tick()*28; | |
| 314 | human.WalkSpeed=400; | |
| 315 | lerpBoom(); | |
| 316 | setLerp(.65); | |
| 317 | setJointCFrames({
| |
| 318 | CFrame.new(Vector3.new(0,math.sin(sine)/50-.3,0))*CFAngles(Vector3.new(-30-math.sin(sine*2)*3,math.sin(sine*2)*15,0)); | |
| 319 | CFrame.new(Vector3.new(0,1.48,0.099))*CFAngles(Vector3.new(14.999,-0.001,0)); | |
| 320 | CFrame.new(Vector3.new(-1.5,-0.001,0.2+math.sin(sine*2+math.pi)*1.2))*CFAngles(Vector3.new(-25.001+math.sin(sine*2+math.pi)*-90,0,-15)); | |
| 321 | CFrame.new(Vector3.new(1.5,-0.001,0.2+math.sin(sine*2)*1.2))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-90,-0.001,14.999)); | |
| 322 | CFrame.new(Vector3.new(-0.501,-2+math.cos(sine*2+math.pi)/3,.3+math.sin(sine*2)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-70,0,-0.001)); | |
| 323 | CFrame.new(Vector3.new(0.499,-2+math.cos(sine*2)/3,.3+math.sin(sine*2+math.pi)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*70,0,0)); | |
| 324 | }); | |
| 325 | elseif Debounces.isJumping==true and Debounces.Debounce==false then | |
| 326 | setLerp(.14); | |
| 327 | human.WalkSpeed=45; | |
| 328 | setJointCFrames({
| |
| 329 | CFrame.new(Vector3.new(0,0,0))*CFAngles(Vector3.new(-8,0,0)); | |
| 330 | CFrame.new(Vector3.new(0,1.5,-0.15))*CFAngles(Vector3.new(-10.138,3.687,0.306)); | |
| 331 | CFrame.new(Vector3.new(-1.23,0.069,-0.56))*CFAngles(Vector3.new(50.809,0.672,18.704)); | |
| 332 | CFrame.new(Vector3.new(0.929,-0.031,-1.0912))*CFAngles(Vector3.new(63.00,13.85,-36.416)); | |
| 333 | CFrame.new(Vector3.new(-0.63,-1.82,-0.74))*CFAngles(Vector3.new(31.324,3.424,-1.249)); | |
| 334 | CFrame.new(Vector3.new(0.619,-1.331,0.82))*CFAngles(Vector3.new(-59.644,0.998,9.776)); | |
| 335 | }); | |
| 336 | end; | |
| 337 | end; | |
| 338 | end); | |
| 339 | human.Changed:connect(function(prop) | |
| 340 | if prop=='MoveDirection'then | |
| 341 | if human.MoveDirection.magnitude>.02 then | |
| 342 | Debounces.isMoving=true; | |
| 343 | else | |
| 344 | Debounces.isMoving=false; | |
| 345 | end; | |
| 346 | end; | |
| 347 | end); | |
| 348 | uinps.InputBegan:connect(function(InputObj) | |
| 349 | if InputObj.KeyCode==Enum.KeyCode.Slash then | |
| 350 | local finishEvent=nil; | |
| 351 | Debounces.isTyping=true | |
| 352 | finishEvent=uinps.InputBegan:connect(function(InputObj) | |
| 353 | if InputObj.KeyCode==Enum.KeyCode.Return or InputObj.UserInputType==Enum.UserInputType.MouseButton1 then | |
| 354 | Debounces.isTyping=false; | |
| 355 | finishEvent:disconnect(); | |
| 356 | end; | |
| 357 | end); | |
| 358 | end; | |
| 359 | end); | |
| 360 | mouse.KeyDown:connect(function(key) | |
| 361 | if key=='0'then | |
| 362 | Debounces.isSprinting=true; | |
| 363 | playSound(160248522,c.Torso); | |
| 364 | for i=1,3 do | |
| 365 | spawn(function() | |
| 366 | local e=Instance.new('Part',c);
| |
| 367 | e.Size=Vector3.new(1,1,1); | |
| 368 | e.Material='Neon'; | |
| 369 | e.Color=a(); | |
| 370 | e.Anchored=true; | |
| 371 | e.CFrame=c.HumanoidRootPart.CFrame*CFrame.Angles(0,0,-math.pi/2); | |
| 372 | e.CanCollide=false; | |
| 373 | local rm=Instance.new('SpecialMesh',e);
| |
| 374 | rm.MeshType='FileMesh'; | |
| 375 | rm.MeshId='rbxassetid://3270017'; | |
| 376 | rm.Scale=Vector3.new(3.2,3.2,10); | |
| 377 | for x=1,30 do | |
| 378 | wait(); | |
| 379 | rm.Scale=rm.Scale:lerp(Vector3.new(i*30,i*30,(4-i)*450),.1); | |
| 380 | e.Transparency=x/30+.5; | |
| 381 | end; | |
| 382 | end); | |
| 383 | end; | |
| 384 | c.HumanoidRootPart.Velocity=c.HumanoidRootPart.CFrame.lookVector*200; | |
| 385 | end; | |
| 386 | end); | |
| 387 | mouse.KeyUp:connect(function(key) | |
| 388 | if key=='0'then | |
| 389 | Debounces.isSprinting=false; | |
| 390 | end; | |
| 391 | end); | |
| 392 | mouse.KeyDown:connect(function(key) | |
| 393 | if key=='v'then | |
| 394 | playSound(201858087,c.Torso,math.random(90,120)/100); | |
| 395 | local oldPos=c.HumanoidRootPart.CFrame.p; | |
| 396 | local mHit=mouse.Hit.p; | |
| 397 | for i=1,2 do | |
| 398 | spawn(function() | |
| 399 | local pos | |
| 400 | if i==1 then pos=oldPos else pos=mHit end | |
| 401 | local p=Instance.new('Part',workspace);
| |
| 402 | p.Anchored=true; | |
| 403 | p.CanCollide=false; | |
| 404 | p.Color=a(); | |
| 405 | p.FormFactor='Custom'; | |
| 406 | p.CFrame=CFrame.new(pos+Vector3.new(0,500,0)); | |
| 407 | p.Transparency=.4; | |
| 408 | p.Size=Vector3.new(20,1000,20); | |
| 409 | for i=1,20 do | |
| 410 | wait(); | |
| 411 | p.Transparency=.4+(i/10)*.6; | |
| 412 | p.Size=Vector3.new(20-i*1.5,1000,20-i*1.5); | |
| 413 | p.CFrame=CFrame.new(pos+Vector3.new(0,500,0)); | |
| 414 | end; | |
| 415 | p:Destroy(); | |
| 416 | end); | |
| 417 | end; | |
| 418 | if Debounces.isMoving then | |
| 419 | c.HumanoidRootPart.CFrame=CFrame.new(mouse.Hit.p+Vector3.new(0,4,0),Vector3.new(c.HumanoidRootPart.Velocity.x,mouse.Hit.p.y+4,c.HumanoidRootPart.Velocity.z)); | |
| 420 | else | |
| 421 | c.HumanoidRootPart.CFrame=CFrame.new(mouse.Hit.p+Vector3.new(0,4,0),Vector3.new(oldPos.x,mouse.Hit.p.y+4,oldPos.z)); | |
| 422 | end; | |
| 423 | end; | |
| 424 | end); | |
| 425 | mouse.KeyDown:connect(function(key) | |
| 426 | if key=='r'then | |
| 427 | local pointTarget=mouse.Hit.p; | |
| 428 | for i=1,20 do | |
| 429 | wait(); | |
| 430 | gasterBlast(CFrame.new(pointTarget+Vector3.new(math.sin(tick()*10)*20,5+math.abs(math.sin(tick()*5)*10),math.cos(tick()*10)*20),pointTarget)); | |
| 431 | end; | |
| 432 | wait(); | |
| 433 | largegasterBlast(CFrame.new(pointTarget+Vector3.new(0,35,0),pointTarget)); | |
| 434 | end; | |
| 435 | end); | |
| 436 | mouse.KeyDown:connect(function(key) | |
| 437 | if key=='f'then | |
| 438 | local pointTarget=mouse.Hit.p; | |
| 439 | for i=1,20 do | |
| 440 | wait(); | |
| 441 | gasterBlast(CFrame.new(c.HumanoidRootPart.CFrame.p+Vector3.new(0,50,0),pointTarget):toWorldSpace(CFrame.new(math.sin(i/2)*(20-i),math.cos(i/2)*(20-i),-i))); | |
| 442 | end; | |
| 443 | largegasterBlast(CFrame.new(c.HumanoidRootPart.CFrame.p+Vector3.new(0,50,0),pointTarget):toWorldSpace(CFrame.new(0,0,-25))); | |
| 444 | end; | |
| 445 | end); | |
| 446 | mouse.Button1Down:connect(function() | |
| 447 | Debounces.isFlash=true; | |
| 448 | end); | |
| 449 | mouse.Button1Up:connect(function() | |
| 450 | Debounces.isFlash=false; | |
| 451 | end); | |
| 452 | mouse.KeyDown:connect(function(key) | |
| 453 | if key=='k'then | |
| 454 | if music.isPlaying then music:Stop();else music:Play();end; | |
| 455 | end; | |
| 456 | end); | |
| 457 | mouse.KeyDown:connect(function(key) | |
| 458 | if key=='j'then | |
| 459 | if music2.isPlaying then music2:Stop();else music2:Play();end; | |
| 460 | end; | |
| 461 | end); | |
| 462 | mouse.KeyDown:connect(function(key) | |
| 463 | if key=='l'then | |
| 464 | if music3.isPlaying then music3:Stop();else music3:Play();end; | |
| 465 | end; | |
| 466 | end); | |
| 467 | mouse.KeyDown:connect(function(key) | |
| 468 | if key=='p'then | |
| 469 | if music4.isPlaying then music4:Stop();else music4:Play();end; | |
| 470 | end; | |
| 471 | end); | |
| 472 | mouse.KeyDown:connect(function(key) | |
| 473 | if key=='o'then | |
| 474 | if music5.isPlaying then music4:Stop();else music5:Play();end; | |
| 475 | end; | |
| 476 | end); | |
| 477 | mouse.KeyDown:connect(function(key) | |
| 478 | if key=='e'then | |
| 479 | gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p,true); | |
| 480 | end; | |
| 481 | end); | |
| 482 | mouse.KeyDown:connect(function(key) | |
| 483 | if key=='c'then | |
| 484 | largegasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p); | |
| 485 | end; | |
| 486 | end); | |
| 487 | mouse.KeyDown:connect(function(key) | |
| 488 | if key=='q'then | |
| 489 | for i=1,5 do | |
| 490 | wait(); | |
| 491 | gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p); | |
| 492 | end; | |
| 493 | largegasterBlast(c.Torso.CFrame.p+Vector3.new(0,25,0),mouse.Hit.p); | |
| 494 | end; | |
| 495 | end); | |
| 496 | mouse.KeyDown:connect(function(key) | |
| 497 | if key=='t'then | |
| 498 | local pointTarget=mouse.Hit.p; | |
| 499 | for i=1,20 do | |
| 500 | gasterBlast(pointTarget+Vector3.new(math.sin(math.deg((360/40)*i))*(20-i),5+i,math.cos(math.deg((360/40)*i))*(20-i)),pointTarget); | |
| 501 | end; | |
| 502 | wait(.2); | |
| 503 | for i=1,10 do | |
| 504 | largegasterBlast(pointTarget+Vector3.new(math.sin(math.deg((360/20)*i))*25,20,math.cos(math.deg((360/20)*i))*25),pointTarget); | |
| 505 | end; | |
| 506 | end; | |
| 507 | end); | |
| 508 | human.StateChanged:connect(function(os,ns) | |
| 509 | if c.HumanoidRootPart.Velocity.Y<.1 and Debounces.isJumping==true and ns==Enum.HumanoidStateType.Landed then | |
| 510 | Debounces.isJumping=false; | |
| 511 | end; | |
| 512 | end); | |
| 513 | for i=1,#Joints do | |
| 514 | Joints[i].C1=CFrameZero(); | |
| 515 | end; | |
| 516 | rs.RenderStepped:connect(function() | |
| 517 | Debounces.FPS=1/rs.RenderStepped:wait(); | |
| 518 | if Debounces.FPS<30 then | |
| 519 | Debounces.FPS=30; | |
| 520 | end; | |
| 521 | if Debounces.isSprinting then | |
| 522 | lerpBoom(); | |
| 523 | else | |
| 524 | noBoom(); | |
| 525 | end; | |
| 526 | for _,v in pairs(rayModel:children())do | |
| 527 | v.Transparency=v.Transparency+.06/(Debounces.FPS/60); | |
| 528 | if v.Transparency>.99 then v:Destroy();return;end; | |
| 529 | v.CanCollide=true; | |
| 530 | local tParts=v:GetTouchingParts(); | |
| 531 | v.CanCollide=false; | |
| 532 | local vCFrame=v.CFrame; | |
| 533 | v.Size=v.Size+Vector3.new(0,1,1)/(Debounces.FPS/60); | |
| 534 | v.CFrame=vCFrame; | |
| 535 | for _,x in pairs(tParts)do | |
| 536 | if x and x.Parent and x.Parent:FindFirstChild'Humanoid'and x.Parent.Humanoid:isA'Humanoid'and x.Parent~=c then | |
| 537 | x.Parent.Humanoid:TakeDamage(1,2); | |
| 538 | end; | |
| 539 | end; | |
| 540 | end; | |
| 541 | local FPSLerp=AnimStat.lerpSpeed/(Debounces.FPS/60); | |
| 542 | for i=1,#Joints do | |
| 543 | Joints[i].C0=Joints[i].C0:lerp(JointTargets[i],FPSLerp); | |
| 544 | end; | |
| 545 | end); |