|
| 11 Jul 2015 05:14 PM |
Well b4 the update i could shoot my guns blah blah and they have recoil now they dont :D
function updateCamera() if inMap then user.Humanoid.WalkSpeed = 0;
cam.CameraType = "Scriptable"; cam.CoordinateFrame = CFrame.new(user.Head.CFrame.p+Vector3.new(0, 1111, 0), user.Head.CFrame.p); cam:SetRoll(math.pi/2); elseif zoom then cam.CameraType = "Scriptable"; cam.CoordinateFrame = CFrame.new(zoomTarget+(user.Head.CFrame.p-zoomTarget).unit, zoomTarget); elseif not vehicle then cam.CameraType = "Custom"; end if GUI.gameData.fov.Value > 80 then GUI.gameData.fov.Value = 80; elseif GUI.gameData.fov.Value < 20 then GUI.gameData.fov.Value = 20; end if GUI.gameData.blood.Value < 1500 then local shake = 1-(GUI.gameData.blood.Value/1500); local fov = GUI.gameData.fov.Value+math.random(-40, 40)/10*shake;
if fov > 80 then fov = 80; elseif fov < 20 then fov = 20; end
cam.FieldOfView = fov; else cam.FieldOfView = GUI.gameData.fov.Value; end end |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 11 Jul 2015 05:19 PM |
| Where are all your tags referenced? GUI, cam, etc? |
|
|
| Report Abuse |
|
|
|
| 11 Jul 2015 05:22 PM |
they are in here local GUI = script.Parent.Parent; local user = player.Character; local cam = workspace.CurrentCamera; local inMap = false; |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 11 Jul 2015 05:27 PM |
| Is this your whole script, or are those elements separated and referenced in module scripts, or something? |
|
|
| Report Abuse |
|
|
|
| 11 Jul 2015 05:34 PM |
| elements cuz the whole script is 5000+ long ;-; |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|