on righclick on player

  • 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!

Status
Not open for further replies.

S K A A S H

Member
Jun 21, 2019
4
0
0
26
Skript Version: 2.2
MC Version: 1.8

Code:

on righclick on player:
send "test" to attacker

---

How to open a gui / send a message to the person who klicked the player
 
Code:
on right click on [a] player:
    send "It's working!" [to player]
Attacker/Victim can only be used in "on damage" event!
In this event you use:
- "player" for player who clicked
- "clicked player" (or sth like that) for player who's been clicked

Note: parts with [] are optional, remove them or remove the brackets
 
Status
Not open for further replies.