I have a function inside my script that is parented to ServerScriptService, and it only makes the sound to stop except making the “Vignette” visible. The print says its visible, but when I go to the player and view the properties of Vignette, its not visible. Please help me with this problem.
for i, player in pairs(players) do
if player.Character then
local character = player.Character
local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
if humanoidRootPart then
print("spawn")
if character:FindFirstChild("Enemy") then
character.Humanoid.WalkSpeed = 9
else
character.Humanoid.WalkSpeed = 8
end
humanoidRootPart.CFrame = mapSpawns.CFrame
humanoidRootPart.Anchored = false
game.StarterGui.MainMenu.Theme:Stop()
player.PlayerGui.MainMenu.Vignette.Visible = true
if player.PlayerGui.MainMenu.Vignette.Visible == true then
print("visible")
else
print("invisible")
end
end
end
end
end```