wait()
game.ReplicatedStorage.Remotes.welcome.OnServerEvent:Connect(function(player)
while true do
if game.Workspace.PlayerCount.Players.Value >= 5
then
game.StarterGui:SetCore("ChatMakeSystemMessage", {
Text = "Waiting for at least FIVE players to join..",
Color = Color3.new(100, 100, 0),
Font = Enum.Font.SourceSansLight,
FontSize = Enum.FontSize.Size18,
print("made it here lol")
})
wait(10)
end
wait()
if game.Workspace.PlayerCount.Players.Value <= 5
and game.Workspace.game.CanCollide == true
then
game.StarterGui:SetCore("ChatMakeSystemMessage", {
Text = "Welcome to the annual HUNGER GAMES",
Color = Color3.new(100, 100, 0),
Font = Enum.Font.SourceSansLight,
FontSize = Enum.FontSize.Size18,
})
wait(10)
game.StarterGui:SetCore("ChatMakeSystemMessage", {
Text = "If you don't know how to play, read the description!",
Color = Color3.new(100, 100, 0),
Font = Enum.Font.SourceSansLight,
FontSize = Enum.FontSize.Size18,
})
wait(10)
game.StarterGui:SetCore("ChatMakeSystemMessage", {
Text = "Selecting random arena...",
Color = Color3.new(100, 100, 0),
Font = Enum.Font.SourceSansLight,
FontSize = Enum.FontSize.Size18,
})
wait(5)
game.StarterGui:SetCore("ChatMakeSystemMessage", {
Text = "Arena selected. Prepare to enter the game. May the odds be ever in your favor.",
Color = Color3.new(100, 100, 0),
Font = Enum.Font.SourceSansLight,
FontSize = Enum.FontSize.Size18,
})
wait(20)
local Pos = player.Character:GetPrimaryPartCFrame()
player:LoadCharacter()
player.Character:SetPrimaryPartCFrame(Pos)
if player.Character:FindFirstChild("ForceField") then
player.Character["ForceField"]:Destroy()
wait(1)
game.Workspace.CanCollide = false
game.ReplicatedStorage.Remotes.tp:FireServer()
end
end
end
end)
when it was just this part of the script it worked but now it doesnt, any ideas?
wait()
game.ReplicatedStorage.Remotes.welcome.OnServerEvent:Connect(function(player)
while true do
if game.Workspace.PlayerCount.Players.Value >= 5
then
game.StarterGui:SetCore("ChatMakeSystemMessage", {
Text = "Waiting for at least FIVE players to join..",
Color = Color3.new(100, 100, 0),
Font = Enum.Font.SourceSansLight,
FontSize = Enum.FontSize.Size18,
print("made it here lol")
})
wait(10)
end
