gui = script.Parent.Parent.Rarity
function enter()
gui.Visible=true
end
function leave()
gui.Visible=false
end
script.Parent.MouseEnter:connect(enter)
script.Parent.MouseLeave:connect(leave)
This works in studio single player testing, but going onto a server gives an error on line 1 saying that Rarity is not part of the Frame it's in. Any help with this?

2 comments
Is this a normal script and is filtering enabled on?
It's a localscript with Filteringenabled off