Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- initialize local variables
- local camera = workspace.CurrentCamera
- local player = game.Players.LocalPlayer
- local character = player.Character
- local humanoid = character.Humanoid
- -- camera settings
- player.CameraMaxZoomDistance = 0.5 -- force first person
- camera.FieldOfView = 100
- humanoid.CameraOffset = Vector3.new(0, 0, -1)
- -- set and keep every body part Transparency to its real transparency
- for childIndex, child in pairs(character:GetChildren()) do
- if child:IsA("BasePart") and child.Name ~= "Head" then
- child:GetPropertyChangedSignal("LocalTransparencyModifier"):Connect(function()
- child.LocalTransparencyModifier = child.Transparency
- end)
- child.LocalTransparencyModifier = child.Transparency
- end
- end
- -- if the player steps in a vehicle
- camera:GetPropertyChangedSignal("CameraSubject"):Connect(function()
- if camera.CameraSubject:IsA("VehicleSeat") then
- camera.CameraSubject = humanoid
- end
- end)
Advertisement
Comments
-
- it doesent work
-
- i lov dis scripp <3
-
- The script worked! i just removed the zoom limit. If the script did not work, then you did something wrong. Btw the script has to be in SCS (Starter Character Scripts).
Add Comment
Please, Sign In to add comment
Advertisement