Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can someone show me how to make this script, admin only and the Frame will become visible?

I've been trying to make a playerlist, and try this out but I can't figure out how it would work. Could somebody show me how you would turn this script into a admin only can see frame, so if there's a non admin, it will not go visible?

script.Parent.MouseEnter:connect(function hai()

Script.Parent.Frame.Visible = true

end)

script.Parent.MouseLeave:connect(function bai()

Script.Parent.Frame.Visible = false

end)

1 answer

I think this will work if not I'll fix it.

PlayerList={"Admin","Kozero","Wrongmistake"}--Put the names here.
script.Parent.MouseEnter:connect(function (plyr)
for i,v in pairs(PlayerList) do
if string.name == v then
Script.Parent.Frame.Visible = true
end
end
end)
script.Parent.MouseLeave:connect(function (plyr)
for i,v in pairs (PlayerList) do
if string.Name == v then
Script.Parent.Frame.Visible = false
end
end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.