Ok so heres the deal: I have this script and I want to to change the decal ID when these 2 certain players are in game, then change when they leave. Problem is,if they both join and if one leaves, it reverts, and the other one can still be in game and see it. Please help?
--Current script, "Mya" is name of the joke i have with friends, so do ignore
local PreviousDecal = game.Workspace.RandomThing:FindFirstChild("Decal")
if PreviousDecal then PreviousDecal:Destroy() end -- So theres only 1
local Mya = Instance.new("Decal")
Mya.Parent = game.Workspace.RandomThing
Mya.Texture = DECAL ID
game.Players.PlayerAdded:connect(function(p)
if p.UserId == 17408797 or 3976483464 then
local Mya = game.Workspace.RandomThing:FindFirstChild("Decal")
Mya.Texture = IDFORCOVERUP
end
end)
game.Players.PlayerRemoving:connect(function(p)
if p.UserId == 17408797 or 3976483464 then
local Mya = game.Workspace.RandomThing:FindFirstChild("Decal")
Mya.Texture = DECAL ID
end
end)
Any help appreicated.

3 comments
If you know the other players name, you can just use findfirst child
that will not work
he / she wanted script when both ppl are in the game