# How to make a buy system with points?

**URL:** <https://forums.unrealengine.com/t/how-to-make-a-buy-system-with-points/450565>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [June 12, 2019, 6:44pm UTC](https://forums.unrealengine.com/t/how-to-make-a-buy-system-with-points/450565 "2019-06-12T18:44:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DecentBV](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DecentBV](https://forums.unrealengine.com/u/DecentBV)\
**Post date:** [June 12, 2019, 6:44pm UTC](https://forums.unrealengine.com/t/how-to-make-a-buy-system-with-points/450565/1 "2019-06-12T18:44:24Z")

</div>

Im trying to make a buy menu where you spend points earned to get ammo. I have the points and ammo variables working and setup, however whenever i click the button to spend points to get ammo, either the numbers are all messed up, or nothing happens, this is my latest blueprint setup for the button is [https://i.imgur.com/7ZMYm5W.png](https://i.imgur.com/7ZMYm5W.png) this currently does nothing but i am very confused and any help would be appreciated

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 12, 2019, 7:41pm UTC](https://forums.unrealengine.com/t/how-to-make-a-buy-system-with-points/450565/2 "2019-06-12T19:41:51Z")

</div>

You’re not really adding or deducting anything at the moment, you can’t just leave the nodes floating about. Try it like this:

 ![279616-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/d/d/6dd03bea68f13b38549c5691bc085b867cad3617.png)

---

<div class="post-metadata">

**Author:** ![DecentBV](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DecentBV](https://forums.unrealengine.com/u/DecentBV)\
**Post date:** [June 12, 2019, 8:50pm UTC](https://forums.unrealengine.com/t/how-to-make-a-buy-system-with-points/450565/3 "2019-06-12T20:50:56Z")

</div>

I managed to fix it looking at other blueprints from tutorials, i fixed it by changing it to this if anyone’s wondering [https://i.imgur.com/VXMpc46.png](https://i.imgur.com/VXMpc46.png)
