So basically i want the context action service gui to be a layer over mine anyone know how?
but context action service don’t have gui , you mean proximity prompt ?
i mean the mobile thing you know that touch button for mobile?
https://developer.roblox.com/en-us/api-reference/function/ContextActionService/GetButton
You can use GetButton
to get the bound action’s mobile button and then you can manipulate that button like you would any GuiObject.
local contextAction = game:GetService("ContextActionService")
local function boundAction(actionName, inputState, inputObject)
if inputState == Enum.UserInputState.Begin then
print("Hello world!")
end
end
contextAction:BindAction("Print", boundAction, true)
local actionButton = contextAction:GetButton("Print")
actionButton.Position = UDim2.new(0, 0, 0, 0)
actionButton.Size = UDim2.new(1, 0, 1, 0)
I want it to change layors is that possible?