Hey does anyone know how to fix this? Code is provided https://gyazo.com/3aa67c366bd218a89ca95f0b1190da49

It works as I intended it is just as you can see in the gif that it changes a lot when you walk on it

local frame = game.Players.LocalPlayer.PlayerGui.Master.PopUpGui.CDC.Frame local frame1 = game.Players.LocalPlayer.PlayerGui.Master.PopUpGui.CDC.Frame1 local frame2 = game.Players.LocalPlayer.PlayerGui.Master.PopUpGui.CDC.Frame.TextLabel local debounce = false CDCVIST = false

game.Workspace.CDCdoor1.Touched:connect(function() --When you touch the block if CDCVIST == false then CDCVIST = true frame2.Text = "Entering the CDC" repeat frame.BackgroundTransparency = frame.BackgroundTransparency - 0.05; frame1.BackgroundTransparency = frame1.BackgroundTransparency - 0.05; frame2.TextTransparency = frame2.TextTransparency - 0.05; wait(0.05); until frame.BackgroundTransparency <= 0; else CDCVIST = false frame2.Text = "Exiting the CDC" repeat frame.BackgroundTransparency = frame.BackgroundTransparency - 0.05; frame1.BackgroundTransparency = frame1.BackgroundTransparency - 0.05; frame2.TextTransparency = frame2.TextTransparency - 0.05; wait(0.05); until frame.BackgroundTransparency <= 0; end

repeat wait() until game.Workspace.CDCdoor1.TouchEnded wait(3) repeat frame.BackgroundTransparency = frame.BackgroundTransparency + 0.05; frame1.BackgroundTransparency = frame1.BackgroundTransparency + 0.05; frame2.TextTransparency = frame2.TextTransparency + 0.05; wait(0.05); until frame.BackgroundTransparency >= 1;

end) wait(10)

5 comments

0

did you even try

0

Yes it works but it constantly changes is there a way to make it not constantly change

0

Can you put this with Lua format, I couldn't read your scripts.

0

I think Nexo meant to use the in-website Lua format.