So the command i want to do is :slock, then it would make the whole gui fades in but for everyone to see it. But when i say :unslock, it would fades in again but as another text. Basically i want the server to be locked but also for the gui to show to everyone, it has to fade in though. This is at what i am right now.
----Script is in workspace------
local slock = false
local ServerlockGui = game.StarterGui.ServerLock.Frame --This would fades in along with the text and would fades ----
local LockOn = ServerlockGui.ServerlockOn ----it would fade in----
local LockOff = ServerlockGui.ServerlockOff
game:GetService("Players").PlayerAdded:Connect(function(plr)
if slock == true then
plr:Kick("The server is locked.")
elseif slock == false then
wait()
end
plr.Chatted:connect(function(msg)
if msg == ":slock" then
slock = true
for fadesin = 0,1, .0 do
LockOn.TextTransparency = fadesin
end
wait(2)
for fadesout = 1,0. .-.1 do
LockOn.TextTransparency = fadesout
end
---Now the unslock command----
plr.Chatted:connect(function(msg)
if msg == ":slock" then
slock = false
for fadesin = 0,1, .0 do
LockOff.TextTransparency = fadesin
end
wait(2)
for fadesout = 1,0. .-.1 do
LockOff.TextTransparency = fadesout
end
I am confused because i can't make it seen by everyone and i don't know how, can i get some help ?

1 comment
You will need a remote event or you could go through every player in game.Players and change all of their guis