Ok so, I need help with figuring out how to check if the chatbar is open or closed, that’s all really. I tried;
local inputConfig = TextChatService:WaitForChild("ChatInputBarConfiguration")
inputConfig:GetPropertyChangedSignal("IsFocused"):Connect(function()
if inputConfig.IsFocused then
statsFrame:TweenPosition(chatOpenPosition, "Out", "Quad", 0.25)
else
statsFrame:TweenPosition(chatClosedPosition, "Out", "Quad", 0.25)
end
end)
but that didn’t work. I’m unsure if I’m doing anything wrong, but anything helps.
That should work. Is it in a local script or a server script, and have you tested with some print() statements to see if the code is even running when the property changes?
It’s in a local script, and I found out the fix already.
RunService.RenderStepped:Connect(function()
local success, chatActive = pcall(function()
return StarterGui:GetCore("ChatActive")
end)
if success and chatActive ~= lastChatOpen then
lastChatOpen = chatActive
if chatActive then
statsFrame:TweenPosition(chatOpenPosition, "Out", "Quad", 0.25)
else
statsFrame:TweenPosition(chatClosedPosition, "Out", "Quad", 0.25)
end
end
end)
I guess that function was depricated or sum. Thanks for the help tho!