What's wrong with this clickdetector system?
I'm trying to make a clickdetector system that will show info when a player hovers over the detector, but I've ran into the problem that my hover info isn't showing up or giving any output errors?
1 | script.Parent.MouseHoverEnter:connect( function (plr) |
2 | if not plr.PlayerGui:findFirstChild( "BankGui" ) then |
3 | new = script.BankHoverInfo:clone() |
4 | new.Parent = plr.PlayerGui |
5 | new.Frame.Position = UDim 2. new(plr:GetMouse().X, 0 ,plr:GetMouse().Y, 0 ) |
It printed "plox" and there were no output errors but the GUI didn't show up. What's wrong?