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

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

Asked by 10 years ago

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

Log in to vote
0
Answered by
Kozero 120
10 years ago

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)
Ad

Answer this question