generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Roblox broke the camera D:

Previous Thread :: Next Thread 
FearlessBiscuit is not online. FearlessBiscuit
Joined: 16 Jun 2013
Total Posts: 1157
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 is online. 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
FearlessBiscuit is not online. FearlessBiscuit
Joined: 16 Jun 2013
Total Posts: 1157
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 is online. 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
FearlessBiscuit is not online. FearlessBiscuit
Joined: 16 Jun 2013
Total Posts: 1157
11 Jul 2015 05:34 PM
elements cuz the whole script is 5000+ long ;-;
Report Abuse
FearlessBiscuit is not online. FearlessBiscuit
Joined: 16 Jun 2013
Total Posts: 1157
11 Jul 2015 05:57 PM
b
Report Abuse
FearlessBiscuit is not online. FearlessBiscuit
Joined: 16 Jun 2013
Total Posts: 1157
11 Jul 2015 06:40 PM
b
Report Abuse
FearlessBiscuit is not online. FearlessBiscuit
Joined: 16 Jun 2013
Total Posts: 1157
11 Jul 2015 06:56 PM
b pyah
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image