Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does this flicker like its glitched? [closed]

Asked by 5 years ago

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)
0
what is Inv? maumaumaumaumaumua 628 — 5y

Closed as Non-Descriptive by hiimgoodpack and BlackOrange3343

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 5 years ago

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

0
Hey umm idk if you realised but you just copied and pasted what i posted... Toastitions 11 — 5y
0
the true and false values are switched you set the wrong toastitions Bloxulen 88 — 5y
Ad