My game uses context action ui buttions in-order to support mobile but for one device its scaled correctly but for larger mobile devices it looks small can anybody help?
This is how the buttions looks on iphone 4S devices
And this is how the buttions look on a samsung GT-N5110 tablet
This is the code for spawning the buttions
ContextActionService:BindAction("Sprinttoggled", sprinttoggle, true)
ContextActionService:BindAction("Block", Blocktoggle, true)
ContextActionService:SetImage("Sprinttoggled", "rbxassetid://14722754437")
ContextActionService:SetPosition("Sprinttoggled",UDim2.new(0,-5,0,0))
local SprintButtion = ContextActionService:GetButton("Sprinttoggled")
if SprintButtion then
SprintButtion.Size = UDim2.new(0,50,0,50)
end
ContextActionService:SetTitle("Block","Block")
ContextActionService:SetPosition("Block",UDim2.new(0,50,0,1))
local BlockButtion = ContextActionService:GetButton("Block")
if BlockButtion then
BlockButtion.Size = UDim2.new(0,50,0,50)
end
If you have solutions please tell!