duplicat

ghost

Feb 2nd, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.61 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
  6. function()
  7. local time = tick()
  8. print("Loading Wraith by joalars2...")
  9.  
  10. local plr = game:GetService("Players").LocalPlayer
  11. local mouse,char = plr:GetMouse(),plr.Character
  12.  
  13. local amountGhosts = 5
  14.  
  15. for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end
  16.  
  17. local toggle,cd,mcd = false,false,false
  18. local ghosts = {}
  19. local temptab = {}
  20.  
  21. char:WaitForChild("Animate"):Destroy()
  22. char.Humanoid:WaitForChild("Animator"):Destroy()
  23.  
  24. local state = "idle"
  25.  
  26. local gt = false
  27.  
  28. local gyro = Instance.new("BodyGyro",char:WaitForChild("HumanoidRootPart")) --Stops the character from glitching out on enter/exit
  29. gyro.MaxTorque = Vector3.new(0,0,0)
  30. gyro.D = 0
  31. gyro.P = 100000000
  32.  
  33.  
  34. local wCol = BrickColor.new("Really red")
  35. local wCol2 = BrickColor.new("Really black")
  36. local gCol = BrickColor.new("Toothpaste")
  37. local gCol2 = BrickColor.new("Institutional white")
  38.  
  39. function searchAll(m,clear)
  40. if clear then
  41. if clear == true then
  42. for i,v in pairs(temptab) do
  43. table.remove(temptab,1)
  44. end
  45. end
  46. end
  47. for i,v in pairs(m:GetChildren()) do
  48. if v then
  49. local s = v:Clone()
  50. for _,b in pairs(s:GetChildren()) do
  51. b:Destroy()
  52. end
  53. if s:IsA("Part") or s:IsA("WedgePart") or s:IsA("TrussPart") or s:IsA("UnionOperation") then
  54. if s.Name ~= "HumanoidRootPart" then
  55. s.Anchored = true
  56. s.CanCollide = false
  57. s.Transparency = 0.95
  58. s.TopSurface = "Smooth"
  59. s.BottomSurface = "Smooth"
  60. s.FrontSurface = "Smooth"
  61. s.RightSurface = "Smooth"
  62. s.BackSurface = "Smooth"
  63. s.LeftSurface = "Smooth"
  64. if s.Material ~= Enum.Material.Neon then
  65. if gt == true then
  66. s.BrickColor = wCol2
  67. else
  68. s.BrickColor = gCol2
  69. end
  70. else
  71. if gt == true then
  72. s.BrickColor = wCol
  73. else
  74. s.BrickColor = gCol
  75. end
  76. end
  77. for _,c in pairs(v:GetChildren()) do
  78. if c:IsA("SpecialMesh") or c:IsA("CylinderMesh") then
  79. c:Clone().Parent = s
  80. end
  81. end
  82. local objValue = Instance.new("ObjectValue",s)
  83. objValue.Name = "Target"
  84. objValue.Value = v
  85. table.insert(temptab,s)
  86. end
  87. --elseif s:IsA("CharacterMesh") then
  88. --table.insert(temptab,s)
  89. end
  90. --searchAll(v)
  91. end
  92. end
  93. return temptab
  94. end
  95.  
  96. function CreateGhost()
  97. local ghost = Instance.new("Model",game.Workspace)
  98. searchAll(char,true)
  99. ghost.Name = char.Name.."'s Ghost "..#ghosts..#plr.Name
  100. --Instance.new("Humanoid",ghost)
  101. for i,v in pairs(temptab) do
  102. v:Clone().Parent = ghost
  103. end
  104. table.insert(ghosts,ghost)
  105. end
  106.  
  107. function ClearGhosts()
  108. for i,v in pairs(ghosts) do
  109. v:Destroy()
  110. end
  111. for i,v in pairs(ghosts) do
  112. table.remove(ghosts,1)
  113. end
  114. for i,v in pairs(game:GetService("Workspace"):GetChildren()) do
  115. if string.sub(v.Name,1,#plr.Name+9) == plr.Name.."'s Ghost " then
  116. v:Destroy()
  117. end
  118. end
  119. end
  120.  
  121. Instance.new("ForceField",char).Visible = false
  122.  
  123. local e1 = Instance.new("Part",char)
  124. e1.Size = Vector3.new(0.2,0.2,0.2)
  125. e1.TopSurface = "Smooth"
  126. e1.BottomSurface = "Smooth"
  127. e1.Material = "Neon"
  128. e1.Transparency = 1
  129. e1.Anchored = true
  130. e1.CanCollide = false
  131. e1.BrickColor = gCol
  132. e1.CFrame = char.Head.CFrame * CFrame.new(0.15,0.1,-0.6)
  133. local em1 = Instance.new("SpecialMesh",e1)
  134. em1.MeshType = "Sphere"
  135. local e2 = Instance.new("Part",char)
  136. e2.Size = Vector3.new(0.2,0.2,0.2)
  137. e2.TopSurface = "Smooth"
  138. e2.BottomSurface = "Smooth"
  139. e2.Transparency = 1
  140. e2.Material = "Neon"
  141. e2.Anchored = true
  142. e2.CanCollide = false
  143. e2.BrickColor = gCol
  144. e2.CFrame = char.Head.CFrame * CFrame.new(-0.15,0.1,-0.6)
  145. local em2 = Instance.new("SpecialMesh",e2)
  146. em2.MeshType = "Sphere"
  147.  
  148. toggle = true
  149. for i=1,amountGhosts do
  150. CreateGhost()
  151. end
  152. char.Parent = game:GetService("Workspace").CurrentCamera
  153. char:FindFirstChild("Head").Transparency = 1
  154. char:FindFirstChild("Torso").Transparency = 1
  155. char:FindFirstChild("Right Arm").Transparency = 1
  156. char:FindFirstChild("Left Arm").Transparency = 1
  157. char:FindFirstChild("Right Leg").Transparency = 1
  158. char:FindFirstChild("Left Leg").Transparency = 1
  159. for i,v in pairs(char:GetChildren()) do
  160. if v:IsA("Accessory") then
  161. v:FindFirstChild("Handle").Transparency = 1
  162. end
  163. end
  164. char:FindFirstChild("Head"):FindFirstChild("face"):Destroy()
  165.  
  166. local p1 = Instance.new("Part",workspace)
  167. local m1 = Instance.new("SpecialMesh",p1)
  168. m1.MeshType = "Sphere"
  169. m1.Scale = Vector3.new(5,5,5)
  170. p1.Size = Vector3.new(1,1,1)
  171. p1.Anchored = true
  172. p1.CanCollide = false
  173. p1.TopSurface = "Smooth"
  174. p1.BottomSurface = "Smooth"
  175. p1.BrickColor = gCol
  176. p1.Material = "Neon"
  177. local p2 = Instance.new("Part",workspace)
  178. local m2 = Instance.new("SpecialMesh",p2)
  179. m2.MeshType = "Sphere"
  180. m2.Scale = Vector3.new(8,8,8)
  181. p2.Size = Vector3.new(1,1,1)
  182. p2.Anchored = true
  183. p2.CanCollide = false
  184. p2.TopSurface = "Smooth"
  185. p2.BottomSurface = "Smooth"
  186. p2.BrickColor = gCol2
  187. p2.Material = "Neon"
  188. local p3 = Instance.new("Part",workspace)
  189. local m3 = Instance.new("BlockMesh",p3)
  190. m3.Scale = Vector3.new(7,7,7)
  191. p3.Size = Vector3.new(1,1,1)
  192. p3.Transparency = 0.4
  193. p3.Anchored = true
  194. p3.CanCollide = false
  195. p3.TopSurface = "Smooth"
  196. p3.BottomSurface = "Smooth"
  197. p3.BrickColor = gCol
  198. p3.Material = "Neon"
  199. local p4 = Instance.new("Part",workspace)
  200. local m4 = Instance.new("BlockMesh",p4)
  201. m4.Scale = Vector3.new(10,10,10)
  202. p4.Size = Vector3.new(1,1,1)
  203. p4.Transparency = 0.4
  204. p4.Anchored = true
  205. p4.CanCollide = false
  206. p4.TopSurface = "Smooth"
  207. p4.BottomSurface = "Smooth"
  208. p4.BrickColor = gCol2
  209. p4.Material = "Neon"
  210. local currentframe = 0
  211. local frmR
  212.  
  213. frmR = game:GetService("RunService").RenderStepped:connect(function()
  214. currentframe = currentframe + 1
  215. if currentframe < 1*60 then
  216. p1.CFrame = char:WaitForChild("Torso").CFrame
  217. p2.CFrame = char:WaitForChild("Torso").CFrame
  218. 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)))
  219. 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)))
  220. m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
  221. m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
  222. m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
  223. m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
  224. p1.Transparency = p1.Transparency + (1/(1*60))
  225. p2.Transparency = p2.Transparency + (1/(1*60))
  226. p3.Transparency = p3.Transparency + (1/(1*60))
  227. p4.Transparency = p4.Transparency + (1/(1*60))
  228. else
  229. p1:Destroy()
  230. p2:Destroy()
  231. p3:Destroy()
  232. p4:Destroy()
  233. frmR:disconnect()
  234. end
  235. end)
  236.  
  237. char.Humanoid.MaxHealth = math.huge
  238. wait()
  239. char.Humanoid.Health = math.huge
  240.  
  241. --[[mouse.KeyDown:connect(function(key)
  242. if key == "r" then
  243. print("R!")
  244. if cd == false then
  245. print("No cooldown!")
  246. cd = true
  247. if toggle == false then
  248. print("Entering godmode")
  249. toggle = true
  250. Instance.new("ForceField",char)
  251. for i=1,amountGhosts do
  252. CreateGhost()
  253. end
  254. char.Parent = game:GetService("Workspace").CurrentCamera
  255. char:FindFirstChild("Head").Transparency = 1
  256. char:FindFirstChild("Torso").Transparency = 1
  257. char:FindFirstChild("Right Arm").Transparency = 1
  258. char:FindFirstChild("Left Arm").Transparency = 1
  259. char:FindFirstChild("Right Leg").Transparency = 1
  260. char:FindFirstChild("Left Leg").Transparency = 1
  261. for i,v in pairs(char:GetChildren()) do
  262. if v:IsA("Accessory") then
  263. v:FindFirstChild("Handle").Transparency = 1
  264. end
  265. end
  266. else
  267. print("Exiting godmode")
  268. toggle = false
  269. for i,v in pairs(ghosts) do
  270. v:Destroy()
  271. end
  272. char.Parent = game:GetService("Workspace")
  273. char:FindFirstChild("ForceField"):Destroy()
  274. char:FindFirstChild("Head").Transparency = 0
  275. char:FindFirstChild("Torso").Transparency = 0
  276. char:FindFirstChild("Right Arm").Transparency = 0
  277. char:FindFirstChild("Left Arm").Transparency = 0
  278. char:FindFirstChild("Right Leg").Transparency = 0
  279. char:FindFirstChild("Left Leg").Transparency = 0
  280. for i,v in pairs(char:GetChildren()) do
  281. if v:IsA("Accessory") then
  282. v:FindFirstChild("Handle").Transparency = 0
  283. end
  284. end
  285. end
  286. cd = false
  287. end
  288. end
  289. end)]]
  290.  
  291. mouse.KeyDown:connect(function(key)
  292. spawn(function()
  293. if key == "f" and toggle == true and mcd == false then
  294. if #ghosts < amountGhosts then
  295. print(#ghosts.."<")
  296. mcd = true
  297.  
  298. ClearGhosts()
  299.  
  300. for i=1,amountGhosts do
  301. CreateGhost()
  302. end
  303. local p1 = Instance.new("Part",workspace)
  304. local m1 = Instance.new("SpecialMesh",p1)
  305. m1.MeshType = "Sphere"
  306. m1.Scale = Vector3.new(7,7,7)
  307. p1.Size = Vector3.new(1,1,1)
  308. p1.Anchored = true
  309. p1.CanCollide = false
  310. p1.TopSurface = "Smooth"
  311. p1.BottomSurface = "Smooth"
  312. if gt == false then
  313. p1.BrickColor = gCol
  314. else
  315. p1.BrickColor = wCol
  316. end
  317. p1.Material = "Neon"
  318. local p2 = Instance.new("Part",workspace)
  319. local m2 = Instance.new("SpecialMesh",p2)
  320. m2.MeshType = "Sphere"
  321. m2.Scale = Vector3.new(9,9,9)
  322. p2.Size = Vector3.new(1,1,1)
  323. p2.Anchored = true
  324. p2.CanCollide = false
  325. p2.TopSurface = "Smooth"
  326. p2.BottomSurface = "Smooth"
  327. if gt == false then
  328. p2.BrickColor = gCol2
  329. else
  330. p2.BrickColor = wCol2
  331. end
  332. p2.Material = "Neon"
  333. local currentframe = 0
  334. local frmR
  335.  
  336. frmR = game:GetService("RunService").RenderStepped:connect(function()
  337. currentframe = currentframe + 1
  338. if currentframe < 0.25*60 then
  339. p1.CFrame = char:WaitForChild("Torso").CFrame
  340. p2.CFrame = char:WaitForChild("Torso").CFrame
  341. p1.Transparency = p1.Transparency + (1/(0.25*60))
  342. p2.Transparency = p2.Transparency + (1/(0.25*60))
  343. else
  344. p1:Destroy()
  345. p2:Destroy()
  346. mcd = false
  347. frmR:disconnect()
  348. end
  349. end)
  350. else
  351. mcd = true
  352.  
  353. ClearGhosts()
  354.  
  355. local p1 = Instance.new("Part",workspace)
  356. local m1 = Instance.new("SpecialMesh",p1)
  357. m1.MeshType = "Sphere"
  358. m1.Scale = Vector3.new(7,7,7)
  359. p1.Size = Vector3.new(1,1,1)
  360. p1.Anchored = true
  361. p1.CanCollide = false
  362. p1.TopSurface = "Smooth"
  363. p1.BottomSurface = "Smooth"
  364. if gt == false then
  365. p1.BrickColor = gCol
  366. else
  367. p1.BrickColor = wCol
  368. end
  369. p1.Material = "Neon"
  370. local p2 = Instance.new("Part",workspace)
  371. local m2 = Instance.new("SpecialMesh",p2)
  372. m2.MeshType = "Sphere"
  373. m2.Scale = Vector3.new(9,9,9)
  374. p2.Size = Vector3.new(1,1,1)
  375. p2.Anchored = true
  376. p2.CanCollide = false
  377. p2.TopSurface = "Smooth"
  378. p2.BottomSurface = "Smooth"
  379. if gt == false then
  380. p2.BrickColor = gCol2
  381. else
  382. p2.BrickColor = wCol2
  383. end
  384. p2.Material = "Neon"
  385. local currentframe = 0
  386. local frmR
  387.  
  388. frmR = game:GetService("RunService").RenderStepped:connect(function()
  389. currentframe = currentframe + 1
  390. if currentframe < 0.25*60 then
  391. p1.CFrame = char:WaitForChild("Torso").CFrame
  392. p2.CFrame = char:WaitForChild("Torso").CFrame
  393. p1.Transparency = p1.Transparency + (1/(0.25*60))
  394. p2.Transparency = p2.Transparency + (1/(0.25*60))
  395. else
  396. p1:Destroy()
  397. p2:Destroy()
  398. mcd = false
  399. frmR:disconnect()
  400. end
  401. end)
  402. end
  403. elseif key == "g" and toggle == true and mcd == false then
  404. if gt == true then
  405. gt = false
  406. local p1 = Instance.new("Part",workspace)
  407. local m1 = Instance.new("SpecialMesh",p1)
  408. m1.MeshType = "Sphere"
  409. m1.Scale = Vector3.new(5,5,5)
  410. p1.Size = Vector3.new(1,1,1)
  411. p1.Anchored = true
  412. p1.CanCollide = false
  413. p1.TopSurface = "Smooth"
  414. p1.BottomSurface = "Smooth"
  415. p1.BrickColor = gCol
  416. p1.Material = "Neon"
  417. local p2 = Instance.new("Part",workspace)
  418. local m2 = Instance.new("SpecialMesh",p2)
  419. m2.MeshType = "Sphere"
  420. m2.Scale = Vector3.new(8,8,8)
  421. p2.Size = Vector3.new(1,1,1)
  422. p2.Anchored = true
  423. p2.CanCollide = false
  424. p2.TopSurface = "Smooth"
  425. p2.BottomSurface = "Smooth"
  426. p2.BrickColor = gCol2
  427. p2.Material = "Neon"
  428. local p3 = Instance.new("Part",workspace)
  429. local m3 = Instance.new("BlockMesh",p3)
  430. m3.Scale = Vector3.new(7,7,7)
  431. p3.Size = Vector3.new(1,1,1)
  432. p3.Transparency = 0.4
  433. p3.Anchored = true
  434. p3.CanCollide = false
  435. p3.TopSurface = "Smooth"
  436. p3.BottomSurface = "Smooth"
  437. p3.BrickColor = gCol
  438. p3.Material = "Neon"
  439. local p4 = Instance.new("Part",workspace)
  440. local m4 = Instance.new("BlockMesh",p4)
  441. m4.Scale = Vector3.new(10,10,10)
  442. p4.Size = Vector3.new(1,1,1)
  443. p4.Transparency = 0.4
  444. p4.Anchored = true
  445. p4.CanCollide = false
  446. p4.TopSurface = "Smooth"
  447. p4.BottomSurface = "Smooth"
  448. p4.BrickColor = gCol2
  449. p4.Material = "Neon"
  450.  
  451. ClearGhosts()
  452.  
  453. for i=1,amountGhosts do
  454. CreateGhost()
  455. end
  456.  
  457. local currentframe = 0
  458. local frmR
  459.  
  460. frmR = game:GetService("RunService").RenderStepped:connect(function()
  461. currentframe = currentframe + 1
  462. if currentframe < 1*60 then
  463. p1.CFrame = char:WaitForChild("Torso").CFrame
  464. p2.CFrame = char:WaitForChild("Torso").CFrame
  465. 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)))
  466. 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)))
  467. m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
  468. m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
  469. m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
  470. m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
  471. p1.Transparency = p1.Transparency + (1/(1*60))
  472. p2.Transparency = p2.Transparency + (1/(1*60))
  473. p3.Transparency = p3.Transparency + (1/(1*60))
  474. p4.Transparency = p4.Transparency + (1/(1*60))
  475. else
  476. p1:Destroy()
  477. p2:Destroy()
  478. p3:Destroy()
  479. p4:Destroy()
  480. frmR:disconnect()
  481. end
  482. end)
  483. else
  484. gt = true
  485. local p1 = Instance.new("Part",workspace)
  486. local m1 = Instance.new("SpecialMesh",p1)
  487. m1.MeshType = "Sphere"
  488. m1.Scale = Vector3.new(5,5,5)
  489. p1.Size = Vector3.new(1,1,1)
  490. p1.Anchored = true
  491. p1.CanCollide = false
  492. p1.TopSurface = "Smooth"
  493. p1.BottomSurface = "Smooth"
  494. p1.BrickColor = wCol
  495. p1.Material = "Neon"
  496. local p2 = Instance.new("Part",workspace)
  497. local m2 = Instance.new("SpecialMesh",p2)
  498. m2.MeshType = "Sphere"
  499. m2.Scale = Vector3.new(8,8,8)
  500. p2.Size = Vector3.new(1,1,1)
  501. p2.Anchored = true
  502. p2.CanCollide = false
  503. p2.TopSurface = "Smooth"
  504. p2.BottomSurface = "Smooth"
  505. p2.BrickColor = wCol2
  506. p2.Material = "Neon"
  507. local p3 = Instance.new("Part",workspace)
  508. local m3 = Instance.new("BlockMesh",p3)
  509. m3.Scale = Vector3.new(7,7,7)
  510. p3.Size = Vector3.new(1,1,1)
  511. p3.Transparency = 0.4
  512. p3.Anchored = true
  513. p3.CanCollide = false
  514. p3.TopSurface = "Smooth"
  515. p3.BottomSurface = "Smooth"
  516. p3.BrickColor = wCol
  517. p3.Material = "Neon"
  518. local p4 = Instance.new("Part",workspace)
  519. local m4 = Instance.new("BlockMesh",p4)
  520. m4.Scale = Vector3.new(10,10,10)
  521. p4.Size = Vector3.new(1,1,1)
  522. p4.Transparency = 0.4
  523. p4.Anchored = true
  524. p4.CanCollide = false
  525. p4.TopSurface = "Smooth"
  526. p4.BottomSurface = "Smooth"
  527. p4.BrickColor = wCol2
  528. p4.Material = "Neon"
  529.  
  530. ClearGhosts()
  531.  
  532. for i=1,amountGhosts do
  533. CreateGhost()
  534. end
  535.  
  536. local currentframe = 0
  537. local frmR
  538.  
  539. frmR = game:GetService("RunService").RenderStepped:connect(function()
  540. currentframe = currentframe + 1
  541. if currentframe < 1*60 then
  542. p1.CFrame = char:WaitForChild("Torso").CFrame
  543. p2.CFrame = char:WaitForChild("Torso").CFrame
  544. 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)))
  545. 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)))
  546. m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
  547. m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
  548. m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
  549. m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
  550. p1.Transparency = p1.Transparency + (1/(1*60))
  551. p2.Transparency = p2.Transparency + (1/(1*60))
  552. p3.Transparency = p3.Transparency + (1/(1*60))
  553. p4.Transparency = p4.Transparency + (1/(1*60))
  554. else
  555. p1:Destroy()
  556. p2:Destroy()
  557. p3:Destroy()
  558. p4:Destroy()
  559. frmR:disconnect()
  560. end
  561. end)
  562. end
  563. end
  564. end)
  565. end)
  566.  
  567. local frm = 0
  568.  
  569. local toRemove = {}
  570.  
  571. game:GetService("RunService").RenderStepped:connect(function()
  572. frm = frm + 1
  573. if char.Parent == game:GetService("Workspace").CurrentCamera then
  574.  
  575. e1.CFrame = char.Head.CFrame * CFrame.new(0.15,0.1,-0.55)
  576. e2.CFrame = char.Head.CFrame * CFrame.new(-0.15,0.1,-0.55)
  577.  
  578. local delay = 0.9
  579.  
  580. for i,v in pairs(ghosts) do
  581. for _,b in pairs(v:GetChildren()) do
  582. if b:IsA("Part") or b:IsA("WedgePart") or b:IsA("TrussPart") or b:IsA("UnionOperation") then
  583. b.CFrame = b.CFrame:lerp(b:FindFirstChild("Target").Value.CFrame,delay)
  584. end
  585. end
  586. delay = delay - (0.5/(#ghosts+1))
  587. end
  588.  
  589. --[[if math.floor(frm/8) == frm/8 then
  590. local isub = 0
  591. for i,v in pairs(ghosts) do
  592. if #v:GetChildren() < 6 then
  593. v:Destroy()
  594. table.remove(ghosts,i - isub)
  595. isub = isub + 1
  596. CreateGhost()
  597. end
  598. end
  599. end]]
  600. end
  601.  
  602. --Animation states
  603.  
  604. local ray = Ray.new(char.HumanoidRootPart.CFrame.p, Vector3.new(0,-3,0).unit*4)
  605. local part,pos,normal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(ray,ghosts,false,true)
  606.  
  607. if state ~= "busy" then
  608. if char.HumanoidRootPart.Velocity.Magnitude <= 0.5 then
  609. state = "idle"
  610. elseif char.HumanoidRootPart.Velocity.Magnitude > 0.5 then
  611. state = "running"
  612. --[[elseif char.HumanoidRootPart.Velocity.Y < 0.1 and not part then
  613. state = "falling"
  614. elseif char.HumanoidRootPart.Velocity.Y >= 0.1 and not part then
  615. state = "jumping"]]
  616. end
  617. char.Humanoid.WalkSpeed = 32
  618. char.Humanoid.JumpPower = 70
  619. end
  620.  
  621. --Actual animations
  622.  
  623. if state == "idle" then
  624. 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)
  625. 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)
  626. 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)
  627. 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)
  628. 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)
  629. 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)
  630. elseif state == "running" then
  631. 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)
  632. 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)
  633. 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)
  634. 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)
  635. 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)
  636. 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)
  637. end
  638. end)
  639.  
  640. char.Humanoid.Died:connect(function()
  641. toggle = false
  642.  
  643. ClearGhosts()
  644.  
  645. char.Parent = game.Workspace
  646. char.Parent = game:GetService("Workspace")
  647. char:FindFirstChild("ForceField"):Destroy()
  648. char:FindFirstChild("Head").Transparency = 0
  649. char:FindFirstChild("Torso").Transparency = 0
  650. char:FindFirstChild("Right Arm").Transparency = 0
  651. char:FindFirstChild("Left Arm").Transparency = 0
  652. char:FindFirstChild("Right Leg").Transparency = 0
  653. char:FindFirstChild("Left Leg").Transparency = 0
  654. for i,v in pairs(char:GetChildren()) do
  655. if v:IsA("Accessory") then
  656. v:FindFirstChild("Handle").Transparency = 0
  657. end
  658. end
  659. for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end
  660. plr:LoadCharacter()
  661. end)
  662.  
  663. local msgidGlob = 0
  664. local state = true
  665. local font = "Arcade"
  666. local tcol = Color3.fromRGB(255,217,0)
  667. local tscol = Color3.fromRGB(0,0,0)
  668. local fsiz = 28
  669. local tr = true
  670. local tsr = false
  671. local fade = 2
  672.  
  673. local p = Instance.new("Part",game.Workspace)
  674. p.Size = Vector3.new(0.2,0.2,0.2)
  675. p.Transparency = 1
  676. p.Anchored = true
  677. p.CanCollide = false
  678. p.Name = "Msg"
  679. p.CFrame = plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0)
  680.  
  681. local r = 255
  682. local b = 0
  683. local g = 0
  684.  
  685. plr.Chatted:connect(function(c)
  686. msgidGlob = msgidGlob + 1
  687. local curMsgId = msgidGlob
  688. if string.lower(c) == "!disable" then
  689. state = false
  690. elseif string.lower(c) == "!enable" then
  691. state = true
  692. elseif string.lower(string.sub(c,1,6)) == "!font " then
  693. local old = font
  694. font = string.sub(c,7,#c) or old
  695. elseif string.lower(string.sub(c,1,8)) == "!tcolor " then
  696. if string.lower(string.sub(c,9,#c)) == "rainbow" then
  697. tr = true
  698. else
  699. tr = false
  700. local old = tcol
  701. tcol = Color3.fromRGB(string.sub(c,9,11),string.sub(c,13,15),string.sub(c,17,19)) or old
  702. end
  703. elseif string.lower(string.sub(c,1,9)) == "!tscolor " then
  704. if string.sub(c,10,#c) == "rainbow" then
  705. tsr = true
  706. else
  707. tsr = false
  708. local old = tscol
  709. tscol = Color3.fromRGB(string.sub(c,10,12),string.sub(c,14,16),string.sub(c,18,20)) or old
  710. end
  711. elseif string.lower(string.sub(c,1,6)) == "!size " then
  712. local old = fsiz
  713. fsiz = string.sub(c,7,#c) or old
  714. elseif string.lower(string.sub(c,1,6)) == "!fade " then
  715. local old = fade
  716. fade = string.sub(c,7,#c) or old
  717. end
  718. if plr.Character and state == true then
  719. if plr.Character:FindFirstChild("Head") then
  720. for i,v in pairs(p:GetChildren()) do
  721. if v:IsA("BillboardGui") and v.Name == "J2CMSG" then
  722. v:Destroy()
  723. end
  724. end
  725. local bbgui = Instance.new("BillboardGui",p)
  726. bbgui.Name = "J2CMSG"
  727. bbgui.AlwaysOnTop = true
  728. bbgui.ExtentsOffsetWorldSpace = Vector3.new(0,4.5,0)
  729. bbgui.Size = UDim2.new(0.2,0,0.14,0)
  730. local tl = Instance.new("TextLabel",bbgui)
  731. tl.BackgroundTransparency = 1
  732. tl.BorderSizePixel = 0
  733. tl.Size = UDim2.new(1,0,10,0)
  734. tl.Position = UDim2.new(0,0,-5,0)
  735. tl.Font = font or "SciFi"
  736. tl.FontSize = "Size"..fsiz or "Size36"
  737. tl.TextColor3 = tcol
  738. tl.TextScaled = false
  739. tl.TextWrapped = false
  740. tl.TextStrokeColor3 = tscol
  741. tl.TextStrokeTransparency = 0
  742.  
  743. game:GetService("RunService").RenderStepped:connect(function()
  744. if tr then
  745. if tl.Parent ~= nil then
  746. tl.TextColor3 = Color3.fromRGB(r,g,b)
  747. end
  748. end
  749. end)
  750.  
  751. for i=1,#c do
  752. if msgidGlob == curMsgId then
  753. tl.Text = string.sub(c,1,i)
  754. if string.sub(c,i,i) ~= " " then
  755. local s = Instance.new("Sound",p)
  756. s.SoundId = "rbxassetid://418252437"
  757. s.Volume = 1
  758. s.Pitch = 1
  759. s:Play()
  760. game.Debris:AddItem(s,2)
  761. end
  762. wait()
  763. end
  764. end
  765. wait(fade)
  766. if msgidGlob == curMsgId then
  767. for i=1,10 do
  768. if msgidGlob == curMsgId then
  769. tl.TextTransparency = tl.TextTransparency + 0.1
  770. tl.TextStrokeTransparency = tl.TextStrokeTransparency + 0.1
  771. tl.Position = tl.Position + UDim2.new(0,0,0,-3)
  772. wait()
  773. end
  774. end
  775. if msgidGlob == curMsgId then
  776. bbgui:Destroy()
  777. end
  778. end
  779. end
  780. end
  781. end)
  782.  
  783. coroutine.resume(coroutine.create(function()
  784. while wait() do
  785. for i=0,255,10 do g = i wait() end
  786. for i=255,0,-10 do r = i wait() end
  787. for i=0,255,10 do b = i wait() end
  788. for i=255,0,-10 do g = i wait() end
  789. for i=0,255,10 do r = i wait() end
  790. for i=255,0,-10 do b = i wait() end
  791. end
  792. end))
  793.  
  794. game:GetService("RunService").RenderStepped:connect(function()
  795. if p.Parent ~= nil then
  796. p.CFrame = p.CFrame:lerp(plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0),0.16)
  797. else
  798. p = Instance.new("Part",game.Workspace)
  799. p.Size = Vector3.new(0.2,0.2,0.2)
  800. p.Transparency = 1
  801. p.Anchored = true
  802. p.CanCollide = false
  803. p.Name = "Msg"
  804. p.CFrame = plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0)
  805. end
  806. end)
  807.  
  808. print("Ghost loaded! Time elapsed: "..tick() - time)
  809. end
  810. },
  811. {
  812. "Timestop",
  813. function()
  814. local plr = game:GetService("Players").LocalPlayer
  815. local deb = false
  816.  
  817. while not plr.Character do wait() end
  818. wait(0.1)
  819.  
  820. warn("Timestop loaded. R to toggle time.")
  821.  
  822. local tstab = {}
  823. local tsstab = {}
  824. local ignlist = {}
  825. local stab = {}
  826.  
  827. function plrIgnore(char)
  828. for i,v in pairs(char:GetChildren()) do
  829. if #v:GetChildren() >= 1 then
  830. plrIgnore(v)
  831. end
  832. table.insert(ignlist,v)
  833. end
  834. end
  835.  
  836. function timeStop(target)
  837. for i,v in pairs(target:GetChildren()) do
  838. if #v:GetChildren() >= 1 then
  839. timeStop(v)
  840. end
  841. local isinign = false
  842. for i,b in pairs(ignlist) do
  843. if b == v then
  844. isinign = true
  845. end
  846. end
  847. if isinign == false then
  848. if v:IsA("Part") or v:IsA("WedgePart") or v:IsA("UnionOperation") then
  849. if v.Anchored == false then
  850. table.insert(tstab,v)
  851. v.Anchored = true
  852. end
  853. end
  854. if v:IsA("Sound") then
  855. local isintab = false
  856. for i,b in pairs(stab) do
  857. if v == b[1] then
  858. isintab = true
  859. end
  860. end
  861. if isintab == false then
  862. table.insert(stab,{v,v.Pitch})
  863. end
  864. end
  865. --[[if v:IsA("Script") or v:IsA("LocalScript") then
  866. if v.Disabled == false then
  867. table.insert(tsstab,v)
  868. v.Disabled = true
  869. end
  870. end]]
  871. end
  872. end
  873. local isinign = false
  874. for i,b in pairs(ignlist) do
  875. if b == target then
  876. isinign = true
  877. end
  878. end
  879. if isinign == false then
  880. if target:IsA("Part") or target:IsA("WedgePart") or target:IsA("UnionOperation") then
  881. if target.Anchored == false then
  882. table.insert(tstab,target)
  883. target.Anchored = true
  884. end
  885. end
  886. if target:IsA("Sound") then
  887. table.insert(stab,{target,target.Pitch})
  888. end
  889. end
  890. end
  891.  
  892. plr:GetMouse().KeyDown:connect(function(key)
  893. if key == "r" then
  894. if deb == true then
  895. deb = false
  896. else
  897. deb = true
  898. local cc = Instance.new("ColorCorrectionEffect",game:GetService("Lighting"))
  899. spawn(function()
  900. plr.Character.Humanoid.WalkSpeed = 0
  901. plr.Character.Humanoid.JumpPower = 0
  902. local p = Instance.new("Part",plr.Character)
  903. p.Transparency = 0.5
  904. p.BrickColor = BrickColor.new("Institutional white")
  905. p.Size = Vector3.new(0.2,0.2,0.2)
  906. p.Anchored = true
  907. p.CanCollide = false
  908. p.CFrame = plr.Character.Torso.CFrame
  909. local m = Instance.new("SpecialMesh",p)
  910. m.MeshType = Enum.MeshType.Sphere
  911.  
  912. local r = 255
  913. local g = 255
  914. local b = 255
  915. local contrast = 0
  916.  
  917. for i=1,50 do
  918. m.Scale = m.Scale + Vector3.new(50,50,50)
  919. p.Transparency = p.Transparency + 0.5/50
  920. r = r - ((255-42)/50)
  921. g = g - ((255-0)/50)
  922. b = b - ((255-255)/50)
  923. contrast = contrast - 2/50
  924. --cc.TintColor = Color3.fromRGB(r,g,b)
  925. cc.Contrast = contrast
  926. for i,v in pairs(stab) do
  927. v[1].Pitch = v[1].Pitch - (v[2]/50)
  928. end
  929. wait()
  930. end
  931. p:Destroy()
  932. plr.Character.Humanoid.WalkSpeed = 16
  933. plr.Character.Humanoid.JumpPower = 50
  934. end)
  935.  
  936. local aNew = game:GetService("Workspace").ChildAdded:connect(function(c)
  937. timeStop(c)
  938. end)
  939.  
  940. for i,v in pairs(ignlist) do
  941. table.remove(ignlist,1)
  942. end
  943. plrIgnore(plr.Character)
  944. timeStop(game:GetService("Workspace"))
  945. while deb ~= false do wait() end
  946. --spawn(function()
  947. local r = 42
  948. local g = 0
  949. local b = 255
  950. local contrast = -2
  951. for i=1,50 do
  952. r = r + ((255-42)/50)
  953. g = g + ((255-0)/50)
  954. b = b + ((255-255)/50)
  955. contrast = contrast + 2/50
  956. --cc.TintColor = Color3.fromRGB(r,g,b)
  957. cc.Contrast = contrast
  958. for i,v in pairs(stab) do
  959. v[1].Pitch = v[1].Pitch + (v[2]/50)
  960. end
  961. wait()
  962. end
  963. cc:Destroy()
  964. --end)
  965. for i,v in pairs(tstab) do
  966. v.Anchored = false
  967. end
  968. for i,v in pairs(tstab) do
  969. table.remove(tstab,1)
  970. end
  971. --table.foreach(stab,print)
  972. for i,v in pairs(stab) do
  973. table.remove(stab,1)
  974. end
  975. --print("---------")
  976. --table.foreach(stab,print)
  977. --[[for i,v in pairs(tsstab) do
  978. v.Disabled = false
  979. end
  980. for i,v in pairs(tsstab) do
  981. table.remove(tsstab,1)
  982. end]]
  983. aNew:disconnect()
  984. deb = false
  985. end
  986. end
  987. end)
  988. end
  989. },
  990. {
Add Comment
Please, Sign In to add comment