Advertisement
ChronoShindo

Ultimate Shield

Jun 22nd, 2016
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.50 KB | None | 0 0
  1. function onChatted(msg)
  2. if msg:sub(1,5)=='invis' then
  3. for _,v in pairs(game.Players.LocalPlayer.Character:children()) do
  4. if v.className=='Part' then
  5. coroutine.wrap(function()
  6. for i= 0,1,.1 do
  7. wait()
  8. v.Transparency=i
  9. end
  10. end)()
  11. end
  12. end
  13. elseif msg:sub(1,3)=='vis' then
  14. for _,v in pairs(game.Players.LocalPlayer.Character:children()) do
  15. if v.className=='Part' then
  16. coroutine.wrap(function()
  17. for i= 1,0,-.1 do
  18. wait()
  19. v.Transparency=i
  20. end
  21. end)()
  22. end
  23. end
  24. elseif msg:sub(1,6)=='noclip' then
  25. --[[NoClip for my chatted cmds]]--
  26. game:service('RunService').Stepped:connect(function()
  27. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  28. if v:IsA('Part') then
  29. v.CanCollide=false
  30. end
  31. end
  32. end)
  33.  
  34. elseif msg:sub(1,4)=='sel/' then
  35. for _,v in pairs(game.Players.LocalPlayer.Character:children()) do
  36. if v.className=='Part' then
  37. local color=msg:sub(5)
  38. local s=Instance.new('SelectionBox',v)
  39. s.Adornee=v
  40. s.Name='FadeSel'
  41. s.Color=BrickColor.new(color)
  42. s.Transparency=0
  43. end
  44. end
  45. elseif msg:sub(1,6)=='shield' then
  46. local lp=game.Players.LocalPlayer local lpc=lp.Character local shield=Instance.new('Part',lpc) shield.Size=Vector3.new(6,6,6) shield.CanCollide=false shield.Locked=true shield.Shape='Ball' shield.Name='Fades shield' shield.BottomSurface='Smooth' shield.TopSurface='Smooth' Instance.new('ForceField',shield) Instance.new('ForceField',lpc) game:service("RunService").Stepped:connect(function() shield.CFrame = lpc.Torso.CFrame*CFrame.new(0, 0, 0) shield.Color=Color3.new(math.random(),math.random(),math.random()) shield.Transparency=math.random() end) bv = Instance.new("BodyVelocity",shield) bv.maxForce = Vector3.new(0,math.huge,0) bv.velocity = Vector3.new(0,0,0) shield.Touched:connect(function(Hit) if Hit.Parent == nil then return end if Hit.className=='Part' ~= nil then if Hit.Parent.Name==lp.Name or Hit.Name=='Base' or Hit.className=='BasePart' or Hit.Name=='Handle' then else Hit:remove() end end end) game:service'RunService'.Stepped:connect(function() lp.Character.Humanoid.Health=100 end)
  47. elseif msg:sub(1,7)=='unshield' then
  48. game.Players.LocalPlayer.Character['Fades shield']:remove()
  49. game.Players.LocalPlayer.Character['ForceField']:remove()
  50. elseif msg:sub(1,8)=='eshield' then
  51. wait()
  52. script.Name = "_.:| E-Shield |:._"
  53. --script.Parent = _EShield_
  54. local LocalPlayer = game:service'Players'.LocalPlayer
  55. local b, Platform = nil
  56. local PlayerOnly = false
  57. local Touched = {}
  58. local Mouse = LocalPlayer:GetMouse()
  59. local ShiftDown, CtrlDown, MouseDown, Mouse2Down, MouseDeb, Mouse2Tick = false, false, false, false, false, 0
  60.  
  61. function Create()
  62. if b then pcall(function() b:Destroy() end) end
  63. if Platform then pcall(function() Platform:Destroy() end) end
  64. local t = LocalPlayer.Character:FindFirstChild("Torso")
  65. local posit = Vector3.new(0, 50, 0)
  66. if t then posit = t.Position end
  67. Platform = Instance.new("Part")
  68. Platform.formFactor = "Custom"
  69. Platform.Size = Vector3.new(10, 1, 10)
  70. Platform.Transparency = 1
  71. Platform.Anchored = true
  72. Platform.CanCollide = true
  73. b = Instance.new("Part", game:service'Workspace')
  74. b.Position = posit
  75. b.Shape = "Ball"
  76. b.Transparency = 0
  77. b.Anchored = true
  78. b.Reflectance = 0.3
  79. b.Size = Mouse2Down and Vector3.new(25, 25, 25) or Vector3.new(15, 15, 15)
  80. b.Color = Mouse2Down and Color3.new(1, 0, 0) or Color3.new(0, 0, 1)
  81. b.TopSurface = "Smooth"
  82. b.BottomSurface = "Smooth"
  83. b.Locked = true
  84. b.CanCollide = false
  85. b.Changed:connect(function(w)
  86. if w == "Parent" then
  87. Create()
  88. end
  89. end)
  90. b.Touched:connect(function(obj)
  91. 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
  92. table.insert(Touched, obj)
  93. if PlayerOnly then
  94. if GetPlayer(obj) then
  95. Destroying(obj)
  96. end
  97. else
  98. Destroying(obj)
  99. end
  100. end
  101. end)
  102. end
  103.  
  104. function GetRecursiveChildren(Parent)
  105. local ret = {}
  106. for i, v in pairs(Parent:GetChildren()) do
  107. if #v:GetChildren() > 0 then
  108. local childs = GetRecursiveChildren(v)
  109. for i1, v1 in pairs(childs) do
  110. ret[#ret + 1] = v1
  111. end
  112. end
  113. ret[#ret + 1] = v
  114. end
  115. return ret
  116. end
  117.  
  118. function GetPlayer(Target)
  119. for _,v in pairs(game:service'Players':GetPlayers()) do
  120. if v.Character ~= nil and Target:IsDescendantOf(v.Character) then
  121. return v
  122. end
  123. end
  124. return nil
  125. end
  126.  
  127. function TouchedStatus(Target)
  128. for _,v in pairs(Touched) do
  129. if v == Target then
  130. return true
  131. end
  132. end
  133. return false
  134. end
  135.  
  136. function Destroying(obj)
  137. local ran, err = coroutine.resume(coroutine.create(function()
  138. if not Mouse2Down then
  139. obj:BreakJoints()
  140. obj.CanCollide = false
  141. obj.Anchored = false
  142. obj.formFactor = "Custom"
  143. obj.Size = obj.Size * Vector3.new(math.random(), math.random(), math.random())
  144. local bp = Instance.new("BodyPosition")
  145. bp.maxForce = Vector3.new(1/0,1/0,1/0)
  146. bp.Parent = obj
  147. local X, Y, Z = nil, nil, nil
  148. coroutine.wrap(function()
  149. while obj and obj.Parent do
  150. X, Y, Z = math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)
  151. wait(0.3)
  152. end
  153. end)()
  154. coroutine.wrap(function()
  155. while obj and obj.Parent do
  156. bp.position = LocalPlayer.Character.Torso.Position + Vector3.new(X, Y, Z)
  157. wait()
  158. end
  159. end)()
  160. coroutine.wrap(function()
  161. local transp = 0
  162. for i = 1, 50 do
  163. transp = transp + 0.02
  164. obj.Transparency = transp
  165. wait(0.05)
  166. end
  167. game:service'Debris':AddItem(obj, 0)
  168. end)()
  169. elseif Mouse2Down then
  170. local selbox = Instance.new("SelectionBox", obj)
  171. selbox.Adornee = obj
  172. selbox.Color = BrickColor.new("Really red")
  173. selbox.Transparency = 0
  174. wait(2)
  175. coroutine.wrap(function()
  176. local transp = 0
  177. local Size, Position = obj.Size, obj.Position
  178. local brickTable = {}
  179. game:service'Debris':AddItem(obj, 0)
  180. for i = 1, math.random(2, 4) do
  181. local x, y, z = math.random(), math.random(), math.random()
  182. local Brick = Instance.new("Part")
  183. Brick.Name = "WillNotBeRemoved"
  184. Brick.Parent = game:service'Workspace'
  185. Brick.BrickColor = BrickColor.new("White")
  186. Brick.Size = Size * Vector3.new(x, y, z)
  187. Brick.CFrame = CFrame.new(Position) * CFrame.Angles( x * 180, y * 180, z * 180)
  188. Brick.Locked = true
  189. Brick.Anchored = false
  190. Brick.CanCollide = false
  191. local Selection = Instance.new("SelectionBox", Brick)
  192. Selection.Adornee = Brick
  193. Selection.Color = BrickColor.new("White")
  194. Selection.Transparency = 0
  195. local BodyVelo = Instance.new("BodyVelocity", Brick)
  196. BodyVelo.maxForce = Vector3.new(1/0, 1/0, 1/0)
  197. BodyVelo.velocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  198. brickTable[#brickTable + 1] = {Brick, Selection}
  199. end
  200. for i = 1, 50 do
  201. transp = transp + 0.02
  202. for i1, v in pairs(brickTable) do
  203. v[1].Transparency = transp
  204. v[2].Transparency = transp
  205. end
  206. wait(0.05)
  207. end
  208. --for i, v in pairs(brickTable) do game:service'Debris':AddItem(v[1], 0) game:service'Debris':AddItem(v[2], 0) end
  209. end)()
  210. end
  211. end))
  212. if not ran then print(".:| EShield |:. " .. err) end
  213. end
  214.  
  215. Create()
  216.  
  217. Mouse.Button1Down:connect(function()
  218. MouseDown = true
  219. end)
  220.  
  221. Mouse.Button1Up:connect(function()
  222. MouseDown = false
  223. end)
  224.  
  225. Mouse.KeyDown:connect(function(key)
  226. local key = type(key) == "string" and key:lower() or ""
  227. if key == "r" then
  228. print = function() end
  229. script:Destroy()
  230. for i, v in pairs(getfenv()) do pcall(function() v:Destroy() end) getfenv()[i] = nil end
  231. end
  232. end)
  233.  
  234. Mouse.Button2Down:connect(function()
  235. if not Mouse2Down then
  236. Mouse2Tick = tick()
  237. Mouse2Down = true
  238. coroutine.wrap(function()
  239. for i = 1.1, 0, -0.1 do if Mouse2Down then b.Color = Color3.new(0, 0, i) end wait(0.01) end
  240. for i = 0, 1.1, 0.1 do if Mouse2Down then b.Color = Color3.new(i, 0, 0) end wait(0.01) end
  241. end)()
  242. coroutine.wrap(function()
  243. 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
  244. end)()
  245. end
  246. end)
  247.  
  248. Mouse.Button2Up:connect(function()
  249. if Mouse2Down then
  250. if math.floor(tick() - Mouse2Tick) > 1 then
  251. Mouse2Down = false
  252. coroutine.wrap(function()
  253. for i = 1.1, 0, -0.1 do if not Mouse2Down then b.Color = Color3.new(i, 0, 0) end wait(0.01) end
  254. for i = 0, 1.1, 0.1 do if not Mouse2Down then b.Color = Color3.new(0, 0, i) end wait(0.01) end
  255. end)()
  256. coroutine.wrap(function()
  257. 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
  258. end)()
  259. end
  260. end
  261. end)
  262.  
  263. Mouse.KeyDown:connect(function(key)
  264. if key == "0" then
  265. ShiftDown = true
  266. elseif key == "1" or key == "2" then
  267. CtrlDown = true
  268. end
  269. end)
  270.  
  271. Mouse.KeyUp:connect(function(key)
  272. if key == "0" then
  273. ShiftDown = false
  274. elseif key == "1" or key == "2" then
  275. CtrlDown = false
  276. end
  277. end)
  278.  
  279. coroutine.wrap(function()
  280. while wait(0.05) do
  281. for i = 0.2, 0.8, 0.1 do
  282. b.Transparency = i
  283. wait(0.05)
  284. end
  285. for i = 0.7, 0.1, -0.1 do
  286. b.Transparency = i
  287. wait(0.05)
  288. end
  289. end
  290. end)()
  291.  
  292. game:service'RunService'.Stepped:connect(function()
  293. coroutine.resume(coroutine.create(function()
  294. b.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position)
  295. end))
  296. coroutine.resume(coroutine.create(function()
  297. for i, v in pairs(Touched) do
  298. if v.Parent == nil or v == nil then
  299. table.remove(Touched, i)
  300. end
  301. end
  302. end))
  303. coroutine.resume(coroutine.create(function()
  304. local Height = LocalPlayer.Character.Torso.CFrame.y - 3.5
  305. if ShiftDown then
  306. Height = Height - 0.25
  307. if CtrlDown then
  308. Height = Height - 0.75
  309. end
  310. end
  311. local TargetCFrame = LocalPlayer.Character.Torso.CFrame
  312. local TargetAngle = LocalPlayer.Character.Torso.CFrame.lookVector
  313. Platform.Parent = game:service'Workspace'.CurrentCamera
  314. Platform.CFrame = CFrame.new(TargetCFrame.x, Height, TargetCFrame.z)
  315. Platform.CanCollide = true
  316. LocalPlayer.Character.Torso.CFrame = TargetCFrame * CFrame.new(0, -(TargetCFrame.y) + Height + 3.5, 0)
  317. end))
  318. coroutine.resume(coroutine.create(function()
  319. if LocalPlayer.Parent ~= nil then
  320. for i, v in pairs(GetRecursiveChildren(LocalPlayer.Character)) do
  321. if v.className == "Part" then v.CanCollide = false end
  322. end
  323. end
  324. end))
  325. coroutine.resume(coroutine.create(function()
  326. if MouseDown and not MouseDeb and not Mouse2Down then
  327. MouseDeb = true
  328. coroutine.wrap(function() wait(1) MouseDeb = false end)()
  329. local dist = Instance.new("Part")
  330. dist.CFrame = CFrame.new(LocalPlayer.Character.Torso.Positin)
  331. dist.formFactor = "Custom"
  332. dist.Shape = "Ball"
  333. dist.Name = "WillNotBeRemoved"
  334. dist.Transparency = 0
  335. dist.Reflectance = 0.1
  336. dist.Size = Vector3.new(10, 10, 10)
  337. dist.BrickColor = BrickColor.new("New Yeller")
  338. dist.TopSurface = "Smooth"
  339. dist.Anchored = true
  340. dist.BottomSurface = "Smooth"
  341. dist.Locked = true
  342. dist.CanCollide = false
  343. dist.Parent = game:service'Workspace'
  344. dist.Touched:connect(function(obj)
  345. coroutine.resume(coroutine.create(function()
  346. local Player = GetPlayer(obj)
  347. if Player and Player ~= LocalPlayer and Player.Character and Player.Character:FindFirstChild("Torso") then
  348. local BV = Instance.new("BodyVelocity", Player.Character.Torso)
  349. BV.maxForce = Vector3.new(1/0, 1/0, 1/0)
  350. BV.velocity = ((LocalPlayer.Character.Torso.Position - Player.Character.Torso.Position).unit * -50)
  351. game:service'Debris':AddItem(BV, 1)
  352. elseif not Player and obj ~= b and obj.Name ~= "Base" and not obj:IsDescendantOf(game:service'Workspace'.CurrentCamera) then
  353. obj:BreakJoints()
  354. obj.Anchored = false
  355. obj.CanCollide = false
  356. local BV = Instance.new("BodyVelocity", obj)
  357. BV.maxForce = Vector3.new(1/0, 1/0, 1/0)
  358. BV.velocity = ((LocalPlayer.Character.Torso.Position - obj.Position).unit * -50)
  359. game:service'Debris':AddItem(BV, 1)
  360. end
  361. end))
  362. end)
  363. coroutine.wrap(function()
  364. for i = 1, 100 do
  365. dist.Transparency = dist.Transparency + 0.01
  366. dist.Size = dist.Size + Vector3.new(1, 1, 1)
  367. dist.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position)
  368. wait()
  369. end
  370. game:service'Debris':AddItem(dist, 0)
  371. end)()
  372. end
  373. end))
  374. end)
  375. elseif msg:sub(1,9)=='functions' then
  376. end
  377. end
  378. game.Players.LocalPlayer.Chatted:connect(function(msg) onChatted(msg,game.Players.LocalPlayer) end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement