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

When The script makes the Frame visible it is visible to everybody and not the owner i need help?

Asked by 3 years ago
local OwnerAdmin = "MemeKarmhimal"
local DeveloperAdmin = {"amazingekingstudios", "swagger97890"}

local player = game.Players.LocalPlayer

wait(10)
if player.Name == OwnerAdmin then

    player.PlayerGui.ShowRanks.RankFrame.Visible = true
    player.PlayerGui.ShowRanks.RankFrame.Ranks["Owner Admin"].Visible = true

end
0
Use id's instead of names it works way better and if u change your name you still have admin supercool_spy 0 — 3y
0
Do you get any errors? the script is perfect, even tho i suggest you using player.UserId, is a much stable system and works even tho you change your username like supercool_spy said, i suggest you put more if statements too in the script to check if your script passes a certain line in the code, like print(worked) after player.PlayerGui.ShowRanks.RankFrame.Ranks['Owner Admin'],Visible = true. Hate_ZEU 47 — 3y

Answer this question