#slight problem with displaysystemmessage

1 messages · Page 1 of 1 (latest)

prisma kayak
#

it works but when i delete the displaysystemmessage it dosent work at all and i want it to only print after death
(i followed a youtube tutorial)

#

(i modified the script a lil bit)

unique vapor
prisma kayak
# unique vapor Can you show it

local prefix = "[Server]"
local plr = game.Players.LocalPlayer
local char = plr.Character
local hum = char:WaitForChild("Humanoid")

do

message = " death"
game.TextChatService.TextChannels. RBXGeneral: DisplaySystemMessage(prefix..message)

end

if hum.Health == 0 then
print(message)
end

unique vapor
#

Wait a minute

#

like the message is creating immediately

#
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")

local message = " death"

hum.Died:Connect(function()
   print(message)
   game.TextChatService.TextChannels.RBXGeneral:DisplaySystemMessage(prefix..message)
end)

It should look like this```
#

or if u just want the print like this

local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")

local message = " death"

hum.Died:Connect(function()
    print(message)
end)```
urban walrus
#

Do this

unique vapor
#

i don't have the key

#

:c

urban walrus
#

`

#

Copy paste

unique vapor
#

thank you