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: camera manipulation help

Previous Thread :: Next Thread 
Belleq is not online. Belleq
Joined: 05 Jun 2014
Total Posts: 21703
01 May 2016 09:35 AM
how would you make camera shake?

For example when you shoot a bullet, the camera would shake a bit, simulating the real world

heres what i have so far:

--------------------------------------
local camera = game.Workspace.CurrentCamera
local camera_sub = Instance.new("Part", workspace)
camera_sub.Size = Vector3.new(0,0,0)
camera_sub.Transparency = 1
camera_sub.Anchored = true
camera_sub.CanCollide = false

camera.CameraType = "Custom"
camera.CameraSubject = camera_sub
game.Players.LocalPlayer.CameraMaxZoomDistance = 0.5
game.Players.LocalPlayer.CameraMinZoomDistance = 0.5

game:GetService("RunService").Heartbeat:connect(function()
--local rotation = camera.CoordinateFrame - camera.CoordinateFrame.p
--camera_sub.CFrame = CFrame.new(camera_sub.Position) * rotation
if gun_reload_debounce then
camera_sub.Position = game.Players.LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(0,1.5,0) + Vector3.new(0,0.5,0)
else
camera_sub.Position = game.Players.LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(0,1.5,0)
end
end)


--------------------------------------------
the problem with this is the player's body doesnt "follow" the camera like it normally would when camera subject = humanoid

any help?
thanks


am rite? ( ͡° ͜ʖ ͡°)
Report Abuse
Belleq is not online. Belleq
Joined: 05 Jun 2014
Total Posts: 21703
01 May 2016 10:01 AM
bump


am rite? ( ͡° ͜ʖ ͡°)
Report Abuse
Belleq is not online. Belleq
Joined: 05 Jun 2014
Total Posts: 21703
01 May 2016 11:21 AM
bump2


am rite? ( ͡° ͜ʖ ͡°)
Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
01 May 2016 11:22 AM
check for the players position to be changed, then add vector3 to the current position of the camera


Report Abuse
Belleq is not online. Belleq
Joined: 05 Jun 2014
Total Posts: 21703
01 May 2016 11:23 AM
@jakea
the problem with this is the player's body doesnt "follow" the camera like it normally would when camera subject = humanoid



am rite? ( ͡° ͜ʖ ͡°)
Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
01 May 2016 11:32 AM
so just make the cameracframe the torso?


Report Abuse
Belleq is not online. Belleq
Joined: 05 Jun 2014
Total Posts: 21703
01 May 2016 11:33 AM
@jacob u have to supply a part for "custom" type of camera, and scriptable is laggy-ish


am rite? ( ͡° ͜ʖ ͡°)
Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
01 May 2016 11:34 AM
oh, i really didnt read the script, i just read the issue sorry


Report Abuse
Belleq is not online. Belleq
Joined: 05 Jun 2014
Total Posts: 21703
01 May 2016 11:34 AM
@jacob its ok rip


am rite? ( ͡° ͜ʖ ͡°)
Report Abuse
Belleq is not online. Belleq
Joined: 05 Jun 2014
Total Posts: 21703
01 May 2016 12:08 PM
bump3


am rite? ( ͡° ͜ʖ ͡°)
Report Abuse
DayxDreams is not online. DayxDreams
Joined: 08 Jan 2015
Total Posts: 443
01 May 2016 12:11 PM
https://www.youtube.com/watch?v=_wjFahULCK8

^tutorial


does not compute
Report Abuse
Belleq is not online. Belleq
Joined: 05 Jun 2014
Total Posts: 21703
01 May 2016 12:18 PM
@day wtf!?


am rite? ( ͡° ͜ʖ ͡°)
Report Abuse
DayxDreams is not online. DayxDreams
Joined: 08 Jan 2015
Total Posts: 443
01 May 2016 12:22 PM
I don't understand camera manipulation but I'm interested in the types of personality this forum has

there are serious people who are nice
there are serious people who are overly cocky and when they make a mistake they just brush them off
there are rich people who are like "I need someone to make this" without specifying what or the payment
there are people who have no humor


i'd write the rest
but there are actually thousands that i've noticed



does not compute
Report Abuse
Belleq is not online. Belleq
Joined: 05 Jun 2014
Total Posts: 21703
01 May 2016 12:45 PM
@day ok im not asking for a script to be written
im just asking how to do it

u dont need to send me to offsite links that are potentailly harmful to run your test
u can just make observations

and wat category do i fall into?


am rite? ( ͡° ͜ʖ ͡°)
Report Abuse
Belleq is not online. Belleq
Joined: 05 Jun 2014
Total Posts: 21703
01 May 2016 01:04 PM
bumppp


am rite? ( ͡° ͜ʖ ͡°)
Report Abuse
DayxDreams is not online. DayxDreams
Joined: 08 Jan 2015
Total Posts: 443
01 May 2016 01:06 PM
my tests are my tests so i run the tests the way i want to test the testststt test i like the word test

Right now, in a foruming aspect, you seem like a smart individual who has the potential to get confused easily, which isn't a rare aspect, you actually take things serious, but you approach them with a laid back attitude


i'm probably wrong
but
my head hurts rn so i can't analyze properly


does not compute
Report Abuse
Belleq is not online. Belleq
Joined: 05 Jun 2014
Total Posts: 21703
01 May 2016 01:07 PM
@days noice


am rite? ( ͡° ͜ʖ ͡°)
Report Abuse
Belleq is not online. Belleq
Joined: 05 Jun 2014
Total Posts: 21703
01 May 2016 03:47 PM
bump


am rite? ( ͡° ͜ʖ ͡°)
Report Abuse
Belleq is not online. Belleq
Joined: 05 Jun 2014
Total Posts: 21703
01 May 2016 04:53 PM
2


am rite? ( ͡° ͜ʖ ͡°)
Report Abuse
Belleq is not online. Belleq
Joined: 05 Jun 2014
Total Posts: 21703
01 May 2016 05:49 PM
k i give up lol


am rite? ( ͡° ͜ʖ ͡°)
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