Advertisement
DE_Speedruns

Untitled

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