![]() ![]() The first parameter Interact should be our custom action that we want to set our title to (That’ll be going for the rest of our properties changing), and our Title Name will be “Talk” ![]() We’ll first start with the Title Name, we can just simply do: ContextActionService:SetTitle("Interact", "Talk") Next what we can do, is set our properties/preferences for our Mobile Button & what we wanna do with it The last parameter are just a specific amount of keybinds we want to use to trigger the action when it’s called (Or the keys on your keyboard when pressing a special skill Z, X, C) The third parameter is a Bool check if we want to make it a Mobile Button, we’d wanna set that to true The second parameter is connecting the function that will detect its change when it’s called (Or handleAction The first parameter is a custom function name to whatever we want, heck we can even name it to “Pie” and it’d still work Now, I’ll say the parameters for what BindAction does: Our local function will be what we’d wanna interact with whenever it’s triggered by a Keybind in our BindAction parameter Let’s say I have this: local CAS = game:GetService("ContextActionService")ĬontextActionService:BindAction("Interact", handleAction, true, Enum.Ke圜ode.T, Enum.Ke圜ode.ButtonR1) Well, ContextActionService can be used to create cool custom actions by using multiple keybinds ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |