Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Message = game.ReplicatedStorage:FindFirstChild("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.Click:Play()
- end)
- Speaker:GetPropertyChangedSignal("Value"):Connect(function()
- DialogueFrame.ImageFrame.ImageLabel.Image = Image.Value
- DialogueFrame.NameFrame.nameLabel.Text = Speaker.Value
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement