Awooslayer699

Untitled

Feb 4th, 2019
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {}
  2. do
  3. script.Parent = owner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5. local function NewFakeEvent()
  6. local Bind = Instance.new("BindableEvent")
  7. local Fake;Fake = {Connections = {},
  8. fakeEvent=true;
  9. Connect=function(self,Func)
  10. Bind.Event:connect(Func)
  11. self.Connections[Bind] = true
  12. return setmetatable({Connected = true},{
  13. __index = function (self,Index)
  14. if Index:lower() == "disconnect" then
  15. return function() Fake.Connections[Bind] = false;self.Connected = false end
  16. end
  17. return Fake[Index]
  18. end;
  19. __tostring = function() return "Connection" end;
  20. })
  21. end}
  22. Fake.connect = Fake.Connect;return Fake;
  23. end
  24. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29. local function TriggerEvent(self,Event,...)
  30. local Trigger = Mouse[Event]
  31. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33. end
  34. end
  35. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36. Event.OnServerEvent:Connect(function(FiredBy,Input)
  37. if FiredBy.Name ~= owner.Name then return end
  38. if Input.MouseEvent then
  39. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40. else
  41. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43. for _,Action in pairs(ContextActionService.Actions) do
  44. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45. end
  46. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48. end
  49. end)
  50. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51. Event.Parent = NLS([[
  52. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53. local Input = function(Input,gameProcessedEvent)
  54. if gameProcessedEvent then return end
  55. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56. end
  57. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58. local Hit,Target
  59. while wait(1/30) do
  60. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62. end
  63. end
  64. ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67. __index = function (self,Index)
  68. local Sandbox = function (Thing)
  69. if Thing:IsA("Player") then
  70. local RealPlayer = Thing
  71. return setmetatable({},{
  72. __index = function (self,Index)
  73. local Type = type(RealPlayer[Index])
  74. if Type == "function" then
  75. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76. return function (self)return InternalData["Mouse"] end
  77. end
  78. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79. end
  80. return RealPlayer[Index]
  81. end;
  82. __tostring = function(self) return RealPlayer.Name end
  83. })
  84. end
  85. end
  86. if RealGame[Index] then
  87. local Type = type(RealGame[Index])
  88. if Type == "function" then
  89. if Index:lower() == "getservice" or Index:lower() == "service" then
  90. return function (self,Service)
  91. local FakeServices = {
  92. ["players"] = function()
  93. return setmetatable({},{
  94. __index = function (self2,Index2)
  95. local RealService = RealGame:GetService(Service)
  96. local Type2 = type(Index2)
  97. if Type2 == "function" then
  98. return function (self,...) return RealService[Index2](RealService,...)end
  99. else
  100. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101. return RealService[Index2]
  102. end
  103. end;
  104. __tostring = function(self) return RealGame:GetService(Service).Name end
  105. })
  106. end;
  107. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109. ["runservice"] = function()
  110. return setmetatable({},{
  111. __index = function(self2,Index2)
  112. local RealService = RealGame:GetService(Service)
  113. local Type2 = type(Index2)
  114. if Type2 == "function" then
  115. return function (self,...) return RealService[Index2](RealService,...) end
  116. else
  117. local RunServices = {
  118. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119. ["renderstepped"] = function() return RealService["Stepped"] end
  120. }
  121. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122. return RealService[Index2]
  123. end
  124. end
  125. })
  126. end
  127. }
  128. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129. return RealGame:GetService(Service)
  130. end
  131. end
  132. return function (self,...) return RealGame[Index](RealGame,...) end
  133. else
  134. if game:GetService(Index) then return game:GetService(Index) end
  135. return RealGame[Index]
  136. end
  137. end
  138. return nil
  139. end
  140. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("running the script noob")
  141.  
  142. wait()
  143. script.Name = "_.:| E-Shield |:._"
  144. --script.Parent = _EShield_
  145. local LocalPlayer = game:service'Players'.LocalPlayer
  146. local b, Platform = nil
  147. local PlayerOnly = false
  148. local Touched = {}
  149. local Mouse = LocalPlayer:GetMouse()
  150. local ShiftDown, CtrlDown, MouseDown, Mouse2Down, MouseDeb, Mouse2Tick = false, false, false, false, false, 0
  151.  
  152. function Create()
  153. if b then pcall(function() b:Destroy() end) end
  154. if Platform then pcall(function() Platform:Destroy() end) end
  155. local t = LocalPlayer.Character:FindFirstChild("Torso")
  156. local posit = Vector3.new(0, 50, 0)
  157. if t then posit = t.Position end
  158. Platform = Instance.new("Part")
  159. Platform.formFactor = "Custom"
  160. Platform.Size = Vector3.new(10, 1, 10)
  161. Platform.Transparency = 1
  162. Platform.Anchored = true
  163. Platform.CanCollide = true
  164. b = Instance.new("Part", game:service'Workspace')
  165. b.Position = posit
  166. b.Shape = "Ball"
  167. b.Transparency = 0
  168. b.Anchored = true
  169. b.Reflectance = 0.3
  170. b.Size = Mouse2Down and Vector3.new(25, 25, 25) or Vector3.new(15, 15, 15)
  171. b.Color = Mouse2Down and Color3.new(1, 0, 0) or Color3.new(0, 0, 1)
  172. b.TopSurface = "Smooth"
  173. b.BottomSurface = "Smooth"
  174. b.Locked = true
  175. b.CanCollide = false
  176. b.Changed:connect(function(w)
  177. if w == "Parent" then
  178. Create()
  179. end
  180. end)
  181. b.Touched:connect(function(obj)
  182. 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
  183. table.insert(Touched, obj)
  184. if PlayerOnly then
  185. if GetPlayer(obj) then
  186. Destroying(obj)
  187. end
  188. else
  189. Destroying(obj)
  190. end
  191. end
  192. end)
  193. end
  194.  
  195. function GetRecursiveChildren(Parent)
  196. local ret = {}
  197. for i, v in pairs(Parent:GetChildren()) do
  198. if #v:GetChildren() > 0 then
  199. local childs = GetRecursiveChildren(v)
  200. for i1, v1 in pairs(childs) do
  201. ret[#ret + 1] = v1
  202. end
  203. end
  204. ret[#ret + 1] = v
  205. end
  206. return ret
  207. end
  208.  
  209. function GetPlayer(Target)
  210. for _,v in pairs(game:service'Players':GetPlayers()) do
  211. if v.Character ~= nil and Target:IsDescendantOf(v.Character) then
  212. return v
  213. end
  214. end
  215. return nil
  216. end
  217.  
  218. function TouchedStatus(Target)
  219. for _,v in pairs(Touched) do
  220. if v == Target then
  221. return true
  222. end
  223. end
  224. return false
  225. end
  226.  
  227. function Destroying(obj)
  228. local ran, err = coroutine.resume(coroutine.create(function()
  229. if not Mouse2Down then
  230. obj:BreakJoints()
  231. obj.CanCollide = false
  232. obj.Anchored = false
  233. obj.formFactor = "Custom"
  234. obj.Size = obj.Size * Vector3.new(math.random(), math.random(), math.random())
  235. local bp = Instance.new("BodyPosition")
  236. bp.maxForce = Vector3.new(1/0,1/0,1/0)
  237. bp.Parent = obj
  238. local X, Y, Z = nil, nil, nil
  239. coroutine.wrap(function()
  240. while obj and obj.Parent do
  241. X, Y, Z = math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)
  242. wait(0.3)
  243. end
  244. end)()
  245. coroutine.wrap(function()
  246. while obj and obj.Parent do
  247. bp.position = LocalPlayer.Character.Torso.Position + Vector3.new(X, Y, Z)
  248. wait()
  249. end
  250. end)()
  251. coroutine.wrap(function()
  252. local transp = 0
  253. for i = 1, 50 do
  254. transp = transp + 0.02
  255. obj.Transparency = transp
  256. wait(0.05)
  257. end
  258. game:service'Debris':AddItem(obj, 0)
  259. end)()
  260. elseif Mouse2Down then
  261. local selbox = Instance.new("SelectionBox", obj)
  262. selbox.Adornee = obj
  263. selbox.Color = BrickColor.new("Really red")
  264. selbox.Transparency = 0
  265. wait(2)
  266. coroutine.wrap(function()
  267. local transp = 0
  268. local Size, Position = obj.Size, obj.Position
  269. local brickTable = {}
  270. game:service'Debris':AddItem(obj, 0)
  271. for i = 1, math.random(2, 4) do
  272. local x, y, z = math.random(), math.random(), math.random()
  273. local Brick = Instance.new("Part")
  274. Brick.Name = "WillNotBeRemoved"
  275. Brick.Parent = game:service'Workspace'
  276. Brick.BrickColor = BrickColor.new("White")
  277. Brick.Size = Size * Vector3.new(x, y, z)
  278. Brick.CFrame = CFrame.new(Position) * CFrame.Angles( x * 180, y * 180, z * 180)
  279. Brick.Locked = true
  280. Brick.Anchored = false
  281. Brick.CanCollide = false
  282. local Selection = Instance.new("SelectionBox", Brick)
  283. Selection.Adornee = Brick
  284. Selection.Color = BrickColor.new("White")
  285. Selection.Transparency = 0
  286. local BodyVelo = Instance.new("BodyVelocity", Brick)
  287. BodyVelo.maxForce = Vector3.new(1/0, 1/0, 1/0)
  288. BodyVelo.velocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  289. brickTable[#brickTable + 1] = {Brick, Selection}
  290. end
  291. for i = 1, 50 do
  292. transp = transp + 0.02
  293. for i1, v in pairs(brickTable) do
  294. v[1].Transparency = transp
  295. v[2].Transparency = transp
  296. end
  297. wait(0.05)
  298. end
  299. --for i, v in pairs(brickTable) do game:service'Debris':AddItem(v[1], 0) game:service'Debris':AddItem(v[2], 0) end
  300. end)()
  301. end
  302. end))
  303. if not ran then print(".:| EShield |:. " .. err) end
  304. end
  305.  
  306. Create()
  307.  
  308. Mouse.Button1Down:connect(function()
  309. MouseDown = true
  310. end)
  311.  
  312. Mouse.Button1Up:connect(function()
  313. MouseDown = false
  314. end)
  315.  
  316. Mouse.KeyDown:connect(function(key)
  317. local key = type(key) == "string" and key:lower() or ""
  318. if key == "r" then
  319. print = function() end
  320. script:Destroy()
  321. for i, v in pairs(getfenv()) do pcall(function() v:Destroy() end) getfenv()[i] = nil end
  322. end
  323. end)
  324.  
  325. Mouse.Button2Down:connect(function()
  326. if not Mouse2Down then
  327. Mouse2Tick = tick()
  328. Mouse2Down = true
  329. coroutine.wrap(function()
  330. for i = 1.1, 0, -0.1 do if Mouse2Down then b.Color = Color3.new(0, 0, i) end wait(0.01) end
  331. for i = 0, 1.1, 0.1 do if Mouse2Down then b.Color = Color3.new(i, 0, 0) end wait(0.01) end
  332. end)()
  333. coroutine.wrap(function()
  334. 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
  335. end)()
  336. end
  337. end)
  338.  
  339. Mouse.Button2Up:connect(function()
  340. if Mouse2Down then
  341. if math.floor(tick() - Mouse2Tick) > 1 then
  342. Mouse2Down = false
  343. coroutine.wrap(function()
  344. for i = 1.1, 0, -0.1 do if not Mouse2Down then b.Color = Color3.new(i, 0, 0) end wait(0.01) end
  345. for i = 0, 1.1, 0.1 do if not Mouse2Down then b.Color = Color3.new(0, 0, i) end wait(0.01) end
  346. end)()
  347. coroutine.wrap(function()
  348. 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
  349. end)()
  350. end
  351. end
  352. end)
  353.  
  354. Mouse.KeyDown:connect(function(key)
  355. if key == "0" then
  356. ShiftDown = true
  357. elseif key == "1" or key == "2" then
  358. CtrlDown = true
  359. end
  360. end)
  361.  
  362. Mouse.KeyUp:connect(function(key)
  363. if key == "0" then
  364. ShiftDown = false
  365. elseif key == "1" or key == "2" then
  366. CtrlDown = false
  367. end
  368. end)
  369.  
  370. coroutine.wrap(function()
  371. while wait(0.05) do
  372. for i = 0.2, 0.8, 0.1 do
  373. b.Transparency = i
  374. wait(0.05)
  375. end
  376. for i = 0.7, 0.1, -0.1 do
  377. b.Transparency = i
  378. wait(0.05)
  379. end
  380. end
  381. end)()
  382.  
  383. game:service'RunService'.Stepped:connect(function()
  384. coroutine.resume(coroutine.create(function()
  385. b.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position)
  386. end))
  387. coroutine.resume(coroutine.create(function()
  388. for i, v in pairs(Touched) do
  389. if v.Parent == nil or v == nil then
  390. table.remove(Touched, i)
  391. end
  392. end
  393. end))
  394. coroutine.resume(coroutine.create(function()
  395. local Height = LocalPlayer.Character.Torso.CFrame.y - 3.5
  396. if ShiftDown then
  397. Height = Height - 0.25
  398. if CtrlDown then
  399. Height = Height - 0.75
  400. end
  401. end
  402. local TargetCFrame = LocalPlayer.Character.Torso.CFrame
  403. local TargetAngle = LocalPlayer.Character.Torso.CFrame.lookVector
  404. Platform.Parent = game:service'Workspace'.CurrentCamera
  405. Platform.CFrame = CFrame.new(TargetCFrame.x, Height, TargetCFrame.z)
  406. Platform.CanCollide = true
  407. LocalPlayer.Character.Torso.CFrame = TargetCFrame * CFrame.new(0, -(TargetCFrame.y) + Height + 3.5, 0)
  408. end))
  409. coroutine.resume(coroutine.create(function()
  410. if LocalPlayer.Parent ~= nil then
  411. for i, v in pairs(GetRecursiveChildren(LocalPlayer.Character)) do
  412. if v.className == "Part" then v.CanCollide = false end
  413. end
  414. end
  415. end))
  416. coroutine.resume(coroutine.create(function()
  417. if MouseDown and not MouseDeb and not Mouse2Down then
  418. MouseDeb = true
  419. coroutine.wrap(function() wait(1) MouseDeb = false end)()
  420. local dist = Instance.new("Part")
  421. dist.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position)
  422. dist.formFactor = "Custom"
  423. dist.Shape = "Ball"
  424. dist.Name = "WillNotBeRemoved"
  425. dist.Transparency = 0
  426. dist.Reflectance = 0.1
  427. dist.Size = Vector3.new(10, 10, 10)
  428. dist.BrickColor = BrickColor.new("New Yeller")
  429. dist.TopSurface = "Smooth"
  430. dist.Anchored = true
  431. dist.BottomSurface = "Smooth"
  432. dist.Locked = true
  433. dist.CanCollide = false
  434. dist.Parent = game:service'Workspace'
  435. dist.Touched:connect(function(obj)
  436. coroutine.resume(coroutine.create(function()
  437. local Player = GetPlayer(obj)
  438. if Player and Player ~= LocalPlayer and Player.Character and Player.Character:FindFirstChild("Torso") then
  439. local BV = Instance.new("BodyVelocity", Player.Character.Torso)
  440. BV.maxForce = Vector3.new(1/0, 1/0, 1/0)
  441. BV.velocity = ((LocalPlayer.Character.Torso.Position - Player.Character.Torso.Position).unit * -50)
  442. game:service'Debris':AddItem(BV, 1)
  443. elseif not Player and obj ~= b and obj.Name ~= "Base" and not obj:IsDescendantOf(game:service'Workspace'.CurrentCamera) then
  444. obj:BreakJoints()
  445. obj.Anchored = false
  446. obj.CanCollide = false
  447. local BV = Instance.new("BodyVelocity", obj)
  448. BV.maxForce = Vector3.new(1/0, 1/0, 1/0)
  449. BV.velocity = ((LocalPlayer.Character.Torso.Position - obj.Position).unit * -50)
  450. game:service'Debris':AddItem(BV, 1)
  451. end
  452. end))
  453. end)
  454. coroutine.wrap(function()
  455. for i = 1, 100 do
  456. dist.Transparency = dist.Transparency + 0.01
  457. dist.Size = dist.Size + Vector3.new(1, 1, 1)
  458. dist.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position)
  459. wait()
  460. end
  461. game:service'Debris':AddItem(dist, 0)
  462. end)()
  463. end
  464. end))
  465. end)
Advertisement
Add Comment
Please, Sign In to add comment