spawn(function()
while true do
wait(3)
if game.ReplicatedStorage.GameData.LatestRoom.Value == 50 then
local Creator = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Doors%20Entity%20Spawner/Source.lua"))()
-- Create entity
local entityTable = Spawner.createEntity({
CustomName = "Hunger", -- Custom name of your entity
Model = "rbxassetid://12247245059", -- Can be GitHub file or rbxassetid
Speed = 16, -- Percentage, 100 = default Rush speed
DelayTime = 2, -- Time before starting cycles (seconds)
HeightOffset = 0,
CanKill = true,
KillRange = 10,
BackwardsMovement = true,
BreakLights = true,
FlickerLights = {
false, -- Enabled/Disabled
1, -- Time (seconds)
},
Cycles = {
Min = 20,
Max = 99,
WaitTime = 2,
},
CamShake = {
true, -- Enabled/Disabled
{3.5, 20, 0.1, 1}, -- Shake values (don't change if you don't know)
100, -- Shake start distance (from Entity to you)
},
Jumpscare = {
true, -- Enabled/Disabled
{
Image1 = "rbxassetid://10483855823", -- Image1 url
Image2 = "rbxassetid://10483999903", -- Image2 url
Shake = true,
Sound1 = {
10483790459, -- SoundId
{ Volume = 0.5 }, -- Sound properties
},
Sound2 = {
10483837590, -- SoundId
{ Volume = 0.5 }, -- Sound properties
},
Flashing = {
true, -- Enabled/Disabled
Color3.fromRGB(255, 0, 0), -- Color
},
Tease = {
true, -- Enabled/Disabled
Min = 1,
Max = 3,
},
},
},
CustomDialog = {"You can", "put your", "custom death", "message here."}, -- Custom death message
})
-----[[ Debug -=- Advanced ]]-----
entityTable.Debug.OnEntitySpawned = function()
print("Entity has spawned:", entityTable)
end
entityTable.Debug.OnEntityDespawned = function()
print("Entity has despawned:", entityTable)
end
entityTable.Debug.OnEntityStartMoving = function()
print("Entity has started moving:", entityTable)
end
entityTable.Debug.OnEntityFinishedRebound = function()
print("Entity has finished rebound:", entityTable)
end
entityTable.Debug.OnEntityEnteredRoom = function(room)
print("Entity:", entityTable, "has entered room:", room)
end
entityTable.Debug.OnLookAtEntity = function()
print("Player has looked at entity:", entityTable)
end
entityTable.Debug.OnDeath = function()
warn("Player has died.")
firesignal(game.ReplicatedStorage.EntityInfo.DeathHint.OnClientEvent, {"You Died to hunger.", "Try to run across The Room with figure Untill he doesnt catch you"}, "Blue")
end
------------------------------------
-- Run the created entity
Spawner.runEntity(entityTable)
end
end
end)()