Advertisement
RobloxButExploits

Doors Dread Spawner

Mar 22nd, 2024 (edited)
1,286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.95 KB | None | 0 0
  1. -- Hello!
  2. function DeathHint(args, Color) -- credits to Master Oogway in the kardin hong discord server
  3. local func, setupval, getinfo, typeof, getgc, next = nil, debug.setupvalue or setupvalue, debug.getinfo or getinfo, typeof, getgc, next
  4.  
  5. for i,v in next, getgc(false) do
  6.     if typeof(v) == "function" then
  7.         local info = getinfo(v)
  8.         if info.currentline == 54 and info.nups == 2 and info.is_vararg == 0 then
  9.             func = v
  10.             break
  11.         end
  12.     end
  13. end
  14.  
  15. local function Hint(hints, type: string)
  16.     setupval(func, 1, hints)
  17.     if type ~= nil then
  18.         setupval(func, 2, type)
  19.     end
  20. end
  21.  
  22. Hint({
  23. unpack(args)
  24. }, Color)
  25. end
  26. spawn(function()
  27. require(game:GetService("Players").LocalPlayer.PlayerGui.MainUI.Initiator.Main_Game.RemoteListener.Modules.Dread)(require(game:GetService("Players").LocalPlayer.PlayerGui.MainUI.Initiator.Main_Game))
  28. end)
  29. repeat wait() until game:GetService("Players").LocalPlayer.PlayerGui.MainUI.MainFrame.DreadVignette.Visible == true
  30. wait(1)
  31. repeat wait() until game:GetService("Players").LocalPlayer.PlayerGui.MainUI.MainFrame.DreadVignette.ImageColor3 ~= Color3.fromRGB(0,0,0) or not workspace:FindFirstChild('Dread')
  32. if not workspace:FindFirstChild("Dread") then -- Player went to the next door despawning dread.
  33. return
  34. end
  35.  game:GetService("ReplicatedStorage") .GameStats["Player_".. game.Players.LocalPlayer.Name].Total.DeathCause.Value = "Dread" -- forcing the game to set the entity i died to as "Dread"
  36.   spawn(function()
  37.  require(game:GetService("Players").LocalPlayer.PlayerGui.MainUI.Initiator.Main_Game.RemoteListener.Jumpscares.Dread) (require(game:GetService("Players").LocalPlayer.PlayerGui.MainUI.Initiator.Main_Game)) -- Dread Jumpscare
  38.  end)
  39.   wait(1)
  40.   pcall(function()
  41.   DeathHint({"You died to Dread...", "Try not to stall. Keep moving!"}, "Blue") -- Creating the Death Hint
  42. end)
  43. wait(1)
  44. game.Players.LocalPlayer.Character.Humanoid:TakeDamage(1000) -- Killing the player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement