I have made a ragdoll game which when you press "r" you ragdoll and to get up again. I have gotten the the button to appear from a Youtube video but can not get it to ragdoll / keybind to "r".
I also have this other script;
local contextActionService = game:GetService("ContextActionService") function onButtonPress() --Ragdoll function here / Need help here end local mobilebutton = contextActionService:BindAction("RagdollButton",onButtonPress,true,"r") contextActionService:SetPosition("RagdollButton",UDim2.new(0.72,-25,0.20,-25)) contextActionService:SetTitle("RagdollButton","Doll")
Instead of that try making a separate ScreenGui and make a button for it and make the button visible = false then do the following at the top of the script (Local Script) also make the script alone.
local OnMobile = game:GetService("UserInputService").TouchEnabled if OnMobile == true then --function here else return -- returns and does no change end