Advertisement
Sungmingamerpro13

MessageScript(LocalScript)

Sep 24th, 2021
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. Message = game.ReplicatedStorage:WaitForChild('Message')
  2. Image = Message:WaitForChild('SpeakerImage')
  3. Speaker = Message:WaitForChild('SpeakerName')
  4.  
  5.  
  6. Message:GetPropertyChangedSignal('Value'):Connect(function()
  7. if Message.Value == 'None' then
  8. script.Parent.Frame.Visible = false
  9. else
  10. script.Parent.Frame.Visible = true
  11. end
  12. script.Parent.Frame.Message.Text = Message.Value
  13. end)
  14.  
  15. Speaker:GetPropertyChangedSignal('Value'):Connect(function()
  16. script.Parent.Frame.ImageLabel.Image = Image.Value
  17. script.Parent.Frame.PlayerName.Text = Speaker.Value
  18. end)
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement