Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make it so one of the roblox teams vision is blurred or foggy?

Asked by 4 years ago

How do I make it so on of the 'teams' vision is foggy, blurred, or something like that? Thanks!

3 answers

Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

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

0
This is the correct idea. The code should also re-run that if statement whenever the local player's team changes. chess123mate 5873 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

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)
0
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. MagicRemote 5 — 4y
0
yeah, I don't know, I am actually trying lol TheKakYTArmy 125 — 4y
Log in to vote
0
Answered by 4 years ago

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)

Answer this question