error: > ServerScriptService.Rounds:143: attempt to index boolean with 'Value'
Code: https://imgur.com/a/oR6iDd2
im very confused and never had this error before...
--// Created: 2022-10-09 12:14AM
--// Last Edited: 2022-10-29 8:46PM
local roundLength = 30
local IntermissionLength = 5
local InRound = game.ReplicatedStorage.InRound
local Status = game.ReplicatedStorage.Status
local LobbySpawn = workspace.Lobby_Spawn
local Spawn1 = workspace.Map_Spawn_1
local Spawn2 = workspace.Map_Spawn_2
local Spawn3 = workspace.Map_Spawn_3
local Spawn4 = workspace.Map_Spawn_4
local GameSpawn = {
Spawn1,
Spawn2,
Spawn3,
Spawn4
}
local MapSpawns = 1
local TotalPlayers = {}
local playing = {}
InRound.Changed:Connect(function()
if InRound.Value == true then --//On Game Start
wait(1)
for _, player in pairs(game.Players:GetChildren()) do --Map Spawns
local char = player.Character
char.HumanoidRootPart.CFrame = GameSpawn[MapSpawns].CFrame
print ('Spawning at:'..MapSpawns)
if MapSpawns <4 then
MapSpawns += 1
else
MapSpawns = 1
end
player.Team = game.Teams.Players
table.insert(TotalPlayers, player.Name) --Total Players
if player.Team.Name == 'Players' then --InGame Players
table.insert(playing, player.Name)
print(playing)
local char = player.Character
local function numPlayerCheck()
if #playing == 0 then --0 Players Left
print('Everyone Died.')
Status.Value = 'Everyone has died.'
wait(3)
InRound = false
elseif #playing == 1 and #TotalPlayers > 1 then --1 Player Left
local Winner = game:GetService("Players"):FindFirstChild(playing[1])
Status.Value = (Winner.Name.. 'Has Won!')
print(Winner.. ' has won!')
wait(3)
local PlayerCash = Winner.data.Cash.Value
local leaderstats = Winner.leaderstats.Cash.Value
leaderstats +=25
PlayerCash += 25
print(Winner.. 'now has: '.. PlayerCash..' Cash')
InRound = false
elseif #playing == 1 and #TotalPlayers == 1 then --Only 1 Player in Server
print('Only 1 Person in Server, Continuing Game.')
end
end
char:WaitForChild('Humanoid').Died:Connect(function(plr)
for i = 1, #playing do
if playing[i] == player.Name then
table.remove(playing, i)
print('removed Player'.. i.. ' from table.')
print(playing)
numPlayerCheck()
end
end
player.Team = game.Teams.Lobby
end)
end
--//Player Conditions
end
elseif InRound.Value == false then --//On Game End
wait(1)
for _, player in pairs(game.Players:GetChildren()) do
local char = player.Character
char.HumanoidRootPart.CFrame = LobbySpawn.CFrame
player.Team = game.Teams.Lobby
end
end
end)
local function roundTimer()
while wait() do
for i = IntermissionLength, 1, -1 do --Intermission Timer
InRound.Value = false
wait(1)
Status.Value = ('Intermission: '..i..' Seconds Left.')
end
for i = roundLength, 1, -1 do --Round Timer
InRound.Value = true
wait(1)
Status.Value = ('Game:'..i..' Seconds Left.')
end
end
end
spawn(roundTimer)

3 comments
omg my english is so gooood <3:)*****8
I wrote the variable as game.ReplicatedStorage.InRound, also, i added my code to the question so you can take a look, thanks.
see lines 67 and 85, you replaced the original BooleanValue with a boolean, you can come up with the solution yourself but just in case... InRound.Value = ...