Facebook
From Gruff Pelican, 1 Year ago, written in Plain Text.
This paste is a reply to Doors from Dummy :O - view diff
Embed
Download Paste or View Raw
Hits: 146
  1. l
  2.  
  3. local function IsVisible(part)
  4.     local vec, found=workspace.CurrentCamera:WorldToViewportPoint(part.Position)
  5.     local onscreen = found and vec.Z > 0
  6.     local cfg = RaycastParams.new()
  7.     cfg.FilterType = Enum.RaycastFilterType.Blacklist
  8.     cfg.FilterDescendantsInstances = {part}
  9.  
  10.     local cast = workspace:Raycast(part.Position, (game.Players.LocalPlayer.Character.UpperTorso.Position - part.Position), cfg)
  11.     if onscreen then
  12.         if cast and (cast and cast.Instance).Parent==game.Players.LocalPlayer.Character then
  13.             return true
  14.         end
  15.     end
  16. end
  17.  
  18. local Equipped = false
  19.  
  20. -- Edit this --
  21. getgenv().spawnKey = Enum.KeyCode.F4
  22. ---------------
  23.  
  24. -- Services
  25.  
  26. local Players = game:GetService("Players")
  27. local UIS = game:GetService("UserInputService")
  28.  
  29. -- Variables
  30.  
  31. local Plr = Players.LocalPlayer
  32. local Char = Plr.Character or Plr.CharacterAdded:Wait()
  33. local Hum = Char:WaitForChild("Humanoid")
  34. local Root = Char:WaitForChild("HumanoidRootPart")
  35. local RightArm = Char:WaitForChild("RightUpperArm")
  36. local LeftArm = Char:WaitForChild("LeftUpperArm")
  37.  
  38. local RightC1 = RightArm.RightShoulder.C1
  39. local LeftC1 = LeftArm.LeftShoulder.C1
  40.  
  41. local SelfModules = {
  42.     Functions = loadstring(
  43.         game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Functions.lua")
  44.     )(),
  45.     CustomShop = loadstring(
  46.         game:HttpGet(
  47.             "https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Doors/Custom%20Shop%20Items/Source.lua"
  48.         )
  49.     )(),
  50. }
  51.  
  52. local ModuleScripts = {
  53.     MainGame = require(Plr.PlayerGui.MainUI.Initiator.Main_Game),
  54.     SeekIntro = require(Plr.PlayerGui.MainUI.Initiator.Main_Game.RemoteListener.Cutscenes.SeekIntro),
  55. }
  56.  
  57. -- Functions
  58.  
  59. local function setupCrucifix(tool)
  60.     tool.Equipped:Connect(function()
  61.         Equipped = true
  62.         Char:SetAttribute("Hiding", true)
  63.         for _, v in next, Hum:GetPlayingAnimationTracks() do
  64.             v:Stop()
  65.         end
  66.  
  67.         RightArm.Name = "R_Arm"
  68.         LeftArm.Name = "L_Arm"
  69.  
  70.         RightArm.RightShoulder.C1 = RightC1 * CFrame.Angles(math.rad(-90), math.rad(-15), 0)
  71.         LeftArm.LeftShoulder.C1 = LeftC1
  72.             * CFrame.new(-0.2, -0.3, -0.5)
  73.             * CFrame.Angles(math.rad(-125), math.rad(25), math.rad(25))
  74.     end)
  75.  
  76.     tool.Unequipped:Connect(function()
  77.         Equipped = false
  78.         Char:SetAttribute("Hiding", nil)
  79.         RightArm.Name = "RightUpperArm"
  80.         LeftArm.Name = "LeftUpperArm"
  81.  
  82.         RightArm.RightShoulder.C1 = RightC1
  83.         LeftArm.LeftShoulder.C1 = LeftC1
  84.     end)
  85. end
  86.  
  87. -- Scripts
  88.  
  89. local CrucifixTool = game:GetObjects("rbxassetid://11590476113")[1]
  90. CrucifixTool.Name = "Crucifix"
  91. CrucifixTool.Parent = game.Players.LocalPlayer.Backpack
  92.  
  93. -- game.UserInputService.InputBegan:Connect(function(input, proc)
  94. --     if proc then return end
  95.  
  96. --     if input.KeyCode == input.KeyCode[getgenv().spawnKey] then
  97. --         local CrucifixTool = game:GetObjects("rbxassetid://11590476113")[1]
  98. --         CrucifixTool.Name = "Crucifix"
  99. --         CrucifixTool.Parent = game.Players.LocalPlayer.Backpack
  100. --     end
  101. -- end)
  102. -- Input handler
  103.  
  104. setupCrucifix(CrucifixTool)
  105.  
  106. local Players = game:GetService("Players")
  107. local UIS = game:GetService("UserInputService")
  108.  
  109. -- Variables
  110.  
  111. local Plr = Players.LocalPlayer
  112. local Char = Plr.Character or Plr.CharacterAdded:Wait()
  113. local Hum = Char:WaitForChild("Humanoid")
  114. local Root = Char:WaitForChild("HumanoidRootPart")
  115.  
  116. local dupeCrucifix = Instance.new("BindableEvent")
  117. local function func(ins)
  118.     wait(.01) -- Wait for the attribute
  119.     if ins:GetAttribute("IsCustomEntity")==true and ins:GetAttribute("ClonedByCrucifix")~=true then
  120.         local Chains = game:GetObjects("rbxassetid://11584227521")[1]
  121.         Chains.Parent = workspace
  122.         local chained = true
  123.         local posTime = false
  124.         local rotTime = false
  125.         local tweenTime = false
  126.         local intFound = true
  127.  
  128.         game:GetService("RunService").RenderStepped:Connect(function()
  129.             if Equipped then
  130.                 if ins.Parent~=nil and ins.PrimaryPart and IsVisible(ins.PrimaryPart) and (Root.Position-ins.PrimaryPart.Position).magnitude <= 25 then
  131.                     local c=ins:Clone()
  132.                     c:SetAttribute("ClonedByCrucifix", true)
  133.                     c.RushNew.Anchored=true
  134.                     c.Parent=ins.Parent
  135.                     ins:Destroy()
  136.                     dupeCrucifix:Fire(6,c.RushNew)
  137.  
  138.  
  139.                    
  140.                     -- Chains.PrimaryPart.Orientation = Chains.PrimaryPart.Orientation + Vector3.new(0, 3, 0)
  141.  
  142.                     local EntityRoot = c:FindFirstChild("RushNew")
  143.  
  144.                     if EntityRoot then
  145.  
  146.  
  147.  
  148.                         local Fake_FaceAttach = Instance.new("Attachment")
  149.                         Fake_FaceAttach.Parent = EntityRoot
  150.                        
  151.  
  152.                         for i, beam in pairs(Chains:GetDescendants()) do
  153.                             if beam:IsA("BasePart") then
  154.                                 beam.CanCollide = false
  155.                             end
  156.                             if beam.Name == "Beam" then
  157.                                 beam.Attachment1 = Fake_FaceAttach
  158.                             end
  159.                         end
  160.                        
  161.                         if not posTime then
  162.                             Chains:SetPrimaryPartCFrame(
  163.                                 EntityRoot.CFrame * CFrame.new(0, -3.5, 0) * CFrame.Angles(math.rad(90), 0, 0)
  164.                             )
  165.                             posTime = true
  166.                         end
  167.  
  168.                         task.wait(1.35)
  169.                         if not tweenTime then
  170.  
  171.                             task.spawn(function()
  172.                                 while task.wait() do
  173.                                     if Chains:FindFirstChild('Base') then
  174.                                         Chains.Base.CFrame = Chains.Base.CFrame * CFrame.Angles(0,0 , math.rad(0.5))
  175.                                     end
  176.                                 end
  177.                             end)
  178.  
  179.                             task.spawn(function()
  180.                                 while task.wait() do
  181.                                     for i, beam in pairs(Chains:GetDescendants()) do
  182.                                         if beam.Name == "Beam" then
  183.                                             beam.TextureLength = beam.TextureLength+0.035
  184.                                         end
  185.                                     end
  186.                                 end
  187.                             end)
  188.  
  189.  
  190.                             game.TweenService
  191.                                 :Create(
  192.                                     EntityRoot,
  193.                                     TweenInfo.new(6),
  194.                                     { CFrame = EntityRoot.CFrame * CFrame.new(0, 50, 0) }
  195.                                 )
  196.                                 :Play()
  197.                            
  198.  
  199.                             tweenTime = true
  200.                             task.wait(1.5)
  201.                             intFound = false
  202.                             game:GetService("Debris"):AddItem(c, 0)
  203.                             game:GetService("Debris"):AddItem(Chains, 0)
  204.                         end
  205.                     end
  206.                 end
  207.             end
  208.         end)
  209.     elseif ins.Name=="Lookman" then
  210.         local c=ins
  211.         task.spawn(function()
  212.             repeat task.wait() until IsVisible(c.Core) and Equipped and c.Core.Attachment.Eyes.Enabled==true
  213.             local pos=c.Core.Position
  214.             dupeCrucifix:Fire(18.364, c.Core)
  215.             task.spawn(function()
  216.                 c:SetAttribute("Killing", true)
  217.                 ModuleScripts.MainGame.camShaker:ShakeOnce(10, 10, 5, 0.15)
  218.                 wait(5)
  219.                 c.Core.Initiate:Stop()
  220.                 for i=1,3 do
  221.                     c.Core.Repent:Play()  
  222.                     c.Core.Attachment.Angry.Enabled=true
  223.                     ModuleScripts.MainGame.camShaker:ShakeOnce(8, 8, 1.3, 0.15)
  224.                     delay(c.Core.Repent.TimeLength, function() c.Core.Attachment.Angry.Enabled=false end)
  225.                     wait(4)
  226.                 end
  227.                 c.Core.Scream:Play();
  228.                 ModuleScripts.MainGame.camShaker:ShakeOnce(8, 8, c.Core.Scream.TimeLength, 0.15);
  229.                 (c.Core:FindFirstChild"whisper" or c.Core:FindFirstChild"Ambience"):Stop()
  230.                 for _, l in pairs(c:GetDescendants()) do
  231.                     if l:IsA("PointLight") then
  232.                         l.Enabled=false
  233.                     end
  234.                 end
  235.                 game:GetService("TweenService"):Create(c.Core, TweenInfo.new(c.Core.Scream.TimeLength, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {
  236.                     CFrame=CFrame.new(c.Core.CFrame.X, c.Core.CFrame.Y-12, c.Core.CFrame.Z)
  237.                 }):Play()
  238.             end)
  239.             local col=game.Players.LocalPlayer.Character.Collision
  240.  
  241.             local function CFrameToOrientation(cf)
  242.                 local x, y, z = cf:ToOrientation()
  243.                 return Vector3.new(math.deg(x), math.deg(y), math.deg(z))
  244.             end
  245.            
  246.             while c.Parent~=nil and c.Core.Attachment.Eyes.Enabled==true do
  247.                 -- who's the boss now huh?
  248.                 col.Orientation = CFrameToOrientation(CFrame.lookAt(col.Position, pos)*CFrame.Angles(0, math.pi, 0))
  249.                 task.wait()
  250.             end
  251.         end)
  252.     elseif ins.Name=="Shade" and ins.Parent==workspace.CurrentCamera and ins:GetAttribute("ClonedByCrucifix")==nil then
  253.         task.spawn(function()
  254.             repeat task.wait() until IsVisible(ins) and (Root.Position-ins.Position).Magnitude <= 12.5 and Equipped
  255.  
  256.             local clone = ins:Clone()
  257.  
  258.             clone.CFrame = ins.CFrame
  259.             clone.Parent = ins.Parent
  260.             clone.Anchored = true
  261.  
  262.             ins:Remove()
  263.  
  264.             dupeCrucifix:Fire(13, ins)
  265.             ModuleScripts.MainGame.camShaker:ShakeOnce(40, 10, 5, 0.15)
  266.  
  267.  
  268.  
  269.             for _, thing in pairs(clone:GetDescendants()) do
  270.                 if thing:IsA("SpotLight") then
  271.                     game:GetService("TweenService"):Create(thing, TweenInfo.new(5), {
  272.                         Brightness=thing.Brightness*5
  273.                     }):Play()
  274.                 elseif thing:IsA("Sound") and thing.Name~="Burst" then
  275.                     game:GetService("TweenService"):Create(thing, TweenInfo.new(5), {
  276.                         Volume=0
  277.                     }):Play()
  278.                 elseif thing:IsA("TouchTransmitter") then thing:Destroy() end
  279.             end
  280.  
  281.             for _, pc in pairs(clone:GetDescendants()) do
  282.                 if pc:IsA("ParticleEmitter") then
  283.                         pc.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 4)), ColorSequenceKeypoint.new(0.48, Color3.fromRGB(182, 0, 3)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 4))}
  284.                 end
  285.             end
  286.  
  287.             local Original_color = {}
  288.  
  289.             local light
  290.             light = game.Lighting["Ambience_Shade"]
  291.             game:GetService("TweenService"):Create(light, TweenInfo.new(1), {
  292.  
  293.  
  294.             }):Play()
  295.  
  296.             wait(5)
  297.  
  298.             clone.Burst.PlaybackSpeed=0.5
  299.             clone.Burst:Stop()
  300.             clone.Burst:Play()
  301.             light.TintColor = Color3.fromRGB(215,253,255)
  302.             game:GetService("TweenService"):Create(clone, TweenInfo.new(6), {
  303.                 CFrame=CFrame.new(clone.CFrame.X, clone.CFrame.Y-12, clone.CFrame.Z)
  304.             }):Play()
  305.             wait(8.2)
  306.  
  307.             game:GetService("Debris"):AddItem(clone, 0)
  308.             game.ReplicatedStorage.Bricks.ShadeResult:FireServer()
  309.         end)
  310.     end
  311. end
  312.  
  313. workspace.ChildAdded:Connect(func)
  314. workspace.CurrentCamera.ChildAdded:Connect(func)
  315. for _, thing in pairs(workspace:GetChildren()) do
  316.     func(thing)
  317. end
  318. dupeCrucifix.Event:Connect(function(time, entityRoot)
  319.     local Cross = game:GetObjects("rbxassetid://11656343590")[1]
  320.     Cross.Parent = workspace
  321.  
  322.     local fakeCross = Cross.Handle
  323.  
  324.     -- fakeCross:FindFirstChild("EffectLight").Enabled = true
  325.  
  326.     ModuleScripts.MainGame.camShaker:ShakeOnce(35, 25, 0.15, 0.15)
  327.     -- you tell me i didnt make?
  328.     fakeCross.CFrame = CFrame.lookAt(CrucifixTool.Handle.Position, entityRoot.Position)
  329.    
  330.     -- hl.Parent = model
  331.     -- hl.FillTransparency = 1
  332.     -- hl.OutlineColor = Color3.fromRGB(75, 177, 255)
  333.     fakeCross.Anchored = true
  334.  
  335.     CrucifixTool:Destroy()
  336.  
  337.     -- for i, v in pairs(fakeCross:GetChildren()) do
  338.     --     if v.Name == "E" and v:IsA("BasePart") then
  339.     --         v.Transparency = 0
  340.     --         v.CanCollide = false
  341.     --     end
  342.     --     if v:IsA("Motor6D") then
  343.     --         v.Name = "Motor6D"
  344.     --     end
  345.     -- end
  346.  
  347.     task.wait(time)
  348.     fakeCross.Anchored = false
  349.     fakeCross.CanCollide = true
  350.     task.wait(0.5)
  351.     Cross:Remove()
  352. end)oadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Vynixius/main/Doors/Script.lua"))()
captcha