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
Ok. Now we need to find out how to make the images on the ContextAction not like this:
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