Im trying to make a contextactionservice replace the button "R". So far i have,
local player = game.Players.LocalPlayer
local cas = game:GetService("ContextActionService")
halp pls
If you want to make when a player presses R then you can use UserInputService, a more understanding way to register button keys
so here
local UIS=game:GetService("UserInputService") UIS.InputBegan:connect(function(bttn) if bttn.KeyCode==Enum.KeyCode.R then print("The Key R was pressed") end end)