Advertisement
AgentVK

Untitled

Jul 22nd, 2017
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.57 KB | None | 0 0
  1. --[[
  2. Explosion God script made by EliteShadow @ V3rm aka Crimsonal @ Roblox
  3. --]]
  4.  
  5. local Player = game.Players.LocalPlayer
  6. local Mouse = Player:GetMouse()
  7. repeat wait() until Player.Character
  8. local Character = Player.Character
  9. local Humanoid = Character.Humanoid
  10. local Torso = Character.Torso
  11. local Head = Character.Head
  12. local RightArm = Character["Right Arm"]
  13. local LeftArm = Character["Left Arm"]
  14. local RightLeg = Character["Right Leg"]
  15. local LeftLeg = Character["Left Leg"]
  16. local Head = Character.Head
  17. local RightShoulder = Torso["Right Shoulder"]
  18. local LeftShoulder = Torso["Left Shoulder"]
  19. local Neck = Torso["Neck"]
  20. local RightHip = Torso["Right Hip"]
  21. local LeftHip = Torso["Left Hip"]
  22. wait(1)
  23. Instance.new("ForceField", Character).Visible = false
  24.  
  25. local NeckC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  26. local NeckC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  27. local LeftShoulderC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  28. local LeftShoulderC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  29. local RightShoulderC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  30. local RightShoulderC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  31. local LeftHipC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  32. local LeftHipC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  33. local RightHipC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  34. local RightHipC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47. local Player = game.Players.LocalPlayer
  48. local Character = Player.Character
  49. local Humanoid = Character.Humanoid
  50. local Torso = Character.Torso
  51. local Head = Character.Head
  52. local mouse = Player:GetMouse()
  53. local Root = Character.HumanoidRootPart
  54. local RunService = game:GetService("RunService").RenderStepped
  55. local Lighting = game:GetService("Lighting")
  56.  
  57.  
  58. Player:ClearCharacterAppearance()
  59. wait(0.1)
  60. Player.Character.Head.BrickColor = BrickColor.new("Really black")
  61. Player.Character.Torso.BrickColor = BrickColor.new("Really black")
  62. Player.Character["Right Arm"].BrickColor = BrickColor.new("Really black")
  63. Player.Character["Right Leg"].BrickColor = BrickColor.new("Really black")
  64. Player.Character["Left Leg"].BrickColor = BrickColor.new("Really black")
  65. Player.Character["Left Arm"].BrickColor = BrickColor.new("Really black")
  66. pcall(function() Player.Character.Torso.roblox:Destroy() end)
  67.  
  68. z = Instance.new("Sound", Character)
  69. z.SoundId = "rbxassetid://823815836"--301463006
  70. z.Looped = true
  71. z.Pitch = 1
  72. z.Volume = math.huge
  73. wait(.1)
  74. z:Play()
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84. CV="Pastel blue"
  85.  
  86. local txt = Instance.new("BillboardGui", Character)
  87. txt.Adornee = Character .Head
  88. txt.Name = "_status"
  89. txt.Size = UDim2.new(2, 0, 1.2, 0)
  90. txt.StudsOffset = Vector3.new(-9, 8, 0)
  91. local text = Instance.new("TextLabel", txt)
  92. text.Size = UDim2.new(10, 0, 7, 0)
  93. text.FontSize = "Size24"
  94. text.TextScaled = true
  95. text.TextTransparency = 0
  96. text.BackgroundTransparency = 1
  97. text.TextTransparency = 0
  98. text.TextStrokeTransparency = 0
  99. text.Font = "Antique"
  100. text.TextStrokeColor3 = Color3.new(255,85,0)
  101.  
  102. v=Instance.new("Part")
  103. v.Name = "ColorBrick"
  104. v.Parent=Player.Character
  105. v.FormFactor="Symmetric"
  106. v.Anchored=true
  107. v.CanCollide=false
  108. v.BottomSurface="Smooth"
  109. v.TopSurface="Smooth"
  110. v.Size=Vector3.new(10,5,3)
  111. v.Transparency=1
  112. v.CFrame=Character.Torso.CFrame
  113. v.BrickColor=BrickColor.new(CV)
  114. v.Transparency=1
  115. text.TextColor3 = Color3.new(0,0,0)
  116. v.Shape="Block"
  117. text.Text = "Power Ranger God"
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125. local selectionBoxOfTorso = Instance.new("SelectionBox",Torso)
  126. selectionBoxOfTorso.Adornee = Torso
  127. selectionBoxOfTorso.Color = BrickColor.new("1020")
  128. selectionBoxOfTorso.LineThickness = 0.01
  129. selectionBoxOfTorso.Transparency = 0
  130.  
  131. local selectionBoxOfRightArm = Instance.new("SelectionBox",Character["Right Arm"])
  132. selectionBoxOfRightArm.Adornee = Character["Right Arm"]
  133. selectionBoxOfRightArm.Color = BrickColor.new("1020")
  134. selectionBoxOfRightArm.LineThickness = 0.01
  135. selectionBoxOfRightArm.Transparency = 0
  136.  
  137. local selectionBoxOfRightLeg = Instance.new("SelectionBox",Character["Right Leg"])
  138. selectionBoxOfRightLeg.Adornee = Character["Right Leg"]
  139. selectionBoxOfRightLeg.Color = BrickColor.new("1020")
  140. selectionBoxOfRightLeg.LineThickness = 0.01
  141. selectionBoxOfRightLeg.Transparency = 0
  142.  
  143. local selectionBoxOfLeftArm = Instance.new("SelectionBox",Character["Left Arm"])
  144. selectionBoxOfLeftArm.Adornee = Character["Left Arm"]
  145. selectionBoxOfLeftArm.Color = BrickColor.new("1020")
  146. selectionBoxOfLeftArm.LineThickness = 0.01
  147. selectionBoxOfLeftArm.Transparency = 0
  148.  
  149. local selectionBoxOfLeftLeg = Instance.new("SelectionBox",Character["Left Leg"])
  150. selectionBoxOfLeftLeg.Adornee = Character["Left Leg"]
  151. selectionBoxOfLeftLeg.Color = BrickColor.new("1020")
  152. selectionBoxOfLeftLeg.LineThickness = 0.01
  153. selectionBoxOfLeftLeg.Transparency = 0
  154.  
  155.  
  156. LightOnBody = Instance.new("PointLight", Head)
  157. LightOnBody.Brightness = 3000
  158. LightOnBody.Range = 20
  159. LightOnBody.Color = Color3.new(255, 85, 0)
  160.  
  161. local HandCF = CFrame.new(Root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  162. local wave = Instance.new("Part", Torso)
  163. wave.BrickColor = BrickColor.new("Maroon")
  164. wave.Anchored = true
  165. wave.CanCollide = false
  166. wave.Locked = true
  167. wave.Size = Vector3.new(1, 1, 1)
  168. wave.TopSurface = "Smooth"
  169. wave.BottomSurface = "Smooth"
  170. wave.Transparency = 0.35
  171. wave.CFrame = HandCF
  172. wm = Instance.new("SpecialMesh", wave)
  173. wm.MeshId = "rbxassetid://3270017"
  174. coroutine.wrap(function()
  175. for i = 1, 14, 1 do
  176. wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1)
  177. wave.Size = wm.Scale
  178. wave.CFrame = HandCF
  179. wave.Transparency = i/14
  180. wait()
  181. end
  182. wait()
  183. wave:Destroy()
  184. end)()
  185.  
  186.  
  187. local function RefreshWelds()
  188. Neck.C0 = NeckC0
  189. Neck.C1 = NeckC1
  190. RightShoulder.C0 = RightShoulderC0
  191. RightShoulder.C1 = RightShoulderC1
  192. LeftShoulder.C0 = LeftShoulderC0
  193. LeftShoulder.C1 = LeftShoulderC1
  194. RightHip.C0 = RightHipC0
  195. RightHip.C1 = RightHipC1
  196. LeftHip.C0 = LeftHipC0
  197. LeftHip.C1 = LeftHipC1
  198. end
  199.  
  200. local LastArm = "Left"
  201. local Active = false
  202. game:GetService("UserInputService").InputBegan:connect(function(Key, Gpe)
  203. if not Gpe then
  204. if Key.KeyCode == Enum.KeyCode.F and not Active then
  205. Active=true
  206. RefreshWelds()
  207. Torso.CFrame = CFrame.new(Torso.Position, Vector3.new(Mouse.hit.p.x, Torso.Position.Y, Mouse.hit.p.z))
  208. Torso.Anchored=true
  209. Humanoid.PlatformStand = true
  210. for i = 1,3 do
  211. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,-0.2,0.55)
  212. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0, 0.2, -0.55)
  213. end
  214. local last1
  215. local last2
  216. local explosion = Instance.new("Sound", Character)
  217. explosion.Name="explosion"
  218. explosion.SoundId = "rbxassetid://2248511"
  219. explosion:Play()
  220. game.Debris:AddItem(explosion,10)
  221. spawn(function()
  222. for i = 1,15 do
  223. local p = Instance.new("Part", Character)
  224. p.Anchored=true
  225. p.CanCollide=false
  226. p.Transparency=1
  227. p.Size=Vector3.new(.1,.1,.1)
  228. p.Shape = "Ball"
  229. p.BrickColor = BrickColor.new("Really black")
  230. game.Debris:AddItem(p,1)
  231. if not last1 then
  232. p.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(45), 0) * CFrame.new(0,0,-10)
  233. last1=p
  234. else
  235. p.CFrame = last1.CFrame * CFrame.new(0, 0,-i*5)
  236. last1=p
  237. end
  238. local explo = Instance.new("Explosion", workspace)
  239. explo.Position=p.Position
  240. explo.BlastPressure = math.huge
  241. explo.BlastRadius= math.huge
  242. wait()
  243. end
  244. end)
  245. spawn(function()
  246. for i = 1,15 do
  247. local p = Instance.new("Part", Character)
  248. p.Anchored=true
  249. p.CanCollide=false
  250. p.Transparency=1
  251. p.Size=Vector3.new(.1,.1,.1)
  252. p.Shape = "Ball"
  253. p.BrickColor = BrickColor.new("Really black")
  254. game.Debris:AddItem(p,1)
  255. if not last2 then
  256. p.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(-45), 0) * CFrame.new(0,0,-10)
  257. last2=p
  258. else
  259. p.CFrame = last2.CFrame * CFrame.new(0,0 ,-i*5)
  260. last2=p
  261. end
  262. local explo = Instance.new("Explosion", workspace)
  263. explo.Position=p.Position
  264. explo.BlastPressure = math.huge
  265. explo.BlastRadius= math.huge
  266. wait()
  267. end
  268. end)
  269. wait(1)
  270. Torso.Anchored=false
  271. Humanoid.PlatformStand = false
  272. RefreshWelds()
  273. Active=false
  274. elseif Key.KeyCode == Enum.KeyCode.C and not Active then
  275. Active = true
  276. RefreshWelds()
  277. Torso.CFrame = CFrame.new(Torso.Position, Vector3.new(Mouse.hit.p.x, Torso.Position.Y, Mouse.hit.p.z))
  278. Torso.Anchored=true
  279. Humanoid.PlatformStand = true
  280. for i = 1,3 do
  281. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,0,0.5)
  282. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0, 0, -0.5)
  283. wait()
  284. end
  285. local last1
  286. local last2
  287. local explosion = Instance.new("Sound", Character)
  288. explosion.Name="explosion"
  289. explosion.SoundId = "rbxassetid://2248511"
  290. explosion:Play()
  291. game.Debris:AddItem(explosion,10)
  292. spawn(function()
  293. for i = 1,15 do
  294. local p = Instance.new("Part", Character)
  295. p.Anchored=true
  296. p.CanCollide=false
  297. p.Transparency=1
  298. p.Size=Vector3.new(.1,.1,.1)
  299. p.Shape = "Ball"
  300. p.BrickColor = BrickColor.new("Really black")
  301. game.Debris:AddItem(p,1)
  302. if not last1 then
  303. p.CFrame = Torso.CFrame * CFrame.new(0,0 ,-i*10)
  304. last1=p
  305. else
  306. p.CFrame = last1.CFrame * CFrame.new(0,0 ,-i*5)
  307. last1=p
  308. end
  309. local explo = Instance.new("Explosion", workspace)
  310. explo.Position=p.Position
  311. explo.BlastPressure = math.huge
  312. explo.BlastRadius= math.huge
  313. wait()
  314. end
  315. end)
  316. spawn(function()
  317. for i = 1,15 do
  318. local p = Instance.new("Part", Character)
  319. p.Anchored=true
  320. p.CanCollide=false
  321. p.Transparency=1
  322. p.Size=Vector3.new(.1,.1,.1)
  323. p.Shape = "Ball"
  324. p.BrickColor = BrickColor.new("Really black")
  325. game.Debris:AddItem(p,1)
  326. if not last2 then
  327. p.CFrame = Torso.CFrame * CFrame.new(0,0 ,-i*10)
  328. last2=p
  329. else
  330. p.CFrame = last2.CFrame * CFrame.new(0,0 ,-i*5)
  331. last2=p
  332. end
  333. local explo = Instance.new("Explosion", workspace)
  334. explo.Position=p.Position
  335. explo.BlastPressure = math.huge
  336. explo.BlastRadius= math.huge
  337. wait()
  338. end
  339. end)
  340. wait(1)
  341. for i = 1,3 do
  342. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,0,-0.5)
  343. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0, 0, 0.5)
  344. wait()
  345. end
  346. Torso.Anchored=false
  347. Humanoid.PlatformStand = false
  348. RefreshWelds()
  349. Active=false
  350. elseif Key.KeyCode == Enum.KeyCode.E and not Active
  351. then Active = true
  352. RefreshWelds()
  353. Torso.Anchored=true
  354. Humanoid.PlatformStand=true
  355. if LastArm == "Left" then
  356. LastArm="Right"
  357. Torso.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(-45), 0)
  358. for i = 1,3 do
  359. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,0,-0.5)
  360. wait()
  361. end
  362. wait(0.5)
  363. RefreshWelds()
  364. for i = 1,3 do
  365. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,0,0.5)
  366. end
  367. Torso.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(45), 0)
  368. local p = Instance.new("Part", Character)
  369. p.Anchored=true
  370. p.CanCollide=false
  371. p.Transparency=1
  372. p.Size=Vector3.new(.1,.1,.1)
  373. p.Shape = "Ball"
  374. p.BrickColor = BrickColor.new("Really black")
  375. p.CFrame = Torso.CFrame * CFrame.new(1.5, 0, -2)
  376. game.Debris:AddItem(p,3)
  377. local explosion = Instance.new("Sound", Character)
  378. explosion.Name="explosion"
  379. explosion.SoundId = "rbxassetid://2248511"
  380. explosion:Play()
  381. game.Debris:AddItem(explosion, 10)
  382. local explo = Instance.new("Explosion", workspace)
  383. explo.BlastPressure = math.huge
  384. explo.BlastRadius= math.huge
  385. explo.Position=p.Position
  386. elseif LastArm == "Right" then
  387. LastArm = "Left"
  388. Torso.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(45), 0)
  389. for i = 1,3 do
  390. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0,0,0.5)
  391. wait()
  392. end
  393. wait(0.5)
  394. RefreshWelds()
  395. for i = 1,3 do
  396. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0,0,-0.5)
  397. end
  398. Torso.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(-45), 0)
  399. local p = Instance.new("Part", Character)
  400. p.Anchored=true
  401. p.CanCollide=false
  402. p.Transparency=1
  403. p.Size=Vector3.new(.1,.1,.1)
  404. p.Shape = "Ball"
  405. p.BrickColor = BrickColor.new("Really black")
  406. p.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, -2)
  407. game.Debris:AddItem(p,3)
  408. local explosion = Instance.new("Sound", Character)
  409. explosion.Name="explosion"
  410. explosion.SoundId = "rbxassetid://2248511"
  411. explosion:Play()
  412. game.Debris:AddItem(explosion, 10)
  413. local explo = Instance.new("Explosion", workspace)
  414. explo.BlastPressure = math.huge
  415. explo.BlastRadius= math.huge
  416. explo.Position=p.Position
  417. end
  418. wait(0.5)
  419. Active = false
  420. RefreshWelds()
  421. Torso.Anchored=false
  422. Humanoid.PlatformStand=false
  423. end
  424. end
  425. end)
  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 = 50
  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