![]()
contextAction:BindAction('Reload',Reload(),true,Enum.KeyCode.R)
How in the world is this wrong?
![]()
contextAction:BindAction('Reload',Reload(),true,Enum.KeyCode.R)
How in the world is this wrong?
Can you tell me what you are using this? Also, please share all your code.
local contextAction = game:GetService('ContextActionService')
function Reload()
-- my code goes here. doesn't matters
end
contextAction:BindAction('Reloadd',Reload(),true,Enum.KeyCode.R)
How it’s possible this is not working…??
Well, just think. You are missing an argument and the context action service must not exist.
Nope.
As far as I know it should work.
If it’s a server script then it will not work. In addition, Reload should not have the (), you can see that in the documentation. So, this will work(simply remove the ()):
contextAction:BindAction('Reloadd', Reload, true, Enum.KeyCode.R)