Ive tried to replicate robloxs shift lock system in ue5 with little to no experience of any type of developing. I used a bit of chatgpt which didnt end up working cause chatgpt is stupid honestly Idek how i ended up putting it together but honestly it almost works im really suprised with myself (ik its prolly slop and inefficient) but what im here for today is to see if anyone can help me find out why everytime i interact with my mouse it either works for shift lock or it works for unshiftlock a better way i can put it is when i click a button on my mouse the mouse movement is compatible with shiftlock and when i click again it works with unshiftlock, I can go more in depth if u dont know what I mean cause its kinda hard to tell what im doing if you dont get a view of the buttons im pressing, but if i did it correctly there should be a link below for the video
(to make it easier)-
(in between each violent shake i had to interact with my mouse to switch)
mouse/screen shaking up and down violently means its working
mouse/screen shaking left and right violently means its NOT working
Yes youre right, thank you. So basically when youre shift locked you have a crosshair that appears in the middle of your screen and your characters rotation is locked to your camera rotation which is in turn locked to your mouse movement. (kinda like fortnite and other third person shooters) you have a third person pov of the back of your roblox character and its locked to that position while shiftlocked, usually this feature is used for better control over the roblox character. When not shiftlocked your character has free range movement that will face foward and walk towards the direction your moving whether you press w a s or d (kinda like souls like game) you also no longer have control of your camera rotation unless you hold down right click. on top of that while you are not shift locked you have a free range cursor you can use for various things such as interacting with the ui, interacting with npcs/chest or even aiming projectiles that roblox game might contain. (just to clarify the problem im having is everytime I transition between shiftlock and nonshiftlock the mouse (im assuming) doesnt recognize I switched until I press a mouse button then it corrects itself and shiftlock/nonshift lock starts working normally again)