#Mouse Hover Image Disappear

1 messages · Page 1 of 1 (latest)

clear valley
#

basically i wanna make a team menu, and when i hover my mouse over a team, it changes the image to the team in question, but when i hover my mouse over any teams the image just disappears. help
gimme a sec for the script

#
if FOG then
                                FOG.MouseMoved:Connect(function()
                                    bgFrameTeam["Team Photos"].image.Image = "rbxassetid://85907600075135"
                                    bgFrameTeam["Team Photos"].image.ZIndex = 999
                                end)
                                FOG.MouseButton1Click:Connect(function()
                                    teamChange:FireServer("F.O.G", "rbxassetid://85907600075135")
                                end)
                            end
#

thats the script that changes the image (local script)

#
local Teams = game:GetService("Teams")
local remoteEvent = game.ReplicatedStorage:WaitForChild("ChangeTeam")

remoteEvent.OnServerEvent:Connect(function(plr, teamName, teamImage)
    plr.Team = Teams[teamName]
end)
#

and thats the server script that actually cahnges the teams when the button clicked

#

but that works fine, what doesnt work is the hover mouse thing

#

lemme send a video

#

the moment my mouse hovers it it disapears

#

help

#

btw the image is located here :

#

and the bgframe in this script is :

local bgFrameTeam = game.Players.LocalPlayer.PlayerGui.MENU.Options.bgFrame3
#

i really dont understand help pls

#

imma try to add like a delay of 1 second

#

doesnt work

#

i tried to check in game if the ids change and it does change succesfully

#

ok nvm i found out why it doesnt work

#

yea

#

nvm

#

it was just the id