Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local Message = game.ReplicatedStorage:WaitForChild("Message")
- local SpeakerEvent = Message:WaitForChild("SpeakerEvent")
- local player = game.Players.LocalPlayer
- local DialogueFrame = player.PlayerGui:WaitForChild("DialogueGui").DialogueFrame
- Message:GetPropertyChangedSignal("Value"):Connect(function()
- DialogueFrame.Message.Text = Message.Value
- script.Click:Play()
- end)
- SpeakerEvent.OnClientEvent:Connect(function(Name, Image)
- DialogueFrame.nameLabel.Text = Name
- DialogueFrame.ImageLabel.Image = "rbxassetid://"..Image
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement