Advertisement
Guest User

Ghost God

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