LocalScript:
local Message = game.ReplicatedStorage:WaitForChild(“Message”)
local Image = Message:WaitForChild(“SpeakerImage”)
local Speaker = Message:WaitForChild(“SpeakerName”)
local player = game.Players.LocalPlayer
local DialogueFrame = player.PlayerGui:WaitForChild(“DialogueGui”).DialogueFrame
Message:GetPropertyChangedSignal(“Value”):Connect(function()
if Message.Value == “None” then
DialogueFrame.Visible = false
else
DialogueFrame.Visible = true
end
DialogueFrame.Message.Text = Message.Value
script.pop:Play()
end)
Speaker:GetPropertyChangedSignal(“Value”):Connect(function()
DialogueFrame.ImageLabel.Image = Image.Value
DialogueFrame.NameLabel.Text = Speaker.Value
end)