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