zed_isJayTheLionJR

DESTRUCTION

Jan 26th, 2019
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.74 KB | None | 0 0
  1. wait()
  2. script.Name = "_.:| E-Shield |:._"
  3. --script.Parent = _EShield_
  4. local LocalPlayer = game:service'Players'.LocalPlayer
  5. local b, Platform = nil
  6. local PlayerOnly = false
  7. local Touched = {}
  8. local Mouse = LocalPlayer:GetMouse()
  9. local ShiftDown, CtrlDown, MouseDown, Mouse2Down, MouseDeb, Mouse2Tick = false, false, false, false, false, 0
  10.  
  11. function Create()
  12. if b then pcall(function() b:Destroy() end) end
  13. if Platform then pcall(function() Platform:Destroy() end) end
  14. local t = LocalPlayer.Character:FindFirstChild("Torso")
  15. local posit = Vector3.new(0, 50, 0)
  16. if t then posit = t.Position end
  17. Platform = Instance.new("Part")
  18. Platform.formFactor = "Custom"
  19. Platform.Size = Vector3.new(20, 1100, 20)
  20. Platform.Transparency = 1
  21. Platform.Anchored = true
  22. Platform.CanCollide = true
  23. b = Instance.new("Part", game:service'Workspace')
  24. b.Position = posit
  25. b.Shape = "Ball"
  26. b.Transparency = 0
  27. b.Anchored = true
  28. b.Reflectance = 0.3
  29. b.Size = Mouse2Down and Vector3.new(25, 25, 25) or Vector3.new(15, 15, 15)
  30. b.Color = Mouse2Down and Color3.new(1, 0, 0) or Color3.new(0, 0, 1)
  31. b.TopSurface = "Smooth"
  32. b.BottomSurface = "Smooth"
  33. b.Locked = true
  34. b.CanCollide = false
  35. b.Changed:connect(function(w)
  36. if w == "Parent" then
  37. Create()
  38. end
  39. end)
  40. b.Touched:connect(function(obj)
  41. 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
  42. table.insert(Touched, obj)
  43. if PlayerOnly then
  44. if GetPlayer(obj) then
  45. Destroying(obj)
  46. end
  47. else
  48. Destroying(obj)
  49. end
  50. end
  51. end)
  52. end
  53.  
  54. function GetRecursiveChildren(Parent)
  55. local ret = {}
  56. for i, v in pairs(Parent:GetChildren()) do
  57. if #v:GetChildren() > 0 then
  58. local childs = GetRecursiveChildren(v)
  59. for i1, v1 in pairs(childs) do
  60. ret[#ret + 1] = v1
  61. end
  62. end
  63. ret[#ret + 1] = v
  64. end
  65. return ret
  66. end
  67.  
  68. function GetPlayer(Target)
  69. for _,v in pairs(game:service'Players':GetPlayers()) do
  70. if v.Character ~= nil and Target:IsDescendantOf(v.Character) then
  71. return v
  72. end
  73. end
  74. return nil
  75. end
  76.  
  77. function TouchedStatus(Target)
  78. for _,v in pairs(Touched) do
  79. if v == Target then
  80. return true
  81. end
  82. end
  83. return false
  84. end
  85.  
  86. function Destroying(obj)
  87. local ran, err = coroutine.resume(coroutine.create(function()
  88. if not Mouse2Down then
  89. obj:BreakJoints()
  90. obj.CanCollide = false
  91. obj.Anchored = false
  92. obj.formFactor = "Custom"
  93. obj.Size = obj.Size * Vector3.new(math.random(), math.random(), math.random())
  94. local bp = Instance.new("BodyPosition")
  95. bp.maxForce = Vector3.new(1/0,1/0,1/0)
  96. bp.Parent = obj
  97. local X, Y, Z = nil, nil, nil
  98. coroutine.wrap(function()
  99. while obj and obj.Parent do
  100. X, Y, Z = math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)
  101. wait(0.3)
  102. end
  103. end)()
  104. coroutine.wrap(function()
  105. while obj and obj.Parent do
  106. bp.position = LocalPlayer.Character.Torso.Position + Vector3.new(X, Y, Z)
  107. wait()
  108. end
  109. end)()
  110. coroutine.wrap(function()
  111. local transp = 0
  112. for i = 1, 50 do
  113. transp = transp + 0.02
  114. obj.Transparency = transp
  115. wait(0.05)
  116. end
  117. game:service'Debris':AddItem(obj, 0)
  118. end)()
  119. elseif Mouse2Down then
  120. local selbox = Instance.new("SelectionBox", obj)
  121. selbox.Adornee = obj
  122. selbox.Color = BrickColor.new("Really red")
  123. selbox.Transparency = 0
  124. wait(2)
  125. coroutine.wrap(function()
  126. local transp = 0
  127. local Size, Position = obj.Size, obj.Position
  128. local brickTable = {}
  129. game:service'Debris':AddItem(obj, 0)
  130. for i = 1, math.random(2, 4) do
  131. local x, y, z = math.random(), math.random(), math.random()
  132. local Brick = Instance.new("Part")
  133. Brick.Name = "WillNotBeRemoved"
  134. Brick.Parent = game:service'Workspace'
  135. Brick.BrickColor = BrickColor.new("White")
  136. Brick.Size = Size * Vector3.new(x, y, z)
  137. Brick.CFrame = CFrame.new(Position) * CFrame.Angles( x * 180, y * 180, z * 180)
  138. Brick.Locked = true
  139. Brick.Anchored = false
  140. Brick.CanCollide = false
  141. local Selection = Instance.new("SelectionBox", Brick)
  142. Selection.Adornee = Brick
  143. Selection.Color = BrickColor.new("White")
  144. Selection.Transparency = 0
  145. local BodyVelo = Instance.new("BodyVelocity", Brick)
  146. BodyVelo.maxForce = Vector3.new(1/0, 1/0, 1/0)
  147. BodyVelo.velocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  148. brickTable[#brickTable + 1] = {Brick, Selection}
  149. end
  150. for i = 1, 50 do
  151. transp = transp + 0.02
  152. for i1, v in pairs(brickTable) do
  153. v[1].Transparency = transp
  154. v[2].Transparency = transp
  155. end
  156. wait(0.05)
  157. end
  158. --for i, v in pairs(brickTable) do game:service'Debris':AddItem(v[1], 0) game:service'Debris':AddItem(v[2], 0) end
  159. end)()
  160. end
  161. end))
  162. if not ran then print(".:| EShield |:. " .. err) end
  163. end
  164.  
  165. Create()
  166.  
  167. Mouse.Button1Down:connect(function()
  168. MouseDown = true
  169. end)
  170.  
  171. Mouse.Button1Up:connect(function()
  172. MouseDown = false
  173. end)
  174.  
  175. Mouse.KeyDown:connect(function(key)
  176. local key = type(key) == "string" and key:lower() or ""
  177. if key == "r" then
  178. print = function() end
  179. script:Destroy()
  180. for i, v in pairs(getfenv()) do pcall(function() v:Destroy() end) getfenv()[i] = nil end
  181. end
  182. end)
  183.  
  184. Mouse.Button2Down:connect(function()
  185. if not Mouse2Down then
  186. Mouse2Tick = tick()
  187. Mouse2Down = true
  188. coroutine.wrap(function()
  189. for i = 1.1, 0, -0.1 do if Mouse2Down then b.Color = Color3.new(0, 0, i) end wait(0.01) end
  190. for i = 0, 1.1, 0.1 do if Mouse2Down then b.Color = Color3.new(i, 0, 0) end wait(0.01) end
  191. end)()
  192. coroutine.wrap(function()
  193. 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
  194. end)()
  195. end
  196. end)
  197.  
  198. Mouse.Button2Up:connect(function()
  199. if Mouse2Down then
  200. if math.floor(tick() - Mouse2Tick) > 1 then
  201. Mouse2Down = false
  202. coroutine.wrap(function()
  203. for i = 1.1, 0, -0.1 do if not Mouse2Down then b.Color = Color3.new(i, 0, 0) end wait(0.01) end
  204. for i = 0, 1.1, 0.1 do if not Mouse2Down then b.Color = Color3.new(0, 0, i) end wait(0.01) end
  205. end)()
  206. coroutine.wrap(function()
  207. 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
  208. end)()
  209. end
  210. end
  211. end)
  212.  
  213. Mouse.KeyDown:connect(function(key)
  214. if key == "0" then
  215. ShiftDown = true
  216. elseif key == "1" or key == "2" then
  217. CtrlDown = true
  218. end
  219. end)
  220.  
  221. Mouse.KeyUp:connect(function(key)
  222. if key == "0" then
  223. ShiftDown = false
  224. elseif key == "1" or key == "2" then
  225. CtrlDown = false
  226. end
  227. end)
  228.  
  229. coroutine.wrap(function()
  230. while wait(0.05) do
  231. for i = 0.2, 0.8, 0.1 do
  232. b.Transparency = i
  233. wait(0.05)
  234. end
  235. for i = 0.7, 0.1, -0.1 do
  236. b.Transparency = i
  237. wait(0.05)
  238. end
  239. end
  240. end)()
  241.  
  242. game:service'RunService'.Stepped:connect(function()
  243. coroutine.resume(coroutine.create(function()
  244. b.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position)
  245. end))
  246. coroutine.resume(coroutine.create(function()
  247. for i, v in pairs(Touched) do
  248. if v.Parent == nil or v == nil then
  249. table.remove(Touched, i)
  250. end
  251. end
  252. end))
  253. coroutine.resume(coroutine.create(function()
  254. local Height = LocalPlayer.Character.Torso.CFrame.y - 3.5
  255. if ShiftDown then
  256. Height = Height - 0.25
  257. if CtrlDown then
  258. Height = Height - 0.75
  259. end
  260. end
  261. local TargetCFrame = LocalPlayer.Character.Torso.CFrame
  262. local TargetAngle = LocalPlayer.Character.Torso.CFrame.lookVector
  263. Platform.Parent = game:service'Workspace'.CurrentCamera
  264. Platform.CFrame = CFrame.new(TargetCFrame.x, Height, TargetCFrame.z)
  265. Platform.CanCollide = true
  266. LocalPlayer.Character.Torso.CFrame = TargetCFrame * CFrame.new(0, -(TargetCFrame.y) + Height + 3.5, 0)
  267. end))
  268. coroutine.resume(coroutine.create(function()
  269. if LocalPlayer.Parent ~= nil then
  270. for i, v in pairs(GetRecursiveChildren(LocalPlayer.Character)) do
  271. if v.className == "Part" then v.CanCollide = false end
  272. end
  273. end
  274. end))
  275. coroutine.resume(coroutine.create(function()
  276. if MouseDown and not MouseDeb and not Mouse2Down then
  277. MouseDeb = true
  278. coroutine.wrap(function() wait(1) MouseDeb = false end)()
  279. local dist = Instance.new("Part")
  280. dist.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position)
  281. dist.formFactor = "Custom"
  282. dist.Shape = "Ball"
  283. dist.Name = "WillNotBeRemoved"
  284. dist.Transparency = 0
  285. dist.Reflectance = 0.1
  286. dist.Size = Vector3.new(10, 10, 10)
  287. dist.BrickColor = BrickColor.new("New Yeller")
  288. dist.TopSurface = "Smooth"
  289. dist.Anchored = true
  290. dist.BottomSurface = "Smooth"
  291. dist.Locked = true
  292. dist.CanCollide = false
  293. dist.Parent = game:service'Workspace'
  294. dist.Touched:connect(function(obj)
  295. coroutine.resume(coroutine.create(function()
  296. local Player = GetPlayer(obj)
  297. if Player and Player ~= LocalPlayer and Player.Character and Player.Character:FindFirstChild("Torso") then
  298. local BV = Instance.new("BodyVelocity", Player.Character.Torso)
  299. BV.maxForce = Vector3.new(1/0, 1/0, 1/0)
  300. BV.velocity = ((LocalPlayer.Character.Torso.Position - Player.Character.Torso.Position).unit * -50)
  301. game:service'Debris':AddItem(BV, 1)
  302. elseif not Player and obj ~= b and obj.Name ~= "Base" and not obj:IsDescendantOf(game:service'Workspace'.CurrentCamera) then
  303. obj:BreakJoints()
  304. obj.Anchored = false
  305. obj.CanCollide = false
  306. local BV = Instance.new("BodyVelocity", obj)
  307. BV.maxForce = Vector3.new(1/0, 1/0, 1/0)
  308. BV.velocity = ((LocalPlayer.Character.Torso.Position - obj.Position).unit * -50)
  309. game:service'Debris':AddItem(BV, 1)
  310. end
  311. end))
  312. end)
  313. coroutine.wrap(function()
  314. for i = 1, 100 do
  315. dist.Transparency = dist.Transparency + 0.01
  316. dist.Size = dist.Size + Vector3.new(1, 1, 1)
  317. dist.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position)
  318. wait()
  319. end
  320. game:service'Debris':AddItem(dist, 0)
  321. end)()
  322. end
  323. end))
  324. end)
  325.  
  326. p = game.Players.LocalPlayer
  327. char = p.Character
  328. local char = p.Character
  329. torso = char.Torso
  330. neck = char.Torso.Neck
  331. hum = char.Humanoid
  332. Player = game:GetService("Players").LocalPlayer
  333. Character = Player.Character
  334. tors = Character.Torso
  335. root = Character.HumanoidRootPart
  336. lleg = Character["Left Leg"]
  337. hed = Character.Head
  338. rleg = Character["Right Leg"]
  339. rarm = Character["Right Arm"]
  340. larm = Character["Left Arm"]
  341.  
  342. ypcall(function()
  343. for i,v in pairs(Character:children()) do
  344. if v:IsA("Hat") then
  345. v:Destroy()
  346. end
  347. end
  348. for i,v in pairs(Character:children()) do
  349. if v:IsA("Accessory") then
  350. v:Destroy()
  351. end
  352. end
  353. for i,v in pairs(Character:children()) do
  354. if v:IsA("Hair") then
  355. v:Destroy()
  356. end
  357. end
  358. end)
  359.  
  360. CV="Hot pink"
  361.  
  362. local txt = Instance.new("BillboardGui", char)
  363. txt.Adornee = char .Head
  364. txt.Name = "_status"
  365. txt.Size = UDim2.new(2, 0, 1.2, 0)
  366. txt.StudsOffset = Vector3.new(-9, 8, 0)
  367. local text = Instance.new("TextLabel", txt)
  368. text.Size = UDim2.new(10, 0, 7, 0)
  369. text.FontSize = "Size24"
  370. text.TextScaled = true
  371. text.TextTransparency = 0
  372. text.BackgroundTransparency = 1
  373. text.TextTransparency = 0
  374. text.TextStrokeTransparency = 0
  375. text.Font = "Highway"
  376. text.TextStrokeColor3 = BrickColor.new("Really black").Color
  377.  
  378. v=Instance.new("Part")
  379. v.Name = "ColorBrick"
  380. v.Parent=p.Character
  381. v.FormFactor="Symmetric"
  382. v.Anchored=true
  383. v.CanCollide=false
  384. v.BottomSurface="Smooth"
  385. v.TopSurface="Smooth"
  386. v.Size=Vector3.new(10,5,3)
  387. v.Transparency=1
  388. v.CFrame=char.Torso.CFrame
  389. v.BrickColor=BrickColor.new(CV)
  390. v.Transparency=1
  391. text.TextColor3 = BrickColor.new("Really Black").Color
  392. v.Shape="Block"
  393. text.Text = "DESTRUCTION"
  394.  
  395. hed.face.Texture = "http://www.roblox.com/asset/?id=0"
  396. hed.Transparency = 1
  397. rleg.Transparency = 1
  398. rarm.Transparency = 1
  399. larm.Transparency = 1
  400. lleg.Transparency = 1
  401. tors.Transparency = 1
  402.  
  403. Player = game:GetService("Players").LocalPlayer
  404. Character = Player.Character
  405. rarm = Character["Right Arm"]
  406. larm = Character["Left Arm"]
  407. vt = Vector3.new
  408. bc = BrickColor.new
  409. wit = bc("Black").Color
  410.  
  411. local prth = Instance.new("Part",Character)
  412. prth.Size = vt(1.25,1.25,1.25)
  413. prth.CanCollide = false
  414. prth.Material = "Neon"
  415. prth.Transparency = 1
  416. prth.BrickColor = bc("Deep orange")
  417. local wldh = Instance.new("Weld",Character)
  418. wldh.Part0 = hed
  419. wldh.Part1 = prth
  420.  
  421. local prtrm = Instance.new("Part",Character)
  422. prtrm.Size = vt(2.1,2.1,1.1)
  423. prtrm.CanCollide = false
  424. prtrm.Transparency = 1
  425. prtrm.Material = "Neon"
  426. prtrm.BrickColor = bc("Deep orange")
  427. local wldm = Instance.new("Weld",Character)
  428. wldm.Part0 = root
  429. wldm.Part1 = prtrm
  430.  
  431. local prtr = Instance.new("Part",Character)
  432. prtr.Size = vt(1.1,2.1,1.1)
  433. prtr.CanCollide = false
  434. prtr.Transparency = 5
  435. prtr.Material = "Neon"
  436. prtr.BrickColor = bc("Deep orange")
  437. local prtrl = Instance.new("Part",Character)
  438. prtrl.Size = vt(1.1,2.1,1.1)
  439. prtrl.CanCollide = false
  440. prtrl.Transparency = 1
  441. prtrl.Material = "Neon"
  442. prtrl.BrickColor = bc("Deep orange")
  443. local eff = Instance.new("ParticleEmitter",prtr)
  444. eff.LightEmission = 1
  445. eff.Texture = "rbxassetid://284205403"
  446. eff.Color = ColorSequence.new(wit)
  447. eff.Size = NumberSequence.new(0.5,1)
  448. eff.Acceleration = vt(0,25,0)
  449. eff.Speed = NumberRange.new(-5)
  450. eff.LockedToPart = false
  451. eff.Transparency = NumberSequence.new(0.95)
  452. eff.Lifetime = NumberRange.new(0.5)
  453. eff.Rate = 100000
  454. eff.VelocitySpread = 25
  455. local wld = Instance.new("Weld",Character)
  456. wld.Part0 = rarm
  457. wld.Part1 = prtr
  458. local wldl = Instance.new("Weld",Character)
  459. wldl.Part0 = rleg
  460. wldl.Part1 = prtrl
  461.  
  462. local prtr2 = Instance.new("Part",Character)
  463. prtr2.Size = vt(1.1,2.1,1.1)
  464. prtr2.CanCollide = false
  465. prtr2.Transparency = 5
  466. prtr2.Material = "Neon"
  467. prtr2.BrickColor = bc("Deep orange")
  468. local prtrl2 = Instance.new("Part",Character)
  469. prtrl2.Size = vt(1.1,2.1,1.1)
  470. prtrl2.CanCollide = false
  471. prtrl2.Transparency = 0.5
  472. prtrl2.Material = "Neon"
  473. prtrl2.BrickColor = bc("Deep orange")
  474. local eff2 = Instance.new("ParticleEmitter",prtr2)
  475. eff2.LightEmission = 1
  476. eff2.Texture = "rbxassetid://284205403"
  477. eff2.Color = ColorSequence.new(wit)
  478. eff2.Size = NumberSequence.new(0.5,1)
  479. eff2.Acceleration = vt(0,25,0)
  480. eff2.Speed = NumberRange.new(-5)
  481. eff2.LockedToPart = false
  482. eff2.Transparency = NumberSequence.new(0.95)
  483. eff2.Lifetime = NumberRange.new(0.5)
  484. eff2.Rate = 100000
  485. eff2.VelocitySpread = 25
  486. local wld2 = Instance.new("Weld",Character)
  487. wld2.Part0 = larm
  488. wld2.Part1 = prtr2
  489. local wldl2 = Instance.new("Weld",Character)
  490. wldl2.Part0 = lleg
  491. wldl2.Part1 = prtrl2
  492.  
  493. local mouse = game.Players.LocalPlayer:GetMouse()
  494. tors = game.Players.LocalPlayer.Character.Torso
  495. vt = Vector3.new
  496. bc = BrickColor.new
  497.  
  498. local Effect = Instance.new("Part",game.Lighting)
  499. Effect.BrickColor = bc("Deep orange")
  500. Effect.Transparency = 1
  501. Effect.Anchored = true
  502. Effect.CanCollide = false
  503. Effect.Material = "Neon"
  504. Effect.Shape = "Ball"
  505. Effect.Size = vt(5,5,5)
  506. local fire1 = Instance.new("Fire",Effect)
  507. fire1.Name = "Fire"
  508. fire1.Heat = 0
  509. fire1.Size = 30
  510. fire1.SecondaryColor = bc("Really black").Color
  511. fire1.Color = bc("Deep orange").Color
  512. local fire2 = Instance.new("Fire",Effect)
  513. fire2.Name = "Fire2"
  514. fire2.Heat = 0
  515. fire2.Size = 25
  516. fire2.SecondaryColor = bc("Really black").Color
  517. fire2.Color = bc("Neon orange").Color
  518.  
  519. function Explode(rad,par)
  520. local expart = Instance.new("Part",script.Parent)
  521. local expart2 = Instance.new("Part",script.Parent)
  522. local snd = Instance.new("Sound",expart)
  523. snd.SoundId = "rbxassetid://258057783"
  524. snd.Volume = 2.5
  525. local partMesh = Instance.new("SpecialMesh",expart)
  526. partMesh.MeshType = "Sphere"
  527. local partMesh2 = Instance.new("SpecialMesh",expart2)
  528. partMesh2.MeshType = "Sphere"
  529. local expld = Instance.new("Explosion", script.Parent)
  530. expld.BlastRadius = rad
  531. expld.Position = par.Position
  532. partMesh.Scale = vt(rad,rad,rad)
  533. expart.Size = vt(1,1,1)*1.5
  534. expart.Transparency = 0.5
  535. expart.Anchored = true
  536. expart.Material = "Neon"
  537. expart.BrickColor = bc("Deep orange")
  538. expart.CFrame = par.CFrame
  539. partMesh2.Scale = vt(rad,rad,rad)
  540. expart2.Size = vt(1.15,1.15,1.15)*1.5
  541. expart2.Transparency = 0.5
  542. expart2.Anchored = true
  543. expart2.Material = "Neon"
  544. expart2.BrickColor = bc("Bright orange")
  545. expart2.CFrame = par.CFrame
  546. snd:Play()
  547. for i = 0, 100 do
  548. expart.Transparency = expart.Transparency + 0.005
  549. partMesh.Scale = partMesh.Scale + vt(0.25,0.25,0.25)
  550. expart.CFrame = expart.CFrame
  551. expart2.Transparency = expart.Transparency + 0.005
  552. partMesh2.Scale = partMesh2.Scale + vt(0.25,0.25,0.25)
  553. expart2.CFrame = expart.CFrame
  554. wait(0)
  555. end
  556. snd.Parent = nil
  557. expart.Parent = nil
  558. expart2.Parent = nil
  559. expld.Parent = nil
  560. end
  561.  
  562. function Explode2(rad,par)
  563. local expart = Instance.new("Part",script.Parent)
  564. local expart2 = Instance.new("Part",script.Parent)
  565. local snd = Instance.new("Sound",expart)
  566. snd.SoundId = "rbxassetid://165969964"
  567. snd.Volume = 3
  568. local partMesh = Instance.new("SpecialMesh",expart)
  569. partMesh.MeshType = "Sphere"
  570. local partMesh2 = Instance.new("SpecialMesh",expart2)
  571. partMesh2.MeshType = "Sphere"
  572. local expld = Instance.new("Explosion", script.Parent)
  573. expld.BlastRadius = rad
  574. expld.Position = par.Position
  575. partMesh.Scale = vt(rad,rad,rad)
  576. expart.Size = vt(1,1,1)*1.5
  577. expart.Transparency = 0.5
  578. expart.Anchored = true
  579. expart.Material = "Neon"
  580. expart.BrickColor = bc("Deep orange")
  581. expart.CFrame = par.CFrame
  582. partMesh2.Scale = vt(rad,rad,rad)
  583. expart2.Size = vt(1.15,1.15,1.15)*1.5
  584. expart2.Transparency = 0.5
  585. expart2.Anchored = true
  586. expart2.Material = "Neon"
  587. expart2.BrickColor = bc("Bright orange")
  588. expart2.CFrame = par.CFrame
  589. snd:Play()
  590. for i = 0, 100 do
  591. expart.Transparency = expart.Transparency + 0.005
  592. partMesh.Scale = partMesh.Scale + vt(0.25,0.25,0.25)
  593. expart.CFrame = expart.CFrame
  594. expart2.Transparency = expart.Transparency + 0.005
  595. partMesh2.Scale = partMesh2.Scale + vt(0.25,0.25,0.25)
  596. expart2.CFrame = expart.CFrame
  597. wait(0)
  598. end
  599. snd.Parent = nil
  600. expart.Parent = nil
  601. expart2.Parent = nil
  602. expld.Parent = nil
  603. end
  604.  
  605. mouse.KeyDown:connect(function(k)
  606.  
  607. k = k:lower()
  608. if k == "q" then
  609. local spart = Effect:Clone()
  610. spart.Parent = game.Players.LocalPlayer.Character
  611. spart.Transparency = 0
  612. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*5
  613. wait()
  614. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*15
  615. wait()
  616. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*25
  617. wait()
  618. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*35
  619. wait()
  620. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*45
  621. wait()
  622. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*55
  623. wait()
  624. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*65
  625. wait()
  626. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*75
  627. wait()
  628. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*85
  629. wait()
  630. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*95
  631. wait()
  632. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*105
  633. spart.Transparency = 1
  634. spart.Fire2:Destroy()
  635. spart.Fire:Destroy()
  636. Explode(25,spart)
  637. spart:Destroy()
  638. end
  639. if k == "e" then
  640. local spart = Effect:Clone()
  641. spart.Parent = game.Players.LocalPlayer.Character
  642. spart.Transparency = 0
  643. spart.Anchored = false
  644. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*0
  645. spart.Position = spart.Position + vt(0,100,0)
  646. spart.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*150
  647. wait(1)
  648. spart.Transparency = 1
  649. spart.Fire2:Destroy()
  650. spart.Fire:Destroy()
  651. Explode2(75,spart)
  652. spart:Destroy()
  653. end
  654. if k == "r" then
  655. local ff = Instance.new("ForceField",game.Players.LocalPlayer.Character)
  656. game.Players.LocalPlayer.Character.Torso.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*275
  657. wait(0.75)
  658. game.Players.LocalPlayer.Character.Torso.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*-165
  659. Explode(30,game.Players.LocalPlayer.Character.Torso)
  660. wait(0.5)
  661. ff:Destroy()
  662. end
  663. if k == "f" then
  664. local ff = Instance.new("ForceField",game.Players.LocalPlayer.Character)
  665. for i = 0, 10 do
  666. game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + Vector3.new(0,10,0)
  667. wait(0)
  668. end
  669. for i = 0, 5 do
  670. game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + Vector3.new(0,1,0)
  671. wait(0)
  672. end
  673. game.Players.LocalPlayer.Character.Torso.Anchored = true
  674. wait(1.5)
  675. game.Players.LocalPlayer.Character.Torso.Anchored = false
  676. for i = 0, 10 do
  677. game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + Vector3.new(0,-1,0)
  678. wait(0)
  679. end
  680. wait(0.25)
  681. Explode2(62.5,game.Players.LocalPlayer.Character.Torso)
  682. wait(0.5)
  683. ff:Destroy()
  684. end
  685. end)
  686.  
  687. local time = tick()
  688.  
  689. local plr = game:GetService("Players").LocalPlayer
  690. local mouse,char = plr:GetMouse(),plr.Character
  691.  
  692. local amountGhosts = 5
  693.  
  694. for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end
  695.  
  696. local toggle,cd,mcd = false,false,false
  697. local ghosts = {}
  698. local temptab = {}
  699.  
  700. char:WaitForChild("Animate"):Destroy()
  701. char.Humanoid:WaitForChild("Animator"):Destroy()
  702.  
  703. local state = "idle"
  704.  
  705. local gt = false
  706.  
  707. local gyro = Instance.new("BodyGyro",char:WaitForChild("HumanoidRootPart")) --Stops the character from glitching out on enter/exit
  708. gyro.MaxTorque = Vector3.new(0,0,0)
  709. gyro.D = 0
  710. gyro.P = 100000000
  711.  
  712.  
  713. local wCol = BrickColor.new("Really red")
  714. local wCol2 = BrickColor.new("Really black")
  715. local gCol = BrickColor.new("Toothpaste")
  716. local gCol2 = BrickColor.new("Institutional white")
  717.  
  718. function searchAll(m,clear)
  719. if clear then
  720. if clear == true then
  721. for i,v in pairs(temptab) do
  722. table.remove(temptab,1)
  723. end
  724. end
  725. end
  726. for i,v in pairs(m:GetChildren()) do
  727. if v then
  728. local s = v:Clone()
  729. for _,b in pairs(s:GetChildren()) do
  730. b:Destroy()
  731. end
  732. if s:IsA("Part") or s:IsA("WedgePart") or s:IsA("TrussPart") or s:IsA("UnionOperation") then
  733. if s.Name ~= "HumanoidRootPart" then
  734. s.Anchored = true
  735. s.CanCollide = false
  736. s.Transparency = 0.95
  737. s.TopSurface = "Smooth"
  738. s.BottomSurface = "Smooth"
  739. s.FrontSurface = "Smooth"
  740. s.RightSurface = "Smooth"
  741. s.BackSurface = "Smooth"
  742. s.LeftSurface = "Smooth"
  743. if s.Material ~= Enum.Material.Neon then
  744. if gt == true then
  745. s.BrickColor = wCol2
  746. else
  747. s.BrickColor = gCol2
  748. end
  749. else
  750. if gt == true then
  751. s.BrickColor = wCol
  752. else
  753. s.BrickColor = gCol
  754. end
  755. end
  756. for _,c in pairs(v:GetChildren()) do
  757. if c:IsA("SpecialMesh") or c:IsA("CylinderMesh") then
  758. c:Clone().Parent = s
  759. end
  760. end
  761. local objValue = Instance.new("ObjectValue",s)
  762. objValue.Name = "Target"
  763. objValue.Value = v
  764. table.insert(temptab,s)
  765. end
  766. --elseif s:IsA("CharacterMesh") then
  767. --table.insert(temptab,s)
  768. end
  769. --searchAll(v)
  770. end
  771. end
  772. return temptab
  773. end
  774.  
  775. function CreateGhost()
  776. local ghost = Instance.new("Model",game.Workspace)
  777. searchAll(char,true)
  778. ghost.Name = char.Name.."'s Ghost "..#ghosts..#plr.Name
  779. --Instance.new("Humanoid",ghost)
  780. for i,v in pairs(temptab) do
  781. v:Clone().Parent = ghost
  782. end
  783. table.insert(ghosts,ghost)
  784. end
  785.  
  786. function ClearGhosts()
  787. for i,v in pairs(ghosts) do
  788. v:Destroy()
  789. end
  790. for i,v in pairs(ghosts) do
  791. table.remove(ghosts,1)
  792. end
  793. for i,v in pairs(game:GetService("Workspace"):GetChildren()) do
  794. if string.sub(v.Name,1,#plr.Name+9) == plr.Name.."'s Ghost " then
  795. v:Destroy()
  796. end
  797. end
  798. end
  799.  
  800. Instance.new("ForceField",char).Visible = false
  801.  
  802. local e1 = Instance.new("Part",char)
  803. e1.Size = Vector3.new(0.2,0.2,0.2)
  804. e1.TopSurface = "Smooth"
  805. e1.BottomSurface = "Smooth"
  806. e1.Material = "Neon"
  807. e1.Transparency = 1
  808. e1.Anchored = true
  809. e1.CanCollide = false
  810. e1.BrickColor = gCol
  811. e1.CFrame = char.Head.CFrame * CFrame.new(0.15,0.1,-0.6)
  812. local em1 = Instance.new("SpecialMesh",e1)
  813. em1.MeshType = "Sphere"
  814. local e2 = Instance.new("Part",char)
  815. e2.Size = Vector3.new(0.2,0.2,0.2)
  816. e2.TopSurface = "Smooth"
  817. e2.BottomSurface = "Smooth"
  818. e2.Transparency = 1
  819. e2.Material = "Neon"
  820. e2.Anchored = true
  821. e2.CanCollide = false
  822. e2.BrickColor = gCol
  823. e2.CFrame = char.Head.CFrame * CFrame.new(-0.15,0.1,-0.6)
  824. local em2 = Instance.new("SpecialMesh",e2)
  825. em2.MeshType = "Sphere"
  826.  
  827. toggle = true
  828. for i=1,amountGhosts do
  829. CreateGhost()
  830. end
  831. char.Parent = game:GetService("Workspace").CurrentCamera
  832. char:FindFirstChild("Head").Transparency = 1
  833. char:FindFirstChild("Torso").Transparency = 1
  834. char:FindFirstChild("Right Arm").Transparency = 1
  835. char:FindFirstChild("Left Arm").Transparency = 1
  836. char:FindFirstChild("Right Leg").Transparency = 1
  837. char:FindFirstChild("Left Leg").Transparency = 1
  838. for i,v in pairs(char:GetChildren()) do
  839. if v:IsA("Accessory") then
  840. v:FindFirstChild("Handle").Transparency = 1
  841. end
  842. end
  843. char:FindFirstChild("Head"):FindFirstChild("face"):Destroy()
  844.  
  845. local p1 = Instance.new("Part",workspace)
  846. local m1 = Instance.new("SpecialMesh",p1)
  847. m1.MeshType = "Sphere"
  848. m1.Scale = Vector3.new(5,5,5)
  849. p1.Size = Vector3.new(1,1,1)
  850. p1.Anchored = true
  851. p1.CanCollide = false
  852. p1.TopSurface = "Smooth"
  853. p1.BottomSurface = "Smooth"
  854. p1.BrickColor = gCol
  855. p1.Material = "Neon"
  856. local p2 = Instance.new("Part",workspace)
  857. local m2 = Instance.new("SpecialMesh",p2)
  858. m2.MeshType = "Sphere"
  859. m2.Scale = Vector3.new(8,8,8)
  860. p2.Size = Vector3.new(1,1,1)
  861. p2.Anchored = true
  862. p2.CanCollide = false
  863. p2.TopSurface = "Smooth"
  864. p2.BottomSurface = "Smooth"
  865. p2.BrickColor = gCol2
  866. p2.Material = "Neon"
  867. local p3 = Instance.new("Part",workspace)
  868. local m3 = Instance.new("BlockMesh",p3)
  869. m3.Scale = Vector3.new(7,7,7)
  870. p3.Size = Vector3.new(1,1,1)
  871. p3.Transparency = 0.4
  872. p3.Anchored = true
  873. p3.CanCollide = false
  874. p3.TopSurface = "Smooth"
  875. p3.BottomSurface = "Smooth"
  876. p3.BrickColor = gCol
  877. p3.Material = "Neon"
  878. local p4 = Instance.new("Part",workspace)
  879. local m4 = Instance.new("BlockMesh",p4)
  880. m4.Scale = Vector3.new(10,10,10)
  881. p4.Size = Vector3.new(1,1,1)
  882. p4.Transparency = 0.4
  883. p4.Anchored = true
  884. p4.CanCollide = false
  885. p4.TopSurface = "Smooth"
  886. p4.BottomSurface = "Smooth"
  887. p4.BrickColor = gCol2
  888. p4.Material = "Neon"
  889. local currentframe = 0
  890. local frmR
  891.  
  892. frmR = game:GetService("RunService").RenderStepped:connect(function()
  893. currentframe = currentframe + 1
  894. if currentframe < 1*60 then
  895. p1.CFrame = char:WaitForChild("Torso").CFrame
  896. p2.CFrame = char:WaitForChild("Torso").CFrame
  897. p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  898. p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  899. m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
  900. m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
  901. m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
  902. m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
  903. p1.Transparency = p1.Transparency + (1/(1*60))
  904. p2.Transparency = p2.Transparency + (1/(1*60))
  905. p3.Transparency = p3.Transparency + (1/(1*60))
  906. p4.Transparency = p4.Transparency + (1/(1*60))
  907. else
  908. p1:Destroy()
  909. p2:Destroy()
  910. p3:Destroy()
  911. p4:Destroy()
  912. frmR:disconnect()
  913. end
  914. end)
  915.  
  916. char.Humanoid.MaxHealth = math.huge
  917. wait()
  918. char.Humanoid.Health = math.huge
  919.  
  920. --[[mouse.KeyDown:connect(function(key)
  921. if key == "r" then
  922. print("R!")
  923. if cd == false then
  924. print("No cooldown!")
  925. cd = true
  926. if toggle == false then
  927. print("Entering godmode")
  928. toggle = true
  929. Instance.new("ForceField",char)
  930. for i=1,amountGhosts do
  931. CreateGhost()
  932. end
  933. char.Parent = game:GetService("Workspace").CurrentCamera
  934. char:FindFirstChild("Head").Transparency = 1
  935. char:FindFirstChild("Torso").Transparency = 1
  936. char:FindFirstChild("Right Arm").Transparency = 1
  937. char:FindFirstChild("Left Arm").Transparency = 1
  938. char:FindFirstChild("Right Leg").Transparency = 1
  939. char:FindFirstChild("Left Leg").Transparency = 1
  940. for i,v in pairs(char:GetChildren()) do
  941. if v:IsA("Accessory") then
  942. v:FindFirstChild("Handle").Transparency = 1
  943. end
  944. end
  945. else
  946. print("Exiting godmode")
  947. toggle = false
  948. for i,v in pairs(ghosts) do
  949. v:Destroy()
  950. end
  951. char.Parent = game:GetService("Workspace")
  952. char:FindFirstChild("ForceField"):Destroy()
  953. char:FindFirstChild("Head").Transparency = 0
  954. char:FindFirstChild("Torso").Transparency = 0
  955. char:FindFirstChild("Right Arm").Transparency = 0
  956. char:FindFirstChild("Left Arm").Transparency = 0
  957. char:FindFirstChild("Right Leg").Transparency = 0
  958. char:FindFirstChild("Left Leg").Transparency = 0
  959. for i,v in pairs(char:GetChildren()) do
  960. if v:IsA("Accessory") then
  961. v:FindFirstChild("Handle").Transparency = 0
  962. end
  963. end
  964. end
  965. cd = false
  966. end
  967. end
  968. end)]]
  969.  
  970. mouse.KeyDown:connect(function(key)
  971. spawn(function()
  972. if key == "f" and toggle == true and mcd == false then
  973. if #ghosts < amountGhosts then
  974. print(#ghosts.."<")
  975. mcd = true
  976.  
  977. ClearGhosts()
  978.  
  979. for i=1,amountGhosts do
  980. CreateGhost()
  981. end
  982. local p1 = Instance.new("Part",workspace)
  983. local m1 = Instance.new("SpecialMesh",p1)
  984. m1.MeshType = "Sphere"
  985. m1.Scale = Vector3.new(7,7,7)
  986. p1.Size = Vector3.new(1,1,1)
  987. p1.Anchored = true
  988. p1.CanCollide = false
  989. p1.TopSurface = "Smooth"
  990. p1.BottomSurface = "Smooth"
  991. if gt == false then
  992. p1.BrickColor = gCol
  993. else
  994. p1.BrickColor = wCol
  995. end
  996. p1.Material = "Neon"
  997. local p2 = Instance.new("Part",workspace)
  998. local m2 = Instance.new("SpecialMesh",p2)
  999. m2.MeshType = "Sphere"
  1000. m2.Scale = Vector3.new(9,9,9)
  1001. p2.Size = Vector3.new(1,1,1)
  1002. p2.Anchored = true
  1003. p2.CanCollide = false
  1004. p2.TopSurface = "Smooth"
  1005. p2.BottomSurface = "Smooth"
  1006. if gt == false then
  1007. p2.BrickColor = gCol2
  1008. else
  1009. p2.BrickColor = wCol2
  1010. end
  1011. p2.Material = "Neon"
  1012. local currentframe = 0
  1013. local frmR
  1014.  
  1015. frmR = game:GetService("RunService").RenderStepped:connect(function()
  1016. currentframe = currentframe + 1
  1017. if currentframe < 0.25*60 then
  1018. p1.CFrame = char:WaitForChild("Torso").CFrame
  1019. p2.CFrame = char:WaitForChild("Torso").CFrame
  1020. p1.Transparency = p1.Transparency + (1/(0.25*60))
  1021. p2.Transparency = p2.Transparency + (1/(0.25*60))
  1022. else
  1023. p1:Destroy()
  1024. p2:Destroy()
  1025. mcd = false
  1026. frmR:disconnect()
  1027. end
  1028. end)
  1029. else
  1030. mcd = true
  1031.  
  1032. ClearGhosts()
  1033.  
  1034. local p1 = Instance.new("Part",workspace)
  1035. local m1 = Instance.new("SpecialMesh",p1)
  1036. m1.MeshType = "Sphere"
  1037. m1.Scale = Vector3.new(7,7,7)
  1038. p1.Size = Vector3.new(1,1,1)
  1039. p1.Anchored = true
  1040. p1.CanCollide = false
  1041. p1.TopSurface = "Smooth"
  1042. p1.BottomSurface = "Smooth"
  1043. if gt == false then
  1044. p1.BrickColor = gCol
  1045. else
  1046. p1.BrickColor = wCol
  1047. end
  1048. p1.Material = "Neon"
  1049. local p2 = Instance.new("Part",workspace)
  1050. local m2 = Instance.new("SpecialMesh",p2)
  1051. m2.MeshType = "Sphere"
  1052. m2.Scale = Vector3.new(9,9,9)
  1053. p2.Size = Vector3.new(1,1,1)
  1054. p2.Anchored = true
  1055. p2.CanCollide = false
  1056. p2.TopSurface = "Smooth"
  1057. p2.BottomSurface = "Smooth"
  1058. if gt == false then
  1059. p2.BrickColor = gCol2
  1060. else
  1061. p2.BrickColor = wCol2
  1062. end
  1063. p2.Material = "Neon"
  1064. local currentframe = 0
  1065. local frmR
  1066.  
  1067. frmR = game:GetService("RunService").RenderStepped:connect(function()
  1068. currentframe = currentframe + 1
  1069. if currentframe < 0.25*60 then
  1070. p1.CFrame = char:WaitForChild("Torso").CFrame
  1071. p2.CFrame = char:WaitForChild("Torso").CFrame
  1072. p1.Transparency = p1.Transparency + (1/(0.25*60))
  1073. p2.Transparency = p2.Transparency + (1/(0.25*60))
  1074. else
  1075. p1:Destroy()
  1076. p2:Destroy()
  1077. mcd = false
  1078. frmR:disconnect()
  1079. end
  1080. end)
  1081. end
  1082. elseif key == "g" and toggle == true and mcd == false then
  1083. if gt == true then
  1084. gt = false
  1085. local p1 = Instance.new("Part",workspace)
  1086. local m1 = Instance.new("SpecialMesh",p1)
  1087. m1.MeshType = "Sphere"
  1088. m1.Scale = Vector3.new(5,5,5)
  1089. p1.Size = Vector3.new(1,1,1)
  1090. p1.Anchored = true
  1091. p1.CanCollide = false
  1092. p1.TopSurface = "Smooth"
  1093. p1.BottomSurface = "Smooth"
  1094. p1.BrickColor = gCol
  1095. p1.Material = "Neon"
  1096. local p2 = Instance.new("Part",workspace)
  1097. local m2 = Instance.new("SpecialMesh",p2)
  1098. m2.MeshType = "Sphere"
  1099. m2.Scale = Vector3.new(8,8,8)
  1100. p2.Size = Vector3.new(1,1,1)
  1101. p2.Anchored = true
  1102. p2.CanCollide = false
  1103. p2.TopSurface = "Smooth"
  1104. p2.BottomSurface = "Smooth"
  1105. p2.BrickColor = gCol2
  1106. p2.Material = "Neon"
  1107. local p3 = Instance.new("Part",workspace)
  1108. local m3 = Instance.new("BlockMesh",p3)
  1109. m3.Scale = Vector3.new(7,7,7)
  1110. p3.Size = Vector3.new(1,1,1)
  1111. p3.Transparency = 0.4
  1112. p3.Anchored = true
  1113. p3.CanCollide = false
  1114. p3.TopSurface = "Smooth"
  1115. p3.BottomSurface = "Smooth"
  1116. p3.BrickColor = gCol
  1117. p3.Material = "Neon"
  1118. local p4 = Instance.new("Part",workspace)
  1119. local m4 = Instance.new("BlockMesh",p4)
  1120. m4.Scale = Vector3.new(10,10,10)
  1121. p4.Size = Vector3.new(1,1,1)
  1122. p4.Transparency = 0.4
  1123. p4.Anchored = true
  1124. p4.CanCollide = false
  1125. p4.TopSurface = "Smooth"
  1126. p4.BottomSurface = "Smooth"
  1127. p4.BrickColor = gCol2
  1128. p4.Material = "Neon"
  1129.  
  1130. ClearGhosts()
  1131.  
  1132. for i=1,amountGhosts do
  1133. CreateGhost()
  1134. end
  1135.  
  1136. local currentframe = 0
  1137. local frmR
  1138.  
  1139. frmR = game:GetService("RunService").RenderStepped:connect(function()
  1140. currentframe = currentframe + 1
  1141. if currentframe < 1*60 then
  1142. p1.CFrame = char:WaitForChild("Torso").CFrame
  1143. p2.CFrame = char:WaitForChild("Torso").CFrame
  1144. p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1145. p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1146. m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
  1147. m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
  1148. m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
  1149. m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
  1150. p1.Transparency = p1.Transparency + (1/(1*60))
  1151. p2.Transparency = p2.Transparency + (1/(1*60))
  1152. p3.Transparency = p3.Transparency + (1/(1*60))
  1153. p4.Transparency = p4.Transparency + (1/(1*60))
  1154. else
  1155. p1:Destroy()
  1156. p2:Destroy()
  1157. p3:Destroy()
  1158. p4:Destroy()
  1159. frmR:disconnect()
  1160. end
  1161. end)
  1162. else
  1163. gt = true
  1164. local p1 = Instance.new("Part",workspace)
  1165. local m1 = Instance.new("SpecialMesh",p1)
  1166. m1.MeshType = "Sphere"
  1167. m1.Scale = Vector3.new(5,5,5)
  1168. p1.Size = Vector3.new(1,1,1)
  1169. p1.Anchored = true
  1170. p1.CanCollide = false
  1171. p1.TopSurface = "Smooth"
  1172. p1.BottomSurface = "Smooth"
  1173. p1.BrickColor = wCol
  1174. p1.Material = "Neon"
  1175. local p2 = Instance.new("Part",workspace)
  1176. local m2 = Instance.new("SpecialMesh",p2)
  1177. m2.MeshType = "Sphere"
  1178. m2.Scale = Vector3.new(8,8,8)
  1179. p2.Size = Vector3.new(1,1,1)
  1180. p2.Anchored = true
  1181. p2.CanCollide = false
  1182. p2.TopSurface = "Smooth"
  1183. p2.BottomSurface = "Smooth"
  1184. p2.BrickColor = wCol2
  1185. p2.Material = "Neon"
  1186. local p3 = Instance.new("Part",workspace)
  1187. local m3 = Instance.new("BlockMesh",p3)
  1188. m3.Scale = Vector3.new(7,7,7)
  1189. p3.Size = Vector3.new(1,1,1)
  1190. p3.Transparency = 0.4
  1191. p3.Anchored = true
  1192. p3.CanCollide = false
  1193. p3.TopSurface = "Smooth"
  1194. p3.BottomSurface = "Smooth"
  1195. p3.BrickColor = wCol
  1196. p3.Material = "Neon"
  1197. local p4 = Instance.new("Part",workspace)
  1198. local m4 = Instance.new("BlockMesh",p4)
  1199. m4.Scale = Vector3.new(10,10,10)
  1200. p4.Size = Vector3.new(1,1,1)
  1201. p4.Transparency = 0.4
  1202. p4.Anchored = true
  1203. p4.CanCollide = false
  1204. p4.TopSurface = "Smooth"
  1205. p4.BottomSurface = "Smooth"
  1206. p4.BrickColor = wCol2
  1207. p4.Material = "Neon"
  1208.  
  1209. ClearGhosts()
  1210.  
  1211. for i=1,amountGhosts do
  1212. CreateGhost()
  1213. end
  1214.  
  1215. local currentframe = 0
  1216. local frmR
  1217.  
  1218. frmR = game:GetService("RunService").RenderStepped:connect(function()
  1219. currentframe = currentframe + 1
  1220. if currentframe < 1*60 then
  1221. p1.CFrame = char:WaitForChild("Torso").CFrame
  1222. p2.CFrame = char:WaitForChild("Torso").CFrame
  1223. p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1224. p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1225. m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
  1226. m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
  1227. m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
  1228. m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
  1229. p1.Transparency = p1.Transparency + (1/(1*60))
  1230. p2.Transparency = p2.Transparency + (1/(1*60))
  1231. p3.Transparency = p3.Transparency + (1/(1*60))
  1232. p4.Transparency = p4.Transparency + (1/(1*60))
  1233. else
  1234. p1:Destroy()
  1235. p2:Destroy()
  1236. p3:Destroy()
  1237. p4:Destroy()
  1238. frmR:disconnect()
  1239. end
  1240. end)
  1241. end
  1242. end
  1243. end)
  1244. end)
  1245.  
  1246. local frm = 0
  1247.  
  1248. local toRemove = {}
  1249.  
  1250. game:GetService("RunService").RenderStepped:connect(function()
  1251. frm = frm + 1
  1252. if char.Parent == game:GetService("Workspace").CurrentCamera then
  1253.  
  1254. e1.CFrame = char.Head.CFrame * CFrame.new(0.15,0.1,-0.55)
  1255. e2.CFrame = char.Head.CFrame * CFrame.new(-0.15,0.1,-0.55)
  1256.  
  1257. local delay = 0.9
  1258.  
  1259. for i,v in pairs(ghosts) do
  1260. for _,b in pairs(v:GetChildren()) do
  1261. if b:IsA("Part") or b:IsA("WedgePart") or b:IsA("TrussPart") or b:IsA("UnionOperation") then
  1262. b.CFrame = b.CFrame:lerp(b:FindFirstChild("Target").Value.CFrame,delay)
  1263. end
  1264. end
  1265. delay = delay - (0.5/(#ghosts+1))
  1266. end
  1267.  
  1268. --[[if math.floor(frm/8) == frm/8 then
  1269. local isub = 0
  1270. for i,v in pairs(ghosts) do
  1271. if #v:GetChildren() < 6 then
  1272. v:Destroy()
  1273. table.remove(ghosts,i - isub)
  1274. isub = isub + 1
  1275. CreateGhost()
  1276. end
  1277. end
  1278. end]]
  1279. end
  1280.  
  1281. --Animation states
  1282.  
  1283. local ray = Ray.new(char.HumanoidRootPart.CFrame.p, Vector3.new(0,-3,0).unit*4)
  1284. local part,pos,normal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(ray,ghosts,false,true)
  1285.  
  1286. if state ~= "busy" then
  1287. if char.HumanoidRootPart.Velocity.Magnitude <= 0.5 then
  1288. state = "idle"
  1289. elseif char.HumanoidRootPart.Velocity.Magnitude > 0.5 then
  1290. state = "running"
  1291. --[[elseif char.HumanoidRootPart.Velocity.Y < 0.1 and not part then
  1292. state = "falling"
  1293. elseif char.HumanoidRootPart.Velocity.Y >= 0.1 and not part then
  1294. state = "jumping"]]
  1295. end
  1296. char.Humanoid.WalkSpeed = 50
  1297. char.Humanoid.JumpPower = 70
  1298. end
  1299.  
  1300. --Actual animations
  1301.  
  1302. if state == "idle" then
  1303. char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0,1 + (math.cos(tick())/5),0) * CFrame.Angles(math.rad(80 + math.cos(tick())*4),math.rad(180),math.rad(0)),0.06)
  1304. char.Torso["Right Hip"].C0 = char.Torso["Right Hip"].C0:lerp(CFrame.new(0.5,-0.1 + (math.cos((tick())*2)/10),-0.2) * CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),0.06)
  1305. char.Torso["Left Hip"].C0 = char.Torso["Left Hip"].C0:lerp(CFrame.new(-0.5,-0.5 + (math.cos((tick()-0.5)*2)/6),0.3) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),0.06)
  1306. char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0:lerp(CFrame.new(1.5,0.43 + (math.cos((tick()-0.5)*1.5)/30),-0.6) * CFrame.Angles(math.rad(math.cos((tick())*2)*10),math.rad(0),math.rad(math.cos(tick()/3)*3)),0.06)
  1307. char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0:lerp(CFrame.new(-1.5,0.3 + (math.cos((tick()-0.5)*1.5)/30),-0.6) * CFrame.Angles(math.rad(-15 + math.cos((tick()))*7),math.rad(0),math.rad(math.cos(tick()/2)*4)),0.06)
  1308. char.Torso.Neck.C0 = char.Torso.Neck.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(90 + math.cos(tick()*1.5)*6),math.rad(180),math.rad(0)),0.06)
  1309. elseif state == "running" then
  1310. char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0,1 + (math.cos(tick())/5),0) * CFrame.Angles(math.rad(65 + math.cos(tick())*4),math.rad(180),math.rad(-char.HumanoidRootPart.RotVelocity.Y*10)),0.06)
  1311. char.Torso["Right Hip"].C0 = char.Torso["Right Hip"].C0:lerp(CFrame.new(0.5,-0.1 + (math.cos((tick())*2)/10),-0.2) * CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),0.06)
  1312. char.Torso["Left Hip"].C0 = char.Torso["Left Hip"].C0:lerp(CFrame.new(-0.5,-0.5 + (math.cos((tick()-0.5)*2)/6),0.3) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),0.06)
  1313. char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0:lerp(CFrame.new(1.5,0.70 + (math.cos((tick()-0.5)*1.5)/30),-0.4) * CFrame.Angles(math.rad(50 + math.cos((tick())*2)*10),math.rad(0),math.rad(math.cos(tick()/3)*3)),0.06)
  1314. char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0:lerp(CFrame.new(-1.5,0.3 + (math.cos((tick()-0.5)*1.5)/30),-0.4) * CFrame.Angles(math.rad(-35 + math.cos((tick()))*7),math.rad(0),math.rad(math.cos(tick()/2)*4)),0.06)
  1315. char.Torso.Neck.C0 = char.Torso.Neck.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(90 + math.cos(tick()*1.5)*6),math.rad(180),math.rad(0)),0.06)
  1316. end
  1317. end)
  1318.  
  1319. char.Humanoid.Died:connect(function()
  1320. toggle = false
  1321.  
  1322. ClearGhosts()
  1323.  
  1324. char.Parent = game.Workspace
  1325. char.Parent = game:GetService("Workspace")
  1326. char:FindFirstChild("ForceField"):Destroy()
  1327. char:FindFirstChild("Head").Transparency = 0
  1328. char:FindFirstChild("Torso").Transparency = 0
  1329. char:FindFirstChild("Right Arm").Transparency = 0
  1330. char:FindFirstChild("Left Arm").Transparency = 0
  1331. char:FindFirstChild("Right Leg").Transparency = 0
  1332. char:FindFirstChild("Left Leg").Transparency = 0
  1333. for i,v in pairs(char:GetChildren()) do
  1334. if v:IsA("Accessory") then
  1335. v:FindFirstChild("Handle").Transparency = 0
  1336. end
  1337. end
  1338. for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end
  1339. plr:LoadCharacter()
  1340. end)
  1341.  
  1342. local msgidGlob = 0
  1343. local state = true
  1344. local font = "Arcade"
  1345. local tcol = Color3.fromRGB(255,217,0)
  1346. local tscol = Color3.fromRGB(0,0,0)
  1347. local fsiz = 28
  1348. local tr = true
  1349. local tsr = false
  1350. local fade = 2
  1351.  
  1352. local p = Instance.new("Part",game.Workspace)
  1353. p.Size = Vector3.new(0.2,0.2,0.2)
  1354. p.Transparency = 1
  1355. p.Anchored = true
  1356. p.CanCollide = false
  1357. p.Name = "Msg"
  1358. p.CFrame = plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0)
  1359.  
  1360. local r = 255
  1361. local b = 0
  1362. local g = 0
  1363.  
  1364. plr.Chatted:connect(function(c)
  1365. msgidGlob = msgidGlob + 1
  1366. local curMsgId = msgidGlob
  1367. if string.lower(c) == "!disable" then
  1368. state = false
  1369. elseif string.lower(c) == "!enable" then
  1370. state = true
  1371. elseif string.lower(string.sub(c,1,6)) == "!font " then
  1372. local old = font
  1373. font = string.sub(c,7,#c) or old
  1374. elseif string.lower(string.sub(c,1,8)) == "!tcolor " then
  1375. if string.lower(string.sub(c,9,#c)) == "rainbow" then
  1376. tr = true
  1377. else
  1378. tr = false
  1379. local old = tcol
  1380. tcol = Color3.fromRGB(string.sub(c,9,11),string.sub(c,13,15),string.sub(c,17,19)) or old
  1381. end
  1382. elseif string.lower(string.sub(c,1,9)) == "!tscolor " then
  1383. if string.sub(c,10,#c) == "rainbow" then
  1384. tsr = true
  1385. else
  1386. tsr = false
  1387. local old = tscol
  1388. tscol = Color3.fromRGB(string.sub(c,10,12),string.sub(c,14,16),string.sub(c,18,20)) or old
  1389. end
  1390. elseif string.lower(string.sub(c,1,6)) == "!size " then
  1391. local old = fsiz
  1392. fsiz = string.sub(c,7,#c) or old
  1393. elseif string.lower(string.sub(c,1,6)) == "!fade " then
  1394. local old = fade
  1395. fade = string.sub(c,7,#c) or old
  1396. end
  1397. if plr.Character and state == true then
  1398. if plr.Character:FindFirstChild("Head") then
  1399. for i,v in pairs(p:GetChildren()) do
  1400. if v:IsA("BillboardGui") and v.Name == "J2CMSG" then
  1401. v:Destroy()
  1402. end
  1403. end
  1404. local bbgui = Instance.new("BillboardGui",p)
  1405. bbgui.Name = "J2CMSG"
  1406. bbgui.AlwaysOnTop = true
  1407. bbgui.ExtentsOffsetWorldSpace = Vector3.new(0,4.5,0)
  1408. bbgui.Size = UDim2.new(0.2,0,0.14,0)
  1409. local tl = Instance.new("TextLabel",bbgui)
  1410. tl.BackgroundTransparency = 1
  1411. tl.BorderSizePixel = 0
  1412. tl.Size = UDim2.new(1,0,10,0)
  1413. tl.Position = UDim2.new(0,0,-5,0)
  1414. tl.Font = font or "SciFi"
  1415. tl.FontSize = "Size"..fsiz or "Size36"
  1416. tl.TextColor3 = tcol
  1417. tl.TextScaled = false
  1418. tl.TextWrapped = false
  1419. tl.TextStrokeColor3 = tscol
  1420. tl.TextStrokeTransparency = 0
  1421.  
  1422. game:GetService("RunService").RenderStepped:connect(function()
  1423. if tr then
  1424. if tl.Parent ~= nil then
  1425. tl.TextColor3 = Color3.fromRGB(r,g,b)
  1426. end
  1427. end
  1428. end)
  1429.  
  1430. for i=1,#c do
  1431. if msgidGlob == curMsgId then
  1432. tl.Text = string.sub(c,1,i)
  1433. if string.sub(c,i,i) ~= " " then
  1434. local s = Instance.new("Sound",p)
  1435. s.SoundId = "rbxassetid://418252437"
  1436. s.Volume = 1
  1437. s.Pitch = 1
  1438. s:Play()
  1439. game.Debris:AddItem(s,2)
  1440. end
  1441. wait()
  1442. end
  1443. end
  1444. wait(fade)
  1445. if msgidGlob == curMsgId then
  1446. for i=1,10 do
  1447. if msgidGlob == curMsgId then
  1448. tl.TextTransparency = tl.TextTransparency + 0.1
  1449. tl.TextStrokeTransparency = tl.TextStrokeTransparency + 0.1
  1450. tl.Position = tl.Position + UDim2.new(0,0,0,-3)
  1451. wait()
  1452. end
  1453. end
  1454. if msgidGlob == curMsgId then
  1455. bbgui:Destroy()
  1456. end
  1457. end
  1458. end
  1459. end
  1460. end)
  1461.  
  1462. coroutine.resume(coroutine.create(function()
  1463. while wait() do
  1464. for i=0,255,10 do g = i wait() end
  1465. for i=255,0,-10 do r = i wait() end
  1466. for i=0,255,10 do b = i wait() end
  1467. for i=255,0,-10 do g = i wait() end
  1468. for i=0,255,10 do r = i wait() end
  1469. for i=255,0,-10 do b = i wait() end
  1470. end
  1471. end))
  1472.  
  1473. game:GetService("RunService").RenderStepped:connect(function()
  1474. if p.Parent ~= nil then
  1475. p.CFrame = p.CFrame:lerp(plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0),0.16)
  1476. else
  1477. p = Instance.new("Part",game.Workspace)
  1478. p.Size = Vector3.new(0.2,0.2,0.2)
  1479. p.Transparency = 1
  1480. p.Anchored = true
  1481. p.CanCollide = false
  1482. p.Name = "Msg"
  1483. p.CFrame = plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0)
  1484. end
  1485. end)
  1486.  
  1487. print("Ghost loaded! Time elapsed: "..tick() - time)
  1488. -- x10Shield --
  1489. local me = game:GetService("Players").LocalPlayer
  1490. local ShieldSize = 6
  1491. local canCollide = false
  1492. local isLocked = false
  1493. local defaultTransparency = 0.5
  1494. local whitelist = {"", "", "", ""}
  1495.  
  1496. local scriptBreak = false
  1497. local followPart = me.Character.HumanoidRootPart
  1498. local actualList = {}
  1499. local playerList = {}
  1500. table.insert(playerList, me)
  1501. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1502. for _,wplay in pairs(whitelist) do
  1503. if v.Name:lower() == wplay:lower() then
  1504. table.insert(playerList, v)
  1505. end
  1506. end
  1507. end
  1508.  
  1509. local MainLocation = me.Character.Torso
  1510.  
  1511. function createShield()
  1512. pcall(function()
  1513. pcall(function()
  1514. for i,v in pairs(MainLocation:GetChildren()) do
  1515. if v.Name == "weinershield" then
  1516. v:Destroy()
  1517. end
  1518. end
  1519. end)
  1520. local mod = Instance.new("Model", MainLocation)
  1521. mod.Name = "weinershield"
  1522. local p1 = Instance.new("Part", mod)
  1523. p1.Name = "front"
  1524. p1.Size = Vector3.new(ShieldSize,ShieldSize,1)
  1525. p1.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y, followPart.Position.Z+(ShieldSize/2))
  1526. local b = Instance.new("BlockMesh", p1)
  1527. b.Scale = Vector3.new(1, 1, 0)
  1528. local p2 = Instance.new("Part", mod)
  1529. p2.Name = "back"
  1530. p2.Size = Vector3.new(ShieldSize,ShieldSize,1)
  1531. p2.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y, followPart.Position.Z-(ShieldSize/2))
  1532. local b = Instance.new("BlockMesh", p2)
  1533. b.Scale = Vector3.new(1, 1, 0)
  1534. local p3 = Instance.new("Part", mod)
  1535. p3.Name = "left"
  1536. p3.Size = Vector3.new(1,ShieldSize,ShieldSize)
  1537. p3.CFrame = CFrame.new(followPart.Position.X+(ShieldSize/2), followPart.Position.Y, followPart.Position.Z)
  1538. local b = Instance.new("BlockMesh", p3)
  1539. b.Scale = Vector3.new(0, 1, 1)
  1540. local p4 = Instance.new("Part", mod)
  1541. p4.Name = "right"
  1542. p4.Size = Vector3.new(1,ShieldSize,ShieldSize)
  1543. p4.CFrame = CFrame.new(followPart.Position.X-(ShieldSize/2), followPart.Position.Y, followPart.Position.Z)
  1544. local b = Instance.new("BlockMesh", p4)
  1545. b.Scale = Vector3.new(0, 1, 1)
  1546. local p5 = Instance.new("Part", mod)
  1547. p5.Name = "top"
  1548. p5.Size = Vector3.new(ShieldSize,1,ShieldSize)
  1549. p5.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y+(ShieldSize/2), followPart.Position.Z)
  1550. local b = Instance.new("BlockMesh", p5)
  1551. b.Scale = Vector3.new(1, 0, 1)
  1552. local p6 = Instance.new("Part", mod)
  1553. p6.Name = "bottom"
  1554. p6.Size = Vector3.new(ShieldSize,1,ShieldSize)
  1555. p6.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y-(ShieldSize/2), followPart.Position.Z)
  1556. local b = Instance.new("BlockMesh", p6)
  1557. b.Scale = Vector3.new(1, 0, 1)
  1558. for i,v in pairs(mod:GetChildren()) do
  1559. v.Anchored = true
  1560. v.Transparency = defaultTransparency
  1561. v.Material = "Neon"
  1562. v.TopSurface = "Smooth"
  1563. v.BottomSurface = "Smooth"
  1564. v.CanCollide = canCollide
  1565. end
  1566. mod.ChildRemoved:connect(function(a)
  1567. game:GetService("RunService").Stepped:wait()
  1568. if a.ClassName == "Part" then
  1569. createShield()
  1570. end
  1571. end)
  1572. end)
  1573. end
  1574.  
  1575. function updateShield()
  1576. pcall(function()
  1577. char = me.Character
  1578. for i,v in pairs(MainLocation:findFirstChild("weinershield"):GetChildren()) do
  1579. v.Anchored = true
  1580. v.Transparency = defaultTransparency
  1581. v.Material = "Neon"
  1582. v.TopSurface = "Smooth"
  1583. v.BottomSurface = "Smooth"
  1584. v.CanCollide = canCollide
  1585. end
  1586. MainLocation:findFirstChild("weinershield").front.Size = Vector3.new(ShieldSize,ShieldSize,1)
  1587. MainLocation:findFirstChild("weinershield").front.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y, followPart.Position.Z+(ShieldSize/2))
  1588. MainLocation:findFirstChild("weinershield").back.Size = Vector3.new(ShieldSize,ShieldSize,1)
  1589. MainLocation:findFirstChild("weinershield").back.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y, followPart.Position.Z-(ShieldSize/2))
  1590. MainLocation:findFirstChild("weinershield").left.Size = Vector3.new(1,ShieldSize,ShieldSize)
  1591. MainLocation:findFirstChild("weinershield").left.CFrame = CFrame.new(followPart.Position.X+(ShieldSize/2), followPart.Position.Y, followPart.Position.Z)
  1592. MainLocation:findFirstChild("weinershield").right.Size = Vector3.new(1,ShieldSize,ShieldSize)
  1593. MainLocation:findFirstChild("weinershield").right.CFrame = CFrame.new(followPart.Position.X-(ShieldSize/2), followPart.Position.Y, followPart.Position.Z)
  1594. MainLocation:findFirstChild("weinershield").top.Size = Vector3.new(ShieldSize,1,ShieldSize)
  1595. MainLocation:findFirstChild("weinershield").top.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y+(ShieldSize/2), followPart.Position.Z)
  1596. MainLocation:findFirstChild("weinershield").bottom.Size = Vector3.new(ShieldSize,1,ShieldSize)
  1597. MainLocation:findFirstChild("weinershield").bottom.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y-(ShieldSize/2), followPart.Position.Z)
  1598. end)
  1599. end
  1600.  
  1601.  
  1602. local function CreateRegion3FromLocAndSize(Position, Size)
  1603. local SizeOffset = Size/2
  1604. local Point1 = Position - SizeOffset
  1605. local Point2 = Position + SizeOffset
  1606. return Region3.new(Point1, Point2)
  1607. end
  1608.  
  1609. createShield()
  1610. game:GetService("RunService").Heartbeat:connect(function()
  1611. if not scriptBreak then
  1612. local me = game:GetService("Players").LocalPlayer
  1613. local char = workspace:findFirstChild(me.Name)
  1614. actualList = {}
  1615. for i,v in pairs(playerList) do
  1616. pcall(function()
  1617. table.insert(actualList, workspace:findFirstChild(v.Name))
  1618. end)
  1619. end
  1620. if MainLocation:findFirstChild("weinershield") ~= nil then
  1621. updateShield()
  1622. else
  1623. createShield()
  1624. end
  1625. pcall(function()
  1626. local Region = CreateRegion3FromLocAndSize(followPart.Position, Vector3.new(ShieldSize+1,ShieldSize+1,ShieldSize+1))
  1627. for _,Part in pairs(workspace:FindPartsInRegion3WithIgnoreList(Region,actualList,math.huge)) do
  1628. if Part.Name ~= "Base" and not Part:isDescendantOf(MainLocation:findFirstChild("weinershield")) then
  1629. Part:Destroy()
  1630. end
  1631. end
  1632. end)
  1633. pcall(function()
  1634. for i,v in pairs(actualList) do
  1635. if v:findFirstChild("Humanoid") ~= nil then
  1636. v.Humanoid.MaxHealth = math.huge
  1637. v.Humanoid.Health = math.huge
  1638. else
  1639. Instance.new("Humanoid", v)
  1640. end
  1641. end
  1642. end)
  1643. end
  1644. end)
Add Comment
Please, Sign In to add comment