Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make the mouse break free when you hold left control? [closed]

Asked by
Stravan 18
9 years ago
01self = script.Parent
02c = workspace.CurrentCamera
03rs = game:GetService("RunService")
04 
05player = game.Players.LocalPlayer
06char = player.Character or player.CharacterAdded:wait()
07humanoid = char:WaitForChild("Humanoid")
08 
09player.CameraMaxZoomDistance = 0.5
10humanoid.CameraOffset = Vector3.new(0,0,-0.5)
11 
12function updateCam()
13    if humanoid then
14        local y = c.CoordinateFrame.lookVector.Y
15        humanoid.CameraOffset = Vector3.new(math.max(3,1.5-y),math.abs(y/2)-y*3.8642337322235,7-math.abs(y))
View all 36 lines...

i've been struggling with this for a while. :(

0
What exactly are you asking? TheHospitalDev 1134 — 9y

Closed as Too Broad by TheHospitalDev, User#5423, and User#6546

This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.

Why was this question closed?