Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why does this flicker like its glitched?

This script is not working too well, anyone know how to fix?

local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")
local Gui = PlayerGui.Inv
local Test1 = script.Parent

Test1.MouseEnter:Connect(function()
    Test1.Visible = false
end)

Test1.MouseLeave:Connect(function()
    Test1.Visible = true
end)

1 comment

0

what is Inv?

1 answer

You are setting the values wrongly!

local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")
local Gui = PlayerGui.Inv
local Test1 = script.Parent

Test1.MouseEnter:Connect(function()
    Test1.Visible = true
end)

Test1.MouseLeave:Connect(function()
    Test1.Visible = false
end)

If this helped, mark this as answered :p

2 comments

0

Hey umm idk if you realised but you just copied and pasted what i posted...

0

the true and false values are switched you set the wrong toastitions

This discussion is preserved as it was. New answers, comments, and votes are closed.