#Hide Players doesnt work
1 messages · Page 1 of 1 (latest)
my module script :
local allPlayers = {}
for _, plr in pairs(game.Players:GetPlayers()) do
allPlayers[plr.UserId] = plr
end
game.Players.PlayerAdded:Connect(function(plr)
allPlayers[plr.UserId] = plr
end)
game.Players.PlayerRemoving:Connect(function(plr)
allPlayers[plr.UserId] = nil
end)
return allPlayers
it puts all players in the server in a table
if it works
and the main script :
hidePlrButton.Activated:Connect(function()
if not on then
on = true
-- hide the players
for userId, plr in pairs(allPlayers) do
if plr ~= localPlayer then
if plr.Character then
for _, parts in pairs(plr.Character:GetDescendants()) do
if parts:IsA("BasePart") or parts:IsA("Decal") then
parts.LocalTransparencyModifier = 1
elseif parts.Name == "Nametag" then
parts.Enabled = false
end
end
end
end
end
else
on = false
-- show the players
for userId, plr in pairs(allPlayers) do
if plr ~= localPlayer then
if plr.Character then
for _, parts in pairs(plr.Character:GetDescendants()) do
if parts:IsA("BasePart") or parts:IsA("Decal") then
parts.LocalTransparencyModifier = 0
elseif parts.Name == "Nametag" then
parts.Enabled = true
end
end
end
end
end
end
end)
didnt copy paste everything cause its too long
allParts
that is the module script btw
pls someone help
i do not understand why it doesnt work
gotta take a shit im coming back
Why did you do localtransparrencymodifier instead of just transparency?
idk roblox studio proposed this to me
i just clicked tab
it works
so dont touch it
Try normal transparency
Wait so the button does not work?
so this was just made with ai or am i misunderstanding
no ai
made by me
Ah i see thats because the char gets reset
Does it work?
🙀
doesnt work at all
hidePlrButton.Activated:Connect(function()
if not on then
on = true
-- hide the players
for userId, plr in pairs(allPlayers) do
if plr ~= localPlayer then
plr.CharacterAdded:Connect(function(char)
for _, parts in pairs(char:GetDescendants()) do
if parts:IsA("BasePart") or parts:IsA("Decal") then
parts.Transparency = 1
elseif parts.Name == "Nametag" then
parts.Enabled = false
end
end
end)
end
end
else
on = false
-- show the players
for userId, plr in pairs(allPlayers) do
if plr ~= localPlayer then
plr.CharacterAdded:Connect(function(char)
for _, parts in pairs(plr.Character:GetDescendants()) do
if parts:IsA("BasePart") or parts:IsA("Decal") then
parts.LocalTransparencyModifier = 0
elseif parts.Name == "Nametag" then
parts.Enabled = true
end
end
end)
end
end
end
end)
i tried to implement character added
i think im missing smtg
Does it work?
Try to change that from localtransparrencymodifier to transparency too
Oh i see
tell me what you see
You did the for loop
On plr character
Even though you need to do it in char
In function(char)
Use that char instead
the ```lua
for userId, plr in pairs(allPlayers) do
** You are now Level 8! **
????
ohhhhhhhhhhhh
Here you go! 
And?
yea but
thats on the second thing
the one that show players
but now they dont want to hide anymore
lemme show you
Ah so the button broke
The plr not dissappear?
1 min
Hey so umm
HOLD ON
@marble girder
WE CAN DO THIS
@marble girder NOOO
@marble girder
@marble girder
@marble girder
im holding on
but
i already saw what he said
and lemme tell you
i could not have figured that out
Send a ss of the full script cuz i think you have 2 events that detect if a new character is born but 0 events that make the current one invisible
Don't tell me tho
I wanna figure it out :>
full script
Just the code
oh nvm it didnt send
its gonna be in 2 times
I see 0 times
local ScreenGui = script.Parent
local MenuButton = ScreenGui:WaitForChild("OpenMenu")
local settingsMenu = ScreenGui:WaitForChild("Menu")
local closeSettings = settingsMenu.MenuCloser
local SF = settingsMenu.ScrollingFrame
local SkyChanger = SF.Skychanger.TextButton
local Skies = SF.Skychanger.Skies
local on = false
local on1 = false
local hidePlrButton = SF.HidePlayers.Button
local localPlayer = game.Players.LocalPlayer
local localCharacter = localPlayer.Character
local allPlayers = require(game.ReplicatedStorage.AllPlayersInServer)
MenuButton.Activated:Connect(function()
MenuButton.Visible = false
settingsMenu.Visible = true
end)
closeSettings.Activated:Connect(function()
MenuButton.Visible = true
settingsMenu.Visible = false
end)
SkyChanger.Activated:Connect(function()
if not on1 then
Skies.Visible = true
on1 = true
else
Skies.Visible = false
on1 = false
end
end)
;-;
hidePlrButton.Activated:Connect(function()
if not on then
on = true
-- hide the players
for userId, plr in pairs(allPlayers) do
if plr ~= localPlayer then
plr.CharacterAdded:Connect(function(char)
for _, parts in pairs(char:GetDescendants()) do
if parts:IsA("BasePart") or parts:IsA("Decal") then
parts.Transparency = 1
elseif parts.Name == "Nametag" then
parts.Enabled = false
end
end
end)
end
end
else
on = false
-- show the players
for userId, plr in pairs(allPlayers) do
if plr ~= localPlayer then
plr.CharacterAdded:Connect(function(char)
for _, parts in pairs(char:GetDescendants()) do
if parts:IsA("BasePart") or parts:IsA("Decal") then
parts.Transparency = 0
elseif parts.Name == "Nametag" then
parts.Enabled = true
end
end
end)
end
end
end
end)```
full script
Hey so you have characteradded 2 times
But if they haven't died then there will be no nee character added
Gpt?
forgor
👌
this one right ??
Think so
But can you send a screenshot instead its hard to read on mobile
Of the code
sure
it works fine till the players die
and i gotta make that respawn bubble disapear too
later
Idk why you made 2 for loops but
Replace the bottem one with the characteradded code
Oh wsit
Wait
all the bottom thing ?
Now i get it
you dont need the 2 loops but it works
At the end of the first for loop
Nah dw about it i read it wrong
what do yall mean
ok
Mb it was a bit hard to read so i missed a little stuff
wait
Below first loop above else statement
The characteradded thing we made before
all the script or only the char added event ?
Just the function
ok
He did now
oh
Bon a peti @marble girder
bros been cooking to help noname
Xd
NONO
lol
🙏🙏
im sorry english is not my first language
Remove pairs, it’s uselss in luau
Yh but i dont get it why some tutorials always used it
Its nice for very specific situations
It was needed in old version of luau, nowadays it’s unnecesary
Nah that was before ai
nah i mean he may of used it
in the 8 months ive been scripting i dont think ive ever used pairs tbf
i used no ai
Game.players
No i mean youtuber tutorials
Does game.players.characteradded() work?
plr does not exist yet so no
plr.characteradded:connect(fun())
plr
not exist
Move it up one end
ok
Put “local allPlayers = game:GetService(“Players”)” inside the function
Im sleepy
eepy ah
Mb it's pretty late so im not on point
exactly what i did
all good
bro fumbled the bag 🤦♂️
Its above one end
one end higher ?
I dont see you helping 😭😭
Yes
man im enjoying the show
Lol
someone who can script this but doesnt know character added
or functions it seems
YES
THINK THATS IR
and suceeding
Alr now add the code you madr
The code inside the function
so just put the function inside ?
The same for loop above that (for i, parts in character do)
yea
Put that inside the function but
Replace the for loop with: for_, parts in char:GetDec() do
Yes
Alr send a ss
💔🙏
ok lemme try
fire
lol
theres a much easier way via local script to do that
hes obviously doing it locally
whats your point
Add a lil code that detects if its a accessory and sets transparrency or enabled to false
that there is a way easier way than this piece of shit code (no hate on that guy)
he might be new. 🤷♂️
Sthu
Hes learning
i just gotta make the other accesories dispear
yall could have helped
so thx for your hhelp
can help you with that
smd
Dawg those 200 msgs arent for fun chat
check if the part os an accessory and set the transparency to 1
Its not about how hard or easy it is for you and me, its about how he has to be able to understand it and apply it
If you guys would have atleast used a single bit of ur non existing braincells, this could have been done in less than 50 messages at worst
Yeah and he woulda copy pasted it
Im not chatgpt
if he wants to learn, he would ask. He doesnt? He wont. His problem.
Go back to your own chat
scared me
He did ask so go away
then what the fuck is your point here??
we dont just give people scripts
🤦♂️
"scripting help"
My point is that im trying to help him get better
help with scripts not full scripts
how is providing scripts not helping?
im trynna make the hair and the "pro" chain disapear but they sould disapear cause i already make parts disapear
Ask that to an ai
And copy paste it into this chat
they dont learn. teach people to solve it themselves and guide them not giving them a full script
bouta ask chatgpt for ur dads existence and copy paste it
Stop being a lil bitch about this dawg it aint that deep
the hair and the accesories are parts right ??
clearly you guys are the fucking assholes here
Alr so the reason why it bugged is because we didint take into account for accessories
Mabey you should leave then
is accessories a class type ??
Yeah launch the game and open the character youl see them
i cant watch this anymore, @marble girder can I rewrite this in dms for you? If you have questions about the code, just ask
sure
well see if its better than mine
If you just want the script @marble girder then ask gpt
piece if $hit to me = piece of $hit to you
what is the point if he doesnt understand it 💔💔
He wants to have god damn fun
when was a i a piece of shit to you 💔💔
all them messages to give up at the end
yeah nice one
Dont you remember you insulted us first?
dw i got it from here
yeah making something random
"what the fuck is this piece of shit code"
Piece of shat to me = piece of shat to you
i think
And
** You are now Level 9! **
@wooden thicket
Less goo
yes check dms
** You are now Level 4! **
Im telling you if he just wanted the code he woulda gone to gpt
Just ask ai at that point
No difference
and learn nothing 💔 not understanding anything
fo sure
I didint think people would be toxic in this type stufd 🥀
Hes falling to the dark side..
@marble girder come back!
he says he can do the code
better
and simpler
i thank you 1000 times for your help
@raven moon we gotta ban this guy
The other one was ai generated...
man i don’t care allat much 🙏💔
I was making a point <\3
poor prompt
You gotta know how to give a goot prompt
so i gave up and made one myself
trust me i tried
@marble girder whyd u block me?
tf did i do?
heres the script ig?
bruh
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
in there is the script.
@scenic sluice
im trynna add accesories to ur code
but im too tired
ill try to finish that code tomorrow
its 2 am already
thx for everything
again
btw i didnt block him
yall should all apppologies
and become friends
instead of being mean to eachother
even if he started or if someone else started
dont care
make love not war
famous quote in france
"faites l'amour pas la guerre" ( in french )
its more like : have segs dont make war
but yea
u got it
@scenic sluice
i fixed it
your script was right
u just neede to add a cooldown
cause the meshes and accesories where spawning before the character
so yea
i added a task.delay(1, function()
end)
before the for loop
hidePlrButton.Activated:Connect(function()
if not on then
on = true
-- hide the players
for userId, plr in pairs(allPlayers) do
if plr ~= localPlayer then
if plr.Character then
task.delay(1, function()
for _, parts in pairs(plr.Character:GetDescendants()) do
if parts:IsA("BasePart") or parts:IsA("Decal") then
parts.LocalTransparencyModifier = 1
elseif parts.Name == "Nametag" then
parts.Enabled = false
end
end
end)
end
plr.CharacterAdded:Connect(function(char)
if char then
task.delay(1, function()
for _, parts in pairs(char:GetDescendants()) do
if parts:IsA("BasePart") or parts:IsA("Decal") then
parts.LocalTransparencyModifier = 1
elseif parts.Name == "Nametag" then
parts.Enabled = false
end
end
end)
end
end)
end
end
else
on = false
-- show the players
for userId, plr in pairs(allPlayers) do
if plr ~= localPlayer then
if plr.Character then
task.delay(1, function()
for _, parts in pairs(plr.Character:GetDescendants()) do
if parts:IsA("BasePart") or parts:IsA("Decal") then
parts.LocalTransparencyModifier = 0
elseif parts.Name == "Nametag" then
parts.Enabled = true
end
end
end)
end
end
end
end
end)
all the script
for those who want
thx again @scenic sluice
ill syd
Np man
Nah I dont rlly care i just hoped you leared something
i did
learn alot
next time ill want to make this i will remember you and make it right
progress 💪