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
|
  |
| Joined: 05 Jun 2014 |
| Total Posts: 21703 |
|
| |
|
Belleq
|
  |
| Joined: 05 Jun 2014 |
| Total Posts: 21703 |
|
| |
|
|
| 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
|
  |
| 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 |
|
|
|
| 01 May 2016 11:32 AM |
so just make the cameracframe the torso?
|
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 01 May 2016 11:34 AM |
oh, i really didnt read the script, i just read the issue sorry
|
|
|
| Report Abuse |
|
|
Belleq
|
  |
| Joined: 05 Jun 2014 |
| Total Posts: 21703 |
|
|
| 01 May 2016 11:34 AM |
@jacob its ok rip
am rite? ( ͡° ͜ʖ ͡°) |
|
|
| Report Abuse |
|
|
Belleq
|
  |
| Joined: 05 Jun 2014 |
| Total Posts: 21703 |
|
| |
|
|
| 01 May 2016 12:11 PM |
https://www.youtube.com/watch?v=_wjFahULCK8
^tutorial
does not compute |
|
|
| Report Abuse |
|
|
Belleq
|
  |
| Joined: 05 Jun 2014 |
| Total Posts: 21703 |
|
|
| 01 May 2016 12:18 PM |
@day wtf!?
am rite? ( ͡° ͜ʖ ͡°) |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 05 Jun 2014 |
| Total Posts: 21703 |
|
|
| 01 May 2016 01:04 PM |
bumppp
am rite? ( ͡° ͜ʖ ͡°) |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 05 Jun 2014 |
| Total Posts: 21703 |
|
|
| 01 May 2016 01:07 PM |
@days noice
am rite? ( ͡° ͜ʖ ͡°) |
|
|
| Report Abuse |
|
|
Belleq
|
  |
| Joined: 05 Jun 2014 |
| Total Posts: 21703 |
|
| |
|
Belleq
|
  |
| Joined: 05 Jun 2014 |
| Total Posts: 21703 |
|
| |
|
Belleq
|
  |
| Joined: 05 Jun 2014 |
| Total Posts: 21703 |
|
|
| 01 May 2016 05:49 PM |
k i give up lol
am rite? ( ͡° ͜ʖ ͡°) |
|
|
| Report Abuse |
|
|