Mobile Issues - 2 Issues in one

Hello! I have 2 issues in one.

My first issue is that with the ContextActionService not showing images correctly. The buttons work right but the images don’t show.

Here is a screenshot of both issues:

Here is the code used for the run button. The walk button is the same but with the value for walkspeed set to 16.

local contextActionService = game:GetService(“ContextActionService”)
function onButtonPress()
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 35
end
local mobilebutton = contextActionService:BindAction(“RunButton”,onButtonPress,false)
contextActionService:SetPosition(“RunButton”,UDim2.new(0.72,-25,0.20,-25))
contextActionService:SetImage(“RunButton”,“http://www.roblox.com/asset/?id=5163905568”)

My second issue is to find out how to remove the run icon under the jump button completely. It is making the jump feature not work. Idk how to make it so it doesn’t show on Mobile.

If you know a fix to one, please reply. Thanks, WE

Is the icon that is under the jump button a GUI or is it made from the ContextActionService:BindAction?

Its a GUI that I want removed from all mobile devices.

You can check what device the Player is currently on:

Its not the mobile walk/jump button I want removed. I want to remove the run GUI from the screen.

Try testing around with GUI elements in Studio and copy the values to the script.

And that’s what you can use, you check if the player’s device is on mobile. If they are on mobile, you can destroy the GUI or make them not visible.

Ok. Now we need to find out how to make the images on the ContextAction not like this:
image
Is there any way to make it an image label?
Here is the code that I tried:

local contextActionService = game:GetService(“ContextActionService”)
function onButtonPress()
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 35
end
local mobilebutton = contextActionService:BindAction(“RunButton”,onButtonPress,true)
contextActionService:SetPosition(“RunButton”,UDim2.new(0.72,-25,0.20,-25))
contextActionService:SetImage(“RunButton”,“http://www.roblox.com/asset/?id=5163905568”)

If you know how to fix the ContextAction for Mobile, please let me know. Thanks, WE