RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"How to make the camera go through the part without the person going through the part"
-- local script (StarterPlayerScripts) local camera = workspace.CurrentCamera camera.CameraType = Enum.CameraType.Scriptable local function onCharacterAdded(character) local humanoidRootPart = character:WaitForChild("HumanoidRootPart") local function onRenderStep() camera.CFrame = CFrame.new(humanoidRootPart.Position + Vector3.new(0, 5, 10), humanoidRootPart.Position) end game:GetService("RunService").RenderStepped:Connect(onRenderStep) end local player = game.Players.LocalPlayer player.CharacterAdded:Connect(onCharacterAdded) if player.Character then onCharacterAdded(player.Character) end -- Make sure the part's CanCollide property is set to false local part = game.Workspace.Part part.CanCollide = false