Pls some one tell me how to remove shift lock from this item https://create.roblox.com/store/asset/4842215723/Shotgun
#Pls remove shift lock (watch video)
1 messages · Page 1 of 1 (latest)
.
uhh
thank god i can see deleted messages
@heady kayak yes i asked chat gpt it didnt do nothing
oh its just a mod i have installed
no one else can see ur messages but me
the model i used was from roblox
i can send it to you
i did what u said it didnt work
Please use player.DevEnableMouseLock = false on Equip, and make it true on UnEquip
hm
mb
let me see then ig
** You are now Level 2! **
there is something in the gun thats making it shift lock
1 minute ig
can you send the script?
so i deleted the gun from the game and it was def the gun, and when i added the gun back and the shift lock came
deleted it cuz it broke the gun for some reason
like the gun disapeared after doing it
I am a little confused
So, you already have shift lock disabled in your game
but when you add the gun, it enables shift lock right?
like i said something in the code is reenabling it
in the guns code
Ye so what I understood is correct right?
it's getting enabled by the gun
as you said so
can you send me the gun code so that I check it out
nvm you posted here
I will check it out
already done
What
nvm
So did you fine the issue?
** You are now Level 2! **
like I mean you found a way to fix it
Pls do ping me if you did do it
okay
😁 🙏
Yo, so I have been searching, and first thing I found is this script "ShoulderCamera" which modifies the camera
I also found in this script called "WeaponsSystem" the line which enables the camera once the player joins, it's line 186 as in the screenshots attached, I have commented it and the issue was fixed, I am not good in scripting but will try to make it only enable the camera when the player holds the shotgun
omg
thank you so much
i set the camera as false and it worked
thank you so much
My pleasure! : D
You are welcome
Thanks God it worked 😄
But uh btw the aiming with the shotgun is a little broken so I am trying to find a solution
Honestly I can't really find a way to make the camera toggle when the player holds the shotgun, I tried many ways, including this script:
local thisTool = script.Parent
thisTool.Equipped:Connect(function()
local WeaponsSystem = require(game.ReplicatedStorage.WeaponsSystem.WeaponsSystem)
WeaponsSystem.ToggleCameraOn()
print("TestOn")
end)
thisTool.Unequipped:Connect(function()
local WeaponsSystem = require(game.ReplicatedStorage.WeaponsSystem.WeaponsSystem)
WeaponsSystem.ToggleCameraOff()
print("Test")
end)```
By adding this part in the WeaponsSystem module script:
```LUA
function ToggleCameraOn()
WeaponsSystem.camera:setEnabled(true)
end
function ToggleCameraOff()
WeaponsSystem.camera:setEnabled(false)
end```
but
I always get this error:
CameraGLGW:8: attempt to call a nil value
I was thinking about that
I’ll try to fix it
I can’t finish it rn
Imma do it tmr
idk i turned it to false then the shooting was bad
idk man i tried but its not working