They are just the buttons that will call the bound function. In that example, you are basically keybinding the spacebar and the X button on xbox to the JumpButtonAction function. Depending on the context of the action, the function will be called when you press one of those two.
So that means I don’t have to do both of these functions?
uis.InputBegan:Connect(function(input)
if not forceDeb then
if input.KeyCode == Enum.KeyCode.E then
forceEvent:FireServer(plr:WaitForChild("ForceSkillType").Value)
forceDeb = true
wait(1)
forceDeb = false
end
end
end)
local function mobileForce()
if not forceDeb then
forceEvent:FireServer(plr:WaitForChild("ForceSkillType").Value)
forceDeb = true
wait(1)
forceDeb = false
end
end