Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Hello!
- function DeathHint(args, Color) -- credits to Master Oogway in the kardin hong discord server
- local func, setupval, getinfo, typeof, getgc, next = nil, debug.setupvalue or setupvalue, debug.getinfo or getinfo, typeof, getgc, next
- for i,v in next, getgc(false) do
- if typeof(v) == "function" then
- local info = getinfo(v)
- if info.currentline == 54 and info.nups == 2 and info.is_vararg == 0 then
- func = v
- break
- end
- end
- end
- local function Hint(hints, type: string)
- setupval(func, 1, hints)
- if type ~= nil then
- setupval(func, 2, type)
- end
- end
- Hint({
- unpack(args)
- }, Color)
- end
- spawn(function()
- require(game:GetService("Players").LocalPlayer.PlayerGui.MainUI.Initiator.Main_Game.RemoteListener.Modules.Dread)(require(game:GetService("Players").LocalPlayer.PlayerGui.MainUI.Initiator.Main_Game))
- end)
- repeat wait() until game:GetService("Players").LocalPlayer.PlayerGui.MainUI.MainFrame.DreadVignette.Visible == true
- wait(1)
- repeat wait() until game:GetService("Players").LocalPlayer.PlayerGui.MainUI.MainFrame.DreadVignette.ImageColor3 ~= Color3.fromRGB(0,0,0) or not workspace:FindFirstChild('Dread')
- if not workspace:FindFirstChild("Dread") then -- Player went to the next door despawning dread.
- return
- end
- 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"
- spawn(function()
- 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
- end)
- wait(1)
- pcall(function()
- DeathHint({"You died to Dread...", "Try not to stall. Keep moving!"}, "Blue") -- Creating the Death Hint
- end)
- wait(1)
- game.Players.LocalPlayer.Character.Humanoid:TakeDamage(1000) -- Killing the player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement