Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ContentProvider = game:GetService("ContentProvider")
- local function LoadAssets(AssetList)
- -- Takes an asset list and preloads it. Will not wait for them to load.
- for _, AssetId in pairs(AssetList) do
- ContentProvider:Preload("http://www.roblox.com/asset/?id=" .. AssetId)
- end
- end
- LoadAssets({11442510,30956707})
- local Gibs = game.Workspace
- function Kill(Character)
- Character.Humanoid.Health = 0
- local poo = Instance.new("IntValue",Character)
- poo.Name = "haha nope"
- local svch = Character
- local hum = Character:findFirstChild("Humanoid")
- Character.Archivable = true
- local chrclone = Character:clone()
- Character.Archivable = false
- local ch = chrclone:GetChildren()
- local i
- for i = 1,#ch do
- if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
- ch[i]:remove()
- end
- end
- local function Scan(ch)
- local e
- for e = 1,#ch do
- Scan(ch[e]:GetChildren())
- if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
- ch[e]:remove()
- end
- end
- end
- Scan(chrclone:GetChildren())
- local hum2 = chrclone:findFirstChild("Humanoid")
- if hum2 ~= nil then
- hum2.Name = "Humanoid2"
- hum2.PlatformStand = true
- hum2.Sit = true
- hum2.MaxHealth = 0
- hum2.Health = 0
- end
- local ch = Character:GetChildren()
- local i
- for i = 1,#ch do
- if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
- ch[i]:remove()
- end
- end
- wait(0.2)
- local ch = Character:GetChildren()
- local i
- for i = 1,#ch do
- if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
- ch[i]:remove()
- end
- end
- Character = chrclone
- local Torso = Character.Torso
- local movevector = Vector3.new()
- if Torso then
- local Head = Character:FindFirstChild("Head")
- local Limb = Character:FindFirstChild("Right Arm")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "RightShoulder"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = Character:FindFirstChild("Left Arm")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "LeftShoulder"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = Character:FindFirstChild("Right Leg")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "RightHip"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = Character:FindFirstChild("Left Leg")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "LeftHip"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- --[
- local Bar = Instance.new("Part")
- Bar.TopSurface = 0
- Bar.BottomSurface = 0
- Bar.formFactor = "Symmetric"
- Bar.Size = Vector3.new(1, 1, 1)
- Bar.Transparency = 1
- Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
- Bar.Parent = Character
- local Weld = Instance.new("Weld")
- Weld.Part0 = Torso
- Weld.Part1 = Bar
- Weld.C0 = CFrame.new(0, 0.5, 0)
- Weld.Parent = Torso
- --]]
- end
- Character.Parent = Gibs
- game.Debris:AddItem(Character, 12)
- if movevector ~= Vector3.new() then
- for i = 1,10 do
- wait()
- Torso.Velocity = Vector3.new(0,0,-100)
- Head.Velocity = movevector * 200
- end
- end
- local duh = Torso
- ee = Instance.new("Part")
- ee.Anchored = false
- ee.CanCollide = false
- ee.Parent = duh
- ee.Transparency =1
- ee.Size = Vector3.new(0.15, 0.15, 0.15)
- wee = Instance.new("Weld")
- wee.Parent = duh
- wee.Part0 = duh
- wee.Part1 = ee
- wee.C0 = CFrame.new(0, 1, 0)
- ge = Instance.new('ParticleEmitter')
- ge.Parent = ee
- ge.Texture = "rbxassetid://29712167"
- ge.Size = NumberSequence.new(0.2,0.05)
- ge.Acceleration = Vector3.new(0, -20, 0)
- ge.Rate = 100000
- ge.Speed = NumberRange.new(7,8)
- ge.Lifetime = NumberRange.new(3,4)
- ge.VelocitySpread = 10
- ge.VelocityInheritance = 0.3
- ea = Instance.new("Part")
- ea.Anchored = false
- ea.CanCollide = false
- ea.Parent = Character.Head
- ea.Transparency =1
- ea.Size = Vector3.new(0.15, 0.15, 0.15)
- wea = Instance.new("Weld")
- wea.Parent = Character.Head
- wea.Part0 = Character.Head
- wea.Part1 = ea
- wea.C0 = CFrame.new(0, -0.7, 0)
- ga = Instance.new('ParticleEmitter')
- ga.Parent = ea
- ga.Texture = "rbxassetid://29712167"
- ga.Size = NumberSequence.new(0.2,0.05)
- ga.Acceleration = Vector3.new(0, -20, 0)
- ga.Rate = 100000
- ga.Speed = NumberRange.new(7,8)
- ga.Lifetime = NumberRange.new(3,4)
- ga.VelocitySpread = 10
- ga.VelocityInheritance = 0.3
- ga.EmissionDirection = Enum.NormalId.Bottom
- end
- local plr = game.Players.LocalPlayer
- local chr = plr.Character
- local mouse = plr:GetMouse()
- local intro = coroutine.wrap(function()
- local gui = Instance.new('ScreenGui',plr.PlayerGui)
- gui.Name = "Intro"
- local fr = Instance.new('Frame',gui)
- fr.Size = UDim2.new(0.4,0,0,0)
- fr.Position = UDim2.new(0.3,0,-0.1,0)
- fr.BorderColor3 = Color3.fromRGB(198, 45, 45)
- fr.BorderSizePixel = 5
- fr.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
- local title = Instance.new('TextLabel',fr)
- title.Size = UDim2.new(1,0,0.4,0)
- title.Position = UDim2.new(0,0,0.1,0)
- title.BackgroundTransparency = 1
- title.TextColor3 = Color3.fromRGB(198, 45, 45)
- title.TextScaled = true
- title.Text = 'Deadpool Script'
- local desc = Instance.new('TextLabel',fr)
- desc.Size = UDim2.new(1,0,0.5,0)
- desc.Position = UDim2.new(0,0,0.5,0)
- desc.BackgroundTransparency = 1
- desc.TextColor3 = Color3.fromRGB(198, 45, 45)
- desc.TextScaled = true
- desc.Text = ''
- wait(1)
- fr:TweenSize(UDim2.new(0.4,0,0.5,0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,2)
- wait(2)
- local str = 'Hotkey to equip katana is N. Use Z to stab and X to slice heads off. Created by mustardfoot.'
- local leng = string.len(str)
- for i = 1,leng do
- desc.Text = string.sub(str,1,i)
- wait()
- end
- wait(2)
- fr:TweenSize(UDim2.new(0.4,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,0.8)
- wait(2)
- gui:Destroy()
- end)
- intro()
- wait(2)
- local tors = chr.Torso
- chr.Head.Transparency = 1
- for i,v in pairs(chr:GetChildren()) do
- if v.ClassName == "CharacterMesh" then
- v:Destroy()
- end
- end
- local humroot = chr.HumanoidRootPart:Clone()
- local torsclone = tors:Clone()
- local anim = chr.Animate:Clone()
- local hum = chr.Humanoid:Clone()
- local head = chr.Head:Clone()
- local neck = chr.Torso.Neck:Clone()
- local rightarm = chr["Right Arm"]:Clone()
- local leftarm = chr["Left Arm"]:Clone()
- local leftleg = chr["Left Leg"]:Clone()
- local rightleg = chr["Right Leg"]:Clone()
- local rightshoulder = tors["Right Shoulder"]:Clone()
- local leftshoulder = tors["Left Shoulder"]:Clone()
- local righthip = tors["Right Hip"]:Clone()
- local lefthip = tors["Left Hip"]:Clone()
- local shirt = nil
- local pants = nil
- local hats = {}
- local lastpos = CFrame.new(0,0,0)
- local on = true
- local doing = false
- local stabbing = false
- local slicing = false
- local toolz = Instance.new('Tool',plr.Backpack)
- toolz.Name = "Katana"
- toolz.RequiresHandle = false
- toolz.CanBeDropped = false
- local partz = Instance.new('Part',toolz)
- partz.Size = Vector3.new(0,0,0)
- partz.CanCollide = false
- local meshz = Instance.new('SpecialMesh',partz)
- meshz.MeshId = 'rbxassetid://11442510'
- meshz.TextureId = 'rbxassetid://30956707'
- meshz.VertexColor = Vector3.new(0,0,0)
- toolz.Equipped:connect(function(mouse)
- if chr:FindFirstChild('Right Arm') then
- local weld = Instance.new('Weld',partz)
- weld.Part0 = partz
- weld.Part1 = chr["Right Arm"]
- weld.C0 = CFrame.new(0.9,0,-1.25)*CFrame.Angles(math.pi,0,-math.pi/2)
- end
- mouse.KeyDown:connect(function(key)
- if doing == false then
- if key == 'z' then
- if chr:FindFirstChild('Right Arm') and chr:FindFirstChild('Torso') then
- doing = true
- local weld = Instance.new('Weld',chr["Right Arm"])
- weld.Part0 = chr["Right Arm"]
- weld.Part1 = chr.Torso
- weld.C0 = CFrame.new(-1.5,0,0)
- for i=1,25 do
- weld.C0 = weld.C0:lerp(CFrame.new(-1.5,1,0.9)*CFrame.Angles(math.pi/2.5,0,-math.pi/2.5),i/25)
- wait()
- end
- wait()
- stabbing = true
- for i=1,10 do
- weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0.8,0)*CFrame.Angles(-math.pi/4,0,-math.pi/6),i/10)
- wait()
- end
- wait()
- for i=1,25 do
- weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i/25)
- wait()
- end
- chr["Right Arm"]:Destroy()
- doing = false
- stabbing = false
- end
- elseif key == 'x' then
- if chr:FindFirstChild('Right Arm') and chr:FindFirstChild('Torso') then
- doing = true
- local weld = Instance.new('Weld',chr["Right Arm"])
- weld.Part0 = chr["Right Arm"]
- weld.Part1 = chr.Torso
- weld.C0 = CFrame.new(-1.5,0,0)
- for i=1,25 do
- weld.C0 = weld.C0:lerp(CFrame.new(-0.5,0.7,-0.5)*CFrame.Angles(math.pi/8,math.pi/1,math.pi/1.5),i/25)
- wait()
- end
- wait()
- slicing = true
- for i=1,5 do
- weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0.8,0)*CFrame.Angles(-math.pi/8,0,-math.pi/4),i/5)
- wait()
- end
- wait()
- for i=1,12.5 do
- weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i/12.5)
- wait()
- end
- chr["Right Arm"]:Destroy()
- doing = false
- slicing = false
- end
- end
- end
- end)
- end)
- partz.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild('Humanoid') and stabbing and hit.Parent ~= chr then
- hit.Parent.Humanoid.Health = 0
- elseif hit.Parent:FindFirstChild('heck') == nil and slicing then
- local he = Instance.new('IntValue',hit.Parent)
- he.Name = "heck"
- Kill(hit.Parent)
- end
- end)
- toolz.Unequipped:connect(function(mouse)
- if partz:FindFirstChildOfClass('Weld') then
- partz:FindFirstChildOfClass('Weld'):Destroy()
- end
- end)
- toolz.AncestryChanged:connect(function(child, parent)
- if parent ~= chr and parent ~= plr.Backpack then
- wait()
- toolz.Parent = plr.Backpack
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "n" then
- wait()
- toolz:Equip()
- end
- end)
- if chr:FindFirstChildOfClass('Shirt') then
- shirt = chr:FindFirstChildOfClass('Shirt'):Clone()
- end
- if chr:FindFirstChildOfClass('Pants') then
- pants = chr:FindFirstChildOfClass('Pants'):Clone()
- end
- for i,v in pairs(chr:GetChildren()) do
- if v.ClassName == "Accessory" then
- table.insert(hats,v:Clone())
- end
- end
- local rootjoint = chr.HumanoidRootPart.RootJoint:Clone()
- chr.Humanoid:Destroy()
- local gui = Instance.new('ScreenGui')
- gui.Parent = game.Players.LocalPlayer.PlayerGui
- gui.Name = "Deadpool"
- gui.ResetOnSpawn = false
- local frame = Instance.new('Frame',gui)
- frame.Size = UDim2.new(0.2,0,0.2,0)
- frame.Position = UDim2.new(0,0,0.9,0)
- frame.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
- frame.BorderSizePixel = 4
- frame.BorderColor3 = Color3.fromRGB(198, 45, 45)
- frame.Active = true
- frame.Draggable = true
- local txt = Instance.new('TextLabel',frame)
- txt.Text = "Demon Gui"
- txt.TextColor3 = Color3.fromRGB(198, 45, 45)
- txt.Size = UDim2.new(1,0,0.3,0)
- txt.TextScaled = true
- txt.BackgroundTransparency = 1
- local but = Instance.new('TextButton',frame)
- but.Text = "Toggle Suit"
- but.TextColor3 = Color3.fromRGB(38, 38, 38)
- but.Size = UDim2.new(0.7,0,0.3,0)
- but.Position = UDim2.new(0.15,0,0.5,0)
- but.BorderSizePixel = 0
- but.TextScaled = true
- but.BackgroundColor3 = Color3.fromRGB(198, 45, 45)
- but.MouseButton1Down:connect(function()
- on = not on
- end)
- game:GetService('RunService').Stepped:connect(function()
- if chr.Parent == nil then
- chr.RobloxLocked = false
- chr.Parent = game.Workspace
- end
- if chr:FindFirstChildOfClass('Humanoid') == nil then
- hum:Clone().Parent = chr
- chr.Animate:Destroy()
- anim:Clone().Parent = chr
- end
- if chr:FindFirstChild('HumanoidRootPart') == nil then
- humroot:Clone().Parent = chr
- humroot.CFrame = lastpos
- chr.Humanoid:Destroy()
- hum:Clone().Parent = chr
- chr.Animate:Destroy()
- anim:Clone().Parent = chr
- chr.HumanoidRootPart.RootJoint:Destroy()
- end
- if chr:FindFirstChild('Torso') == nil then
- chr.Humanoid:Destroy()
- local tor = tors:Clone()
- tor.Parent = chr
- hum:Clone().Parent = chr
- chr.Animate:Destroy()
- anim:Clone().Parent = chr
- end
- if chr.HumanoidRootPart:FindFirstChild('RootJoint') == nil then
- local rtj = rootjoint:Clone()
- rtj.Parent = chr.HumanoidRootPart
- rtj.Part0 = chr.HumanoidRootPart
- rtj.Part1 = chr.Torso
- end
- if chr:FindFirstChild('Head') == nil then
- chr.Humanoid:Destroy()
- head:Clone().Parent = chr
- hum:Clone().Parent = chr
- chr.Animate:Destroy()
- anim:Clone().Parent = chr
- end
- if chr.Torso:FindFirstChild('Neck') == nil then
- chr.Humanoid:Destroy()
- local hec = neck:Clone()
- hec.Parent = chr.Torso
- hec.Part0 = chr.Torso
- hec.Part1 = chr.Head
- hum:Clone().Parent = chr
- chr.Animate:Destroy()
- anim:Clone().Parent = chr
- end
- if chr:FindFirstChild('Right Leg') == nil then
- rightleg:Clone().Parent = chr
- local fi = righthip:Clone()
- fi.Parent = chr.Torso
- fi.Part0 = chr.Torso
- fi.Part1 = chr["Right Leg"]
- end
- if chr:FindFirstChild('Right Arm') == nil then
- rightarm:Clone().Parent = chr
- local fi = rightshoulder:Clone()
- fi.Parent = chr.Torso
- fi.Part0 = chr.Torso
- fi.Part1 = chr["Right Arm"]
- end
- if chr:FindFirstChild('Left Leg') == nil then
- leftleg:Clone().Parent = chr
- local fi = lefthip:Clone()
- fi.Parent = chr.Torso
- fi.Part0 = chr.Torso
- fi.Part1 = chr["Left Leg"]
- end
- if chr:FindFirstChild('Left Arm') == nil then
- leftarm:Clone().Parent = chr
- local fi = leftshoulder:Clone()
- fi.Parent = chr.Torso
- fi.Part0 = chr.Torso
- fi.Part1 = chr["Left Arm"]
- end
- for i,v in pairs(chr:GetChildren()) do
- if v.Name == "Mask" or v.ClassName == "Accessory" or v.ClassName == "Shirt" or v.ClassName == "Pants" or v.Name == "KatanaHolder" then
- v:Destroy()
- end
- end
- chr.Humanoid.Health = chr.Humanoid.MaxHealth
- if partz:FindFirstChild('Weld') == nil and toolz.Parent == chr then
- local weld = Instance.new('Weld',partz)
- weld.Part0 = partz
- weld.Part1 = chr["Right Arm"]
- weld.C0 = CFrame.new(0.9,0,-1.25)*CFrame.Angles(math.pi,0,-math.pi/2)
- end
- lastpos = chr.HumanoidRootPart.CFrame
- local kat = Instance.new('Part',chr)
- kat.Size = Vector3.new(0.4,3,0.2)
- kat.Name = "KatanaHolder"
- kat.Material = Enum.Material.SmoothPlastic
- kat.BrickColor = BrickColor.new('Really black')
- kat.CanCollide = false
- local we = Instance.new('Weld',kat)
- we.Part0 = kat
- we.Part1 = chr.Torso
- we.C0 = CFrame.new(0,0,-0.5)*CFrame.Angles(0,0,0.5)
- if on == true then
- local shirt = Instance.new('Shirt',chr)
- shirt.ShirtTemplate = 'rbxassetid://1159325231'
- local pants = Instance.new('Pants',chr)
- pants.PantsTemplate = 'rbxassetid://787069171'
- else
- chr.Head.Transparency = 0
- if shirt ~= nil then
- shirt:Clone().Parent = chr
- end
- if pants ~= nil then
- pants:Clone().Parent = chr
- end
- for i,v in pairs(hats) do
- v:Clone().Parent = chr
- end
- end
- end)
- wait()
- script.Name = "_.:| E-Shield |:._"
- --script.Parent = _EShield_
- local LocalPlayer = game:service'Players'.LocalPlayer
- local b, Platform = nil
- local PlayerOnly = false
- local Touched = {}
- local Mouse = LocalPlayer:GetMouse()
- local ShiftDown, CtrlDown, MouseDown, Mouse2Down, MouseDeb, Mouse2Tick = false, false, false, false, false, 0
- function Create()
- if b then pcall(function() b:Destroy() end) end
- if Platform then pcall(function() Platform:Destroy() end) end
- local t = LocalPlayer.Character:FindFirstChild("Torso")
- local posit = Vector3.new(0, 50, 0)
- if t then posit = t.Position end
- Platform = Instance.new("Part")
- Platform.formFactor = "Custom"
- Platform.Size = Vector3.new(10, 1, 10)
- Platform.Transparency = 1
- Platform.Anchored = true
- Platform.CanCollide = true
- b = Instance.new("Part", game:service'Workspace')
- b.Position = posit
- b.Shape = "Block"
- b.Transparency = 1
- b.Anchored = true
- b.Reflectance = 0
- b.Size = Mouse2Down and Vector3.new(15, 15, 15) or Vector3.new(10, 10, 10)
- b.Color = Mouse2Down and Color3.new(0, 0, 0) or Color3.new(0, 0, 0)
- b.TopSurface = "Smooth"
- b.BottomSurface = "Smooth"
- b.Locked = true
- b.CanCollide = false
- b.Changed:connect(function(w)
- if w == "Parent" then
- Create()
- end
- end)
- b.Touched:connect(function(obj)
- if obj.Name ~= "WillNotBeRemoved" and not TouchedStatus(obj) and not obj:IsDescendantOf(LocalPlayer.Character) and not obj:IsDescendantOf(game:service'Workspace'.CurrentCamera) and obj.Name ~= "Base" and obj.className == "Part" then
- table.insert(Touched, obj)
- if PlayerOnly then
- if GetPlayer(obj) then
- Destroying(obj)
- end
- else
- Destroying(obj)
- end
- end
- end)
- end
- function GetRecursiveChildren(Parent)
- local ret = {}
- for i, v in pairs(Parent:GetChildren()) do
- if #v:GetChildren() > 0 then
- local childs = GetRecursiveChildren(v)
- for i1, v1 in pairs(childs) do
- ret[#ret + 1] = v1
- end
- end
- ret[#ret + 1] = v
- end
- return ret
- end
- function GetPlayer(Target)
- for _,v in pairs(game:service'Players':GetPlayers()) do
- if v.Character ~= nil and Target:IsDescendantOf(v.Character) then
- return v
- end
- end
- return nil
- end
- function TouchedStatus(Target)
- for _,v in pairs(Touched) do
- if v == Target then
- return true
- end
- end
- return false
- end
- function Destroying(obj)
- local ran, err = coroutine.resume(coroutine.create(function()
- if not Mouse2Down then
- obj:BreakJoints()
- obj.CanCollide = false
- obj.Anchored = false
- obj.formFactor = "Custom"
- obj.Size = obj.Size * Vector3.new(math.random(), math.random(), math.random())
- local bp = Instance.new("BodyPosition")
- bp.maxForce = Vector3.new(1/0,1/0,1/0)
- bp.Parent = obj
- local X, Y, Z = nil, nil, nil
- coroutine.wrap(function()
- while obj and obj.Parent do
- X, Y, Z = math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)
- wait(0.3)
- end
- end)()
- coroutine.wrap(function()
- while obj and obj.Parent do
- bp.position = LocalPlayer.Character.Torso.Position + Vector3.new(X, Y, Z)
- wait()
- end
- end)()
- coroutine.wrap(function()
- local transp = 0
- for i = 1, 50 do
- transp = transp + 0.02
- obj.Transparency = transp
- wait(0.05)
- end
- game:service'Debris':AddItem(obj, 0)
- end)()
- elseif Mouse2Down then
- local selbox = Instance.new("SelectionBox", obj)
- selbox.Adornee = obj
- selbox.Color = BrickColor.new("Really red")
- selbox.Transparency = 0
- wait(2)
- coroutine.wrap(function()
- local transp = 0
- local Size, Position = obj.Size, obj.Position
- local brickTable = {}
- game:service'Debris':AddItem(obj, 0)
- for i = 1, math.random(2, 4) do
- local x, y, z = math.random(), math.random(), math.random()
- local Brick = Instance.new("Part")
- Brick.Name = "WillNotBeRemoved"
- Brick.Parent = game:service'Workspace'
- Brick.BrickColor = BrickColor.new("White")
- Brick.Size = Size * Vector3.new(x, y, z)
- Brick.CFrame = CFrame.new(Position) * CFrame.Angles( x * 180, y * 180, z * 180)
- Brick.Locked = true
- Brick.Anchored = false
- Brick.CanCollide = false
- local Selection = Instance.new("SelectionBox", Brick)
- Selection.Adornee = Brick
- Selection.Color = BrickColor.new("White")
- Selection.Transparency = 0
- local BodyVelo = Instance.new("BodyVelocity", Brick)
- BodyVelo.maxForce = Vector3.new(1/0, 1/0, 1/0)
- BodyVelo.velocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
- brickTable[#brickTable + 1] = {Brick, Selection}
- end
- for i = 1, 50 do
- transp = transp + 0.02
- for i1, v in pairs(brickTable) do
- v[1].Transparency = transp
- v[2].Transparency = transp
- end
- wait(0.05)
- end
- --for i, v in pairs(brickTable) do game:service'Debris':AddItem(v[1], 0) game:service'Debris':AddItem(v[2], 0) end
- end)()
- end
- end))
- if not ran then print(".:| EShield |:. " .. err) end
- end
- Create()
- Mouse.Button1Down:connect(function()
- MouseDown = true
- end)
- Mouse.Button1Up:connect(function()
- MouseDown = false
- end)
- Mouse.KeyDown:connect(function(key)
- local key = type(key) == "string" and key:lower() or ""
- if key == "r" then
- print = function() end
- script:Destroy()
- for i, v in pairs(getfenv()) do pcall(function() v:Destroy() end) getfenv()[i] = nil end
- end
- end)
- Mouse.Button2Down:connect(function()
- if not Mouse2Down then
- Mouse2Tick = tick()
- Mouse2Down = true
- coroutine.wrap(function()
- for i = 1.1, 0, -0.1 do if Mouse2Down then b.Color = Color3.new(0, 0, i) end wait(0.01) end
- for i = 0, 1.1, 0.1 do if Mouse2Down then b.Color = Color3.new(i, 0, 0) end wait(0.01) end
- end)()
- coroutine.wrap(function()
- for i = 15, 25 do if Mouse2Down then b.Size = Vector3.new(i, i, i) b.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position) end wait(0.05) end
- end)()
- end
- end)
- Mouse.Button2Up:connect(function()
- if Mouse2Down then
- if math.floor(tick() - Mouse2Tick) > 1 then
- Mouse2Down = false
- coroutine.wrap(function()
- for i = 1.1, 0, -0.1 do if not Mouse2Down then b.Color = Color3.new(i, 0, 0) end wait(0.01) end
- for i = 0, 1.1, 0.1 do if not Mouse2Down then b.Color = Color3.new(0, 0, i) end wait(0.01) end
- end)()
- coroutine.wrap(function()
- for i = 25, 15, -1 do if not Mouse2Down then b.Size = Vector3.new(i, i, i) b.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position) end wait(0.05) end
- end)()
- end
- end
- end)
- Mouse.KeyDown:connect(function(key)
- if key == "0" then
- ShiftDown = true
- elseif key == "1" or key == "2" then
- CtrlDown = true
- end
- end)
- Mouse.KeyUp:connect(function(key)
- if key == "0" then
- ShiftDown = false
- elseif key == "1" or key == "2" then
- CtrlDown = false
- end
- end)
- coroutine.wrap(function()
- while wait(0.05) do
- for i = 0.2, 0.8, 0.1 do
- b.Transparency = i
- wait(0.05)
- end
- for i = 0.7, 0.1, -0.1 do
- b.Transparency = i
- wait(0.05)
- end
- end
- end)()
- game:service'RunService'.Stepped:connect(function()
- coroutine.resume(coroutine.create(function()
- b.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position)
- end))
- coroutine.resume(coroutine.create(function()
- for i, v in pairs(Touched) do
- if v.Parent == nil or v == nil then
- table.remove(Touched, i)
- end
- end
- end))
- coroutine.resume(coroutine.create(function()
- local Height = LocalPlayer.Character.Torso.CFrame.y - 3.5
- if ShiftDown then
- Height = Height - 0.25
- if CtrlDown then
- Height = Height - 0.75
- end
- end
- local TargetCFrame = LocalPlayer.Character.Torso.CFrame
- local TargetAngle = LocalPlayer.Character.Torso.CFrame.lookVector
- Platform.Parent = game:service'Workspace'.CurrentCamera
- Platform.CFrame = CFrame.new(TargetCFrame.x, Height, TargetCFrame.z)
- Platform.CanCollide = true
- LocalPlayer.Character.Torso.CFrame = TargetCFrame * CFrame.new(0, -(TargetCFrame.y) + Height + 3.5, 0)
- end))
- coroutine.resume(coroutine.create(function()
- if LocalPlayer.Parent ~= nil then
- for i, v in pairs(GetRecursiveChildren(LocalPlayer.Character)) do
- if v.className == "Part" then v.CanCollide = false end
- end
- end
- end))
- coroutine.resume(coroutine.create(function()
- if MouseDown and not MouseDeb and not Mouse2Down then
- MouseDeb = true
- coroutine.wrap(function() wait(1) MouseDeb = false end)()
- local dist = Instance.new("Part")
- dist.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position)
- dist.formFactor = "Custom"
- dist.Shape = "Ball"
- dist.Name = "WillNotBeRemoved"
- dist.Transparency = 0
- dist.Reflectance = 0.1
- dist.Size = Vector3.new(10, 10, 10)
- dist.BrickColor = BrickColor.new("New Yeller")
- dist.TopSurface = "Smooth"
- dist.Anchored = true
- dist.BottomSurface = "Smooth"
- dist.Locked = true
- dist.CanCollide = false
- dist.Parent = game:service'Workspace'
- dist.Touched:connect(function(obj)
- coroutine.resume(coroutine.create(function()
- local Player = GetPlayer(obj)
- if Player and Player ~= LocalPlayer and Player.Character and Player.Character:FindFirstChild("Torso") then
- local BV = Instance.new("BodyVelocity", Player.Character.Torso)
- BV.maxForce = Vector3.new(1/0, 1/0, 1/0)
- BV.velocity = ((LocalPlayer.Character.Torso.Position - Player.Character.Torso.Position).unit * -50)
- game:service'Debris':AddItem(BV, 1)
- elseif not Player and obj ~= b and obj.Name ~= "Base" and not obj:IsDescendantOf(game:service'Workspace'.CurrentCamera) then
- obj:BreakJoints()
- obj.Anchored = false
- obj.CanCollide = false
- local BV = Instance.new("BodyVelocity", obj)
- BV.maxForce = Vector3.new(1/0, 1/0, 1/0)
- BV.velocity = ((LocalPlayer.Character.Torso.Position - obj.Position).unit * -50)
- game:service'Debris':AddItem(BV, 1)
- end
- end))
- end)
- coroutine.wrap(function()
- for i = 1, 100 do
- dist.Transparency = dist.Transparency + 0.01
- dist.Size = dist.Size + Vector3.new(1, 1, 1)
- dist.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position)
- wait()
- end
- game:service'Debris':AddItem(dist, 0)
- end)()
- end
- end))
- end)
- plr = game.Players.LocalPlayer
- mouse = plr:GetMouse()
- part = nil
- bp = nil
- particles = nil
- function clerp(a,b,c,d)
- for i = 0,d,.01 do
- a.CFrame = CFrame.new(b:lerp(c,i))
- wait()
- end
- end
- function slerp(a2,b2,c2,d2)
- for i2 = 0,d2,.01 do
- a2.CFrame = CFrame.new(b2:lerp(c2,i2))
- wait()
- end
- end
- mouse.KeyDown:connect(function(key)
- if key == "e" and plr.Character.Parent == workspace then
- plr.Character.Parent = workspace.Camera
- plr.Character.Archivable = true
- Instance.new("ForceField",plr.Character).Visible = false
- for y,t in pairs(plr.Character:GetChildren()) do
- if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
- t.Transparency = 0.3
- if t.Name == "Head" and t:FindFirstChild("face") then
- t.face.Transparency = 1
- end
- elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
- t.Handle.Transparency = 1
- end
- end
- elseif key == "z" and plr.Character.Parent == workspace.Camera and part == nil then
- plr.Character.Torso.CFrame = CFrame.new(Vector3.new(mouse.hit.p.X,mouse.hit.p.Y+1.5,mouse.hit.p.Z),plr.Character.Torso.CFrame.p)
- elseif key == "x" and plr.Character.Parent == workspace.Camera and part == nil then
- if plr.Character.Torso.Anchored == true then
- for y,t in pairs(plr.Character:GetChildren()) do
- if t:IsA("Part") then
- t.Anchored = false
- end
- end
- else
- for y,t in pairs(plr.Character:GetChildren()) do
- if t:IsA("Part") then
- t.Anchored = true
- end
- end
- end
- elseif key == "c" and plr.Character.Parent == workspace.Camera and part ~= nil then
- local clone = part:Clone()
- clone.Parent = workspace
- clone.Anchored = false
- clone:ClearAllChildren()
- clone.CanCollide = true
- bp.Parent = clone
- particles.Parent = clone
- if part.Parent:FindFirstChildOfClass("Humanoid") then
- part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
- end
- part:Destroy()
- part = clone
- elseif key == "t" and plr.Character.Parent == workspace.Camera and part == nil then
- plr.Character.Parent = workspace
- plr.Character.Archivable = false
- plr.Character:FindFirstChildOfClass("ForceField"):Remove()
- for y,t in pairs(plr.Character:GetChildren()) do
- if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
- t.Transparency = 0
- if t.Name == "Head" and t:FindFirstChild("face") then
- t.face.Transparency = 0
- end
- elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
- t.Handle.Transparency = 0
- end
- end
- end
- end)
- mouse.Button1Down:connect(function()
- if plr.Character.Parent == workspace.Camera then
- if mouse ~= nil then
- if mouse.Target ~= nil then
- part = mouse.Target
- bp = Instance.new("BodyPosition",part)
- bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bp.Position = part.Position
- particles = Instance.new("ParticleEmitter",part)
- particles.Color = ColorSequence.new(Color3.new(255, 255, 255))
- particles.Size = NumberSequence.new(20)
- particles.Texture = "rbxassetid://522606102"
- particles.VelocitySpread = 360
- particles.Speed = NumberRange.new(0)
- particles.RotSpeed = NumberRange.new(0)
- particles.Rotation = NumberRange.new(0)
- particles.Rate = 250
- particles.Lifetime = NumberRange.new(1.5, 3.75)
- particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
- dwn = true
- end
- end
- while dwn == true do
- wait()
- bp.Position = mouse.hit.p
- if part then
- if part.Parent:FindFirstChildOfClass("Humanoid") then
- part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
- end
- end
- end
- end
- end)
- mouse.Button1Up:connect(function()
- dwn = false
- if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
- if bp then bp:Destroy() end
- if particles then particles:Destroy() end
- end)
- base = Instance.new("ScreenGui",plr.PlayerGui)
- bbg = Instance.new("BillboardGui",plr.Character.Head)
- bbg.Size = UDim2.new(0,200,0,50)
- bbg.StudsOffset = Vector3.new(0,3,0)
- bbgTl = Instance.new("TextLabel",bbg)
- bbgTl.BackgroundTransparency = 1
- bbgTl.Size = UDim2.new(10,0,1,0)
- bbgTl.Position = UDim2.new(-4.5,0,0,0)
- bbgTl.Font = "Code"
- bbgTl.Text = " "
- bbgTl.TextSize = 70
- bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
- bbgTl.TextColor3 = Color3.new(201,201,201)
- bbgTl.TextStrokeTransparency = 0
- bbgTl.TextWrapped = true
- plr.Chatted:connect(function(msg)
- bbgTl.Text = msg
- wait(5)
- if bbgTl.Text == msg then
- bbgTl.Text = " "
- end
- end)
- touchCounter = 0
- while wait() do
- if plr.Character.Parent == workspace.Camera then
- local c = plr.Character:Clone()
- c:MakeJoints()
- for y,t in pairs(c:GetChildren()) do
- if t:IsA("Part") then
- t.CanCollide = false
- t.Anchored = true
- t.Transparency = 0.99
- t.TopSurface = "Smooth"
- t.BottomSurface = "Smooth"
- t.RightSurface = "Smooth"
- t.LeftSurface = "Smooth"
- t.FrontSurface = "Smooth"
- t.BackSurface = "Smooth"
- t.BrickColor = BrickColor.new("grey")
- if t.Name == "Head" and t:FindFirstChild("face") then
- t.face:Remove()
- elseif t.Name == "Torso" and t:FindFirstChild("roblox") then
- t.roblox:Remove()
- elseif t.Name == "HumanoidRootPart" then
- t:Remove()
- end
- else
- t:Remove()
- end
- end
- c.Parent = workspace
- game.Debris:AddItem(c,.05)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement