Im trying to figure out which key the user clicked but i cant seem to figure out how.
local function HandleAction(actionName, inputstate, InputObject)
print(InputObject) -- Only Outputs: "InputObject"
end
Im using Context ActionService btw.
Im trying to figure out which key the user clicked but i cant seem to figure out how.
local function HandleAction(actionName, inputstate, InputObject)
print(InputObject) -- Only Outputs: "InputObject"
end
Im using Context ActionService btw.
What are you trying to achieve? Why not use UserInputService, as it is much more easier to check what key the player pressed?
Example:
local UIS = game:GetService("UserInputService")
UIS.InputBegan:Connect(function(key)
print(key) -- Prints the key that was pressed
end)