local uis = game:GetService("UserInputService")
local LockerCenter = --what should I do here?
uis.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.Q and LockCenter == true then
print("Hey it is true")
end
end)
local uis = game:GetService("UserInputService")
local LockerCenter = true
uis.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.Q and LockCenter == true then
print("Hey it is true")
end
end)
My bad, I thought it was just to see if the “LockCenter” was true. Yes, as @EmbatTheHybrid said to check if the player has lockCenter you have to get their MouseBehavior.