MaxNutellaOML

time

Aug 8th, 2019
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.20 KB | None | 0 0
  1. math.randomseed(tick())
  2. --[[Important Variables]]--
  3. local plr = game:GetService('Players').LocalPlayer
  4. local char = plr.Character
  5. local mouse = plr:GetMouse()
  6. local input = game:GetService('UserInputService')
  7. ----
  8. local humanoid = char:FindFirstChildOfClass("Humanoid")
  9. ----
  10. local huge = Vector3.new(math.huge, math.huge, math.huge)
  11. local timestate = "None"
  12. local playermass = 0
  13. for i,v in pairs(char:GetChildren()) do
  14. if v:IsA("BasePart") then
  15. playermass = playermass + v:GetMass()
  16. end
  17. end
  18. local timedata = {}
  19. ----
  20. --[[ Anti-Decompile ]]--
  21. script.Parent = workspace.CurrentCamera
  22. game:GetService('Players').LocalPlayer.CharacterAdded:connect(function()
  23. script:Destroy()
  24. end)
  25. --[[ Functions ]]--
  26.  
  27. function addattack(keycode, func)
  28. if keycode ~= "MouseClick" then
  29. input.InputBegan:connect(function(inp)
  30. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  31. func()
  32. end
  33. end)
  34. else
  35. mouse.Button1Down:connect(function()
  36. func()
  37. end)
  38. end
  39. end
  40. function swait(t)
  41. if t then
  42. for i = 0, t do
  43. game:GetService('RunService').Stepped:wait(0)
  44. end
  45. else
  46. game:GetService('RunService').Stepped:wait(0)
  47. end
  48. return true
  49. end
  50. function fade(obj, dest, grow)
  51. spawn(function()
  52. local oldcf = obj.CFrame
  53. for i = 0, 10 do
  54. if grow then
  55. obj.Size = obj.Size +Vector3.new(1,1,1)
  56. obj.CFrame = oldcf
  57. end
  58. obj.Transparency = obj.Transparency +0.1
  59. swait()
  60. end
  61. if dest then
  62. obj:Destroy()
  63. end
  64. end)
  65. end
  66. function soundeffect(id, volume, speed, parent, extra)
  67. extra = extra or {}
  68. local func = function()
  69. local s = LoadLibrary("RbxUtility").Create("Sound")()
  70. s.Name = "WSoundEffect"
  71. s.Volume = volume
  72. s.PlaybackSpeed = speed
  73. s.SoundId = id
  74. s.Looped = false
  75. if extra.Pitch then
  76. local ef = Instance.new("PitchShiftSoundEffect")
  77. ef.Octave = extra.Pitch or 1
  78. ef.Enabled = true
  79. ef.Priority = 0
  80. ef.Parent = s
  81. end
  82. s.Parent = parent
  83. if extra.Immune then
  84. Instance.new("StringValue", s).Name = "Immune"
  85. end
  86. s:Play()
  87. s.TimePosition = extra.Start or 0
  88. repeat swait() until not s.Playing or s.TimePosition >= (extra.End or 99999)
  89. s:Destroy()
  90. return s
  91. end
  92. if extra.ForceWait then
  93. func()
  94. else
  95. return spawn(func)
  96. end
  97. end
  98. addattack(Enum.KeyCode.F,function()
  99. if timestate == "Slow" then
  100. pcall(function()
  101. timecon:disconnect()
  102. timecon = nil
  103. end)
  104. local blur = game:GetService('Lighting'):FindFirstChild("BlurE")
  105. if blur then
  106. spawn(function()
  107. for i = 1, 20 do
  108. blur.Size = 5-((i/20)*5)
  109. swait()
  110. end
  111. blur:Destroy()
  112. end)
  113. end
  114. if char:FindFirstChild("Ticking") then
  115. char.Ticking:Destroy()
  116. end
  117. if char:FindFirstChild("Ambience") then
  118. char.Ambience:Destroy()
  119. end
  120. timestate = "Busy"
  121. local s = Instance.new("Sound")
  122. s.Volume = 2
  123. s.Looped = false
  124. s.SoundId = "rbxassetid://872443563"
  125. Instance.new("StringValue", s).Name = "Immune"
  126. s.Name = "s"
  127. s.Parent = char
  128. s:Play()
  129. spawn(function()
  130. repeat swait() until not s.Playing
  131. s:Destroy()
  132. end)
  133. spawn(function()
  134. workspace.Gravity = 196.2
  135. local humsfinished = false
  136. for _,data in pairs(timedata) do
  137. if typeof(data) ~= "RBXScriptConnection" then
  138. local obj = data.Object
  139. if obj:IsA("BasePart") then
  140. if obj:FindFirstChild("ANTIANTI") then
  141. obj.ANTIANTI:Destroy()
  142. end
  143. obj.Anchored = false
  144. end
  145. if obj:IsA("Humanoid") then
  146. local spd = data.WalkSpeed
  147. local jp = data.JumpPower
  148. spawn(function()
  149. for i = 1, 20 do
  150. obj.WalkSpeed = (i/20)*spd
  151. obj.JumpPower = (i/20)*jp
  152. swait()
  153. end
  154. end)
  155. end
  156. if obj:IsA("BodyPosition") then
  157. local p = data.P
  158. spawn(function()
  159. for i = 1, 20 do
  160. obj.P = (i/20)*p
  161. swait()
  162. end
  163. end)
  164. end
  165. if obj:IsA("BodyForce") then
  166. local frc = data.Force
  167. spawn(function()
  168. for i = 1, 20 do
  169. obj.Force = (i/20)*frc
  170. swait()
  171. end
  172. end)
  173. end
  174. if obj:IsA("BodyVelocity") then
  175. local vel = data.Velocity
  176. spawn(function()
  177. for i = 1, 20 do
  178. obj.Velocity = (i/20)*vel
  179. swait()
  180. end
  181. end)
  182. end
  183. if obj:IsA("Sound") then
  184. local spd = data.PlaybackSpeed
  185. spawn(function()
  186. for i = 1, 20 do
  187. obj.PlaybackSpeed = (i/20)*spd
  188. swait()
  189. end
  190. end)
  191. end
  192. else
  193. pcall(function()
  194. data:disconnect()
  195. end)
  196. end
  197. end
  198. timedata = {}
  199. swait(20)
  200. timestate = "None"
  201. end)
  202. elseif timestate == "None" then
  203. workspace.Gravity = 2
  204. local blur = Instance.new("BlurEffect")
  205. blur.Size = 0
  206. blur.Name = "BlurE"
  207. blur.Parent = game:GetService('Lighting')
  208. spawn(function()
  209. for i = 1, 20 do
  210. blur.Size = (i/20)*5
  211. swait()
  212. end
  213. end)
  214. timestate = "Busy"
  215. soundeffect("rbxassetid://909142508", 0.5, 2, char.Torso, {Immune = true, Pitch = 0.5})
  216. spawn(function()
  217. local humsfinished = false
  218. local function bind(obj)
  219. local data = {Object = obj}
  220. if obj:IsA("BasePart") and not obj:IsDescendantOf(char) then
  221. obj.Velocity = obj.Velocity/10
  222. end
  223. if obj:IsA("Sound") and not obj:FindFirstChild("Immune") then
  224. local spd = obj.PlaybackSpeed
  225. local data = {Object = obj, PlaybackSpeed = spd}
  226. spawn(function()
  227. if not humsfinished then
  228. for i = 1, 20 do
  229. obj.PlaybackSpeed = ((i/20)*spd)/2
  230. swait()
  231. end
  232. else
  233. obj.PlaybackSpeed = spd/2
  234. end
  235. humsfinished = true
  236. end)
  237. table.insert(timedata, data)
  238. end
  239. if obj:IsA("BodyVelocity") then
  240. local vel = obj.Velocity
  241. local data = {Object = obj, Velocity = vel}
  242. spawn(function()
  243. if not humsfinished then
  244. for i = 1, 20 do
  245. obj.Velocity = ((i/20)*vel)/10
  246. swait()
  247. end
  248. else
  249. obj.Velocity = vel/10
  250. end
  251. humsfinished = true
  252. end)
  253. table.insert(timedata, data)
  254. end
  255. if obj:IsA("BodyForce") then
  256. local frc = obj.Force
  257. local data = {Object = obj, Force = frc}
  258. spawn(function()
  259. if not humsfinished then
  260. for i = 1, 20 do
  261. obj.Force = ((i/20)*frc)/10
  262. swait()
  263. end
  264. else
  265. obj.Force = frc/10
  266. end
  267. humsfinished = true
  268. end)
  269. table.insert(timedata, data)
  270. end
  271. if obj:IsA("BodyPosition") then
  272. local p = obj.P
  273. local data = {Object = obj, P = p}
  274. spawn(function()
  275. if not humsfinished then
  276. for i = 1, 20 do
  277. obj.P = ((i/20)*p)/10
  278. swait()
  279. end
  280. else
  281. obj.P = p/10
  282. end
  283. humsfinished = true
  284. end)
  285. table.insert(timedata, data)
  286. end
  287. if obj:IsA("Humanoid") and obj ~= humanoid then
  288. local ws = obj.WalkSpeed
  289. local jp = obj.JumpPower
  290. local data = {Object = obj, WalkSpeed = ws, JumpPower = jp}
  291. spawn(function()
  292. if not humsfinished then
  293. for i = 1, 20 do
  294. obj.JumpPower = ((i/20)*jp)/10
  295. obj.WalkSpeed = ((i/20)*ws)/10
  296. swait()
  297. end
  298. else
  299. obj.WalkSpeed = jp/10
  300. obj.JumpPower = ws/10
  301. end
  302. humsfinished = true
  303. end)
  304. table.insert(timedata, data)
  305. end
  306. end
  307. timecon = workspace.DescendantAdded:connect(function(obj)
  308. bind(obj)
  309. end)
  310. for _,obj in pairs(workspace:GetDescendants()) do
  311. bind(obj)
  312. end
  313. repeat swait() until humsfinished
  314. local sound = Instance.new("Sound")
  315. sound.Name = "Ticking"
  316. sound.Looped = true
  317. sound.Volume = 0.2
  318. sound.PlaybackSpeed = 0.5
  319. Instance.new("StringValue", sound).Name = "Immune"
  320. sound.SoundId = "rbxassetid://850256806"
  321. sound.Parent = char
  322. sound:Play()
  323. local sound2 = sound:Clone()
  324. sound2.Name = "Ambience"
  325. sound2.SoundId = "rbxassetid://22511542"
  326. sound2.TimePosition = 30
  327. sound2.PlaybackSpeed = 0.05
  328. sound2:Play()
  329. timestate = "Slow"
  330. end)
  331. workspace.CurrentCamera.FieldOfView = 120
  332. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(1.8, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
  333. end
  334. end)
Add Comment
Please, Sign In to add comment