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

I need help! Why wont this script make frame2 appear?

So this script is supposed to make frame2 appear, if you're an admin, yet there's a problem... It wont appear! Not just the admin problem. Does anyone know what the problem is? If yes, please fix this!

PlayerList={"Lem0nzz"}

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.Frame2.Visible = false

end

end

end)


2 answers

This is the improved version the frame2 was listed as false instead of true so copy this and it will work

PlayerList={"Lem0nzz"}

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.Frame2.Visible = true

end

end

end)



2 comments

0

Didn't work...

0

are you trying to be admin?if so i can fix and did u run it in a gui

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