Can somebody help me with this script? It's supposed to make a frame visible, when you hover your mouse on it. But the problem is, it wont even do that... Can somebody fix this error please?
script.Parent.MouseEnter:connect(function (plyr) for i,v in pairs(PlayerList) do if string.name == v then sript.Parent.FrameTwo.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.FrameTwo.Visible = false end end end)
You are calling the method on each player, you don't need to use a player variable, use a LocalScript instead, so change your code to this:
script.Parent.MouseEnter:connect(function() if string.name == v then script.Parent.FrameTwo.Visible = true -- You typed "sript" end end) script.Parent.MouseLeave:connect(function() if string.Name == v then script.Parent.FrameTwo.Visible = false end end)
It should work.