This is only a small portion of the code, but when i press X it doesnt do anything but F works
RunService.RenderStepped:Connect(function()
local Player = game.Players.LocalPlayer
local Char = Player.Character
local Hum = Char:FindFirstChild("Humanoid")
if UIS:IsKeyDown(Enum.KeyCode.F or Enum.KeyCode.ButtonX) then
if Blocking == false then
Blocking = true
Remote:FireServer("Block",true)
end
else
if Blocking == true then
Blocking = false
Remote:FireServer("Block",false)
end
end
end)
I’m still a beginner at scripting and I’ve tried looking how to do this but I don’t understand any of it. All help appreciated.
you’d have to adjust your if statement to check IsKeyDown for F and X separately, so it’d be: if UIS:IsKeyDown(Enum.KeyCode.F) or UIS:IsKeyDown(Enum.KeyCode.ButtonX) then