Overwriting arrow key functions

So, instead of turning your camera or making the player move, I wanted the arrow keys to shoot projectiles, like in The Binding of Isaac. How can I make this happen? I’ve looked around, but nothing actually tells me how to change the function of the arrow keys.

Have you tried this

yes, when i tried that, the wasd keys stopped working aswell

Then what about adding the wasd key to the additional binds as you can have more than one keycode in CAS.

Edit:
You could also try returning Enum.ContextActionService.Pass to pass inputs rather than sink and ignore the other binds.

listen i dont know what to do here
im not that knowledged of a scripter so i dont know about this CAS stuff
honestly all i have is the provided code

local ContextActionService = game:GetService("ContextActionService")

local function example()
	print("test")
end

ContextActionService:BindActionAtPriority("example", example, false, Enum.ContextActionPriority.High.Value, Enum.KeyCode.Left)

i dont know where to put that stuff

This post gives two solutions: forking the player module or using CAS

I’m not sure if the CAS method would fall to the same issue that you experienced with that other post (I dont see why either would, but tbh who knows), but forking the player module should work if that one doesn’t.