Is there any way to press keyboard button M on mobile?
local function handleContext(name, state, input)
if not mapOpen then
frame.Size = UDim2.new(0.168, 0, 0.311, 0)
frame.Position = UDim2.new(0.84, 0 , 0.5, 0)
map.AnchorPoint = Vector2.new(0.5, 0.5)
map.Size = UDim2.new(zoom, 0, zoom, 0)
plrPointer.Size = UDim2.new(0.159, 0, 0.159, 0)
local guiSize = map.AbsoluteSize
local plrPos = hrp.Position
local plrX = xUpperBound - plrPos.X
local plrZ = zUpperBound - plrPos.Z
local plrXscaled = plrX / realWidth
local plrZscaled = plrZ / realHeight
plrXscaled = ((plrXscaled - 0.5) * zoom) + 0.5
plrZscaled = ((plrZscaled - 0.5) * zoom) + 0.5
map.Position = UDim2.new(plrXscaled, 0, plrZscaled, 0)
plrPointer.Position = UDim2.new(0.48, 0, 0.48, 0)
else
frame.Size = UDim2.new(0.259, 0, 0.605, 0)
frame.Position = UDim2.new(0.37, 0, 0.739, 0)
map.Size = UDim2.new(1, 0, 1, 0)
map.Position = UDim2.new(0.5, 0, 0.5, 0)
plrPointer.Size = UDim2.new(0.08, 0, 0.08, 0)
local x = hrp.Position.X - xLowerBound
local z = hrp.Position.Z - zLowerBound
local xScaled = x / realWidth
local zScaled = z / realHeight
plrPointer.Position = UDim2.new(xScaled, 0, zScaled, 0)
end
end
cas:BindAction("MapZoom", handleContext, true, M)
cas:SetPosition("MapZoom", UDim2.new(0.72, -25, 0.20, -25))
cas:SetImage("MapZoom","http://www.roblox.com/asset/?id=145360686")
cas:GetButton("MapZoom").Size = UDim2.new(0.3, 0, 0.3 ,0)
This method does not work