# Blackscreen when using camera custom render script

**URL:** <https://forum.defold.com/t/blackscreen-when-using-camera-custom-render-script/43238>\
**Category:** Questions\
**Created:** [February 11, 2019, 11:12pm UTC](https://forum.defold.com/t/blackscreen-when-using-camera-custom-render-script/43238 "2019-02-11T23:12:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cong\_Nguyen](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/c/b9bd4f/32.png) [@Cong\_Nguyen](https://forum.defold.com/u/Cong_Nguyen)\
**Post date:** [February 11, 2019, 11:12pm UTC](https://forum.defold.com/t/blackscreen-when-using-camera-custom-render-script/43238/1 "2019-02-11T23:12:46Z")

</div>

Expectation: camera follow player.

I have a custom render script works works fine on simple\_lights public examples. and I put this code into init() of game object player

`	camera.deadzone(CAMERA_ID, 320/2, 320/2, 568/2, 568/2) msg.post(CAMERA_ID, "follow", { target = "/player"})`

whole screen turn black.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [February 12, 2019, 4:43am UTC](https://forum.defold.com/t/blackscreen-when-using-camera-custom-render-script/43238/2 "2019-02-12T04:43:18Z")

</div>

This sounds like you’re using the Orthographic camera extension and one of my examples. The thing is that the simple\_lights example uses custom render script and so does Orthographic. You need to combine the two for it to work.
