How to add Character realism to your games in studio lite!

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

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

  • @axolol-
    @axolol-  14 дней назад +10

    Sorry for the late upload.
    Anyways heres the SmoothShiftLock script
    --SmoothShiftlock
    -- StarterCharacter script
    local player = game.Players.LocalPlayer
    local cam = workspace.CurrentCamera
    local char = player.Character
    local human = char:WaitForChild("Humanoid")
    local rootPart = char.PrimaryPart
    local upperTorso = char:WaitForChild("UpperTorso")
    local waistJoint = upperTorso:WaitForChild("Waist")
    -- Services
    local uis = game:GetService("UserInputService")
    local runService = game:GetService("RunService")
    local tweenService = game:GetService("TweenService")
    -- Globals
    local currentSpeed = 0;
    local currentTween = nil;
    human.Running:Connect(function(speed)
    currentSpeed = speed
    end)
    -- This was actually not needed to be disabled
    --human.AutoRotate = false
    local originalWaistC1 = waistJoint.C1
    local maxRotation = math.rad(65)
    runService:BindToRenderStep("vanityCamera", 400, function()
    local targetPosition = (cam.CFrame * CFrame.new(0,0,-1000)).p
    local torsoFront = rootPart.CFrame.LookVector
    local torsoRight = rootPart.CFrame.RightVector
    local vectorToTarget = (targetPosition - rootPart.Position)
    local rotation = math.atan2(torsoRight:Dot(vectorToTarget), torsoFront:Dot(vectorToTarget))
    -- Clamp the rotation
    if (rotation < -maxRotation) then
    rotation = -maxRotation
    elseif (rotation > maxRotation) then
    rotation = maxRotation
    end
    if (math.abs(rotation) == maxRotation and currentSpeed 0.5) then
    if (currentTween.PlaybackState == Enum.PlaybackState.Playing) then
    currentTween:Cancel()
    end
    end
    waistJoint.C1 = CFrame.Angles(0,rotation,0) * originalWaistC1
    end
    end)

    • @Best_Junior5
      @Best_Junior5 14 дней назад +1

      True Just Add Pastebin

    • @Best_Junior5
      @Best_Junior5 14 дней назад +1

      Or ControlC

    • @axolol-
      @axolol-  14 дней назад

      ​@@Best_Junior5Maybe in the future I'll make a pastebin.

    • @DarkHunter044
      @DarkHunter044 14 дней назад

      ​@@axolol-bro please can you make it for R6 script it doesn't work for R6 and for my game i need r6 pls can you adjust angles i tried but they wasn't perfect

    • @OwenChin-oe5hh
      @OwenChin-oe5hh 5 дней назад

      Dude I can't copy the comment?

  • @AprogameZ
    @AprogameZ 14 дней назад +2

    I tried this, and it worked perfectly!! Thanks for the tutorial!

    • @axolol-
      @axolol-  14 дней назад

      You're welcome!

  • @Lucas-x4e
    @Lucas-x4e 14 дней назад +2

    leave your like guys he deserves it

  • @NgọcNguyễnThị-d5o
    @NgọcNguyễnThị-d5o 14 дней назад +1

    you gonna break your spine trynna recreate that irl 😭😭

  • @thelevel100gamer4
    @thelevel100gamer4 14 дней назад +1

    yo tysm this is perfect for my pc2 game!

  • @KyleCummings-qd5hi
    @KyleCummings-qd5hi 14 дней назад +1

    Pls show us how to make view model like for a gun like rivals plsssssss

    • @axolol-
      @axolol-  13 дней назад

      Hmm I'll try, but it's probably gonna be really bad lol.

  • @AntonioAdams-s6k
    @AntonioAdams-s6k 14 дней назад +1

    Perfect!

  • @Kemehstar
    @Kemehstar 14 дней назад +1

    meet me in regretevator soon or later

    • @axolol-
      @axolol-  14 дней назад

      I understand

  • @Tfewlr
    @Tfewlr 14 дней назад +1

    does this works with R6?

    • @_deman
      @_deman 14 дней назад +1

      Of course no

  • @KINGBLOX-PH
    @KINGBLOX-PH 11 дней назад +1

    --

  • @SkyyDev
    @SkyyDev 12 дней назад +1

    Tutorial = Copy and paste

  • @EHamburgNews
    @EHamburgNews 9 дней назад +1

    You dont deserve 100 subscribers, You deserve 10000 subscribers!