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

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

Asked by 10 years ago

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

Log in to vote
0
Answered by 10 years ago

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)



0
Didn't work... Wrongmistake 0 — 10y
0
are you trying to be admin?if so i can fix and did u run it in a gui danielsarabia11 -2 — 10y
Ad
Log in to vote
-1
Answered by 10 years ago

Try naming it FrameTwo.

0
Didn't work. Wrongmistake 0 — 10y

Answer this question