So here is the script:
local player = game.Players.LocalPlayer repeat wait() until player:findFirstChild"Backpack" local bk = player.Backpack if #bk:GetChildren()==0 then script.Parent.Text = "You are a stranger!" else script.Parent.Text = "You are the murderer!" end bk.ChildAdded:connect(function(ch) script.Parent.Text = "You are the murderer!" end) bk.ChildRemoving:connect(function(ch) if #bk:GetChildren()==0 then script.Parent.Text = "You are a stranger!" end end)
But for some reason, when the players backpack is empty or full, the textlabel doesn't work. Help much?
Maybe the 2nd line is wrong? repeat wait() until player:findFirstChild"Backpack" Shouldnt it be: repeat wait() until player:findFirstChild("Backpack")