Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------------------------------------------------------------------------------------
- -- Compatibility Part
- local CurrentUser = script:WaitForChild("Owner") local Detector = CurrentUser:WaitForChild("Detector") CurrentUser.Value = game.Players:GetPlayerFromCharacter(script.Parent) if (CurrentUser or Detector) == nil then print("Not Found Default Variables"); return end if game:GetService("RunService"):IsClient() then error("Write rls/ to activate this script.") end; print("FE Compatibility version LoadString: by basbas1234"); InternalData = {} do local Event = Instance.new("RemoteEvent"); Event.Name = "UserInput" local function NewFakeEvent() local Bind = Instance.new("BindableEvent") local Fake;Fake = {Connections = {}, fakeEvent=true; Connect=function(self,Func) Bind.Event:connect(Func) self.Connections[Bind] = true return setmetatable({Connected = true},{ __index = function (self,Index) if Index:lower() == "disconnect" then return function() Fake.Connections[Bind] = false;self.Connected = false end end return Fake[Index] end; __tostring = function() return "Connection" end; }) end} Fake.connect = Fake.Connect;return Fake; end local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil end};ContextActionService.UnBindAction = ContextActionService.BindAction local function TriggerEvent(self,Event,...) local Trigger = Mouse[Event] if Trigger and Trigger.fakeEvent and Trigger.Connections then for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end end end Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent Event.OnServerEvent:Connect(function(FiredBy,Input) if FiredBy.Name ~= owner.Name then return end if Input.MouseEvent then Mouse.Target = Input.Target;Mouse.Hit = Input.Hit else local Begin = Input.UserInputState == Enum.UserInputState.Begin if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end for _,Action in pairs(ContextActionService.Actions) do for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end end Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) end end) InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService Event.Parent = Detector Detector.Disabled = false end RealGame = game;game = setmetatable({},{ __index = function (self,Index) local Sandbox = function (Thing) if Thing:IsA("Player") then local RealPlayer = Thing return setmetatable({},{ __index = function (self,Index) local Type = type(RealPlayer[Index]) if Type == "function" then if Index:lower() == "getmouse" or Index:lower() == "mouse" then return function (self)return InternalData["Mouse"] end end return function (self,...)return RealPlayer[Index](RealPlayer,...) end end return RealPlayer[Index] end; __tostring = function(self) return RealPlayer.Name end }) end end if RealGame[Index] then local Type = type(RealGame[Index]) if Type == "function" then if Index:lower() == "getservice" or Index:lower() == "service" then return function (self,Service) local FakeServices = { ["players"] = function() return setmetatable({},{ __index = function (self2,Index2) local RealService = RealGame:GetService(Service) local Type2 = type(Index2) if Type2 == "function" then return function (self,...) return RealService[Index2](RealService,...)end else if Index2:lower() == "localplayer" then return Sandbox(owner) end return RealService[Index2] end end; __tostring = function(self) return RealGame:GetService(Service).Name end }) end; ["contextactionservice"] = function() return InternalData["ContextActionService"] end; ["userinputservice"] = function() return InternalData["UserInputService"] end; ["runservice"] = function() return setmetatable({},{ __index = function(self2,Index2) local RealService = RealGame:GetService(Service) local Type2 = type(Index2) if Type2 == "function" then return function (self,...) return RealService[Index2](RealService,...) end else local RunServices = { ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; ["renderstepped"] = function() return RealService["Stepped"] end } if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end return RealService[Index2] end end }) end } if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end return RealGame:GetService(Service) end end return function (self,...) return RealGame[Index](RealGame,...) end else if game:GetService(Index) then return game:GetService(Index) end return RealGame[Index] end end return nil end });Game = game; owner = CurrentUser.Value; print("Complete! Running...")
- -------------------------------------------------------------------------------------------------------------------
- -- PasteScript Here VV -- and upload on pastebin
- script.Parent = nil;
- local Player = game.Players.LocalPlayer
- local Mouse = Player:GetMouse()
- local Character = Player.Character
- local Humanoid = Character:FindFirstChildOfClass('Humanoid')
- local HumanoidRootPart = Character:FindFirstChild('HumanoidRootPart')
- local Torso = Character:FindFirstChild('Torso') or Character:FindFirstChild('LowerTorso')
- local Players = game:GetService('Players')
- local Lighting = game:GetService('Lighting')
- local Debris = game:GetService('Debris')
- local TweenService = game:GetService('TweenService')
- local RunService = game:GetService('RunService')
- TimeStopped = false
- CanTimeStop = true
- SoundTimeResume = 864569342
- SoundTimeStop = 1193182658
- SoundRealTime = 3084205248
- function CreateSound(name, id, par, vol, pit, loop, destroyended)
- local S = Instance.new("Sound")
- S.Name = name
- S.Volume = vol
- S.Pitch = pit or 1
- S.SoundId = "rbxassetid://" ..id
- S.Parent = par or workspace
- S.Looped = loop
- S:Play()
- if (destroyended) then
- S.Ended:Connect(function()
- Debris:AddItem(S, 0)
- end)
- end
- return S
- end
- RemoveOutlines = function(part)
- part.BackSurface,part.BottomSurface,part.FrontSurface,part.LeftSurface,part.RightSurface,part.TopSurface = 10,10,10,10,10,10
- end
- function CreatePart(Parent, Material, Reflectance, Transparency, Anchored, CanCollide, RGBColor3, Name, Size)
- local Part = Instance.new("Part")
- Part.Parent = Parent
- Part.Reflectance = Reflectance
- Part.Transparency = Transparency
- Part.CanCollide = CanCollide
- Part.Anchored = Anchored
- Part.Locked = true
- Part.Color = RGBColor3
- Part.Name = Name
- Part.Size = Size
- Part.Material = Material
- RemoveOutlines(Part)
- return Part
- end
- function CreateWeld(Parent, Part0, Part1, C0, C1)
- local Weld = Instance.new("Weld")
- Weld.Parent = Parent
- Weld.Part0 = Part0
- Weld.Part1 = Part1
- Weld.C0 = C0
- Weld.C1 = C1
- return Weld
- end
- function FindAscendant(Oject, Class)
- local Current = Oject
- local Result = nil
- pcall(function()
- repeat
- Current = Current.Parent
- if Current:IsA(Class) then
- Result = Current
- break
- end
- until Current == nil
- end)
- return Result
- end
- function CamShake(Duration, Intensity)
- coroutine.wrap(function()
- for i = 1, Duration do
- Humanoid.CameraOffset = Humanoid.CameraOffset:Lerp(Vector3.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1)), 0.1 * Intensity)
- RunService.RenderStepped:Wait()
- end
- Humanoid.CameraOffset = Vector3.new(0, 0, 0)
- end)()
- end
- RealTime = nil
- Theme = nil
- ColorCorrectionEffect = Instance.new('ColorCorrectionEffect', Lighting)
- ColorCorrectionEffect.Name = 'Theme'
- ColorCorrectionEffect.Brightness = 0
- ColorCorrectionEffect.Saturation = 0
- ColorCorrectionEffect.TintColor = Color3.fromRGB(255, 255, 255)
- Stopped = {}
- MyWorkspace = nil
- MyLighting = nil
- FakeHumanoidRootPart = nil
- function CompletelyTimeStop()
- -- Freeze Lighting;
- local CurrentTime = Lighting.TimeOfDay
- local CurrentBrightness = Lighting.Brightness
- local CurrentAmbient = Lighting.Ambient
- local CurrentOutdoorAmbient = Lighting.OutdoorAmbient
- local CurrentFogEnd = Lighting.FogEnd
- local CurrentFogStart = Lighting.FogStart
- local CurrentFogColor = Lighting.FogColor
- MyLighting = Lighting.Changed:Connect(function()
- Lighting.TimeOfDay = CurrentTime
- Lighting.Brightness = CurrentBrightness
- Lighting.Ambient = CurrentAmbient
- Lighting.OutdoorAmbient = CurrentOutdoorAmbient
- Lighting.FogEnd = CurrentFogEnd
- Lighting.FogStart = CurrentFogStart
- Lighting.FogColor = CurrentFogColor
- end)
- -- // Passive
- if (MyWorkspace ~= nil) then
- MyWorkspace:Disconnect();
- MyWorkspace = nil
- end
- MyWorkspace = workspace.DescendantAdded:Connect(function(Self)
- if (Self:IsA('Sound') and not Character:IsAncestorOf(Self)) then
- Stopped[Self] = Self.Parent
- Self:Pause()
- end
- if ((Self:IsA('BasePart') or Self:IsA('UnionOperation')) and not Character:IsAncestorOf(Self) and not (FindAscendant(Self, 'Tool') or FindAscendant(Self, 'HopperBin'))) then
- if not (Self.Anchored) then
- Stopped[Self] = Self
- Self.Anchored = true
- end
- end
- end)
- -- // Active
- for Index, AtPlayer in pairs(Players:GetPlayers()) do
- local AtCharacter = AtPlayer.Character
- if (AtCharacter) then
- for _Index, Self in pairs(AtCharacter:GetDescendants()) do
- if (Self:IsA('Sound') and not Character:IsAncestorOf(Self)) then
- if (Self.Playing) then
- Stopped[Self] = Self.Parent
- spawn(function()
- for Count = 1, 5 do
- Self.Playing = not Self.Playing
- wait(1 / 5)
- end
- Self:Pause()
- end)
- end
- end
- if ((Self:IsA('BasePart') or Self:IsA('UnionOperation')) and not Character:IsAncestorOf(Self) and not (FindAscendant(Self, 'Tool') or FindAscendant(Self, 'HopperBin'))) then
- if not (Self.Anchored) then
- Stopped[Self] = Self
- spawn(function()
- for Count = 1, 5 do
- Self.Anchored = not Self.Anchored
- wait(1 / 5)
- end
- Self.Anchored = true
- end)
- end
- end
- end
- end
- end--[[
- for Index, Self in pairs(workspace:GetChildren()) do
- if (Self:IsA('Sound') and not Character:IsAncestorOf(Self)) then
- if (Self.Playing) then
- Stopped[Self] = Self.Parent
- spawn(function()
- for Count = 1, 5 do
- Self.Playing = not Self.Playing
- wait(1 / 5)
- end
- Self:Pause()
- end)
- end
- end
- if (Self:IsA('Model') or Self:IsA('Folder')) then
- spawn(function()
- for Index, Child in pairs(Self:GetDescendants()) do
- if ((Child:IsA('BasePart') or Child:IsA('UnionOperation')) and not Character:IsAncestorOf(Child) and not (FindAscendant(Child, 'Tool') or FindAscendant(Child, 'HopperBin'))) then
- if not (Child.Anchored) then
- Stopped[Child] = Child
- spawn(function()
- for Count = 1, 5 do
- Child.Anchored = not Child.Anchored
- wait(1 / 5)
- end
- Child.Anchored = true
- end)
- end
- end
- end
- end)
- end
- if ((Self:IsA('BasePart') or Self:IsA('UnionOperation')) and not Character:IsAncestorOf(Self) and not (FindAscendant(Self, 'Tool') or FindAscendant(Self, 'HopperBin'))) then
- if not (Self.Anchored) then
- Stopped[Self] = Self
- spawn(function()
- for Count = 1, 5 do
- Self.Anchored = not Self.Anchored
- wait(1 / 5)
- end
- Self.Anchored = true
- end)
- end
- end
- end--]]
- end
- function CompletelyTimeResume()
- -- // Passive
- if (MyWorkspace ~= nil) then
- MyWorkspace:Disconnect();
- MyWorkspace = nil
- end
- if (MyLighting ~= nil) then
- MyLighting:Disconnect();
- MyLighting = nil
- end
- -- // Active
- for i,v in pairs(Stopped) do
- pcall(function()
- v.Anchored = false
- Stopped[i] = nil
- end)
- pcall(function()
- v:Resume()
- Stopped[i] = nil
- end)
- end
- end
- function TimeStop()
- CanTimeStop = false
- CreateSound('TimeStop', SoundTimeStop, Character, 4, 1, false, true)
- -- Freeze-Local | Method by basbas1234
- if (Humanoid.RigType == Enum.HumanoidRigType.R6) then
- Torso.Anchored = true
- FakeHumanoidRootPart = HumanoidRootPart:Clone()
- HumanoidRootPart.Name = 'Fake'
- FakeHumanoidRootPart.Parent = Character
- FakeHumanoidRootPart.Name = 'HumanoidRootPart'
- Torso.Anchored = false
- else
- Torso.Anchored = true
- HumanoidRootPart.Anchored = true
- local Root = Torso:WaitForChild('Root')
- FakeHumanoidRootPart = HumanoidRootPart:Clone()
- FakeHumanoidRootPart.Parent = Character
- HumanoidRootPart.Name = 'Fake'
- local Motor6D = Instance.new('Motor6D', HumanoidRootPart)
- Motor6D.Name = 'Fake'
- Motor6D.Part0 = HumanoidRootPart
- Motor6D.Part1 = FakeHumanoidRootPart
- Root.Part0 = FakeHumanoidRootPart
- FakeHumanoidRootPart.Anchored = false
- HumanoidRootPart.Anchored = false
- Torso.Anchored = false
- end
- -- Ball;
- local TimeStopEffect = CreatePart(workspace, Enum.Material.ForceField, 0, 1, true, false, Color3.fromRGB(255, 255, 255), 'Effect', Vector3.new(0.05, 0.05, 0.05))
- TimeStopEffect.CastShadow = false
- TimeStopEffect.Shape = Enum.PartType.Ball
- TimeStopEffect.CFrame = Torso.CFrame
- local TimeStopEffectAnimateIn = TweenService:Create(
- TimeStopEffect,
- TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false),
- {
- Transparency = 0;
- Size = Vector3.new(200, 200, 200)
- }
- )
- local TimeStopEffectAnimateOut = TweenService:Create(
- TimeStopEffect,
- TweenInfo.new(5, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out, 0, false),
- {
- Color = Color3.fromRGB(0, 0, 0);
- Size = Vector3.new(0.05, 0.05, 0.05)
- }
- )
- spawn(function()
- Debris:AddItem(TimeStopEffect, 6 + 1)
- TimeStopEffectAnimateIn:Play(); wait(0.05)
- wait(2 - 0.05)
- CamShake(60, 5)
- CamShake(120, 2.5)
- CamShake(180, 1)
- TimeStopEffectAnimateOut:Play()
- end)
- wait(3)
- -- Lighting;
- ColorCorrectionEffect = Lighting:FindFirstChildOfClass('ColorCorrectionEffect') or Instance.new('ColorCorrectionEffect', Lighting)
- ColorCorrectionEffect.Name = 'Theme'
- Theme = TweenService:Create(
- ColorCorrectionEffect,
- TweenInfo.new(2, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, 0, false),
- {
- Brightness = -0.05;
- Saturation = -1;
- }
- )
- Theme:Play()
- -- Completely-TimeStop
- CompletelyTimeStop()
- wait(2)
- if not (RealTime ~= nil) then
- RealTime = CreateSound('RealTime', SoundRealTime, Character, 4, 1, true, false)
- end
- wait(2)
- TimeStopped = true
- end
- function TimeResume()
- TimeStopped = false
- if (RealTime ~= nil) then
- RealTime:Stop()
- RealTime.Parent = nil
- RealTime = nil
- end
- if (Theme ~= nil) then
- Theme:Cancel()
- Theme = TweenService:Create(
- ColorCorrectionEffect,
- TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false),
- {
- Brightness = 0;
- Saturation = 0;
- }
- )
- Theme:Play()
- Theme = nil
- end
- CompletelyTimeResume()
- CreateSound('TimeResume', SoundTimeResume, Character, 1, 1, false, true)
- -- Unfreeze-Local | Method by basbas1234
- if (Humanoid.RigType == Enum.HumanoidRigType.R6) then
- Torso.Anchored = true
- HumanoidRootPart.Name = 'HumanoidRootPart'
- FakeHumanoidRootPart.Parent = nil
- Torso.Anchored = false
- else
- Torso.Anchored = true
- HumanoidRootPart.Anchored = true
- FakeHumanoidRootPart.Parent = nil
- HumanoidRootPart.Name = 'HumanoidRootPart'
- local Motor6D = HumanoidRootPart:FindFirstChildOfClass('Motor6D')
- if (Motor6D) then
- Motor6D.Parent = nil
- end
- local Root = Torso:WaitForChild('Root')
- Root.Part0 = HumanoidRootPart
- Torso.Anchored = false
- HumanoidRootPart.Anchored = false
- end
- wait(5)
- CanTimeStop = true
- end
- Mouse.KeyDown:Connect(function(Key)
- if (Key:lower() == 'y' and not TimeStopped and CanTimeStop) then
- TimeStop()
- elseif (Key:lower() == 'y' and TimeStopped) then
- TimeResume()
- end
- end)
- Player.CharacterAdded:Connect(function(NewCharacter)
- Character = NewCharacter
- Humanoid = Character:FindFirstChildOfClass('Humanoid') or Character:WaitForChild('Humanoid')
- HumanoidRootPart = Character:FindFirstChild('HumanoidRootPart')
- Torso = Character:FindFirstChild('Torso') or Character:FindFirstChild('LowerTorso')
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement