Hey all
So basically I’ve been making a slide system for my game,.
In order to slide you must hold shift and press C
HOWEVER, when holding shift, the C input wont register. I have not tested this with other keys(Im assuming its only C, since i can still move with W A S D)
And yes, i tried using print statements for debugging, and that confirmed my thoughts.
Indeed when i held shift, the C input wont register.
IMPORTANT
It appears to work perfectly fine on Roblox, but not in Studio.
Is there any possible way to solve this, since its a pain to have to update in studio and playtest directly on Roblox.
Thanks a lot for reading, any help is appreciated!!
Can we see your code? Currently I am thinking that this might be your solution:
local shift = 0
local c = 0
game:GetService("UserInputService").InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.LeftShift or input.KeyCode == Enum.KeyCode.RightShift then
shift = 1
elseif input.KeyCode == Enum.KeyCode.C then
c = 1
end
if shift == 1 and c == 1 then
print("Dash Code here")
end
end)
game:GetService("UserInputService").InputEnded:Connect(function(input)
if input.KeyCode == Enum.KeyCode.LeftShift or input.KeyCode == Enum.KeyCode.RightShift then
shift = 0
elseif input.KeyCode == Enum.KeyCode.C then
c = 0
end
end)
This also happens to me but in the reverse I do not know why but it happens to not work in game with control+ C with me but in studio it works perfectly fine.
Could you explain it more properly? Seems like you and many people have an issue wiht Studio not registering Shift+C. While testing, I didn’t have the issue.
First of all, go to FILE > Advanced > Customize Shortcuts…