How to make a Realitic First Person Camera with Bobble ROBLOX Studio

Поделиться
HTML-код
  • Опубликовано: 1 ноя 2024

Комментарии • 49

  • @jaxon_ninja24
    @jaxon_ninja24 Год назад +7

    i'm having trouble with the script... is this right
    local Intensity = 10
    local xMagnitude = .5
    local yMagnitude = .5
    local plr = game:GetService("Players")
    local rs = game:GetService("ReplicatedStorage")
    local RunService = game:GetService("RunService")
    local player = plr.LocalPlayer
    local cam = workspace.CurrentCamerca
    local char = player.Character or player.CharacterAdded:Wait()
    local hum = char:WaitForChild("Humanoid")
    player.CameraMaxZoomDistance = 0
    player.CameraMinZoomDistance = 0
    function update()
    local currentTime = tick()
    if hum.MoveDirection.Magnitude > 0.5 then
    local x = math.cos(currentTime + Intensity) + xMagnitude
    local y = math.abs(math.sin(currentTime + Intensity)) + yMagnitude
    local bobble = Vector3.new(x,y. 0.5)

    • @GRSLogics
      @GRSLogics  Год назад +3

      Try this
      --//by GRS//

      print("First Person Script by GRS")

      --//Vars

      local Intensity = 10

      local xMagnitude = .5
      local yMagnitude = .5

      local plr = game:GetService("Players")
      local rs = game:GetService("ReplicatedStorage")
      local RunService = game:GetService("RunService")

      local player = plr.LocalPlayer
      local cam = workspace.CurrentCamera
      local char = player.Character or player.CharacterAdded:Wait()
      local hum = char:WaitForChild("Humanoid")

      --//Setups

      player.CameraMaxZoomDistance = 0
      player.CameraMinZoomDistance = 0

      --//Functions

      function update()
      local currentTime = tick()
      if hum.MoveDirection.Magnitude > 0.5 then
      local x = math.cos(currentTime * Intensity) * xMagnitude
      local y = math.abs(math.sin(currentTime * Intensity)) * yMagnitude

      local bobble = Vector3.new(x,y, 0.5)

      hum.CameraOffset = hum.CameraOffset:lerp(bobble, .25)

      return
      end
      hum.CameraOffset *= .75
      end

      --//Connections

      RunService.RenderStepped:Connect(update)

      --//by GRS//

    • @jaxon_ninja24
      @jaxon_ninja24 Год назад +1

      @@GRSLogics thank you so much, I've already figured out what I need to do, and I added somethings and made the camera the way I wanted it to, but thanks and also, I shall be putting your credits in my script :D

    • @GRSLogics
      @GRSLogics  Год назад +1

      @@jaxon_ninja24 Yw bro if you got any video suggestions you can write anything in the comments I am always looking for new projects and content.

    • @OrcaGuyreal
      @OrcaGuyreal Год назад

      @@GRSLogics is it okay if I dont add credits please? thanks
      sorry I just am trying to make a myth game and it would look really werid with you credited you know?

    • @Tony_Snell_Fan
      @Tony_Snell_Fan Год назад

      @@OrcaGuyreal players don't see credits in game

  • @cuzabi
    @cuzabi 9 месяцев назад +1

    Thx a lot! Very customizable as well which I love!

    • @GRSLogics
      @GRSLogics  9 месяцев назад +1

      No Problem gang

  • @nejc5606
    @nejc5606 Год назад +2

    Thanks man, it worked! You're the only right one, that had the code right. You deserve a sub!

    • @GRSLogics
      @GRSLogics  Год назад

      Np thank you for the Sub

  • @Sand_the_Lazy_sand
    @Sand_the_Lazy_sand Год назад +8

    nice, but i also need the script where if youre idle, you also bobble, but very slowly.

  • @ProjectNukeFR
    @ProjectNukeFR 2 года назад +4

    Nice vid man, keep it up!

  • @watermelonbtw
    @watermelonbtw Год назад

    Absolute legend! Thanks man!

  • @realdashingg
    @realdashingg Год назад +1

    Ur actually a god ty homie

  • @Greengyat3000
    @Greengyat3000 Год назад

    Thanks, have a nice day

  • @Ibxtro
    @Ibxtro Год назад +1

    thanks you're my man !

  • @Cupcake3
    @Cupcake3 Год назад

    it worked, thank you

  • @Freprepp
    @Freprepp Год назад +1

    thanks man it does work

  • @doffyso
    @doffyso Год назад

    yo bro, can you make a vid how to fix firstperson body with camera bobble?

  • @moonpowerofficial
    @moonpowerofficial Год назад

    The effect is the same as another youtubers script did you copy it?
    It also didn't even do the effects like you said it would :(

    • @GRSLogics
      @GRSLogics  Год назад +1

      No I did not copy from anyone.

  • @milosdev
    @milosdev Год назад +1

    ay is it possible to make the script to see our legs and body

    • @GRSLogics
      @GRSLogics  Год назад +1

      It is...You want me to make a vid on that?

    • @henryaz_
      @henryaz_ 4 месяца назад

      @@GRSLogics idk if u still read these replies but yes that would be cool

  • @GRSLogics
    @GRSLogics  Год назад +1

    dang we got 2.5k views ty!

  • @фризи-ы
    @фризи-ы 2 года назад +2

    how to unlock camera?

    • @GRSLogics
      @GRSLogics  2 года назад +2

      Should i make a video on that?

    • @N1kieW
      @N1kieW Год назад

      @@GRSLogics kind of late since this video has been uploaded about a month ago, but it would really help if you made it third person

    • @EdionYT
      @EdionYT Год назад

      how do you fix it for if you die somehow@@GRSLogics

  • @MoazAhmed-fz2yb
    @MoazAhmed-fz2yb Год назад +2

    yo dude used your work for robux XDDDD

  • @ambergravley114
    @ambergravley114 Год назад +1

    How Did He Make Another one of those things before the one?

    • @GRSLogics
      @GRSLogics  Год назад +1

      by edeting the video? or what do you mean?

  • @_faan
    @_faan Год назад

    Doesnt work..

    • @GRSLogics
      @GRSLogics  Год назад

      copy and paste from my pastebin and put a localscript in StarterCharacterScripts. I hope that helped

    • @KomedyKatAnimations
      @KomedyKatAnimations Год назад

      @@GRSLogics I did that and it still didn't work...

    • @Aaaaidkhelplolakajwjmem.
      @Aaaaidkhelplolakajwjmem. Год назад +2

      Hi people in the replies, I think ik what the problem is but idk how to explain it lol = try copy and pasting this? --//Vars

      local Intensity = 10

      local xMagnitude = .5
      local yMagnitude = .5

      local plr = game:GetService("Players")
      local rs = game:GetService("ReplicatedStorage")
      local RunService = game:GetService("RunService")

      local player = plr.LocalPlayer
      local cam = workspace.CurrentCamera
      local char = player.Character or player.CharacterAdded:Wait()
      local hum = char:WaitForChild("Humanoid")

      --//Setups

      player.CameraMaxZoomDistance = 0
      player.CameraMinZoomDistance = 0

      --//Functions

      function update()
      local currentTime = tick()
      if hum.MoveDirection.Magnitude > 0.5 then
      local x = math.cos(currentTime * Intensity) * xMagnitude
      local y = math.abs(math.sin(currentTime * Intensity)) * yMagnitude

      local bobble = Vector3.new(x,y, 0.5)

      hum.CameraOffset = hum.CameraOffset:lerp(bobble, .25)

      return
      end
      hum.CameraOffset *= .75
      end

      --//Connections

      RunService.RenderStepped:Connect(update)

    • @GRSLogics
      @GRSLogics  Год назад

      @@KomedyKatAnimations Well then idk

  • @lemonbus.aep10
    @lemonbus.aep10 Год назад

    fake, didnt work

    • @GRSLogics
      @GRSLogics  Год назад +1

      It does work you just have to follow the tutorial bro or copy the script on my pastebin

    • @AstroFrogYT
      @AstroFrogYT Год назад

      @@GRSLogics BRO IT DEFINETILY DOESN'T WORK I GRABBED IT FROM YOUR PASTEBIN EVEN AFTER making it myself and it doesn't work

  • @limiz_YT
    @limiz_YT 10 месяцев назад

    can you make it so that in third person it stops bobbing

  • @minhnhatnguyen1976
    @minhnhatnguyen1976 Год назад

    --//by GRS//

    print("First Person Script by GRS")

    --//Vars

    local Intensity = 10

    local xMagnitude = .5
    local yMagnitude = .5

    local plr = game:GetService("Players")
    local rs = game:GetService("ReplicatedStorage")
    local RunService = game:GetService("RunService")

    local player = plr.LocalPlayer
    local cam = workspace.CurrentCamera
    local char = player.Character or player.CharacterAdded:Wait()
    local hum = char:WaitForChild("Humanoid")

    --//Setups

    player.CameraMaxZoomDistance = 0
    player.CameraMinZoomDistance = 0

    --//Functions

    function update()
    local currentTime = tick()
    if hum.MoveDirection.Magnitude > 0.5 then
    local x = math.cos(currentTime * Intensity) * xMagnitude
    local y = math.abs(math.sin(currentTime * Intensity)) * yMagnitude

    local bobble = Vector3.new(x,y, 0.5)

    hum.CameraOffset = hum.CameraOffset:lerp(bobble, .25)

    return
    end
    hum.CameraOffset *= .75
    end

    --//Connections

    RunService.RenderStepped:Connect(update)

    --//by GRS//
    it doesnt work