Why doesn't this script for ACS work?

im trying to make a suppression effect when a player fires the AK-47.
for some reason nothing happens?

there is no gui popping up like there should be.

no known solution

image:
image

blinkenable:


local gui = game.StarterGui.Blink.BlinkScript
if game.ReplicatedStorage.ACS_Engine.GunModels.Server["AK-47"].Grip.Fire.IsPlaying then
	gui.Enabled = true
	wait(1)
	gui.Enabled = false
end
if game.ReplicatedStorage.ACS_Engine.GunModels.Server["AK-47"].Grip.Fire2.IsPlaying then
	gui.Enabled = true
	wait(1)
	gui.Enabled = false
end

BlinkScript:

local Gui = script.Parent.EyeLid


while true do
	Gui.BackgroundTransparency = 0.99
	wait(0.1)
	Gui.Visible = true
	Gui.BackgroundTransparency = 0.1
	wait(0.1)
	Gui.BackgroundTransparency = 0.2
	wait(0.1)
	Gui.BackgroundTransparency = 0.3
	wait(0.1)
	Gui.BackgroundTransparency = 0.4
	wait(0.1)
	Gui.BackgroundTransparency = 0.5
	wait(0.1)
	Gui.BackgroundTransparency = 0.6
	wait(0.1)
	Gui.BackgroundTransparency = 0.7
	wait(0.1)
	Gui.BackgroundTransparency = 0.8
	wait(0.1)
	Gui.BackgroundTransparency = 0.9
	wait(0.1)
	Gui.BackgroundTransparency = 0
end
2 Likes

You are referencing a script which is not even a gui. even if you did reference it right it wouldn’t work because you are manipulating the wrong gui in blinkenable. But before that change blinkenable to a local script and put it in starter gui. Now it should be script.Parent.Blink. Also change blink to a local script and make it better like this


local ilabel = script.Parent.EyeLid
ilabel.Visible = true
for i = 1,0,-.1 do
   ilabel.BackgroundTransparency = i 
end

Every time you want to make the player blink just disable and enable the blink script