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 » Scripting Helpers
Home Search
 

Re: camera manipulation?

Previous Thread :: Next Thread 
REM25 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
11 May 2014 09:16 PM
how do I make like a camera sorta moving up and down so it adds a realistic effect?
Report Abuse
devUUIdiot is not online. devUUIdiot
Joined: 18 Dec 2013
Total Posts: 122
11 May 2014 09:18 PM
u need to make scrip-tabel and wen there walk u move camera cordinte fram
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
11 May 2014 09:30 PM
Camera Manipulation is VERY HARD for a scripter of your skill. If someone were to give you a script for it, you wouldn't even understand it.
Report Abuse
REM25 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
11 May 2014 09:46 PM
lol how would u know? ;) I can understand scripts very well but I cant write it as good as I can understand it
Report Abuse
CentricGalaxy is not online. CentricGalaxy
Joined: 17 Nov 2013
Total Posts: 106
11 May 2014 09:48 PM
@rem25 ik what you mean, like a realistic walking/running and the camera moves tiled from side to side right?
Report Abuse
C0mmando323 is not online. C0mmando323
Joined: 15 Dec 2012
Total Posts: 394
11 May 2014 10:16 PM
Well you'd have a script, right, and you'd have 3 functions or so. The first function would be the moving the camera up and down as long as the W key is held down. (Suggesting that the camera bobs up and down when you walk). The second function would be set off when a player hits a key. This function would detect if that key is W and then set WIsHeldDown to true. The third function would set off if a player lets go of a key. This function would detect if the key being let go of is W. It would then set WIsHeldDown to false. Your script would be something like this (it needs to be in a local script) (and I'd normally have spacing like tabs as well):

function Move(key)
if key == "w" then
while WIsHeldDown == true do
CAMERAMANIPULATIONSCRIPTHERE
end
end
end

function KeyDownCheck(key)
if key == "w" then
WIsHeldDown = true
end
end

function KeyUpCheck(key)
if key == "w" then
WIsHeldDown = false
end
end

mouse = game.Players.LocalPlayer:GetMouse()
mouse.KeyDown:connect(Move)
mouse.KeyDown:connect(KeyDownCheck)
mouse.KeyDown:connect(KeyUpCheck)
Report Abuse
REM25 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
11 May 2014 10:18 PM
ok thanks imma play around with this and inform u if I have any problems :)
Report Abuse
REM25 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
11 May 2014 10:19 PM
@centric yes but I also want the camera to sway a bit when they're not moving just to add realisticness
Report Abuse
CentricGalaxy is not online. CentricGalaxy
Joined: 17 Nov 2013
Total Posts: 106
11 May 2014 10:22 PM
@c0m so where would you put this local script into?
Report Abuse
C0mmando323 is not online. C0mmando323
Joined: 15 Dec 2012
Total Posts: 394
11 May 2014 10:33 PM
@Centric

I would put it in the StarterGui. That's just where I put my local scripts. You also can put it in the StarterPack.
Report Abuse
C0mmando323 is not online. C0mmando323
Joined: 15 Dec 2012
Total Posts: 394
11 May 2014 10:34 PM
@REM

Awesome, have fun! I'll be interested to see how this turns out!
Report Abuse
REM25 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
11 May 2014 10:34 PM
or the players camera^ that's local too but Startergui is the best choice
Report Abuse
C0mmando323 is not online. C0mmando323
Joined: 15 Dec 2012
Total Posts: 394
11 May 2014 10:35 PM
Yeah. I forgot about that, you could do that too.
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
11 May 2014 10:36 PM
Scripts dont run in camera..
any scripts..

Uust like scripts dont run in lighting, or the player itself
Report Abuse
C0mmando323 is not online. C0mmando323
Joined: 15 Dec 2012
Total Posts: 394
11 May 2014 10:44 PM
I haven't done it in a while, I think you used to be able to. I think so, I've never experimented with it much.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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