Okay, I’m not sure if this is an engine bug or if I’m doing something wrong, but when I use this script I made to create touch buttons for mobile
CAS:BindAction("Pink", button1, true, Enum.KeyCode.ButtonL2)
CAS:BindAction("Yellow", button2, true, Enum.KeyCode.ButtonR2)
CAS:SetTitle("Pink", "Pink Portal")
CAS:SetTitle("Yellow", "Yellow Portal")
CAS:SetPosition("Pink", UDim2.new(.8, 0, .8, 0))
CAS:SetPosition("Yellow", UDim2.new(.8, 0, .6, 0))
print(UIS.TouchEnabled)
nothing shows up on my screen.
The touch buttons do exist in the explorer, as seen in these photos and according to the properties tab are visible and are at a position where I should be able to see it. But still, nothing shows up.
can anyone tell me what I’m doing wrong
Edit: Actually solved the problem myself, turns out ContextActionGui Wasn’t enabled, so anyone else with this issue, please check to make sure context action gui is enabled
edit 2: Actually, although the ContextActionGui wasn’t enabled, it won’t let me enable it. and it doesn’t automatically enable when I start a moblie client, please help
EDIT 3: okay I just realized the issue, I have a script in my game that doesn’t just disable that specific context action gui, it disables all of the player’s gui, it’s fixed now