Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
- local CameraPart = Instance.new("Part")
- CameraPart.Parent = workspace
- CameraPart.Anchored = true
- CameraPart.Size = Vector3.new(4, 1, 2)
- CameraPart.CanCollide = false
- CameraPart.Position = Vector3.new(-20.182, 4.025, 241.055)
- CameraPart.Transparency = 1
- local player = game.Players.LocalPlayer
- local character = player.Character
- local cam = workspace.CurrentCamera
- cam.CameraSubject = CameraPart
- wait(5)
- cam.CameraSubject = character
- --[[local Camera = game.Workspace.Camera
- Camera.CameraType = Enum.CameraType.Scriptable
- Camera.CFrame = CFrame.new(-20.182, 4.025, 241.055)]]--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement