How To Go 3rd Person In Gmod



How

  1. Gmod Third Person
  2. How To Go Into 3rd Person In Gmod
  3. How To Go On 3rd Person In Gmod
  4. How To Enable 3rd Person In Gmod

Gmod Third Person

Apr 1st, 2020

How To Go Into 3rd Person In Gmod

Never

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time. Hello everyone, Flamep1ckle here, and today I will be giving you a tutorial on how to put yourself in 3rd person in Garry's Mod. I hope you enjoy.

Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
Gmod
  1. --Services
  2. local RunService = game:GetService('RunService')
  3. local TweenService = game:GetService('TweenService')
  4. --Player
  5. repeat wait()until Player.Character
  6. repeat wait()until Player.Character.HumanoidRootPart
  7. local HumanoidRootPart = Character.HumanoidRootPart
  8. local CamScript = Player.PlayerScripts.CameraScript
  9. Humanoid.AutoRotate =false
  10. --Mouse
  11. local Popper =true-- Sets whether Popper Cam behaviour is enabled
  12. local DeltaY =0
  13. local AngleV =0
  14. local SensitivityY =120-- Determines how large a change in vertical angle is through a mouse rotation
  15. local SensitivityX =120-- Determines how large a change in the horizontal angle is through a mouse rotation
  16. local A =false
  17. local D =false
  18. local Offset = CFrame.new(2,3,15)-- Determines the CFrame by which the camera is pushed from the CFrame of the HumanoidRootPart
  19. local MaxY =5*math.pi/12-- Determines maximum vertical angle
  20. local MinY =-5*math.pi/12-- Determines minimum vertical angle
  21. {true,false,false,false,0,0},
  22. {false,true,false,false,math.pi/2},
  23. {false,false,true,false,math.pi},
  24. {false,false,false,true,3*math.pi/2},
  25. }
  26. --Camera
  27. Cam.CameraType = Enum.CameraType.Scriptable
  28. local FakeCam = Cam:Clone()
  29. --Functions
  30. AngleH = AngleH - DeltaX/SensitivityX
  31. AngleV =math.clamp(AngleV - DeltaY/SensitivityY, MinY, MaxY)
  32. local FinalCFrame = CFrame.new(HumanoidRootPart.Position)* CFrame.Angles(0, AngleH,0)* CFrame.Angles(AngleV,0,0)* Offset
  33. if(Popper true)then
  34. local Direction =(FinalCFrame.p - Character.Head.Position).Unit *((Offset.p).Magnitude)
  35. local CheckRay = Ray.new(Character.Head.Position, Direction)
  36. local Part, Position = game.Workspace:FindPartOnRay(CheckRay, Character,false,true)
  37. local Distance = Cam:GetLargestCutoffDistance({Character})
  38. Cam.CoordinateFrame = Cam.CoordinateFrame * CFrame.new(0,0,-Distance)
  39. end
  40. if(W true)or(A true)or(S true)or(D true)then
  41. if(Val[1] W)and(Val[2] A)and(Val[3] S)and(Val[4] D)then
  42. local DirectionVector = Cam.CoordinateFrame.lookVector
  43. local TargetCFrame = CFrame.new(HumanoidRootPart.Position, HumanoidRootPart.Position + Vector3.new(DirectionVector.X,0, DirectionVector.Z))
  44. HumanoidRootPart.CFrame = HumanoidRootPart.CFrame:lerp(TargetCFrame * CFrame.Angles(0, Val[5],0),0.25)
  45. end
  46. end)
  47. UIS.InputChanged:Connect(function(Input, Bool)
  48. if(Input.UserInputType Enum.UserInputType.MouseMovement)then
  49. DeltaX = Input.Delta.X
  50. if(DeltaY ~= Input.Delta.Y)then
  51. end
  52. end
  53. if(Bool false)then
  54. W =true
  55. A =true
  56. S =true
  57. D =true
  58. end
  59. if(Bool false)then
  60. W =false
  61. A =false
  62. S =false
  63. D =false
  64. end

How To Go On 3rd Person In Gmod

How to go third person in gmod Horizon TGB. Unsubscribe from Horizon TGB? How to Dance in Gmod (Different Dance Modes/Types 2020) - Duration: 1:23. Gmod Cheats Codes – How to enable Console? Go to Options (main menu), then to the keyboard tab, where you have to select Advanced, check Enable Developer Console , Ok and apply changes. Now you have the cheating console enabled and you just have to press “” to open the console while playing.

RAW Paste Data

How To Enable 3rd Person In Gmod





Comments are closed.