Click on the iron door 50 times with LMB to make it break

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

AlliSighs

New Member
Feb 12, 2024
8
0
1
14
Hi all. I have a problem. I'm creating a plot script for "breaking down" iron doors. The player needs to click on it 50 times with the LMB to open it.
However, it opens for me the first time. Help me please.

My code:

`on left click on iron door:
set {click_count} to {click_count} + 1
if {click_count} is greater than or equal to 50:
activate block
wait 2 seconds
deactivate block`
 
Last edited:
Code:
on break of iron door:
    if {_clicks} is < 50:
        cancel event
        set {_clicks} to {_clicks} + 1
    if {_clicks} is 50:
        set {_clicks} to 0

Idk but I think this could work