[SOLVED] How to Enable and Disable entity on mouse click

would this work?

Almost. Both parts have to be in the same update function.

ok

this?

Replace line 11 to line 16, because this sign is the end of the update function.

this?

Yes. What is the result?

does not work…

So, what happens?

same thing that’s been happening, i hold right click it puts the scope overlay up but when i stop holding right click it doesnt disable the overlay

it doesnt work :frowning:

do you know anything that’ll work?

Sorry, I made a mistake. Can you try to replace wasPressed with wasReleased?

IT WORKS :slight_smile: thank you so much

1 Like

Yay

Great! :ok_hand:

1 Like

now one last thing, could you make an element that lets you change the fov of the ads? so like when you ads the sniper it puts the fov at 30, but when you ads the pistol it puts it at 70 and when you stop aiming it reverts back to normal?

could you put an example code for me to use? or tell me what to add to achieve the fov changing effect/element

That’s not related to this topic, so you need to create a new topic for this. Please also add an example of what you try to achieve.

1 Like

ok well put this one as solved :slight_smile: because it works great

1 Like