Repositioning chat window to bottom right corner

Hello I was hoping someone can show me an easier way to do this

Im currently trying to reposition the Chat Frame to the Bottom right corner the method below is what i’m currently using

game:GetService("StarterGui"):SetCore('ChatWindowPosition', UDim2.new())

Altho this method works it does not position it properly for Mobile users as it tends to place it off screen while using mobile devices. Is there another option to use so it still works for both Mobile and PC so that it is perfectly scaled on both devices

If I’m not mistaken,

local windowSize = game.StarterGui:GetCore("ChatWindowSize")
local newWindowPosition = UDim2.new(1, 0, 1, 0) - windowSize

game.StarterGui:SetCore("ChatWindowPosition", newWindowPosition)
2 Likes

Ill try it out and let you know Thanks!

1 Like

Thanks for the support that has SOLVED the issue much appreciated

1 Like