UIScale is not a valid member of TextButton "Players.Dozetopgg.PlayerGui.Chat.Frame.ChatBarParentFrame.Frame.BoxFrame.Frame.MessageMode"
function Animations.Buttons(Player)
local Buttons = Player.PlayerGui:GetDescendants()
for i, v in pairs(Buttons) do
if v:IsA("GuiButton") and v.UIScale then
local UIScale = v.UIScale
v.MouseEnter:Connect(function()
TweenService:Create(UIScale, info, {Scale = 1.15}):Play()
end)
v.MouseLeave:Connect(function()
TweenService:Create(UIScale, info, {Scale = 1}):Play()
end)
v.MouseButton1Down:Connect(function()
TweenService:Create(UIScale, info, {Scale = 0.85}):Play()
end)
v.MouseButton1Up:Connect(function()
TweenService:Create(UIScale, info, {Scale = 1}):Play()
end)
end
end
end
if v:IsA("GuiButton") and v:FindFirstChild('UIScale') then
Explanation
My quess is that it was assuming v had a property or something called UIScale, so it checked for a property, I used FindFirstChild cause then it would look for a child
:3