From 31675bea3106152e70d61b8dad35e6ad5be3a57c Mon Sep 17 00:00:00 2001 From: Dinkledork <118951051+Day36512@users.noreply.github.com> Date: Thu, 23 Mar 2023 03:43:10 -0600 Subject: [PATCH] Add files via upload --- Murky.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Murky.lua b/Murky.lua index 8a33dc9..02a22bb 100644 --- a/Murky.lua +++ b/Murky.lua @@ -1,5 +1,10 @@ function MurkyOnSpawn(event, creature) - local playerName = creature:GetOwner():GetName() +local owner = creature:GetOwner() +if not owner then + return +end +local playerName = owner:GetName() + local dialogue = { "Mrglglglgl! Murky here, reporting for duty!", "Mrrrrrrrglglglgl! Murky happy to serve you, " .. playerName .. "!",