How do I make it so on of the 'teams' vision is foggy, blurred, or something like that? Thanks!
How do I make it so one of the roblox teams vision is blurred or foggy?
3 answers
I am NOT a good Lua coder, but I can give a simple suggestion as to something that may or may not work. You could add a local script that checks for when the local players character is loaded. When that player is loaded you can have an if statement checking which team they are in, and within that if statement have a code that accesses the blur effect (that you add into lighting). Since it is a local script I am pretty sure only that local player will view it.
So
--when local player character is loaded
--if that local player is a part of the team you want blurred
--change the blur size to the amount of blur you want
I don't know the exact syntax of this, but hopefully this helps
This is my guess, not sure cuz never used blur on my games. If this doesn't work then the problem is on line 1
local Player = game.Players.PlayerAdded
local Team = game:GetService("Teams")["No Team"]
game.Players.PlayerAdded:Connect(function(Player)
if Player.Team == Team then --Change
game.Lighting.Blur.Enabled = true
end
end)
2 comments
Yes this is close to what I was thinking, except on line 5 you would need to reference the team (game.Team.TeamName), and on line 6, rather than enabling the blur effect for them, already have it enabled but its size at 0. Then you can change the Blur.Size to your desired value.
yeah, I don't know, I am actually trying lol
This May Not Be How You Wanted It But I Know A Script That Kinda Does What You Want First Of All You Can Do This Script
Game.Players:ClearAllChildren()
OR You Can Do This
local GUI = game:GetService("StarterGui")
-- gets the UI Core,Gets The Ui Type -- Set The Ui To Be Invisible
GUI:GetCoreGuiEnabled(Enum.CoreGuiType.PlayerList,false)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
This is the correct idea. The code should also re-run that if statement whenever the local player's team changes.