zed_isJayTheLionJR

The Untouchable Man v2

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