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