Advertisement
Guest User

Timestop - Script

a guest
Dec 1st, 2017
4,053
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.82 KB | None | 0 0
  1. function()
  2. local plr = game:GetService("Players").LocalPlayer
  3. local deb = false
  4.  
  5. while not plr.Character do wait() end
  6. wait(0.1)
  7.  
  8. warn("Timestop loaded. R to toggle time.")
  9.  
  10. local tstab = {}
  11. local tsstab = {}
  12. local ignlist = {}
  13. local stab = {}
  14.  
  15. function plrIgnore(char)
  16. for i,v in pairs(char:GetChildren()) do
  17. if #v:GetChildren() >= 1 then
  18. plrIgnore(v)
  19. end
  20. table.insert(ignlist,v)
  21. end
  22. end
  23.  
  24. function timeStop(target)
  25. for i,v in pairs(target:GetChildren()) do
  26. if #v:GetChildren() >= 1 then
  27. timeStop(v)
  28. end
  29. local isinign = false
  30. for i,b in pairs(ignlist) do
  31. if b == v then
  32. isinign = true
  33. end
  34. end
  35. if isinign == false then
  36. if v:IsA("Part") or v:IsA("WedgePart") or v:IsA("UnionOperation") then
  37. if v.Anchored == false then
  38. table.insert(tstab,v)
  39. v.Anchored = true
  40. end
  41. end
  42. if v:IsA("Sound") then
  43. local isintab = false
  44. for i,b in pairs(stab) do
  45. if v == b[1] then
  46. isintab = true
  47. end
  48. end
  49. if isintab == false then
  50. table.insert(stab,{v,v.Pitch})
  51. end
  52. end
  53. --[[if v:IsA("Script") or v:IsA("LocalScript") then
  54. if v.Disabled == false then
  55. table.insert(tsstab,v)
  56. v.Disabled = true
  57. end
  58. end]]
  59. end
  60. end
  61. local isinign = false
  62. for i,b in pairs(ignlist) do
  63. if b == target then
  64. isinign = true
  65. end
  66. end
  67. if isinign == false then
  68. if target:IsA("Part") or target:IsA("WedgePart") or target:IsA("UnionOperation") then
  69. if target.Anchored == false then
  70. table.insert(tstab,target)
  71. target.Anchored = true
  72. end
  73. end
  74. if target:IsA("Sound") then
  75. table.insert(stab,{target,target.Pitch})
  76. end
  77. end
  78. end
  79.  
  80. plr:GetMouse().KeyDown:connect(function(key)
  81. if key == "r" then
  82. if deb == true then
  83. deb = false
  84. else
  85. deb = true
  86. local cc = Instance.new("ColorCorrectionEffect",game:GetService("Lighting"))
  87. spawn(function()
  88. plr.Character.Humanoid.WalkSpeed = 0
  89. plr.Character.Humanoid.JumpPower = 0
  90. local p = Instance.new("Part",plr.Character)
  91. p.Transparency = 0.5
  92. p.BrickColor = BrickColor.new("Institutional white")
  93. p.Size = Vector3.new(0.2,0.2,0.2)
  94. p.Anchored = true
  95. p.CanCollide = false
  96. p.CFrame = plr.Character.Torso.CFrame
  97. local m = Instance.new("SpecialMesh",p)
  98. m.MeshType = Enum.MeshType.Sphere
  99.  
  100. local r = 255
  101. local g = 255
  102. local b = 255
  103. local contrast = 0
  104.  
  105. for i=1,50 do
  106. m.Scale = m.Scale + Vector3.new(50,50,50)
  107. p.Transparency = p.Transparency + 0.5/50
  108. r = r - ((255-42)/50)
  109. g = g - ((255-0)/50)
  110. b = b - ((255-255)/50)
  111. contrast = contrast - 2/50
  112. --cc.TintColor = Color3.fromRGB(r,g,b)
  113. cc.Contrast = contrast
  114. for i,v in pairs(stab) do
  115. v[1].Pitch = v[1].Pitch - (v[2]/50)
  116. end
  117. wait()
  118. end
  119. p:Destroy()
  120. plr.Character.Humanoid.WalkSpeed = 16
  121. plr.Character.Humanoid.JumpPower = 50
  122. end)
  123.  
  124. local aNew = game:GetService("Workspace").ChildAdded:connect(function(c)
  125. timeStop(c)
  126. end)
  127.  
  128. for i,v in pairs(ignlist) do
  129. table.remove(ignlist,1)
  130. end
  131. plrIgnore(plr.Character)
  132. timeStop(game:GetService("Workspace"))
  133. while deb ~= false do wait() end
  134. --spawn(function()
  135. local r = 42
  136. local g = 0
  137. local b = 255
  138. local contrast = -2
  139. for i=1,50 do
  140. r = r + ((255-42)/50)
  141. g = g + ((255-0)/50)
  142. b = b + ((255-255)/50)
  143. contrast = contrast + 2/50
  144. --cc.TintColor = Color3.fromRGB(r,g,b)
  145. cc.Contrast = contrast
  146. for i,v in pairs(stab) do
  147. v[1].Pitch = v[1].Pitch + (v[2]/50)
  148. end
  149. wait()
  150. end
  151. cc:Destroy()
  152. --end)
  153. for i,v in pairs(tstab) do
  154. v.Anchored = false
  155. end
  156. for i,v in pairs(tstab) do
  157. table.remove(tstab,1)
  158. end
  159. --table.foreach(stab,print)
  160. for i,v in pairs(stab) do
  161. table.remove(stab,1)
  162. end
  163. --print("---------")
  164. --table.foreach(stab,print)
  165. --[[for i,v in pairs(tsstab) do
  166. v.Disabled = false
  167. end
  168. for i,v in pairs(tsstab) do
  169. table.remove(tsstab,1)
  170. end]]
  171. aNew:disconnect()
  172. deb = false
  173. end
  174. end
  175. end)
  176. end
  177. },
  178. {
  179. "Egg",
  180. function()
  181. wait(3)
  182.  
  183. local plr = game:GetService("Players").LocalPlayer
  184.  
  185. while not plr.Character do wait() end
  186.  
  187. local char,jtab,ceqpt,bsy,isaim,cd,drawf,state = plr.Character,{},false,false,false,false,false,"loading"
  188.  
  189. local hdp = Instance.new("Part",script.Parent)
  190. hdp.Name = "HandlePart"
  191. hdp.Size = Vector3.new(0.2,0.2,0.2)
  192.  
  193. local meshTab = {
  194. {"rbxassetid://705224299","rbxassetid://705224727",Vector3.new(0.4,0.4,0.4)},
  195. {"rbxassetid://705216303","rbxassetid://705216927",Vector3.new(1.8,1.8,1.8)},
  196. {"rbxassetid://705209239","rbxassetid://705209459",Vector3.new(0.8,0.8,0.8)},
  197. {"rbxassetid://705247407","rbxassetid://705246950",Vector3.new(1,1,1)},
  198. {"rbxassetid://705242967","rbxassetid://705243300",Vector3.new(0.44,0.44,0.44)},
  199. {"rbxassetid://705197095","rbxassetid://705197292",Vector3.new(1.25,1.25,1.25)},
  200. {"rbxassetid://676836968","rbxassetid://676837441",Vector3.new(0.5,0.5,0.5)},
  201. {"rbxassetid://698838167","rbxassetid://698838688",Vector3.new(1.6,1.6,1.6)},
  202. {"rbxassetid://698827858","rbxassetid://698828143",Vector3.new(1.4,1.4,1.5)},
  203. {"rbxassetid://705202806","rbxassetid://705207716",Vector3.new(1,1,1)},
  204. {"rbxassetid://676840078","rbxassetid://676839351",Vector3.new(1.2,1.2,1.2)},
  205. {"rbxassetid://717179708","rbxassetid://705199414",Vector3.new(1,0.95,1.05)},
  206. {"rbxassetid://724420662","rbxassetid://705195915",Vector3.new(0.8,0.8,0.8)},
  207. {"rbxassetid://676841945","rbxassetid://676842522",Vector3.new(1.7,1.7,1.8)},
  208. {"rbxassetid://705315624","rbxassetid://705315897",Vector3.new(0.4,0.4,0.4)},
  209. {"rbxassetid://698835993","rbxassetid://698836260",Vector3.new(1,1,1)},
  210. {"rbxassetid://698813624","rbxassetid://698813905",Vector3.new(1.6,1.6,1.6)},
  211. {"rbxassetid://706712283","rbxassetid://705202233",Vector3.new(2.1,2.1,2.1)},
  212. {"rbxassetid://705208513","rbxassetid://705208760",Vector3.new(1.05,1.05,1.05)},
  213. {"rbxassetid://676843975","rbxassetid://676844191",Vector3.new(1.6,1.6,1.6)},
  214. {"rbxassetid://676846031","rbxassetid://676846800",Vector3.new(0.6,0.6,0.6)},
  215. {"rbxassetid://676848204","rbxassetid://676848680",Vector3.new(0.5,0.5,0.5)},
  216. {"rbxassetid://705217565","rbxassetid://705218075",Vector3.new(1,1,1)},
  217. {"rbxassetid://698829950","rbxassetid://698830608",Vector3.new(0.5,0.5,0.5)},
  218. {"rbxassetid://705200619","rbxassetid://705200948",Vector3.new(2,2,2)},
  219. {"rbxassetid://698816291","rbxassetid://698816601",Vector3.new(0.45,0.45,0.45)},
  220. {"rbxassetid://705245424","rbxassetid://705245604",Vector3.new(1,1,1)},
  221. {"rbxassetid://698839252","rbxassetid://698839539",Vector3.new(1.5,1.55,1.55)},
  222. {"rbxassetid://676850168","rbxassetid://676850427",Vector3.new(1,1,1)},
  223. {"rbxassetid://698836963","rbxassetid://698837211",Vector3.new(2.3,2,2)},
  224. {"rbxassetid://705219281","rbxassetid://705219747",Vector3.new(1.7,1.7,1.7)},
  225. {"rbxassetid://698822829","rbxassetid://698823375",Vector3.new(1.5,1.5,1.5)},
  226. {"rbxassetid://698824115","rbxassetid://698824851",Vector3.new(2.4,2.4,2.4)},
  227. {"rbxassetid://698825712","rbxassetid://698825959",Vector3.new(1.5,1.5,1.5)},
  228. {"rbxassetid://676851481","rbxassetid://676851716",Vector3.new(1,1,1)},
  229. {"rbxassetid://676854360","rbxassetid://676854795",Vector3.new(0.55,0.55,0.55)},
  230. {"rbxassetid://676856626","rbxassetid://676856930",Vector3.new(0.6,0.6,0.6)},
  231. {"rbxassetid://676858618","rbxassetid://676858897",Vector3.new(1.4,1.4,1.4)},
  232. {"rbxassetid://698835348","rbxassetid://698831630",Vector3.new(1.8,1.8,1.8)},
  233. {"rbxassetid://676859903","rbxassetid://676860203",Vector3.new(1.2,1.2,1.2)},
  234. {"rbxassetid://698829304","rbxassetid://698828946",Vector3.new(1.3,1.3,1.3)},
  235. {"rbxassetid://698811815","rbxassetid://698812183",Vector3.new(1,1,1)},
  236. {"rbxassetid://705225654","rbxassetid://705228740",Vector3.new(1,1,1)}
  237. }
  238.  
  239. local mlgTab = {
  240. "rbxassetid://566672836",
  241. "rbxassetid://306356119",
  242. "rbxassetid://10524802",
  243. "rbxassetid://166285971",
  244. "rbxassetid://217185480",
  245. "rbxassetid://198329363",
  246. "rbxassetid://286279066",
  247. "rbxassetid://175843771",
  248. "rbxassetid://165053954",
  249. "rbxassetid://603718340",
  250. "rbxassetid://133727996"
  251. }
  252.  
  253. local msh = Instance.new("SpecialMesh",script.Parent.HandlePart)
  254. msh.MeshType = Enum.MeshType.FileMesh
  255. local rnd = math.random(1,#meshTab)
  256. msh.MeshId = meshTab[rnd][1]
  257. msh.TextureId = meshTab[rnd][2]
  258. msh.Scale = meshTab[rnd][3]/2
  259.  
  260. local gyro = Instance.new("BodyGyro",char:WaitForChild("HumanoidRootPart"))
  261. gyro.MaxTorque = Vector3.new(0,0,0)
  262. gyro.D = 0
  263. gyro.P = 100000000
  264.  
  265. print(script.Parent.Name.." Loaded.")
  266.  
  267. plr:GetMouse().KeyDown:connect(function(key)
  268. if key == "f" then
  269. if ceqpt == false then
  270. ceqpt = true
  271. bsy = false
  272.  
  273. spawn(function()
  274. for i=1,10 do
  275. script.Parent.HandlePart.Transparency = script.Parent.HandlePart.Transparency - 0.1
  276. wait()
  277. end
  278. end)
  279. local rnd = math.random(1,#meshTab)
  280. msh.MeshId = meshTab[rnd][1]
  281. msh.TextureId = meshTab[rnd][2]
  282. msh.Scale = meshTab[rnd][3]/2
  283.  
  284. print("Saving old joints")
  285. for i,v in pairs(char.Torso:GetChildren()) do
  286. if v:IsA("Motor6D") and v.Name ~= "Neck" then
  287. print(v.Name.." saved!")
  288. table.insert(jtab,v)
  289. end
  290. end
  291.  
  292. local aWeld = Instance.new("Weld",char["Right Arm"])
  293. aWeld.Name = "aWeld"
  294. aWeld.Part0 = script.Parent.HandlePart
  295. aWeld.Part1 = char["Right Arm"]
  296. aWeld.C0 = CFrame.new(0,0,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
  297.  
  298. local bWeld = Instance.new("Weld",char["Torso"])
  299. bWeld.Name = "bWeld"
  300. bWeld.Part0 = char["Torso"]
  301. bWeld.Part1 = char["Right Arm"]
  302. bWeld.C0 = CFrame.new(1.5,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  303.  
  304. local cWeld = Instance.new("Weld",char["Torso"])
  305. cWeld.Name = "cWeld"
  306. cWeld.Part0 = char["Torso"]
  307. cWeld.Part1 = char["Left Arm"]
  308. cWeld.C0 = CFrame.new(-1.5,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  309.  
  310. else
  311.  
  312. ceqpt = false
  313. spawn(function()
  314. for i=1,10 do
  315. script.Parent.HandlePart.Transparency = script.Parent.HandlePart.Transparency + 0.1
  316. wait()
  317. end
  318. end)
  319. for i,v in pairs(char.Torso:GetChildren()) do
  320. if v:IsA("Weld") or v:IsA("Motor6D") then
  321. if v.Name ~= "Neck" then
  322. v:Destroy()
  323. end
  324. end
  325. end
  326. for i,v in pairs(jtab) do
  327. v:Clone().Parent = char.Torso
  328. end
  329. for i,v in pairs(jtab) do
  330. table.remove(jtab,1)
  331. end
  332.  
  333. char.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(180))
  334. gyro.MaxTorque = Vector3.new(0,0,0)
  335. char.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(180))
  336. end
  337. end
  338. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement