Page 1 of 1

Custom Death Messages

Posted: Tue Mar 22, 2016 2:54 am
by NoPantsMcDance
Currently I'm working on something to add a bit of flavor when a player dies than just the "player was killed"

The problem I'm having at the moment is I can't figure out how to get this to work correctly in multiplayer, It works fine in singleplayer. So any help would be appreciated thanks. http://pastebin.com/ebdZi5Gy

Re: Custom Death Messages

Posted: Tue Mar 22, 2016 3:27 am
by DaveMcW

Code: Select all

local death = math.random(1,14)
for o,observer in pairs(game.players) do
  if observer.connected then
    observer.print(dmessage[death])
  end
end