There are no thrown errors, it just stops for no reason.
I need an answer pls
local module = {}
local kicked = {
}
function module.EntityInfo()
return EntityInfomation
end
function module.ServerBan(human:Humanoid,name)
local plr = game:GetService("Players"):GetPlayerFromCharacter(human.Parent)
if workspace.RoomGenerator.KickOnDeath.Value == true then
table.insert(kicked,plr.UserId)
local ban = Instance.new("IntValue")
ban.Value = plr.UserId
ban.Parent = workspace.ServerBanList.Players
ban.Name = tostring(ban.Value)
local banmessage = Instance.new("SoundGroup")
banmessage.Name = "You died to the entity known as '"..name.."' in ths server."
banmessage.Parent = ban
game.Debris:AddItem(plr,100)
end
if EntityInfomation[name]["jumpscare"] == true then
game.ReplicatedStorage.Jumpscare:FireClient(plr,name)
end
if workspace.RoomGenerator.KickOnDeath.Value == true then
wait(5)
local theplayer = plr
local function showtext(text,waitt)
print("Showing text "..text.." to "..theplayer.Name.. " for "..tostring(waitt))
game.ReplicatedStorage.DeathText:FireClient(theplayer,text)
wait(waitt)
end
if name == "Chase" or name == "MemoryChase" then
showtext("You died to Chase.",3)
showtext("Chase is a pretty simple entity.",4)
showtext("He makes the lights flicker red for a moment when he spawns.",5)
showtext("Get into a hiding place before he can kill you!",4)
end
game.ReplicatedStorage.Hide:FireClient(plr)
wait(2)
game.Debris:AddItem(plr,7)
game["Teleport Service"]:Teleport(12453066919,plr)
end
end
function module.ServerBanHazard(human:Humanoid,name)
local plr = game:GetService("Players"):GetPlayerFromCharacter(human.Parent)
if workspace.RoomGenerator.KickOnDeath.Value == true then
local ban = Instance.new("IntValue")
ban.Value = plr.UserId
ban.Parent = workspace.ServerBanList.Players
ban.Name = tostring(ban.Value)
local banmessage = Instance.new("SoundGroup")
banmessage.Name = "You died to the hazard '"..name.."' in ths server."
banmessage.Parent = ban
game.Debris:AddItem(plr,100)
end
if workspace.RoomGenerator.KickOnDeath.Value == true then
wait(5)
local theplayer = plr
local function showtext(text,waitt)
print("Showing text "..text.." to "..theplayer.Name.. " for "..tostring(waitt))
game.ReplicatedStorage.DeathText:FireClient(theplayer,text)
wait(waitt)
end
if name == "Scared" then
showtext("You burnt to death inside a Shield.",3)
showtext("Shields run pretty hot, it's unsafe to stay inside one for too long.",6)
showtext("Only hide when you need to!",3)
end
game.ReplicatedStorage.Hide:FireClient(plr)
wait(2)
game.Debris:AddItem(plr,7)
game["Teleport Service"]:Teleport(12453066919,plr)
end
end
return module
this is part of a complete rework of spaghetti code btw