Advertisement
AgentVK

GOD GHOST MY SCRIPT NO STEAL ASSHOLE

Nov 29th, 2017
843
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --------well rip got leaked----
  2. -----AgentVK
  3.  
  4. local Player = game.Players.LocalPlayer
  5. local Mouse = Player:GetMouse()
  6. repeat wait() until Player.Character
  7. local Character = Player.Character
  8. local Humanoid = Character.Humanoid
  9. local Torso = Character.Torso
  10. local Head = Character.Head
  11. local RightArm = Character["Right Arm"]
  12. local LeftArm = Character["Left Arm"]
  13. local RightLeg = Character["Right Leg"]
  14. local LeftLeg = Character["Left Leg"]
  15. local Head = Character.Head
  16. local RightShoulder = Torso["Right Shoulder"]
  17. local LeftShoulder = Torso["Left Shoulder"]
  18. local Neck = Torso["Neck"]
  19. local RightHip = Torso["Right Hip"]
  20. local LeftHip = Torso["Left Hip"]
  21. wait(1)
  22. Instance.new("ForceField", Character)
  23.  
  24. local NeckC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  25. local NeckC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  26. local LeftShoulderC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  27. local LeftShoulderC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  28. local RightShoulderC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  29. local RightShoulderC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  30. local LeftHipC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  31. local LeftHipC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  32. local RightHipC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  33. local RightHipC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46. local Player = game.Players.LocalPlayer
  47. local Character = Player.Character
  48. local Humanoid = Character.Humanoid
  49. local Torso = Character.Torso
  50. local Head = Character.Head
  51. local mouse = Player:GetMouse()
  52. local Root = Character.HumanoidRootPart
  53. local RunService = game:GetService("RunService").RenderStepped
  54. local Lighting = game:GetService("Lighting")
  55.  
  56.  
  57. Player:ClearCharacterAppearance()
  58. wait(0.1)
  59. Player.Character.Head.BrickColor = BrickColor.new("Really black")
  60. Player.Character.Torso.BrickColor = BrickColor.new("Really black")
  61. Player.Character["Right Arm"].BrickColor = BrickColor.new("Really black")
  62. Player.Character["Right Leg"].BrickColor = BrickColor.new("Really black")
  63. Player.Character["Left Leg"].BrickColor = BrickColor.new("Really black")
  64. Player.Character["Left Arm"].BrickColor = BrickColor.new("Really black")
  65. pcall(function() Player.Character.Torso.roblox:Destroy() end)
  66.  
  67. z = Instance.new("Sound", Character)
  68. z.SoundId = "rbxassetid://"--301463006
  69. z.Looped = true
  70. z.Pitch = 1
  71. z.Volume = math.huge
  72. wait(.1)
  73. z:Play()
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83. CV="Pastel blue"
  84.  
  85. local txt = Instance.new("BillboardGui", Character)
  86. txt.Adornee = Character .Head
  87. txt.Name = "_status"
  88. txt.Size = UDim2.new(2, 0, 1.2, 0)
  89. txt.StudsOffset = Vector3.new(-9, 8, 0)
  90. local text = Instance.new("TextLabel", txt)
  91. text.Size = UDim2.new(10, 0, 7, 0)
  92. text.FontSize = "Size24"
  93. text.TextScaled = true
  94. text.TextTransparency = 0
  95. text.BackgroundTransparency = 1
  96. text.TextTransparency = 0
  97. text.TextStrokeTransparency = 0
  98. text.Font = "Antique"
  99. text.TextStrokeColor3 = Color3.new(255,85,0)
  100.  
  101. v=Instance.new("Part")
  102. v.Name = "ColorBrick"
  103. v.Parent=Player.Character
  104. v.FormFactor="Symmetric"
  105. v.Anchored=true
  106. v.CanCollide=false
  107. v.BottomSurface="Smooth"
  108. v.TopSurface="Smooth"
  109. v.Size=Vector3.new(10,5,3)
  110. v.Transparency=1
  111. v.CFrame=Character.Torso.CFrame
  112. v.BrickColor=BrickColor.new(CV)
  113. v.Transparency=1
  114. text.TextColor3 = Color3.new(0,0,0)
  115. v.Shape="Block"
  116. text.Text = "Power Ranger God"
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124. local selectionBoxOfTorso = Instance.new("SelectionBox",Torso)
  125. selectionBoxOfTorso.Adornee = Torso
  126. selectionBoxOfTorso.Color = BrickColor.new("1020")
  127. selectionBoxOfTorso.LineThickness = 0.01
  128. selectionBoxOfTorso.Transparency = 0
  129.  
  130. local selectionBoxOfRightArm = Instance.new("SelectionBox",Character["Right Arm"])
  131. selectionBoxOfRightArm.Adornee = Character["Right Arm"]
  132. selectionBoxOfRightArm.Color = BrickColor.new("1020")
  133. selectionBoxOfRightArm.LineThickness = 0.01
  134. selectionBoxOfRightArm.Transparency = 0
  135.  
  136. local selectionBoxOfRightLeg = Instance.new("SelectionBox",Character["Right Leg"])
  137. selectionBoxOfRightLeg.Adornee = Character["Right Leg"]
  138. selectionBoxOfRightLeg.Color = BrickColor.new("1020")
  139. selectionBoxOfRightLeg.LineThickness = 0.01
  140. selectionBoxOfRightLeg.Transparency = 0
  141.  
  142. local selectionBoxOfLeftArm = Instance.new("SelectionBox",Character["Left Arm"])
  143. selectionBoxOfLeftArm.Adornee = Character["Left Arm"]
  144. selectionBoxOfLeftArm.Color = BrickColor.new("1020")
  145. selectionBoxOfLeftArm.LineThickness = 0.01
  146. selectionBoxOfLeftArm.Transparency = 0
  147.  
  148. local selectionBoxOfLeftLeg = Instance.new("SelectionBox",Character["Left Leg"])
  149. selectionBoxOfLeftLeg.Adornee = Character["Left Leg"]
  150. selectionBoxOfLeftLeg.Color = BrickColor.new("1020")
  151. selectionBoxOfLeftLeg.LineThickness = 0.01
  152. selectionBoxOfLeftLeg.Transparency = 0
  153.  
  154.  
  155. LightOnBody = Instance.new("PointLight", Head)
  156. LightOnBody.Brightness = 3000
  157. LightOnBody.Range = 20
  158. LightOnBody.Color = Color3.new(255, 85, 0)
  159.  
  160. local HandCF = CFrame.new(Root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  161. local wave = Instance.new("Part", Torso)
  162. wave.BrickColor = BrickColor.new("Maroon")
  163. wave.Anchored = true
  164. wave.CanCollide = false
  165. wave.Locked = true
  166. wave.Size = Vector3.new(1, 1, 1)
  167. wave.TopSurface = "Smooth"
  168. wave.BottomSurface = "Smooth"
  169. wave.Transparency = 0.35
  170. wave.CFrame = HandCF
  171. wm = Instance.new("SpecialMesh", wave)
  172. wm.MeshId = "rbxassetid://3270017"
  173. coroutine.wrap(function()
  174. for i = 1, 14, 1 do
  175. wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1)
  176. wave.Size = wm.Scale
  177. wave.CFrame = HandCF
  178. wave.Transparency = i/14
  179. wait()
  180. end
  181. wait()
  182. wave:Destroy()
  183. end)()
  184.  
  185.  
  186. local function RefreshWelds()
  187. Neck.C0 = NeckC0
  188. Neck.C1 = NeckC1
  189. RightShoulder.C0 = RightShoulderC0
  190. RightShoulder.C1 = RightShoulderC1
  191. LeftShoulder.C0 = LeftShoulderC0
  192. LeftShoulder.C1 = LeftShoulderC1
  193. RightHip.C0 = RightHipC0
  194. RightHip.C1 = RightHipC1
  195. LeftHip.C0 = LeftHipC0
  196. LeftHip.C1 = LeftHipC1
  197. end
  198.  
  199. local LastArm = "Left"
  200. local Active = false
  201. game:GetService("UserInputService").InputBegan:connect(function(Key, Gpe)
  202. if not Gpe then
  203. if Key.KeyCode == Enum.KeyCode.F and not Active then
  204. Active=true
  205. RefreshWelds()
  206. Torso.CFrame = CFrame.new(Torso.Position, Vector3.new(Mouse.hit.p.x, Torso.Position.Y, Mouse.hit.p.z))
  207. Torso.Anchored=true
  208. Humanoid.PlatformStand = true
  209. for i = 1,3 do
  210. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,-0.2,0.55)
  211. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0, 0.2, -0.55)
  212. end
  213. local last1
  214. local last2
  215. local explosion = Instance.new("Sound", Character)
  216. explosion.Name="explosion"
  217. explosion.SoundId = "rbxassetid://2248511"
  218. explosion:Play()
  219. game.Debris:AddItem(explosion,10)
  220. spawn(function()
  221. for i = 1,15 do
  222. local p = Instance.new("Part", Character)
  223. p.Anchored=true
  224. p.CanCollide=false
  225. p.Transparency=1
  226. p.Size=Vector3.new(.1,.1,.1)
  227. p.Shape = "Ball"
  228. p.BrickColor = BrickColor.new("Really black")
  229. game.Debris:AddItem(p,1)
  230. if not last1 then
  231. p.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(45), 0) * CFrame.new(0,0,-10)
  232. last1=p
  233. else
  234. p.CFrame = last1.CFrame * CFrame.new(0, 0,-i*5)
  235. last1=p
  236. end
  237. local explo = Instance.new("Explosion", workspace)
  238. explo.Position=p.Position
  239. explo.BlastPressure = math.huge
  240. explo.BlastRadius= math.huge
  241. wait()
  242. end
  243. end)
  244. spawn(function()
  245. for i = 1,15 do
  246. local p = Instance.new("Part", Character)
  247. p.Anchored=true
  248. p.CanCollide=false
  249. p.Transparency=1
  250. p.Size=Vector3.new(.1,.1,.1)
  251. p.Shape = "Ball"
  252. p.BrickColor = BrickColor.new("Really black")
  253. game.Debris:AddItem(p,1)
  254. if not last2 then
  255. p.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(-45), 0) * CFrame.new(0,0,-10)
  256. last2=p
  257. else
  258. p.CFrame = last2.CFrame * CFrame.new(0,0 ,-i*5)
  259. last2=p
  260. end
  261. local explo = Instance.new("Explosion", workspace)
  262. explo.Position=p.Position
  263. explo.BlastPressure = math.huge
  264. explo.BlastRadius= math.huge
  265. wait()
  266. end
  267. end)
  268. wait(1)
  269. Torso.Anchored=false
  270. Humanoid.PlatformStand = false
  271. RefreshWelds()
  272. Active=false
  273. elseif Key.KeyCode == Enum.KeyCode.C and not Active then
  274. Active = true
  275. RefreshWelds()
  276. Torso.CFrame = CFrame.new(Torso.Position, Vector3.new(Mouse.hit.p.x, Torso.Position.Y, Mouse.hit.p.z))
  277. Torso.Anchored=true
  278. Humanoid.PlatformStand = true
  279. for i = 1,3 do
  280. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,0,0.5)
  281. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0, 0, -0.5)
  282. wait()
  283. end
  284. local last1
  285. local last2
  286. local explosion = Instance.new("Sound", Character)
  287. explosion.Name="explosion"
  288. explosion.SoundId = "rbxassetid://2248511"
  289. explosion:Play()
  290. game.Debris:AddItem(explosion,10)
  291. spawn(function()
  292. for i = 1,15 do
  293. local p = Instance.new("Part", Character)
  294. p.Anchored=true
  295. p.CanCollide=false
  296. p.Transparency=1
  297. p.Size=Vector3.new(.1,.1,.1)
  298. p.Shape = "Ball"
  299. p.BrickColor = BrickColor.new("Really black")
  300. game.Debris:AddItem(p,1)
  301. if not last1 then
  302. p.CFrame = Torso.CFrame * CFrame.new(0,0 ,-i*10)
  303. last1=p
  304. else
  305. p.CFrame = last1.CFrame * CFrame.new(0,0 ,-i*5)
  306. last1=p
  307. end
  308. local explo = Instance.new("Explosion", workspace)
  309. explo.Position=p.Position
  310. explo.BlastPressure = math.huge
  311. explo.BlastRadius= math.huge
  312. wait()
  313. end
  314. end)
  315. spawn(function()
  316. for i = 1,15 do
  317. local p = Instance.new("Part", Character)
  318. p.Anchored=true
  319. p.CanCollide=false
  320. p.Transparency=1
  321. p.Size=Vector3.new(.1,.1,.1)
  322. p.Shape = "Ball"
  323. p.BrickColor = BrickColor.new("Really black")
  324. game.Debris:AddItem(p,1)
  325. if not last2 then
  326. p.CFrame = Torso.CFrame * CFrame.new(0,0 ,-i*10)
  327. last2=p
  328. else
  329. p.CFrame = last2.CFrame * CFrame.new(0,0 ,-i*5)
  330. last2=p
  331. end
  332. local explo = Instance.new("Explosion", workspace)
  333. explo.Position=p.Position
  334. explo.BlastPressure = math.huge
  335. explo.BlastRadius= math.huge
  336. wait()
  337. end
  338. end)
  339. wait(1)
  340. for i = 1,3 do
  341. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,0,-0.5)
  342. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0, 0, 0.5)
  343. wait()
  344. end
  345. Torso.Anchored=false
  346. Humanoid.PlatformStand = false
  347. RefreshWelds()
  348. Active=false
  349. elseif Key.KeyCode == Enum.KeyCode.E and not Active
  350. then Active = true
  351. RefreshWelds()
  352. Torso.Anchored=true
  353. Humanoid.PlatformStand=true
  354. if LastArm == "Left" then
  355. LastArm="Right"
  356. Torso.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(-45), 0)
  357. for i = 1,3 do
  358. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,0,-0.5)
  359. wait()
  360. end
  361. wait(0.5)
  362. RefreshWelds()
  363. for i = 1,3 do
  364. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,0,0.5)
  365. end
  366. Torso.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(45), 0)
  367. local p = Instance.new("Part", Character)
  368. p.Anchored=true
  369. p.CanCollide=false
  370. p.Transparency=1
  371. p.Size=Vector3.new(.1,.1,.1)
  372. p.Shape = "Ball"
  373. p.BrickColor = BrickColor.new("Really black")
  374. p.CFrame = Torso.CFrame * CFrame.new(1.5, 0, -2)
  375. game.Debris:AddItem(p,3)
  376. local explosion = Instance.new("Sound", Character)
  377. explosion.Name="explosion"
  378. explosion.SoundId = "rbxassetid://2248511"
  379. explosion:Play()
  380. game.Debris:AddItem(explosion, 10)
  381. local explo = Instance.new("Explosion", workspace)
  382. explo.BlastPressure = math.huge
  383. explo.BlastRadius= math.huge
  384. explo.Position=p.Position
  385. elseif LastArm == "Right" then
  386. LastArm = "Left"
  387. Torso.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(45), 0)
  388. for i = 1,3 do
  389. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0,0,0.5)
  390. wait()
  391. end
  392. wait(0.5)
  393. RefreshWelds()
  394. for i = 1,3 do
  395. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0,0,-0.5)
  396. end
  397. Torso.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(-45), 0)
  398. local p = Instance.new("Part", Character)
  399. p.Anchored=true
  400. p.CanCollide=false
  401. p.Transparency=1
  402. p.Size=Vector3.new(.1,.1,.1)
  403. p.Shape = "Ball"
  404. p.BrickColor = BrickColor.new("Really black")
  405. p.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, -2)
  406. game.Debris:AddItem(p,3)
  407. local explosion = Instance.new("Sound", Character)
  408. explosion.Name="explosion"
  409. explosion.SoundId = "rbxassetid://2248511"
  410. explosion:Play()
  411. game.Debris:AddItem(explosion, 10)
  412. local explo = Instance.new("Explosion", workspace)
  413. explo.BlastPressure = math.huge
  414. explo.BlastRadius= math.huge
  415. explo.Position=p.Position
  416. end
  417. wait(0.5)
  418. Active = false
  419. RefreshWelds()
  420. Torso.Anchored=false
  421. Humanoid.PlatformStand=false
  422. end
  423. end
  424. end)
  425.  
  426.  
  427. local time = tick()
  428.  
  429. local plr = game:GetService("Players").LocalPlayer
  430. local mouse,char = plr:GetMouse(),plr.Character
  431.  
  432. local amountGhosts = 5
  433.  
  434. for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end
  435.  
  436. local toggle,cd,mcd = false,false,false
  437. local ghosts = {}
  438. local temptab = {}
  439.  
  440. char:WaitForChild("Animate"):Destroy()
  441. char.Humanoid:WaitForChild("Animator"):Destroy()
  442.  
  443. local state = "idle"
  444.  
  445. local gt = false
  446.  
  447. local gyro = Instance.new("BodyGyro",char:WaitForChild("HumanoidRootPart")) --Stops the character from glitching out on enter/exit
  448. gyro.MaxTorque = Vector3.new(0,0,0)
  449. gyro.D = 0
  450. gyro.P = 100000000
  451.  
  452.  
  453. local wCol = BrickColor.new("Really red")
  454. local wCol2 = BrickColor.new("Really black")
  455. local gCol = BrickColor.new("Toothpaste")
  456. local gCol2 = BrickColor.new("Institutional white")
  457.  
  458. function searchAll(m,clear)
  459. if clear then
  460. if clear == true then
  461. for i,v in pairs(temptab) do
  462. table.remove(temptab,1)
  463. end
  464. end
  465. end
  466. for i,v in pairs(m:GetChildren()) do
  467. if v then
  468. local s = v:Clone()
  469. for _,b in pairs(s:GetChildren()) do
  470. b:Destroy()
  471. end
  472. if s:IsA("Part") or s:IsA("WedgePart") or s:IsA("TrussPart") or s:IsA("UnionOperation") then
  473. if s.Name ~= "HumanoidRootPart" then
  474. s.Anchored = true
  475. s.CanCollide = false
  476. s.Transparency = 0.95
  477. s.TopSurface = "Smooth"
  478. s.BottomSurface = "Smooth"
  479. s.FrontSurface = "Smooth"
  480. s.RightSurface = "Smooth"
  481. s.BackSurface = "Smooth"
  482. s.LeftSurface = "Smooth"
  483. if s.Material ~= Enum.Material.Neon then
  484. if gt == true then
  485. s.BrickColor = wCol2
  486. else
  487. s.BrickColor = gCol2
  488. end
  489. else
  490. if gt == true then
  491. s.BrickColor = wCol
  492. else
  493. s.BrickColor = gCol
  494. end
  495. end
  496. for _,c in pairs(v:GetChildren()) do
  497. if c:IsA("SpecialMesh") or c:IsA("CylinderMesh") then
  498. c:Clone().Parent = s
  499. end
  500. end
  501. local objValue = Instance.new("ObjectValue",s)
  502. objValue.Name = "Target"
  503. objValue.Value = v
  504. table.insert(temptab,s)
  505. end
  506. --elseif s:IsA("CharacterMesh") then
  507. --table.insert(temptab,s)
  508. end
  509. --searchAll(v)
  510. end
  511. end
  512. return temptab
  513. end
  514.  
  515. function CreateGhost()
  516. local ghost = Instance.new("Model",game.Workspace)
  517. searchAll(char,true)
  518. ghost.Name = char.Name.."'s Ghost "..#ghosts..#plr.Name
  519. --Instance.new("Humanoid",ghost)
  520. for i,v in pairs(temptab) do
  521. v:Clone().Parent = ghost
  522. end
  523. table.insert(ghosts,ghost)
  524. end
  525.  
  526. function ClearGhosts()
  527. for i,v in pairs(ghosts) do
  528. v:Destroy()
  529. end
  530. for i,v in pairs(ghosts) do
  531. table.remove(ghosts,1)
  532. end
  533. for i,v in pairs(game:GetService("Workspace"):GetChildren()) do
  534. if string.sub(v.Name,1,#plr.Name+9) == plr.Name.."'s Ghost " then
  535. v:Destroy()
  536. end
  537. end
  538. end
  539.  
  540. Instance.new("ForceField",char).Visible = false
  541.  
  542. local e1 = Instance.new("Part",char)
  543. e1.Size = Vector3.new(0.2,0.2,0.2)
  544. e1.TopSurface = "Smooth"
  545. e1.BottomSurface = "Smooth"
  546. e1.Material = "Neon"
  547. e1.Transparency = 1
  548. e1.Anchored = true
  549. e1.CanCollide = false
  550. e1.BrickColor = gCol
  551. e1.CFrame = char.Head.CFrame * CFrame.new(0.15,0.1,-0.6)
  552. local em1 = Instance.new("SpecialMesh",e1)
  553. em1.MeshType = "Sphere"
  554. local e2 = Instance.new("Part",char)
  555. e2.Size = Vector3.new(0.2,0.2,0.2)
  556. e2.TopSurface = "Smooth"
  557. e2.BottomSurface = "Smooth"
  558. e2.Transparency = 1
  559. e2.Material = "Neon"
  560. e2.Anchored = true
  561. e2.CanCollide = false
  562. e2.BrickColor = gCol
  563. e2.CFrame = char.Head.CFrame * CFrame.new(-0.15,0.1,-0.6)
  564. local em2 = Instance.new("SpecialMesh",e2)
  565. em2.MeshType = "Sphere"
  566.  
  567. toggle = true
  568. for i=1,amountGhosts do
  569. CreateGhost()
  570. end
  571. char.Parent = game:GetService("Workspace").CurrentCamera
  572. char:FindFirstChild("Head").Transparency = 1
  573. char:FindFirstChild("Torso").Transparency = 1
  574. char:FindFirstChild("Right Arm").Transparency = 1
  575. char:FindFirstChild("Left Arm").Transparency = 1
  576. char:FindFirstChild("Right Leg").Transparency = 1
  577. char:FindFirstChild("Left Leg").Transparency = 1
  578. for i,v in pairs(char:GetChildren()) do
  579. if v:IsA("Accessory") then
  580. v:FindFirstChild("Handle").Transparency = 1
  581. end
  582. end
  583. char:FindFirstChild("Head"):FindFirstChild("face"):Destroy()
  584.  
  585. local p1 = Instance.new("Part",workspace)
  586. local m1 = Instance.new("SpecialMesh",p1)
  587. m1.MeshType = "Sphere"
  588. m1.Scale = Vector3.new(5,5,5)
  589. p1.Size = Vector3.new(1,1,1)
  590. p1.Anchored = true
  591. p1.CanCollide = false
  592. p1.TopSurface = "Smooth"
  593. p1.BottomSurface = "Smooth"
  594. p1.BrickColor = gCol
  595. p1.Material = "Neon"
  596. local p2 = Instance.new("Part",workspace)
  597. local m2 = Instance.new("SpecialMesh",p2)
  598. m2.MeshType = "Sphere"
  599. m2.Scale = Vector3.new(8,8,8)
  600. p2.Size = Vector3.new(1,1,1)
  601. p2.Anchored = true
  602. p2.CanCollide = false
  603. p2.TopSurface = "Smooth"
  604. p2.BottomSurface = "Smooth"
  605. p2.BrickColor = gCol2
  606. p2.Material = "Neon"
  607. local p3 = Instance.new("Part",workspace)
  608. local m3 = Instance.new("BlockMesh",p3)
  609. m3.Scale = Vector3.new(7,7,7)
  610. p3.Size = Vector3.new(1,1,1)
  611. p3.Transparency = 0.4
  612. p3.Anchored = true
  613. p3.CanCollide = false
  614. p3.TopSurface = "Smooth"
  615. p3.BottomSurface = "Smooth"
  616. p3.BrickColor = gCol
  617. p3.Material = "Neon"
  618. local p4 = Instance.new("Part",workspace)
  619. local m4 = Instance.new("BlockMesh",p4)
  620. m4.Scale = Vector3.new(10,10,10)
  621. p4.Size = Vector3.new(1,1,1)
  622. p4.Transparency = 0.4
  623. p4.Anchored = true
  624. p4.CanCollide = false
  625. p4.TopSurface = "Smooth"
  626. p4.BottomSurface = "Smooth"
  627. p4.BrickColor = gCol2
  628. p4.Material = "Neon"
  629. local currentframe = 0
  630. local frmR
  631.  
  632. frmR = game:GetService("RunService").RenderStepped:connect(function()
  633. currentframe = currentframe + 1
  634. if currentframe < 1*60 then
  635. p1.CFrame = char:WaitForChild("Torso").CFrame
  636. p2.CFrame = char:WaitForChild("Torso").CFrame
  637. 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)))
  638. 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)))
  639. m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
  640. m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
  641. m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
  642. m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
  643. p1.Transparency = p1.Transparency + (1/(1*60))
  644. p2.Transparency = p2.Transparency + (1/(1*60))
  645. p3.Transparency = p3.Transparency + (1/(1*60))
  646. p4.Transparency = p4.Transparency + (1/(1*60))
  647. else
  648. p1:Destroy()
  649. p2:Destroy()
  650. p3:Destroy()
  651. p4:Destroy()
  652. frmR:disconnect()
  653. end
  654. end)
  655.  
  656. char.Humanoid.MaxHealth = math.huge
  657. wait()
  658. char.Humanoid.Health = math.huge
  659.  
  660. --[[mouse.KeyDown:connect(function(key)
  661. if key == "r" then
  662. print("R!")
  663. if cd == false then
  664. print("No cooldown!")
  665. cd = true
  666. if toggle == false then
  667. print("Entering godmode")
  668. toggle = true
  669. Instance.new("ForceField",char)
  670. for i=1,amountGhosts do
  671. CreateGhost()
  672. end
  673. char.Parent = game:GetService("Workspace").CurrentCamera
  674. char:FindFirstChild("Head").Transparency = 1
  675. char:FindFirstChild("Torso").Transparency = 1
  676. char:FindFirstChild("Right Arm").Transparency = 1
  677. char:FindFirstChild("Left Arm").Transparency = 1
  678. char:FindFirstChild("Right Leg").Transparency = 1
  679. char:FindFirstChild("Left Leg").Transparency = 1
  680. for i,v in pairs(char:GetChildren()) do
  681. if v:IsA("Accessory") then
  682. v:FindFirstChild("Handle").Transparency = 1
  683. end
  684. end
  685. else
  686. print("Exiting godmode")
  687. toggle = false
  688. for i,v in pairs(ghosts) do
  689. v:Destroy()
  690. end
  691. char.Parent = game:GetService("Workspace")
  692. char:FindFirstChild("ForceField"):Destroy()
  693. char:FindFirstChild("Head").Transparency = 0
  694. char:FindFirstChild("Torso").Transparency = 0
  695. char:FindFirstChild("Right Arm").Transparency = 0
  696. char:FindFirstChild("Left Arm").Transparency = 0
  697. char:FindFirstChild("Right Leg").Transparency = 0
  698. char:FindFirstChild("Left Leg").Transparency = 0
  699. for i,v in pairs(char:GetChildren()) do
  700. if v:IsA("Accessory") then
  701. v:FindFirstChild("Handle").Transparency = 0
  702. end
  703. end
  704. end
  705. cd = false
  706. end
  707. end
  708. end)]]
  709.  
  710. mouse.KeyDown:connect(function(key)
  711. spawn(function()
  712. if key == "f" and toggle == true and mcd == false then
  713. if #ghosts < amountGhosts then
  714. print(#ghosts.."<")
  715. mcd = true
  716.  
  717. ClearGhosts()
  718.  
  719. for i=1,amountGhosts do
  720. CreateGhost()
  721. end
  722. local p1 = Instance.new("Part",workspace)
  723. local m1 = Instance.new("SpecialMesh",p1)
  724. m1.MeshType = "Sphere"
  725. m1.Scale = Vector3.new(7,7,7)
  726. p1.Size = Vector3.new(1,1,1)
  727. p1.Anchored = true
  728. p1.CanCollide = false
  729. p1.TopSurface = "Smooth"
  730. p1.BottomSurface = "Smooth"
  731. if gt == false then
  732. p1.BrickColor = gCol
  733. else
  734. p1.BrickColor = wCol
  735. end
  736. p1.Material = "Neon"
  737. local p2 = Instance.new("Part",workspace)
  738. local m2 = Instance.new("SpecialMesh",p2)
  739. m2.MeshType = "Sphere"
  740. m2.Scale = Vector3.new(9,9,9)
  741. p2.Size = Vector3.new(1,1,1)
  742. p2.Anchored = true
  743. p2.CanCollide = false
  744. p2.TopSurface = "Smooth"
  745. p2.BottomSurface = "Smooth"
  746. if gt == false then
  747. p2.BrickColor = gCol2
  748. else
  749. p2.BrickColor = wCol2
  750. end
  751. p2.Material = "Neon"
  752. local currentframe = 0
  753. local frmR
  754.  
  755. frmR = game:GetService("RunService").RenderStepped:connect(function()
  756. currentframe = currentframe + 1
  757. if currentframe < 0.25*60 then
  758. p1.CFrame = char:WaitForChild("Torso").CFrame
  759. p2.CFrame = char:WaitForChild("Torso").CFrame
  760. p1.Transparency = p1.Transparency + (1/(0.25*60))
  761. p2.Transparency = p2.Transparency + (1/(0.25*60))
  762. else
  763. p1:Destroy()
  764. p2:Destroy()
  765. mcd = false
  766. frmR:disconnect()
  767. end
  768. end)
  769. else
  770. mcd = true
  771.  
  772. ClearGhosts()
  773.  
  774. local p1 = Instance.new("Part",workspace)
  775. local m1 = Instance.new("SpecialMesh",p1)
  776. m1.MeshType = "Sphere"
  777. m1.Scale = Vector3.new(7,7,7)
  778. p1.Size = Vector3.new(1,1,1)
  779. p1.Anchored = true
  780. p1.CanCollide = false
  781. p1.TopSurface = "Smooth"
  782. p1.BottomSurface = "Smooth"
  783. if gt == false then
  784. p1.BrickColor = gCol
  785. else
  786. p1.BrickColor = wCol
  787. end
  788. p1.Material = "Neon"
  789. local p2 = Instance.new("Part",workspace)
  790. local m2 = Instance.new("SpecialMesh",p2)
  791. m2.MeshType = "Sphere"
  792. m2.Scale = Vector3.new(9,9,9)
  793. p2.Size = Vector3.new(1,1,1)
  794. p2.Anchored = true
  795. p2.CanCollide = false
  796. p2.TopSurface = "Smooth"
  797. p2.BottomSurface = "Smooth"
  798. if gt == false then
  799. p2.BrickColor = gCol2
  800. else
  801. p2.BrickColor = wCol2
  802. end
  803. p2.Material = "Neon"
  804. local currentframe = 0
  805. local frmR
  806.  
  807. frmR = game:GetService("RunService").RenderStepped:connect(function()
  808. currentframe = currentframe + 1
  809. if currentframe < 0.25*60 then
  810. p1.CFrame = char:WaitForChild("Torso").CFrame
  811. p2.CFrame = char:WaitForChild("Torso").CFrame
  812. p1.Transparency = p1.Transparency + (1/(0.25*60))
  813. p2.Transparency = p2.Transparency + (1/(0.25*60))
  814. else
  815. p1:Destroy()
  816. p2:Destroy()
  817. mcd = false
  818. frmR:disconnect()
  819. end
  820. end)
  821. end
  822. elseif key == "g" and toggle == true and mcd == false then
  823. if gt == true then
  824. gt = false
  825. local p1 = Instance.new("Part",workspace)
  826. local m1 = Instance.new("SpecialMesh",p1)
  827. m1.MeshType = "Sphere"
  828. m1.Scale = Vector3.new(5,5,5)
  829. p1.Size = Vector3.new(1,1,1)
  830. p1.Anchored = true
  831. p1.CanCollide = false
  832. p1.TopSurface = "Smooth"
  833. p1.BottomSurface = "Smooth"
  834. p1.BrickColor = gCol
  835. p1.Material = "Neon"
  836. local p2 = Instance.new("Part",workspace)
  837. local m2 = Instance.new("SpecialMesh",p2)
  838. m2.MeshType = "Sphere"
  839. m2.Scale = Vector3.new(8,8,8)
  840. p2.Size = Vector3.new(1,1,1)
  841. p2.Anchored = true
  842. p2.CanCollide = false
  843. p2.TopSurface = "Smooth"
  844. p2.BottomSurface = "Smooth"
  845. p2.BrickColor = gCol2
  846. p2.Material = "Neon"
  847. local p3 = Instance.new("Part",workspace)
  848. local m3 = Instance.new("BlockMesh",p3)
  849. m3.Scale = Vector3.new(7,7,7)
  850. p3.Size = Vector3.new(1,1,1)
  851. p3.Transparency = 0.4
  852. p3.Anchored = true
  853. p3.CanCollide = false
  854. p3.TopSurface = "Smooth"
  855. p3.BottomSurface = "Smooth"
  856. p3.BrickColor = gCol
  857. p3.Material = "Neon"
  858. local p4 = Instance.new("Part",workspace)
  859. local m4 = Instance.new("BlockMesh",p4)
  860. m4.Scale = Vector3.new(10,10,10)
  861. p4.Size = Vector3.new(1,1,1)
  862. p4.Transparency = 0.4
  863. p4.Anchored = true
  864. p4.CanCollide = false
  865. p4.TopSurface = "Smooth"
  866. p4.BottomSurface = "Smooth"
  867. p4.BrickColor = gCol2
  868. p4.Material = "Neon"
  869.  
  870. ClearGhosts()
  871.  
  872. for i=1,amountGhosts do
  873. CreateGhost()
  874. end
  875.  
  876. local currentframe = 0
  877. local frmR
  878.  
  879. frmR = game:GetService("RunService").RenderStepped:connect(function()
  880. currentframe = currentframe + 1
  881. if currentframe < 1*60 then
  882. p1.CFrame = char:WaitForChild("Torso").CFrame
  883. p2.CFrame = char:WaitForChild("Torso").CFrame
  884. 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)))
  885. 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)))
  886. m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
  887. m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
  888. m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
  889. m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
  890. p1.Transparency = p1.Transparency + (1/(1*60))
  891. p2.Transparency = p2.Transparency + (1/(1*60))
  892. p3.Transparency = p3.Transparency + (1/(1*60))
  893. p4.Transparency = p4.Transparency + (1/(1*60))
  894. else
  895. p1:Destroy()
  896. p2:Destroy()
  897. p3:Destroy()
  898. p4:Destroy()
  899. frmR:disconnect()
  900. end
  901. end)
  902. else
  903. gt = true
  904. local p1 = Instance.new("Part",workspace)
  905. local m1 = Instance.new("SpecialMesh",p1)
  906. m1.MeshType = "Sphere"
  907. m1.Scale = Vector3.new(5,5,5)
  908. p1.Size = Vector3.new(1,1,1)
  909. p1.Anchored = true
  910. p1.CanCollide = false
  911. p1.TopSurface = "Smooth"
  912. p1.BottomSurface = "Smooth"
  913. p1.BrickColor = wCol
  914. p1.Material = "Neon"
  915. local p2 = Instance.new("Part",workspace)
  916. local m2 = Instance.new("SpecialMesh",p2)
  917. m2.MeshType = "Sphere"
  918. m2.Scale = Vector3.new(8,8,8)
  919. p2.Size = Vector3.new(1,1,1)
  920. p2.Anchored = true
  921. p2.CanCollide = false
  922. p2.TopSurface = "Smooth"
  923. p2.BottomSurface = "Smooth"
  924. p2.BrickColor = wCol2
  925. p2.Material = "Neon"
  926. local p3 = Instance.new("Part",workspace)
  927. local m3 = Instance.new("BlockMesh",p3)
  928. m3.Scale = Vector3.new(7,7,7)
  929. p3.Size = Vector3.new(1,1,1)
  930. p3.Transparency = 0.4
  931. p3.Anchored = true
  932. p3.CanCollide = false
  933. p3.TopSurface = "Smooth"
  934. p3.BottomSurface = "Smooth"
  935. p3.BrickColor = wCol
  936. p3.Material = "Neon"
  937. local p4 = Instance.new("Part",workspace)
  938. local m4 = Instance.new("BlockMesh",p4)
  939. m4.Scale = Vector3.new(10,10,10)
  940. p4.Size = Vector3.new(1,1,1)
  941. p4.Transparency = 0.4
  942. p4.Anchored = true
  943. p4.CanCollide = false
  944. p4.TopSurface = "Smooth"
  945. p4.BottomSurface = "Smooth"
  946. p4.BrickColor = wCol2
  947. p4.Material = "Neon"
  948.  
  949. ClearGhosts()
  950.  
  951. for i=1,amountGhosts do
  952. CreateGhost()
  953. end
  954.  
  955. local currentframe = 0
  956. local frmR
  957.  
  958. frmR = game:GetService("RunService").RenderStepped:connect(function()
  959. currentframe = currentframe + 1
  960. if currentframe < 1*60 then
  961. p1.CFrame = char:WaitForChild("Torso").CFrame
  962. p2.CFrame = char:WaitForChild("Torso").CFrame
  963. 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)))
  964. 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)))
  965. m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
  966. m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
  967. m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
  968. m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
  969. p1.Transparency = p1.Transparency + (1/(1*60))
  970. p2.Transparency = p2.Transparency + (1/(1*60))
  971. p3.Transparency = p3.Transparency + (1/(1*60))
  972. p4.Transparency = p4.Transparency + (1/(1*60))
  973. else
  974. p1:Destroy()
  975. p2:Destroy()
  976. p3:Destroy()
  977. p4:Destroy()
  978. frmR:disconnect()
  979. end
  980. end)
  981. end
  982. end
  983. end)
  984. end)
  985.  
  986. local frm = 0
  987.  
  988. local toRemove = {}
  989.  
  990. game:GetService("RunService").RenderStepped:connect(function()
  991. frm = frm + 1
  992. if char.Parent == game:GetService("Workspace").CurrentCamera then
  993.  
  994. e1.CFrame = char.Head.CFrame * CFrame.new(0.15,0.1,-0.55)
  995. e2.CFrame = char.Head.CFrame * CFrame.new(-0.15,0.1,-0.55)
  996.  
  997. local delay = 0.9
  998.  
  999. for i,v in pairs(ghosts) do
  1000. for _,b in pairs(v:GetChildren()) do
  1001. if b:IsA("Part") or b:IsA("WedgePart") or b:IsA("TrussPart") or b:IsA("UnionOperation") then
  1002. b.CFrame = b.CFrame:lerp(b:FindFirstChild("Target").Value.CFrame,delay)
  1003. end
  1004. end
  1005. delay = delay - (0.5/(#ghosts+1))
  1006. end
  1007.  
  1008. --[[if math.floor(frm/8) == frm/8 then
  1009. local isub = 0
  1010. for i,v in pairs(ghosts) do
  1011. if #v:GetChildren() < 6 then
  1012. v:Destroy()
  1013. table.remove(ghosts,i - isub)
  1014. isub = isub + 1
  1015. CreateGhost()
  1016. end
  1017. end
  1018. end]]
  1019. end
  1020.  
  1021. --Animation states
  1022.  
  1023. local ray = Ray.new(char.HumanoidRootPart.CFrame.p, Vector3.new(0,-3,0).unit*4)
  1024. local part,pos,normal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(ray,ghosts,false,true)
  1025.  
  1026. if state ~= "busy" then
  1027. if char.HumanoidRootPart.Velocity.Magnitude <= 0.5 then
  1028. state = "idle"
  1029. elseif char.HumanoidRootPart.Velocity.Magnitude > 0.5 then
  1030. state = "running"
  1031. --[[elseif char.HumanoidRootPart.Velocity.Y < 0.1 and not part then
  1032. state = "falling"
  1033. elseif char.HumanoidRootPart.Velocity.Y >= 0.1 and not part then
  1034. state = "jumping"]]
  1035. end
  1036. char.Humanoid.WalkSpeed = 32
  1037. char.Humanoid.JumpPower = 70
  1038. end
  1039.  
  1040. --Actual animations
  1041.  
  1042. if state == "idle" then
  1043. 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)
  1044. 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)
  1045. 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)
  1046. 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)
  1047. 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)
  1048. 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)
  1049. elseif state == "running" then
  1050. 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)
  1051. 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)
  1052. 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)
  1053. 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)
  1054. 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)
  1055. 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)
  1056. end
  1057. end)
  1058.  
  1059. char.Humanoid.Died:connect(function()
  1060. toggle = false
  1061.  
  1062. ClearGhosts()
  1063.  
  1064. char.Parent = game.Workspace
  1065. char.Parent = game:GetService("Workspace")
  1066. char:FindFirstChild("ForceField"):Destroy()
  1067. char:FindFirstChild("Head").Transparency = 0
  1068. char:FindFirstChild("Torso").Transparency = 0
  1069. char:FindFirstChild("Right Arm").Transparency = 0
  1070. char:FindFirstChild("Left Arm").Transparency = 0
  1071. char:FindFirstChild("Right Leg").Transparency = 0
  1072. char:FindFirstChild("Left Leg").Transparency = 0
  1073. for i,v in pairs(char:GetChildren()) do
  1074. if v:IsA("Accessory") then
  1075. v:FindFirstChild("Handle").Transparency = 0
  1076. end
  1077. end
  1078. for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end
  1079. plr:LoadCharacter()
  1080. end)
  1081.  
  1082. local msgidGlob = 0
  1083. local state = true
  1084. local font = "Arcade"
  1085. local tcol = Color3.fromRGB(255,217,0)
  1086. local tscol = Color3.fromRGB(0,0,0)
  1087. local fsiz = 28
  1088. local tr = true
  1089. local tsr = false
  1090. local fade = 2
  1091.  
  1092. local p = Instance.new("Part",game.Workspace)
  1093. p.Size = Vector3.new(0.2,0.2,0.2)
  1094. p.Transparency = 1
  1095. p.Anchored = true
  1096. p.CanCollide = false
  1097. p.Name = "Msg"
  1098. p.CFrame = plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0)
  1099.  
  1100. local r = 255
  1101. local b = 0
  1102. local g = 0
  1103.  
  1104. plr.Chatted:connect(function(c)
  1105. msgidGlob = msgidGlob + 1
  1106. local curMsgId = msgidGlob
  1107. if string.lower(c) == "!disable" then
  1108. state = false
  1109. elseif string.lower(c) == "!enable" then
  1110. state = true
  1111. elseif string.lower(string.sub(c,1,6)) == "!font " then
  1112. local old = font
  1113. font = string.sub(c,7,#c) or old
  1114. elseif string.lower(string.sub(c,1,8)) == "!tcolor " then
  1115. if string.lower(string.sub(c,9,#c)) == "rainbow" then
  1116. tr = true
  1117. else
  1118. tr = false
  1119. local old = tcol
  1120. tcol = Color3.fromRGB(string.sub(c,9,11),string.sub(c,13,15),string.sub(c,17,19)) or old
  1121. end
  1122. elseif string.lower(string.sub(c,1,9)) == "!tscolor " then
  1123. if string.sub(c,10,#c) == "rainbow" then
  1124. tsr = true
  1125. else
  1126. tsr = false
  1127. local old = tscol
  1128. tscol = Color3.fromRGB(string.sub(c,10,12),string.sub(c,14,16),string.sub(c,18,20)) or old
  1129. end
  1130. elseif string.lower(string.sub(c,1,6)) == "!size " then
  1131. local old = fsiz
  1132. fsiz = string.sub(c,7,#c) or old
  1133. elseif string.lower(string.sub(c,1,6)) == "!fade " then
  1134. local old = fade
  1135. fade = string.sub(c,7,#c) or old
  1136. end
  1137. if plr.Character and state == true then
  1138. if plr.Character:FindFirstChild("Head") then
  1139. for i,v in pairs(p:GetChildren()) do
  1140. if v:IsA("BillboardGui") and v.Name == "J2CMSG" then
  1141. v:Destroy()
  1142. end
  1143. end
  1144. local bbgui = Instance.new("BillboardGui",p)
  1145. bbgui.Name = "J2CMSG"
  1146. bbgui.AlwaysOnTop = true
  1147. bbgui.ExtentsOffsetWorldSpace = Vector3.new(0,4.5,0)
  1148. bbgui.Size = UDim2.new(0.2,0,0.14,0)
  1149. local tl = Instance.new("TextLabel",bbgui)
  1150. tl.BackgroundTransparency = 1
  1151. tl.BorderSizePixel = 0
  1152. tl.Size = UDim2.new(1,0,10,0)
  1153. tl.Position = UDim2.new(0,0,-5,0)
  1154. tl.Font = font or "SciFi"
  1155. tl.FontSize = "Size"..fsiz or "Size36"
  1156. tl.TextColor3 = tcol
  1157. tl.TextScaled = false
  1158. tl.TextWrapped = false
  1159. tl.TextStrokeColor3 = tscol
  1160. tl.TextStrokeTransparency = 0
  1161.  
  1162. game:GetService("RunService").RenderStepped:connect(function()
  1163. if tr then
  1164. if tl.Parent ~= nil then
  1165. tl.TextColor3 = Color3.fromRGB(r,g,b)
  1166. end
  1167. end
  1168. end)
  1169.  
  1170. for i=1,#c do
  1171. if msgidGlob == curMsgId then
  1172. tl.Text = string.sub(c,1,i)
  1173. if string.sub(c,i,i) ~= " " then
  1174. local s = Instance.new("Sound",p)
  1175. s.SoundId = "rbxassetid://418252437"
  1176. s.Volume = 1
  1177. s.Pitch = 1
  1178. s:Play()
  1179. game.Debris:AddItem(s,2)
  1180. end
  1181. wait()
  1182. end
  1183. end
  1184. wait(fade)
  1185. if msgidGlob == curMsgId then
  1186. for i=1,10 do
  1187. if msgidGlob == curMsgId then
  1188. tl.TextTransparency = tl.TextTransparency + 0.1
  1189. tl.TextStrokeTransparency = tl.TextStrokeTransparency + 0.1
  1190. tl.Position = tl.Position + UDim2.new(0,0,0,-3)
  1191. wait()
  1192. end
  1193. end
  1194. if msgidGlob == curMsgId then
  1195. bbgui:Destroy()
  1196. end
  1197. end
  1198. end
  1199. end
  1200. end)
  1201.  
  1202. coroutine.resume(coroutine.create(function()
  1203. while wait() do
  1204. for i=0,255,10 do g = i wait() end
  1205. for i=255,0,-10 do r = i wait() end
  1206. for i=0,255,10 do b = i wait() end
  1207. for i=255,0,-10 do g = i wait() end
  1208. for i=0,255,10 do r = i wait() end
  1209. for i=255,0,-10 do b = i wait() end
  1210. end
  1211. end))
  1212.  
  1213. game:GetService("RunService").RenderStepped:connect(function()
  1214. if p.Parent ~= nil then
  1215. p.CFrame = p.CFrame:lerp(plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0),0.16)
  1216. else
  1217. p = Instance.new("Part",game.Workspace)
  1218. p.Size = Vector3.new(0.2,0.2,0.2)
  1219. p.Transparency = 1
  1220. p.Anchored = true
  1221. p.CanCollide = false
  1222. p.Name = "Msg"
  1223. p.CFrame = plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0)
  1224. end
  1225. end)
  1226.  
  1227. print("Ghost loaded! Time elapsed: "..tick() - time)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement