Use ctrl + f and search for --
if #Game.Players:GetPlayers() <= 2 then
_G["Hint1"] = Instance.new("Hint",Workspace)
_G["Hint1"].Text = "You need 2 or more people to play"
end
if #Game.Players:GetPlayers() >= 3 then
_G["Hint1"]:Destroy()
end
if #Game.Players:GetPlayers() <= 2 then return end
Maps = {"Halloween Map","Crossroads Map"}
Players = {}
CurrentStalker = {}
Spawns = {}
StalkerMoves = Game.Lighting.StalkerMoves:Clone()
MapChosen = Maps[math.random(1,#Maps)]
if MapChosen == "Halloween Map" then
Game.Lighting["Halloween Map"].Parent = Workspace
HalloweenMap = true
RoundStart = true
end
if HalloweenMap == true and RoundStart == true then
Hint = Instance.new("Hint",Workspace)
Hint.Text = "Halloween Map loading..."
wait(2)
Hint:Destroy()
for i,v in pairs(Game.Players:GetPlayers()) do
table.insert(Players, v.Name)
Stalker = Players[math.random(1,#Players)]
table.remove(Players, Stalker.Name)
table.insert(CurrentStalker, Stalker.Name)
if Game.Players[Players[1]] and Game.Players[Players[1]].Character and Game.Players[Players[1]].Character.Humanoid then
Plr = Game.Players[Players[1]]
Stalker1 = Game.Players[CurrentStalker[1]]
Plr.Character.Humanoid.Died:connect(function(PlayerDied)
if Stalker1 and Stalker1.Character and Stalker1.Character.Humanoid and Stalker1.Character.Humanoid.Health>0 then
table.remove(CurrentStalker, Plr)
table.remove(Players, Plr)
RoundStart = false
Plr.TeamColor = BrickColor.new("Light stone grey")
--if all players died besides stalker then stalker wins code here pls
end
end)
end
end
end
for i,v in pairs(Stalker1.Character:GetChildren()) do
if v:IsA("BasePart") then
v.Transparency = 0.9
if v:IsA("Hat") then
v:Destroy()
end
end
if Stalker1 and Stalker1.Character and Stalker1.Character.Humanoid then
Stalker1.Character.Humanoid.Died:connect(function(StalkerDied)
if Plr and Plr.Character and Plr.Character.Humanoid and Plr.Character.Humanoid.Health>0 then
Msg = Instance.new("Hint",Workspace)
Msg.Text = Stalker.Name.." Has lost as the stalker!"
wait(3)
Msg:Destroy()
table.remove(CurrentStalker, Plr)
table.remove(Players, Plr)
Players = {}
CurrentStalker = {}
RoundStart = false
end
end)
end
end

1 comment
Please do not make explicit requests for code.