Why do AZERTY keyboards need to press W+LeftShift+Z to sprint while it should be just Z+LeftShift
local function isHoldingWAndShift()
local shift = false
local w = false
for i,v in pairs(game:GetService("UserInputService"):GetKeysPressed()) do
if v.KeyCode.Name == game:GetService("UserInputService"):GetStringForKeyCode(Enum.KeyCode.W) then
w = true
elseif v.KeyCode == Enum.KeyCode.LeftShift then
shift = true
end
end
if w and shift then
return true
else
return false
end
end