This is the script: local code = script.Parent
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(charater) if player.Name == "EpicLLBro" then code.Visible = false else code.Visible = true end end)
end)
Try this :
if game.Players.EpicLLBro then script.Parent.Visible = true else script.Parent:Destroy() end
Here - if this works, please accept my answer :)
Right now, I have a ScreenGui inside of StarterGui, and inside I have a localscript and a Frame named "code". If you change the name of the frame, change the "local code = script.Parent."name of frame".
Put a localscript inside of the ScreenGui:
local plr = game.Players.LocalPlayer local code = script.Parent.code if plr.Name == "YourName" then print("Player joined") code.Visible = true else print("Error") code.Visible = false end
Hope this helped :)