- Gmod Third Person
- How To Go Into 3rd Person In Gmod
- How To Go On 3rd Person In Gmod
- 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!
- --Services
- local RunService = game:GetService('RunService')
- local TweenService = game:GetService('TweenService')
- --Player
- repeat wait()until Player.Character
- repeat wait()until Player.Character.HumanoidRootPart
- local HumanoidRootPart = Character.HumanoidRootPart
- local CamScript = Player.PlayerScripts.CameraScript
- Humanoid.AutoRotate =false
- --Mouse
- local Popper =true-- Sets whether Popper Cam behaviour is enabled
- local DeltaY =0
- local AngleV =0
- local SensitivityY =120-- Determines how large a change in vertical angle is through a mouse rotation
- local SensitivityX =120-- Determines how large a change in the horizontal angle is through a mouse rotation
- local A =false
- local D =false
- local Offset = CFrame.new(2,3,15)-- Determines the CFrame by which the camera is pushed from the CFrame of the HumanoidRootPart
- local MaxY =5*math.pi/12-- Determines maximum vertical angle
- local MinY =-5*math.pi/12-- Determines minimum vertical angle
- {true,false,false,false,0,0},
- {false,true,false,false,math.pi/2},
- {false,false,true,false,math.pi},
- {false,false,false,true,3*math.pi/2},
- }
- --Camera
- Cam.CameraType = Enum.CameraType.Scriptable
- local FakeCam = Cam:Clone()
- --Functions
- AngleH = AngleH - DeltaX/SensitivityX
- AngleV =math.clamp(AngleV - DeltaY/SensitivityY, MinY, MaxY)
- local FinalCFrame = CFrame.new(HumanoidRootPart.Position)* CFrame.Angles(0, AngleH,0)* CFrame.Angles(AngleV,0,0)* Offset
- if(Popper true)then
- local Direction =(FinalCFrame.p - Character.Head.Position).Unit *((Offset.p).Magnitude)
- local CheckRay = Ray.new(Character.Head.Position, Direction)
- local Part, Position = game.Workspace:FindPartOnRay(CheckRay, Character,false,true)
- local Distance = Cam:GetLargestCutoffDistance({Character})
- Cam.CoordinateFrame = Cam.CoordinateFrame * CFrame.new(0,0,-Distance)
- end
- if(W true)or(A true)or(S true)or(D true)then
- if(Val[1] W)and(Val[2] A)and(Val[3] S)and(Val[4] D)then
- local DirectionVector = Cam.CoordinateFrame.lookVector
- local TargetCFrame = CFrame.new(HumanoidRootPart.Position, HumanoidRootPart.Position + Vector3.new(DirectionVector.X,0, DirectionVector.Z))
- HumanoidRootPart.CFrame = HumanoidRootPart.CFrame:lerp(TargetCFrame * CFrame.Angles(0, Val[5],0),0.25)
- end
- end)
- UIS.InputChanged:Connect(function(Input, Bool)
- if(Input.UserInputType Enum.UserInputType.MouseMovement)then
- DeltaX = Input.Delta.X
- if(DeltaY ~= Input.Delta.Y)then
- end
- end
- if(Bool false)then
- W =true
- A =true
- S =true
- D =true
- end
- if(Bool false)then
- W =false
- A =false
- S =false
- D =false
- 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