Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent=workspace.CurrentCamera
- Players=game:FindFirstChildOfClass("Players")Lighting=game:FindFirstChildOfClass("Lighting")
- PL=Players.LocalPlayer
- local Mouse=PL:GetMouse()PC=PL.Character Humanoid=PC:FindFirstChildOfClass("Humanoid")
- Active=false debri=game:GetService("Debris")Ghost=false Targeted=nil Gun=true
- local Create=LoadLibrary("RbxUtility").Create Freeze=false
- local TMark=Instance.new("BillboardGui",nil)TMark.AlwaysOnTop=true TMark.Size=UDim2.new(8,0,8,0)local timg=Instance.new("ImageLabel",TMark)timg.Size=UDim2.new(1,0,1,0)timg.Image="rbxassetid://357408298"timg.BackgroundTransparency=1 timg.ImageTransparency=.6
- function clear()Targeted=nil TMark.Enabled=false TMark.Parent=nil TMark.Enabled=false end
- function a(part)local j=Instance.new("BodyVelocity",part)j.MaxForce=Vector3.new(1/0,1/0,1/0)j.Velocity=Vector3.new(0,0,0)end
- function mov(part,vec3)local j=Instance.new("BodyVelocity",part)j.MaxForce=Vector3.new(1/0,1/0,1/0)j.Velocity=vec3 end
- RightArm=PC["Right Arm"]LeftArm=PC["Left Arm"]RightLeg=PC["Right Leg"]LeftLeg=PC["Left Leg"]Torso=PC.Torso
- if PC:FindFirstChild("Animate")~=nil then PC.Animate:Remove()end if Humanoid:FindFirstChild("Animator")~=nil then Humanoid.Animator:Destroy()end
- local GunSound=Instance.new("Sound",PL)GunSound.SoundId="rbxassetid://131070686"GunSound.Volume=5
- local TeleportSound=Instance.new("Sound",PL)TeleportSound.SoundId="rbxassetid://206083431"TeleportSound.Volume=5
- local bgui=Instance.new("ScreenGui",PL.PlayerGui)local btxt=Instance.new("TextLabel",bgui)btxt.Size=UDim2.new(.1,0,.05,0)btxt.Position=UDim2.new(.5,0,.05,0)btxt.BackgroundTransparency=1
- btxt.TextStrokeTransparency=0 btxt.TextColor3=Color3.new(1,1,0)
- element="ScriptKiller"btxt.TextXAlignment="Left" btxt.Text="Bullet Type:"..element
- Ring="rbxassetid://3270017"
- function PlaySound(ID,Volume,Speed)spawn(function()local s=Instance.new("Sound",workspace)s.SoundId=ID s.Volume=Volume s.PlaybackSpeed=Speed s:Play()s.PlayOnRemove=true wait(10)s.Volume=0 s:Remove()end)end
- function CreateSound(ID,Volume,Speed)local s=Instance.new("Sound",workspace)s.SoundId=ID s.Volume=Volume s.PlaybackSpeed=Speed return s end
- local newMotor = function(part0, part1, c0, c1)
- local w = Create('Motor'){
- Parent = part0,
- Part0 = part0,
- Part1 = part1,
- C0 = c0,
- C1 = c1,
- }
- return w
- end
- function clerp(a, b, t)
- return a:lerp(b, t)
- end
- RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- function Fire()
- local e=Instance.new("Part")a(e)e.Size=Vector3.new(1,1,1)e.CanCollide=false e.CFrame=RightArm.CFrame*CFrame.new(0,-3.5,-.5)e.Parent=workspace local pos=e.CFrame e.Material="Neon"e.Color=Color3.new(1,.5,0)
- spawn(function()for i=1,30 do e.Parent=nil e.Transparency=i/30 e.Orientation=Vector3.new(math.random(360),math.random(360),math.random(360))e.Parent=workspace wait()end e:Destroy()end)
- end
- function dodamage(part,damage,pos,SP)
- if part.Parent~=nil then
- if part.Parent.Name~=PL.Name then
- if part.Parent:FindFirstChildOfClass("Humanoid")~=nil then
- if SP~="Heal"then part.Parent:FindFirstChildOfClass("Humanoid").Health=part.Parent:FindFirstChildOfClass("Humanoid").Health-(part.Parent:FindFirstChildOfClass("Humanoid").MaxHealth*damage)
- if part.Parent:FindFirstChildOfClass("Humanoid").MaxHealth==1/0 and damage>=1 then part.Parent:FindFirstChildOfClass("Humanoid").MaxHealth=nil part.Parent:FindFirstChildOfClass("Humanoid").Health=nil end end
- local p=Instance.new("Part")p.CanCollide=false p.Transparency=1 p.Position=pos p.Size=Vector3.new(0,0,0)
- local b=Instance.new("BillboardGui",p)b.Size=UDim2.new(1,0,1,0)b.Adornee=p b.AlwaysOnTop=true
- local t=Instance.new("TextLabel",b)t.Size=UDim2.new(1,0,1,0)t.TextSize=30 t.Text=part.Parent:FindFirstChildOfClass("Humanoid").MaxHealth*damage
- t.BackgroundTransparency=1 t.BorderSizePixel=0 t.Font="Bodoni"t.TextColor3=Color3.new(1,1,0)t.TextStrokeTransparency=0
- mov(p,Vector3.new(0,2,0))p.Parent=workspace
- spawn(function()for i=1,20 do t.TextTransparency=i/20 t.TextStrokeTransparency=i/20 wait()end p:Destroy()end)
- --Special Powers
- if SP=="ScriptKiller"then
- local c=part.Parent:GetChildren()
- for i=1,#c do if c[i]:IsA("LocalScript")and c[i].Name~="Animate"then c[i]:Destroy()end end
- elseif SP=="InstantKill"then
- part.Parent:BreakJoints()t.Text="Death"t.TextColor3=Color3.new(1,0,0)clear()part.Parent.Parent=nil part.Parent:Destroy()
- end
- end
- end
- end
- end
- local RootPart = PC.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- local RW = newMotor(Torso,RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
- local LW = newMotor(Torso,LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
- local RH = newMotor(Torso,RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
- local LH = newMotor(Torso,LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
- RootJoint.C1 = CFrame.new(0, 0, 0)RootJoint.C0 = CFrame.new(0, 0, 0)Torso.Neck.C1 = CFrame.new(0, 0, 0)Torso.Neck.C0 = CFrame.new(0, 1.5, 0)local rarmc1 = RW.C1
- local larmc1 = LW.C1
- local rlegc1 = RH.C1
- local llegc1 = LH.C1
- local resetc1 = false
- function PlayAnimationFromTable(table, speed, bool)
- RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
- RW.C0 = clerp(RW.C0, table[3], speed)
- LW.C0 = clerp(LW.C0, table[4], speed)
- RH.C0 = clerp(RH.C0, table[5], speed)
- LH.C0 = clerp(LH.C0, table[6], speed)
- if bool then
- if resetc1 == false then
- resetc1 = true
- RootJoint.C1 = RootJoint.C1
- Torso.Neck.C1 = Torso.Neck.C1
- RW.C1 = rarmc1
- LW.C1 = larmc1
- RH.C1 = rlegc1
- LH.C1 = llegc1
- end
- end
- end
- --[[PlayAnimationFromTable({
- CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), --torso
- CFrame.new(0, 1.5, 0) * CFrame.Angles(0, 0, 0), --head
- CFrame.new(1.5, 0, 0) * CFrame.Angles(0, 0, 0), --right arm
- CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, 0), --left arm
- CFrame.new(.5, -2, 0) * CFrame.Angles(0, 0, 0), --right leg
- CFrame.new(-.5, -2, 0) * CFrame.Angles(0, 0, 0), --left leg
- },.1,false)]]--
- Mouse.Button1Down:connect(function()if not Active then
- Active=true for i=1,2 do
- PlayAnimationFromTable({
- CFrame.new(0, 2, 0) * CFrame.Angles(0, 1, 0),CFrame.new(0, 1.5, 0) * CFrame.Angles(0, 0, 0),CFrame.new(1.5, .5, -.5) * CFrame.Angles(1.7, 0,1),
- CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, -.25),CFrame.new(.7, -2, -0) * CFrame.Angles(0, 0, .3),CFrame.new(-.7, -2, 0) * CFrame.Angles(0, 0, -.3),
- },1,true)wait()end
- GunSound:Play()Fire()
- if Targeted==nil then
- if Mouse.Target~=nil then
- spawn(function()dodamage(Mouse.Target,.1,Mouse.Hit.p)end)
- end
- else
- spawn(function()dodamage(TMark.Adornee,.1,TMark.Adornee.Position)end)
- end
- wait(.01)Active=false
- end
- end)
- walking=false
- spawn(function()
- while wait()do local idk=0
- while wait()and not Active do
- idk=idk+.1
- PlayAnimationFromTable({
- CFrame.new(0, math.sin(idk)/5+2, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0, 1.5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.5, math.sin(idk)/20, 0) * CFrame.Angles(0, 0, .25),
- CFrame.new(-1.5,math.sin(idk)/20, 0) * CFrame.Angles(0, 0, -.25),
- CFrame.new(.7, -2, -0) * CFrame.Angles(0, 0, .3),
- CFrame.new(-.7, -2, 0) * CFrame.Angles(0, 0, -.3),
- },.1,false)
- end
- end
- end)
- spawn(function()while wait()do if Gun then local p=Instance.new("Part")p.Size=Vector3.new(0,0,0)a(p)p.CanCollide=false
- local m=Instance.new("SpecialMesh",p)m.MeshId="rbxassetid://432256490"m.Scale=Vector3.new(.002,.002,.002)p.Color=Color3.new(1,1,1)p.Material="Neon"if Ghost then p.Parent=workspace.CurrentCamera else p.Parent=workspace end
- p.CFrame=RightArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromOrientation(1.5,0,3)spawn(function()for i=0,1,.25 do p.Transparency=i wait()end p:Destroy()end)end
- PL.Character=PC PC.Archivable=true if Ghost then PC.Parent=workspace.CurrentCamera else PC.Parent=workspace end
- workspace.CurrentCamera.CameraSubject=Humanoid
- Humanoid.MaxHealth=(1/0)/(1/0)
- Humanoid.Health=(1/0)/(1/0)timg.Rotation=timg.Rotation+5
- local B=Instance.new("SelectionSphere")B.Color3=Color3.new(0,0,0)B.Visible=true B.Transparency=1 local part=Instance.new("Part")part.CanCollide=false part.Transparency=1 part.Size=Vector3.new(10,10,10)B.Parent=part part.CFrame=PC.Torso.CFrame part.Parent=workspace B.Adornee=part a(part)debri:AddItem(part,.1)
- local child=PC.Torso:GetChildren()for i=1,#child do if not child[i]:IsA("Motor6D")and not child[i]:IsA("Motor")and not child[i]:IsA("Attachment")then child[i]:Destroy()end end
- local child=PC["Left Arm"]:GetChildren()for i=1,#child do if not child[i]:IsA("Attachment")then child[i]:Destroy()end end
- local child=PC["Left Leg"]:GetChildren()for i=1,#child do if not child[i]:IsA("Attachment")then child[i]:Destroy()end end
- local child=PC["Right Arm"]:GetChildren()for i=1,#child do if not child[i]:IsA("Attachment")then child[i]:Destroy()end end
- local child=PC["Right Leg"]:GetChildren()for i=1,#child do if not child[i]:IsA("Attachment")then child[i]:Destroy()end end
- local child=PC.Head:GetChildren()for i=1,#child do if not child[i]:IsA("SpecialMesh")and not child[i]:IsA("Weld")and not child[i]:IsA("Attachment")and child[i].Name~="face"then child[i]:Destroy()end end
- local m=""for i=1,27 do m=m..tostring(math.random(9))end Humanoid.Name=m
- local c=PC:GetChildren()for i=1,#c do if c[i]:IsA("Part")then c[i].Locked=true c[i].Anchored=false if Ghost then c[i].Transparency=.5 else c[i].Transparency=0 end end if c[i]:IsA("Accessory")or c[i]:IsA("Hat")then if c[i]:FindFirstChild("Handle")~=nil then c[i].Handle.Locked=true c[i].Handle.Anchored=false end end end PC.HumanoidRootPart.Transparency=1
- if PC:FindFirstChildOfClass("ForceField")then PC:FindFirstChildOfClass("ForceField").Visible=false else Instance.new("ForceField",PC)end
- Humanoid.PlatformStand=false if Freeze then Humanoid.WalkSpeed=0 else Humanoid.WalkSpeed=20 end
- if not Active then Freeze=false Gun=true end
- end end)
- game:GetService("UserInputService").InputBegan:connect(function(Key, Gpe)
- if not Gpe then
- if Key.KeyCode==Enum.KeyCode.Q and not Active then
- if Mouse.Target~=nil then
- if tostring(Mouse.Target.Parent)~=PL.Name then
- if Mouse.Target.Parent~=nil then
- if Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")~=nil then
- Targeted=Mouse.Target.Parent
- print(Targeted)
- TMark.Parent=Targeted
- if Targeted:FindFirstChild("Torso")~=nil then
- TMark.Adornee=Targeted.Torso TMark.Enabled=true
- else
- TMark.Adornee=Targeted.UpperTorso
- end
- end
- end
- end
- end
- elseif Key.KeyCode==Enum.KeyCode.Z and not Active then
- Active=true Freeze=true for i=1,25 do
- PlayAnimationFromTable({
- CFrame.new(0, 2, 0) * CFrame.Angles(0, 1, 0),CFrame.new(0, 1.5, 0) * CFrame.Angles(0, 0, 0),CFrame.new(1.5, .5, -.5) * CFrame.Angles(1.7, 0,1),
- CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, -.25),CFrame.new(.7, -2, -0) * CFrame.Angles(0, 0, .3),CFrame.new(-.7, -2, 0) * CFrame.Angles(0, 0, -.3),
- },.3,true)wait()end
- GunSound:Play()Fire()
- if Targeted==nil then
- if Mouse.Target~=nil then
- spawn(function()dodamage(Mouse.Target,5,Mouse.Hit.p,element)end)end
- else
- spawn(function()dodamage(TMark.Adornee,5,TMark.Adornee.Position,element)end)
- end
- wait(.01)Active=false
- elseif Key.KeyCode==Enum.KeyCode.B and not Active then PlaySound("rbxassetid://231917794",5,1)
- Active=true Freeze=true Gun=false for i=1,25 do
- PlayAnimationFromTable({
- CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), --torso
- CFrame.new(0, 1.5, 0) * CFrame.Angles(.5, 0, 0), --head
- CFrame.new(1.5, 0, 0) * CFrame.Angles(0, .3, 1), --right arm
- CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, -.3, -1), --left arm
- CFrame.new(.7, -2, 0) * CFrame.Angles(0, 0, .5), --right leg
- CFrame.new(-.7, -2, 0) * CFrame.Angles(0, 0, -.5), --left leg
- },.3,false)
- wait()end wait(.5)
- local p=Instance.new("Part")p.Size=Vector3.new(500,20,20)p.Position=PC.Torso.Position p.CanCollide=false a(p)p.Color=Color3.new(1,1,0)p.Material="Neon"p.Orientation=Vector3.new(0,0,90)local pos=p.CFrame p.Shape="Cylinder"
- p.Touched:connect(function(pt)dodamage(pt,.05,pt.Position)end)
- spawn(function()for i=30,1,-2.5 do p.Parent=nil p.Size=Vector3.new(500,i,i)p.Parent=workspace wait()end p:Destroy()end)
- for i=-20,70 do
- local p=Instance.new("Part")p.Size=Vector3.new(0,0,0)p.CanCollide=false a(p)local m=Instance.new("SpecialMesh",p)m.MeshId=Ring p.Position=PC.Torso.Position+Vector3.new(0,i*10,0)
- p.Color=Color3.new(0,0,0)p.Orientation=Vector3.new(90,0,0)local pos=p.CFrame p.Parent=workspace
- spawn(function()for i=0,1,.05 do m.Scale=Vector3.new(i*50+10,i*50+10,5)p.Transparency=i wait()end p:Destroy()end)
- end
- wait(.8)Active=false
- elseif Key.KeyCode==Enum.KeyCode.X and not Active then
- Active=true
- local s=CreateSound("rbxassetid://231917784",5,1)debri:AddItem(s,5)
- local pos=PC.HumanoidRootPart.CFrame
- spawn(function()
- for i=1,20 do
- local p=Instance.new("Part")p.CFrame=pos*CFrame.new(0,0,-i*10)local m=Instance.new("SpecialMesh",p)m.MeshId="rbxassetid://20329976"a(p)p.CanCollide=false p.Size=Vector3.new(8,15,8)
- local p2=Instance.new("Part")p2.CFrame=p.CFrame p2.Size=Vector3.new(0,0,0)a(p2)p2.CanCollide=false p2.Material="Neon"local m2=Instance.new("SpecialMesh",p2)m2.MeshType="Sphere"p2.Color=Color3.new(1,1,0)p2.Parent=workspace
- p.Touched:connect(function(pt)dodamage(pt,.1,pt.Position)end)local pos2=p.CFrame p.Parent=workspace s.TimePosition=.05 s:Play()
- spawn(function()for i=1,10 do m.Scale=m.Scale+Vector3.new(1,5,1)m2.Scale=m2.Scale+Vector3.new(20,100,20)p.Transparency=i/10 p2.Transparency=i/10 wait()end p:Destroy()end)
- wait(.1)
- end
- end)wait(1)Active=false
- elseif Key.KeyCode==Enum.KeyCode.T and not Active then
- TeleportSound.TimePosition=.1 TeleportSound:Play()
- PC.Parent=nil
- local c=PC:Clone()PC.HumanoidRootPart.CFrame=Mouse.Hit+Vector3.new(0,3.5,0)
- local gc=c:GetChildren()for i=1,#gc do if gc[i]:IsA("Humanoid")then gc[i]:Remove()end
- if gc[i]:IsA("Part")then gc[i].Anchored=true gc[i].CanCollide=false if gc[i]:FindFirstChild("face")~=nil then gc[i].face:Remove()end spawn(function()for i2=1,10 do gc[i].Material="Neon"gc[i].Color=Color3.new(1,1,0)gc[i].Transparency=i2/10 wait()end end)else gc[i]:Remove()end
- end debri:AddItem(c,3)
- PC.Parent=workspace c.Parent=workspace
- elseif Key.KeyCode==Enum.KeyCode.C then
- local p=Instance.new("Part")p.Color=Color3.new(1,1,0)p.Shape="Ball"p.CFrame=Mouse.Hit p.Size=Vector3.new(60,60,60)p.Material="Neon"p.Anchored=true p.CanCollide=false
- p.Touched:connect(function(pt)pt.Anchored=true wait(2)pt.Anchored=false end)p.Parent=workspace for i=1,10 do p.Parent=nil p.Transparency=i/10 p.Size=p.Size-Vector3.new(3,3,3)p.Parent=workspace wait()end
- elseif Key.KeyCode==Enum.KeyCode.M then
- if Ghost then Ghost=false else Ghost=true end
- elseif Key.KeyCode==Enum.KeyCode.F then
- if element=="ScriptKiller"then element="InstantKill"
- elseif element=="InstantKill"then element="ScriptKiller"
- end
- btxt.Text="Bullet Type:"..element
- elseif Key.KeyCode==Enum.KeyCode.One and not Active then
- clear()
- end
- end
- end)
Add Comment
Please, Sign In to add comment