Advertisement
Sungmingamerpro13

DialogueScript (LoaclScript ) (Update)

Mar 28th, 2024
921
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.60 KB | None | 0 0
  1. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  2. local Message = game.ReplicatedStorage:WaitForChild("Message")
  3. local SpeakerEvent = Message:WaitForChild("SpeakerEvent")
  4.  
  5. local player = game.Players.LocalPlayer
  6. local DialogueFrame = player.PlayerGui:WaitForChild("DialogueGui").DialogueFrame
  7.  
  8.  
  9. Message:GetPropertyChangedSignal("Value"):Connect(function()
  10.     DialogueFrame.Message.Text = Message.Value
  11.     script.Click:Play()
  12. end)
  13.  
  14. SpeakerEvent.OnClientEvent:Connect(function(Name, Image)
  15.     DialogueFrame.nameLabel.Text = Name
  16.     DialogueFrame.ImageLabel.Image = "rbxassetid://"..Image
  17. end)
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement