How do I make the mouse break free when you hold left control? [closed]
02 | c = workspace.CurrentCamera |
03 | rs = game:GetService( "RunService" ) |
05 | player = game.Players.LocalPlayer |
06 | char = player.Character or player.CharacterAdded:wait() |
07 | humanoid = char:WaitForChild( "Humanoid" ) |
09 | player.CameraMaxZoomDistance = 0.5 |
10 | humanoid.CameraOffset = Vector 3. new( 0 , 0 ,- 0.5 ) |
14 | local y = c.CoordinateFrame.lookVector.Y |
15 | humanoid.CameraOffset = Vector 3. new(math.max( 3 , 1.5 -y),math.abs(y/ 2 )-y* 3.8642337322235 , 7 -math.abs(y)) |
20 | if part and part:IsA( "Hat" ) and part:WaitForChild( "Handle" ) then |
23 | if part and part:IsA( "BasePart" ) then |
24 | part.LocalTransparencyModifier = 0 |
25 | part.Changed:connect( function () |
26 | part.LocalTransparencyModifier = 0 |
31 | for _,v in pairs (char:GetChildren()) do |
35 | char.ChildAdded:connect(lock) |
36 | rs.RenderStepped:connect(updateCam) |
i've been struggling with this for a while. :(