ID:138885
 
Code:
    if(!world.GetMedal("Coolest Guy Ever",usr))
world.SetMedal("Coolest Guy Ever", usr)
usr<<"You get the medal: Coolest Guy Ever!"


Problem description:
This has caused some serious lag for me. Is there supposedly a better way? Why does it bring so much lag? :(
It takes time to connect to hub. Reference suggests to use spawn() before using this kind of functions:
http://www.byond.com/ members/?command=reference&path=world%2Fproc%2FGetMedal