Solved floating sever name

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

    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!

ThunderPierce

Member
Jul 15, 2024
15
0
1
Belgium
Im making a server and i wanna spice things up with some floating text boxes with informaion, i have seen it in a few server but can find how to do it myself.
I know how to use armor stands but in that case the text rotates and that is something i dont want.

Does any1 know how to make this?
 
Hey! You can use skript command effects!!

!spawn text display at player (NOTE IT SHOWS THE DIRECTION YOU ARE LOOKING AT/ITS SPAWNING AT YOUR FEET)
!set display text of last spawned text display to "TEST"
!kill all text displays in radius 2 of player (THIS KILLS/DELETES THE TEXT)

Any more questions?
 
command /textdisplay <text>:
trigger:
if arg-1 is "remove":
kill all text displays in radius 2 of player
else:
spawn text display at player
set display text of last spawned text display to "%arg-1%"

i wrote this small code to make the use easier, i stumbled upon a problem with the last line.
it gives the error "cant understand this condition/effect"
 
command /textdisplay <text>:
trigger:
if arg-1 is "remove":
kill all text displays in radius 2 of player
else:
spawn text display at player
set display text of last spawned text display to "%arg-1%"

i wrote this small code to make the use easier, i stumbled upon a problem with the last line.
it gives the error "cant understand this condition/effect"
Try using:
set display text of last spawned text display to arg-1