Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
- local Window = OrionLib:MakeWindow({IntroText = "“门” 脚本 张同学,Name = "“门” 张同学", HidePremium = false, SaveConfig = true, ConfigFolder = "DoorsSex"})
- if game.PlaceId == 6516141723 then
- OrionLib:MakeNotification({
- Name = "错误",
- Content = "请在游戏中执行,而不是在大厅中",
- Time = 5
- })
- end
- local VisualsTab = Window:MakeTab({
- Name = "透视",
- Icon = "rbxassetid://4483345998",
- PremiumOnly = false
- })
- local CF = CFrame.new
- local LatestRoom = game:GetService("ReplicatedStorage").GameData.LatestRoom
- local ChaseStart = game:GetService("ReplicatedStorage").GameData.ChaseStart
- local KeyChams = {}
- VisualsTab:AddToggle({
- Name = "钥匙透视",
- Default = false,
- Flag = "KeyToggle",
- Save = true,
- Callback = function(Value)
- for i,v in pairs(KeyChams) do
- v.Enabled = Value
- end
- end
- })
- local function ApplyKeyChams(inst)
- wait()
- local Cham = Instance.new("Highlight")
- Cham.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
- Cham.FillColor = Color3.new(0.980392, 0.670588, 0)
- Cham.FillTransparency = 0.5
- Cham.OutlineColor = Color3.new(0.792156, 0.792156, 0.792156)
- Cham.Parent = game:GetService("CoreGui")
- Cham.Adornee = inst
- Cham.Enabled = OrionLib.Flags["KeyToggle"].Value
- Cham.RobloxLocked = true
- return Cham
- end
- local KeyCoroutine = coroutine.create(function()
- workspace.CurrentRooms.DescendantAdded:Connect(function(inst)
- if inst.Name == "KeyObtain" then
- table.insert(KeyChams,ApplyKeyChams(inst))
- end
- end)
- end)
- for i,v in ipairs(workspace:GetDescendants()) do
- if v.Name == "KeyObtain" then
- table.insert(KeyChams,ApplyKeyChams(v))
- end
- end
- coroutine.resume(KeyCoroutine)
- local BookChams = {}
- VisualsTab:AddToggle({
- Name = "50关书透视",
- Default = false,
- Flag = "BookToggle",
- Save = true,
- Callback = function(Value)
- for i,v in pairs(BookChams) do
- v.Enabled = Value
- end
- end
- })
- local FigureChams = {}
- VisualsTab:AddToggle({
- Name = "50关无眼透视",
- Default = false,
- Flag = "FigureToggle",
- Save = true,
- Callback = function(Value)
- for i,v in pairs(FigureChams) do
- v.Enabled = Value
- end
- end
- })
- local function ApplyBookChams(inst)
- if inst:IsDescendantOf(game:GetService("Workspace").CurrentRooms:FindFirstChild("50")) and game:GetService("ReplicatedStorage").GameData.LatestRoom.Value == 50 then
- wait()
- local Cham = Instance.new("Highlight")
- Cham.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
- Cham.FillColor = Color3.new(0, 1, 0.749019)
- Cham.FillTransparency = 0.5
- Cham.OutlineColor = Color3.new(0.792156, 0.792156, 0.792156)
- Cham.Parent = game:GetService("CoreGui")
- Cham.Enabled = OrionLib.Flags["BookToggle"].Value
- Cham.Adornee = inst
- Cham.RobloxLocked = true
- return Cham
- end
- end
- local function ApplyEntityChams(inst)
- wait()
- local Cham = Instance.new("Highlight")
- Cham.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
- Cham.FillColor = Color3.new(1, 0, 0)
- Cham.FillTransparency = 0.5
- Cham.OutlineColor = Color3.new(0.792156, 0.792156, 0.792156)
- Cham.Parent = game:GetService("CoreGui")
- Cham.Enabled = OrionLib.Flags["FigureToggle"].Value
- Cham.Adornee = inst
- Cham.RobloxLocked = true
- return Cham
- end
- local BookCoroutine = coroutine.create(function()
- task.wait(1)
- for i,v in pairs(game:GetService("Workspace").CurrentRooms["50"].Assets:GetDescendants()) do
- if v.Name == "LiveHintBook" then
- table.insert(BookChams,ApplyBookChams(v))
- end
- end
- end)
- local EntityCoroutine = coroutine.create(function()
- local Entity = game:GetService("Workspace").CurrentRooms["50"].FigureSetup:WaitForChild("FigureRagdoll",5)
- Entity:WaitForChild("Torso",2.5)
- table.insert(FigureChams,ApplyEntityChams(Entity))
- end)
- local GameTab = Window:MakeTab({
- Name = "主要功能",
- Icon = "rbxassetid://4483345998",
- PremiumOnly = false
- })
- local CharTab = Window:MakeTab({
- Name = "其他",
- Icon = "rbxassetid://4483345998",
- PremiumOnly = false
- })
- local TargetWalkspeed
- CharTab:AddSlider({
- Name = "速度",
- Min = 0,
- Max = 50,
- Default = 5,
- Color = Color3.fromRGB(255,255,255),
- Increment = 1,
- Callback = function(Value)
- TargetWalkspeed = Value
- end
- })
- local pcl = Instance.new("SpotLight")
- pcl.Brightness = 1
- pcl.Face = Enum.NormalId.Front
- pcl.Range = 90
- pcl.Parent = game.Players.LocalPlayer.Character.Head
- pcl.Enabled = false
- CharTab:AddToggle({
- Name = "灯光(别人看不见)",
- Default = false,
- Callback = function(Value)
- pcl.Enabled = Value
- end
- })
- GameTab:AddToggle({
- Name = "Seek没有火",
- Default = false,
- Flag = "NoSeek",
- Save = true
- })
- GameTab:AddToggle({
- Name = "瞬间互动",
- Default = false,
- Flag = "InstantToggle",
- Save = true
- })
- GameTab:AddButton({
- Name = "过一道门",
- Callback = function()
- pcall(function()
- local HasKey = false
- local CurrentDoor = workspace.CurrentRooms[tostring(game:GetService("ReplicatedStorage").GameData.LatestRoom.Value)]:WaitForChild("Door")
- for i,v in ipairs(CurrentDoor.Parent:GetDescendants()) do
- if v.Name == "KeyObtain" then
- HasKey = v
- end
- end
- if HasKey then
- game.Players.LocalPlayer.Character:PivotTo(CF(HasKey.Hitbox.Position))
- wait(0.3)
- fireproximityprompt(HasKey.ModulePrompt,0)
- game.Players.LocalPlayer.Character:PivotTo(CF(CurrentDoor.Door.Position))
- wait(0.3)
- fireproximityprompt(CurrentDoor.Lock.UnlockPrompt,0)
- end
- if LatestRoom == 50 then
- CurrentDoor = workspace.CurrentRooms[tostring(LatestRoom+1)]:WaitForChild("Door")
- end
- game.Players.LocalPlayer.Character:PivotTo(CF(CurrentDoor.Door.Position))
- wait(0.3)
- CurrentDoor.ClientOpen:FireServer()
- end)
- end
- })
- GameTab:AddToggle({
- Name = "连续过门",
- Default = false,
- Save = false,
- Flag = "AutoSkip"
- })
- local AutoSkipCoro = coroutine.create(function()
- while true do
- task.wait()
- pcall(function()
- if OrionLib.Flags["AutoSkip"].Value == true and game:GetService("ReplicatedStorage").GameData.LatestRoom.Value < 100 then
- local HasKey = false
- local LatestRoom = game:GetService("ReplicatedStorage").GameData.LatestRoom.Value
- local CurrentDoor = workspace.CurrentRooms[tostring(LatestRoom)]:WaitForChild("Door")
- for i,v in ipairs(CurrentDoor.Parent:GetDescendants()) do
- if v.Name == "KeyObtain" then
- HasKey = v
- end
- end
- if HasKey then
- game.Players.LocalPlayer.Character:PivotTo(CF(HasKey.Hitbox.Position))
- task.wait(0.3)
- fireproximityprompt(HasKey.ModulePrompt,0)
- game.Players.LocalPlayer.Character:PivotTo(CF(CurrentDoor.Door.Position))
- task.wait(0.3)
- fireproximityprompt(CurrentDoor.Lock.UnlockPrompt,0)
- end
- if LatestRoom == 50 then
- CurrentDoor = workspace.CurrentRooms[tostring(LatestRoom+1)]:WaitForChild("Door")
- end
- game.Players.LocalPlayer.Character:PivotTo(CF(CurrentDoor.Door.Position))
- task.wait(0.3)
- CurrentDoor.ClientOpen:FireServer()
- end
- end)
- end
- end)
- coroutine.resume(AutoSkipCoro)
- GameTab:AddButton({
- Name = "没有跳杀",
- Callback = function()
- pcall(function()
- game:GetService("ReplicatedStorage").Bricks.Jumpscare:Destroy()
- end)
- end
- })
- GameTab:AddToggle({
- Name = "自动躲避海啸/绿色海啸",
- Default = false,
- Flag = "AvoidRushToggle",
- Save = true
- })
- GameTab:AddToggle({
- Name = "没有尖叫(黑房里的怪物)",
- Default = false,
- Flag = "ScreechToggle",
- Save = true
- })
- GameTab:AddToggle({
- Name = "心跳游戏不会输",
- Default = false,
- Flag = "HeartbeatWin",
- Save = true
- })
- GameTab:AddToggle({
- Name = "预测追逐战",
- Default = false,
- Flag = "PredictToggle" ,
- Save = true
- })
- GameTab:AddToggle({
- Name = "刷新怪物时通知",
- Default = false,
- Flag = "MobToggle" ,
- Save = true
- })
- GameTab:AddButton({
- Name = "完成100关断路器盒子小游戏",
- Callback = function()
- game:GetService("ReplicatedStorage").Bricks.EBF:FireServer()
- end
- })
- GameTab:AddButton({
- Name = "跳过50关",
- Callback = function()
- local CurrentDoor = workspace.CurrentRooms[tostring(LatestRoom+1)]:WaitForChild("Door")
- game.Players.LocalPlayer.Character:PivotTo(CF(CurrentDoor.Door.Position))
- end
- })
- GameTab:AddParagraph("警告","如果你按下没用那就开/关菜单几次")
- --// ok actual code starts here
- game:GetService("RunService").RenderStepped:Connect(function()
- pcall(function()
- if game.Players.LocalPlayer.Character.Humanoid.MoveDirection.Magnitude > 0 then
- game.Players.LocalPlayer.Character:TranslateBy(game.Players.LocalPlayer.Character.Humanoid.MoveDirection * TargetWalkspeed/50)
- end
- end)
- end)
- game:GetService("Workspace").CurrentRooms.DescendantAdded:Connect(function(descendant)
- if OrionLib.Flags["NoSeek"].Value == true and descendant.Name == ("Seek_Arm" or "ChandelierObstruction") then
- task.spawn(function()
- wait()
- descendant:Destroy()
- end)
- end
- end)
- game:GetService("ProximityPromptService").PromptButtonHoldBegan:Connect(function(prompt)
- if OrionLib.Flags["InstantToggle"].Value == true then
- fireproximityprompt(prompt)
- end
- end)
- local old
- old = hookmetamethod(game,"__namecall",newcclosure(function(self,...)
- local args = {...}
- local method = getnamecallmethod()
- if tostring(self) == 'Screech' and method == "FireServer" and OrionLib.Flags["ScreechToggle"].Value == true then
- args[1] = true
- return old(self,unpack(args))
- end
- if tostring(self) == 'ClutchHeartbeat' and method == "FireServer" and OrionLib.Flags["HeartbeatWin"].Value == true then
- args[2] = true
- return old(self,unpack(args))
- end
- return old(self,...)
- end))
- workspace.CurrentCamera.ChildAdded:Connect(function(child)
- if child.Name == "Screech" and OrionLib.Flags["ScreechToggle"].Value == true then
- child:Destroy()
- end
- end)
- local NotificationCoroutine = coroutine.create(function()
- LatestRoom.Changed:Connect(function()
- if OrionLib.Flags["PredictToggle"].Value == true then
- local n = ChaseStart.Value - LatestRoom.Value
- if 0 < n and n < 4 then
- OrionLib:MakeNotification({
- Name = "警告",
- Content = "还有" .. tostring(n) .. "房间刷新怪",
- Time = 5
- })
- end
- end
- if OrionLib.Flags["BookToggle"].Value == true then
- if LatestRoom.Value == 50 then
- coroutine.resume(BookCoroutine)
- end
- end
- if OrionLib.Flags["FigureToggle"].Value == true then
- if LatestRoom.Value == 50 then
- coroutine.resume(EntityCoroutine)
- end
- end
- end)
- workspace.ChildAdded:Connect(function(inst)
- if inst.Name == "RushMoving" and OrionLib.Flags["MobToggle"].Value == true then
- if OrionLib.Flags["AvoidRushToggle"].Value == true then
- OrionLib:MakeNotification({
- Name = "警告",
- Content = "避免海啸请稍等",
- Time = 5
- })
- local OldPos = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
- local con = game:GetService("RunService").Heartbeat:Connect(function()
- game.Players.LocalPlayer.Character:MoveTo(OldPos + Vector3.new(0,20,0))
- end)
- inst.Destroying:Wait()
- con:Disconnect()
- game.Players.LocalPlayer.Character:MoveTo(OldPos)
- else
- OrionLib:MakeNotification({
- Name = "警告",
- Content = "海啸已刷新",
- Time = 5
- })
- end
- elseif inst.Name == "AmbushMoving" and OrionLib.Flags["MobToggle"].Value == true then
- if OrionLib.Flags["AvoidRushToggle"].Value == true then
- OrionLib:MakeNotification({
- Name = "警告",
- Content = "避免绿色海啸请稍等",
- Time = 5
- })
- local OldPos = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
- local con = game:GetService("RunService").Heartbeat:Connect(function()
- game.Players.LocalPlayer.Character:MoveTo(OldPos + Vector3.new(0,20,0))
- end)
- inst.Destroying:Wait()
- con:Disconnect()
- game.Players.LocalPlayer.Character:MoveTo(OldPos)
- else
- OrionLib:MakeNotification({
- Name = "警告",
- Content = "绿色海啸以刷新",
- Time = 5
- })
- end
- end
- end)
- end)
- --// ok actual code ends here
- local CreditsTab = Window:MakeTab({
- Name = "我的",
- Icon = "张同学",
- PremiumOnly = false
- })
- CreditsTab:AddParagraph("张同学")
- coroutine.resume(NotificationCoroutine)
- OrionLib:Init()
- task.wait(2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement