Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility by WaverlyCole");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};
- do
- script.Parent = InternalData.RealOwner.Character
- local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
- local function createObject (connections, index)
- local proxy = newproxy (true);local meta = getmetatable (proxy);
- local runbind = function (self, i, ...) connections[i]:Fire (...); end;
- while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
- meta.__index = function (self, i)
- if (i == 'TriggerEvent') then return runbind end;
- return connections[i] and connections[i].Event or index[i];
- end;
- meta.__newindex = index;meta.__metatable = false;return proxy
- end;
- local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up","Move","Button2Down","Button2Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
- local UserInputService = createObject({"InputBegan","InputEnded"},{})
- local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
- self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
- end};ContextActionService.UnBindAction = ContextActionService.BindAction
- Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy ~= InternalData.RealOwner then return end
- if Input.MouseEvent then
- Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
- Mouse:TriggerEvent("Move")
- elseif Input.Sound then
- if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
- else
- local Begin = Input.UserInputState == Enum.UserInputState.Begin
- if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
- if Input.UserInputType == Enum.UserInputType.MouseButton2 then return Mouse:TriggerEvent(Begin and "Button2Down" or "Button2Up") end
- for _,Action in pairs(ContextActionService.Actions) do
- for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
- end
- Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
- end
- end)
- InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
- Event.Parent = NLS([[
- local Player = owner;
- local Sounds = {};
- local Event = script:WaitForChild("UserInput");
- local UserInputService = game:GetService("UserInputService");
- local Mouse = Player:GetMouse();
- local Input = function(Input,gameProcessedEvent)
- if gameProcessedEvent then return end
- Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
- end
- Event.OnClientEvent:connect(function(Args)
- if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end
- end)
- UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
- local Hit,Target
- while wait(1/30) do
- for x,Sound in pairs(Sounds) do
- if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
- end
- if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
- Hit = Mouse.Hit;Target = Mouse.Target;
- Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
- end
- end
- ]],InternalData.RealOwner.Character)
- end
- InternalData.NewOwner = setmetatable({},{
- __index = function (self,Index)
- local Type = type(InternalData.RealOwner[Index])
- if Type == "function" then
- if Index:lower() == "getmouse" or Index:lower() == "mouse" then
- return function (self)return InternalData["Mouse"] end
- end
- return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end
- elseif Index == "FakePlayer" then
- return true
- end
- return InternalData.RealOwner[Index]
- end;
- __tostring = function(self) return tostring(InternalData.RealOwner) end
- })
- InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
- if Library == "RbxUtility" then
- return setmetatable({},{
- __tostring = function() return "RbxUtility" end;
- __index = function(self, Index)
- if Index:lower() == "create" then
- return function(Type)
- return function(Data)
- Data = Data or {}
- local Inst = Instance.new(Type)
- for x,y in pairs(Data) do
- if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
- if y == owner then y = InternalData.RealOwner end
- Inst[x] = y
- end
- return Inst
- end
- end
- end
- return InternalData.LoadLibrary(Library)[Index]
- end
- })
- end
- return InternalData.LoadLibrary(Library)
- end
- InternalData.RealInstance = Instance;Instance = setmetatable({},{
- __index = function (self,Index)
- if Index:lower() == 'new' then
- return function (Type, Parent)
- if Parent == owner then Parent = InternalData.RealOwner end
- if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
- local Real = InternalData.RealInstance.new(Type,Parent)
- if not Type then return end
- if Type == "BillboardGui" then
- local ToReturn = setmetatable({},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then
- if Index:lower() == "clone" then
- return function (self)
- local Real = Real:Clone()
- local ToReturn = setmetatable({RealObject = Real},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- return function (self,...) return Real[Index](Real,...)end
- end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- elseif Type:lower() == "sound" then
- Real.Parent = owner.Character;
- local ToReturn = setmetatable({RealObject = Real},{
- __index = function (self,Index)
- if Index:lower() == "playbackloudness" then
- return InternalData.SoundLoudness[Real] or 0
- elseif type(Real[Index]) == "function" then
- if Index:lower() == "clone" then
- return function (self)
- local Real = Real:Clone()
- local ToReturn = setmetatable({},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- return function (self,...) return Real[Index](Real,...)end
- end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
- else
- local ToReturn = setmetatable({RealObject = Real},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then
- if Index:lower() == "clone" then
- return function (self)
- local Real = Real:Clone()
- local ToReturn = setmetatable({},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- return function (self,...) return Real[Index](Real,...)end
- end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- end
- return InternalData.RealInstance[Index]
- end;
- __tostring = function(self) return tostring(InternalData.RealInstance) end;
- });
- InternalData.RealGame = game;game = setmetatable({},{
- __index = function (self,Index)
- if InternalData.RealGame[Index] then
- local Type = type(InternalData.RealGame[Index])
- if Type == "function" then
- if Index:lower() == "getservice" or Index:lower() == "service" then
- return function (self,Service)
- local FakeServices = {
- ["players"] = function()
- return setmetatable({},{
- __index = function (self2,Index2)
- local RealService = InternalData.RealGame:GetService(Service)
- local Type2 = type(RealService[Index2])
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...)end
- else
- if Index2:lower() == "localplayer" then return InternalData.NewOwner end
- return RealService[Index2]
- end
- end;
- __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
- })
- end;
- ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
- ["userinputservice"] = function() return InternalData["UserInputService"] end;
- ["debris"] = function()
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = InternalData.RealGame:GetService(Service)
- local Type2 = type(RealService[Index2])
- if Type2 == "function" then
- if Index2:lower() == "additem" then
- return function (self,Item,Time)
- if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
- return RealService:AddItem(Item,Time)
- end
- end
- return function (self,...) return RealService[Index2](RealService,...) end
- end
- return RealService[Index2]
- end;
- __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
- })
- end;
- ["runservice"] = function()
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = InternalData.RealGame:GetService(Service)
- local Type2 = type(RealService[Index2])
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...) end
- else
- local RunServices = {
- ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
- ["renderstepped"] = function() return RealService["Stepped"] end
- }
- if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
- return RealService[Index2]
- end
- end;
- __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
- })
- end
- }
- if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
- return InternalData.RealGame:GetService(Service)
- end
- end
- return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
- else
- if game:GetService(Index) then return game:GetService(Index) end
- return InternalData.RealGame[Index]
- end
- end
- return nil
- end;
- __tostring = function(self) return tostring(InternalData.game) end
- });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
- --//Paste script below this line.
- --//--The crowbar by vlad20020--\\--
- local ft = tick()
- plr = game:GetService("Players").LocalPlayer
- char = plr.Character
- ra = char["Right Arm"]
- la = char["Left Arm"]
- rl = char["Right Leg"]
- ll = char["Left Leg"]
- h = char.Head
- t = char.Torso
- deb = false
- local using = false
- mouse = plr:GetMouse()
- local derbs = game:GetService("Debris")
- local huge = math.huge
- local rand = math.random
- local v3 = Vector3
- local v3n = v3.new
- local cf = CFrame
- local cfn = cf.new
- local cfa = cf.Angles
- local bc = BrickColor
- local ic = Instance
- local icn = ic.new
- local co = coroutine
- local cor = co.resume
- local coc = co.create
- --
- rs = t["Right Shoulder"]
- ls = t["Left Shoulder"]
- rh = t["Right Hip"]
- lh = t["Left Hip"]
- nec = t.Neck
- local ff = icn("ForceField",char)
- ff.Visible = false
- ---
- cb = icn("Part", char) cb.Size = Vector3.new(0.5, .5, 4)cb.CanCollide = false cb.Material = "Neon"
- wcb = icn("Weld",cb) wcb.Part0 = cb wcb.Part1 = t wcb.C0 = wcb.C0 * CFrame.new(-.3,0,-.5) wcb.C0 = wcb.C0 * cfa(90,90,0)
- me = icn("SpecialMesh",cb) me.MeshType = "FileMesh" me.MeshId = "http://www.roblox.com/asset/?id=21426303" me.Scale = v3n(0.7, 0.7, 0.7)
- ----
- local force = icn("BodyVelocity") force.MaxForce = v3n(huge,huge,huge)
- char.Humanoid.WalkSpeed = 70
- char.Humanoid.JumpPower = 120
- char.Humanoid.MaxHealth = huge
- char.Humanoid.Health = huge
- function dest(hit,type)
- if hit:IsA("Seat") or hit:IsA("VehicleSeat") then
- hit.Parent = nil
- end
- hit:ClearAllChildren()
- hit.Anchored = false hit.CanCollide = true hit.Parent = workspace
- hit.Name = "Destructed"
- if hit:IsA("Part") then
- hit.FormFactor = "Custom"
- end
- hit.Size = v3n(hit.Size.x/2,hit.Size.y/2,hit.Size.z/2)
- hit.CFrame = hit.CFrame * cfn(hit.Size.x/2,hit.Size.y/2,hit.Size.z/2)
- local clone = hit:Clone() clone.Parent = workspace
- local clone1 = hit:Clone() clone1.Parent = workspace
- local clone2 = hit:Clone() clone2.Parent = workspace
- local clone3 = hit:Clone() clone3.Parent = workspace
- local clone4 = hit:Clone() clone4.Parent = workspace
- local clone5 = hit:Clone() clone5.Parent = workspace
- local clone6 = hit:Clone() clone6.Parent = workspace
- clone.CFrame = hit.CFrame * cfn(0,-hit.Size.y,0)
- clone1.CFrame = hit.CFrame * cfn(-hit.Size.x,-hit.Size.y,0)
- clone2.CFrame = hit.CFrame * cfn(-hit.Size.x,0,0)
- clone3.CFrame = hit.CFrame * cfn(0,0,-hit.Size.z)
- clone4.CFrame = clone.CFrame * cfn(0,0,-clone.Size.z)
- clone5.CFrame = clone1.CFrame * cfn(0,0,-clone1.Size.z)
- clone6.CFrame = clone2.CFrame * cfn(0,0,-clone2.Size.z)
- local parts = {hit,clone,clone1,clone2,clone3,clone4,clone5,clone6}
- return parts
- end
- function ded(hit)
- cor(coc(function()
- if hit.Name ~= "Base" or hit.Name ~= "Baseplate" and hit.Name ~= "thanos snapped" then
- hit:ClearAllChildren()
- local fors = force:Clone()
- fors.Parent = hit
- hit.Locked = false
- hit:BreakJoints()
- hit.Massless = true
- hit.Name = "thanos snapped"
- hit.Anchored = true hit.CanCollide = false
- hit.BrickColor = bc.Random() hit.Material = "Neon"
- hit.Transparency = 0
- mes = icn("BlockMesh",hit)
- mes.Scale = hit.Size
- hit.Size = v3n(1,1,1)
- fors.Velocity = v3n(math.random(-70,70),100,math.random(-70,70))
- wait(.1)
- hit.Anchored = false
- hit.CanCollide = false
- derbs:AddItem(fors,.15)
- hit.Parent = workspace
- for i = 1,20 do
- hit.CanCollide = false
- hit:BreakJoints()
- hit.Transparency = hit.Transparency + 0.05
- wait(.05)
- end
- derbs:AddItem(hit,0)
- end
- end))
- end
- cb.Touched:connect(function(hit)
- pcall(function()
- if hit.Name ~= "thanos snapped" then
- spawn(function()
- ded(hit)
- end)
- end
- end)
- end)
- -----
- function click()
- using = true
- wcb.Part1 = ra
- deb = true
- wcb.C0 = cfa(0,-9.5,-4.7)
- wcb.C0 = wcb.C0 * cfn(0,1,0)
- wait()
- for i = 1,10 do
- rs.C0 = rs.C0 * cfa(0,0,.27)
- end
- wait()
- for i = 1,5 do
- rs.C0 = rs.C0 * cfa(0,0,-.54)
- wait()
- end
- deb = false
- wcb.Part1 = t
- wcb.C0 = cfa(90,90,0)
- wcb.C0 = wcb.C0 * cfn(-.3,0,-.5)
- using = false
- end
- mouse.Button1Down:connect(click)
- mouse.KeyDown:Connect(function(key)
- if key == "q" and mouse.Target ~= nil then
- if mouse.Target.Parent:IsA("Model") and mouse.Target.Parent ~= workspace then
- for i,v in pairs(mouse.Target.Parent:GetDescendants()) do
- cor(coc(function()
- if v:IsA("Part") or v:IsA("UnionOperation") or v:IsA("MeshPart") or v:IsA("WedgePart") then
- spawn(function()
- ded(v)
- end)
- end
- end))
- end
- end
- end
- if key == "p" and mouse.Target ~= nil then
- for i,v in pairs(workspace:GetDescendants()) do
- cor(coc(function()
- if v:IsA("Part") or v:IsA("UnionOperation") or v:IsA("MeshPart") or v:IsA("WedgePart") then
- if v.Parent ~= char and v.Parent.Parent ~= char then
- spawn(function()
- ded(v)
- end)
- end
- end
- end))
- end
- end
- if key == "e" and mouse.Target ~= nil and mouse.Target.Name ~= "Base" then
- local parts = dest(mouse.Target)
- for i = 1,#parts do
- ded(parts[i])
- end
- end
- end)
- print("Time spent to run the script: "..tick()-ft)
- while wait(.2) do
- cb.BrickColor = bc.Random()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement