i made a setting gui and a information gui which both open with tweens, however just the settings gui stopped opening (i think its because my studio updated).
ive tried rewriting the settings gui code and noticed that the variables wouldnt get autofilled or even offer the name of the gui…
hope it made sense
im using CloseUI1 and CloseUI2 , Settings Page , Client1 and Client2 , Client and Client , Information (opened) and Settings (opened).
Settings Page script:
local Event1 = ReplicatedStorage["Remote Events"].CloseUI1
local Event2 = ReplicatedStorage["Remote Events"].CloseUI2
Event1.OnServerEvent:Connect(function(Player)
Event1:FireClient(Player, Player)
end)
Event2.OnServerEvent:Connect(function(Player)
Event2:FireClient(Player, Player)
end)
Client1 script;
local ReplicatedStorage = game.ReplicatedStorage
local Event1 = ReplicatedStorage["Remote Events"].CloseUI1
local Debounce = true
local Debounce2 = true
Event1.OnClientEvent:Connect(function(Player)
local sett = Player:WaitForChild("PlayerGui")["Ui's itself"]["Settings (opened)"]
if sett.Visible == true and not Debounce and not Debounce2 then
Debounce = true
sett:TweenPosition(UDim2.new(0.368, 0, 1, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, 1, false)
wait(1)
sett.Visible = false
Debounce2 = true
elseif sett.Visible == false and Debounce and Debounce2 then
Debounce = false
sett.Visible = true
sett:TweenPosition(UDim2.new(0.368, 0, 0.118, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, 1, false)
wait(1)
Debounce2 = false
end
end)
Client script:
local ReplicatedStorage = game.ReplicatedStorage
local Remote1 = ReplicatedStorage["Remote Events"].CloseUI1
script.Parent.MouseButton1Down:Connect(function(Player)
Remote1:FireServer(Player)
end)```