Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- math.randomseed(tick())
- --[[Important Variables]]--
- local plr = game:GetService('Players').LocalPlayer
- local char = plr.Character
- local mouse = plr:GetMouse()
- local input = game:GetService('UserInputService')
- ----
- local humanoid = char:FindFirstChildOfClass("Humanoid")
- ----
- local huge = Vector3.new(math.huge, math.huge, math.huge)
- local timestate = "None"
- local playermass = 0
- for i,v in pairs(char:GetChildren()) do
- if v:IsA("BasePart") then
- playermass = playermass + v:GetMass()
- end
- end
- local timedata = {}
- ----
- --[[ Anti-Decompile ]]--
- script.Parent = workspace.CurrentCamera
- game:GetService('Players').LocalPlayer.CharacterAdded:connect(function()
- script:Destroy()
- end)
- --[[ Functions ]]--
- function addattack(keycode, func)
- if keycode ~= "MouseClick" then
- input.InputBegan:connect(function(inp)
- if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
- func()
- end
- end)
- else
- mouse.Button1Down:connect(function()
- func()
- end)
- end
- end
- function swait(t)
- if t then
- for i = 0, t do
- game:GetService('RunService').Stepped:wait(0)
- end
- else
- game:GetService('RunService').Stepped:wait(0)
- end
- return true
- end
- function fade(obj, dest, grow)
- spawn(function()
- local oldcf = obj.CFrame
- for i = 0, 10 do
- if grow then
- obj.Size = obj.Size +Vector3.new(1,1,1)
- obj.CFrame = oldcf
- end
- obj.Transparency = obj.Transparency +0.1
- swait()
- end
- if dest then
- obj:Destroy()
- end
- end)
- end
- function soundeffect(id, volume, speed, parent, extra)
- extra = extra or {}
- local func = function()
- local s = LoadLibrary("RbxUtility").Create("Sound")()
- s.Name = "WSoundEffect"
- s.Volume = volume
- s.PlaybackSpeed = speed
- s.SoundId = id
- s.Looped = false
- if extra.Pitch then
- local ef = Instance.new("PitchShiftSoundEffect")
- ef.Octave = extra.Pitch or 1
- ef.Enabled = true
- ef.Priority = 0
- ef.Parent = s
- end
- s.Parent = parent
- if extra.Immune then
- Instance.new("StringValue", s).Name = "Immune"
- end
- s:Play()
- s.TimePosition = extra.Start or 0
- repeat swait() until not s.Playing or s.TimePosition >= (extra.End or 99999)
- s:Destroy()
- return s
- end
- if extra.ForceWait then
- func()
- else
- return spawn(func)
- end
- end
- addattack(Enum.KeyCode.F,function()
- if timestate == "Slow" then
- pcall(function()
- timecon:disconnect()
- timecon = nil
- end)
- local blur = game:GetService('Lighting'):FindFirstChild("BlurE")
- if blur then
- spawn(function()
- for i = 1, 20 do
- blur.Size = 5-((i/20)*5)
- swait()
- end
- blur:Destroy()
- end)
- end
- if char:FindFirstChild("Ticking") then
- char.Ticking:Destroy()
- end
- if char:FindFirstChild("Ambience") then
- char.Ambience:Destroy()
- end
- timestate = "Busy"
- local s = Instance.new("Sound")
- s.Volume = 2
- s.Looped = false
- s.SoundId = "rbxassetid://872443563"
- Instance.new("StringValue", s).Name = "Immune"
- s.Name = "s"
- s.Parent = char
- s:Play()
- spawn(function()
- repeat swait() until not s.Playing
- s:Destroy()
- end)
- spawn(function()
- workspace.Gravity = 196.2
- local humsfinished = false
- for _,data in pairs(timedata) do
- if typeof(data) ~= "RBXScriptConnection" then
- local obj = data.Object
- if obj:IsA("BasePart") then
- if obj:FindFirstChild("ANTIANTI") then
- obj.ANTIANTI:Destroy()
- end
- obj.Anchored = false
- end
- if obj:IsA("Humanoid") then
- local spd = data.WalkSpeed
- local jp = data.JumpPower
- spawn(function()
- for i = 1, 20 do
- obj.WalkSpeed = (i/20)*spd
- obj.JumpPower = (i/20)*jp
- swait()
- end
- end)
- end
- if obj:IsA("BodyPosition") then
- local p = data.P
- spawn(function()
- for i = 1, 20 do
- obj.P = (i/20)*p
- swait()
- end
- end)
- end
- if obj:IsA("BodyForce") then
- local frc = data.Force
- spawn(function()
- for i = 1, 20 do
- obj.Force = (i/20)*frc
- swait()
- end
- end)
- end
- if obj:IsA("BodyVelocity") then
- local vel = data.Velocity
- spawn(function()
- for i = 1, 20 do
- obj.Velocity = (i/20)*vel
- swait()
- end
- end)
- end
- if obj:IsA("Sound") then
- local spd = data.PlaybackSpeed
- spawn(function()
- for i = 1, 20 do
- obj.PlaybackSpeed = (i/20)*spd
- swait()
- end
- end)
- end
- else
- pcall(function()
- data:disconnect()
- end)
- end
- end
- timedata = {}
- swait(20)
- timestate = "None"
- end)
- elseif timestate == "None" then
- workspace.Gravity = 2
- local blur = Instance.new("BlurEffect")
- blur.Size = 0
- blur.Name = "BlurE"
- blur.Parent = game:GetService('Lighting')
- spawn(function()
- for i = 1, 20 do
- blur.Size = (i/20)*5
- swait()
- end
- end)
- timestate = "Busy"
- soundeffect("rbxassetid://909142508", 0.5, 2, char.Torso, {Immune = true, Pitch = 0.5})
- spawn(function()
- local humsfinished = false
- local function bind(obj)
- local data = {Object = obj}
- if obj:IsA("BasePart") and not obj:IsDescendantOf(char) then
- obj.Velocity = obj.Velocity/10
- end
- if obj:IsA("Sound") and not obj:FindFirstChild("Immune") then
- local spd = obj.PlaybackSpeed
- local data = {Object = obj, PlaybackSpeed = spd}
- spawn(function()
- if not humsfinished then
- for i = 1, 20 do
- obj.PlaybackSpeed = ((i/20)*spd)/2
- swait()
- end
- else
- obj.PlaybackSpeed = spd/2
- end
- humsfinished = true
- end)
- table.insert(timedata, data)
- end
- if obj:IsA("BodyVelocity") then
- local vel = obj.Velocity
- local data = {Object = obj, Velocity = vel}
- spawn(function()
- if not humsfinished then
- for i = 1, 20 do
- obj.Velocity = ((i/20)*vel)/10
- swait()
- end
- else
- obj.Velocity = vel/10
- end
- humsfinished = true
- end)
- table.insert(timedata, data)
- end
- if obj:IsA("BodyForce") then
- local frc = obj.Force
- local data = {Object = obj, Force = frc}
- spawn(function()
- if not humsfinished then
- for i = 1, 20 do
- obj.Force = ((i/20)*frc)/10
- swait()
- end
- else
- obj.Force = frc/10
- end
- humsfinished = true
- end)
- table.insert(timedata, data)
- end
- if obj:IsA("BodyPosition") then
- local p = obj.P
- local data = {Object = obj, P = p}
- spawn(function()
- if not humsfinished then
- for i = 1, 20 do
- obj.P = ((i/20)*p)/10
- swait()
- end
- else
- obj.P = p/10
- end
- humsfinished = true
- end)
- table.insert(timedata, data)
- end
- if obj:IsA("Humanoid") and obj ~= humanoid then
- local ws = obj.WalkSpeed
- local jp = obj.JumpPower
- local data = {Object = obj, WalkSpeed = ws, JumpPower = jp}
- spawn(function()
- if not humsfinished then
- for i = 1, 20 do
- obj.JumpPower = ((i/20)*jp)/10
- obj.WalkSpeed = ((i/20)*ws)/10
- swait()
- end
- else
- obj.WalkSpeed = jp/10
- obj.JumpPower = ws/10
- end
- humsfinished = true
- end)
- table.insert(timedata, data)
- end
- end
- timecon = workspace.DescendantAdded:connect(function(obj)
- bind(obj)
- end)
- for _,obj in pairs(workspace:GetDescendants()) do
- bind(obj)
- end
- repeat swait() until humsfinished
- local sound = Instance.new("Sound")
- sound.Name = "Ticking"
- sound.Looped = true
- sound.Volume = 0.2
- sound.PlaybackSpeed = 0.5
- Instance.new("StringValue", sound).Name = "Immune"
- sound.SoundId = "rbxassetid://850256806"
- sound.Parent = char
- sound:Play()
- local sound2 = sound:Clone()
- sound2.Name = "Ambience"
- sound2.SoundId = "rbxassetid://22511542"
- sound2.TimePosition = 30
- sound2.PlaybackSpeed = 0.05
- sound2:Play()
- timestate = "Slow"
- end)
- workspace.CurrentCamera.FieldOfView = 120
- game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(1.8, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
- end
- end)
Add Comment
Please, Sign In to add comment