Ik I already did this. Just need the camera to work.
Sadly, I can’t seem to find a fix for that. I suggest asking for help from someone else as I am still not as good with Camera Manipulation. Anyway, here’s the final place. Example.rbxl (22.3 KB)
Hope this helped in any way possible, have an amazing rest of your day/night.
Tysm! I’ll find another person that could fix my problem or I could try fixing it myself. Have a good day/night!
Actually, I have a question. I could make a similar to shiftlock system, but it’s more like the GTA V camera system. Do you want this type of camera or not?
Wdym by more like GTA V camera system?
Alright, here’s a place example. LeftAlt to toggle the camera. GTA V Type of camera.rbxl (23.5 KB)
Edit
Credit to: @vsnry for the camera.
Oh no I don’t want it to be like that. I want it so that the character will move with the mouse aka shift lock.
Quick question: Do you want the shiftlock enabled when the player joins?
Yes I do. I want it to be enabled at the start and when you hold alt it disables.
Alright, I managed to get another way to fix shiftlock, now I’m working on the keybind, I’ll try to fix this.
Thank you so much for tryna help me for a long long time
FINALLY! I found a fix, I’ll send the place in a second. Though there is a slight delay when switching between the camera modes. Shiftlock Camera_Mode (1).rbxl (131.1 KB)
RightAlt is used to toggle it back on.
-- Final keybind code
local UIS = game:GetService("UserInputService")
_G.ForceShiftLock = true
UIS.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.RightAlt then
_G.ForceShiftLock = true
end
end)
UIS.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.LeftAlt then
_G.ForceShiftLock = false
end
end)
When I play I can’t move my mouse but if I toggle it on and off it works. Do you know why?
Most likely causes it, I suggest you publish and try it in game.
It doesn’t fix it. It’s the same in studio and in game. When I spawn in I can’t move my mouse and if I toggle it on and off it works.
Where did you place the scripts?
In StarterPlayerScripts, It’s the same on the place you sent and my game.
Pretty sure that this line caused it.
Though I’m unsure of how to fix this.
Edit
This fixed it:
_G.ForceShiftLock = true
Line 12 - ForceShiftLockScript
I suppose that this solved your problem, let me know if it didn’t. Also, feel free to change the keybinds. Hope you have an amazing rest of your day/night.
It’s the same line lmao