local Player = game.Players.LocalPlayer
local DialogueEvent = game.ReplicatedStorage.Events.NormalEvents.DialogueEvent
local DialogueFrame = Player.PlayerGui:WaitForChild("DialogueGui").Frame
local function AnimateText(Dialogue)
for i = 1, #Dialogue, 1 do
Frame:WaitForChild("DialogueText").Text = string.sub(Dialogue, 1, i)
wait(0.04)
end
end
DialogueEvent.OnClientEvent:Connect(function(PlayerImage, PlayerName, Dialogue)
Frame.Visible = true
Frame:WaitForChild("Image").Image = PlayerImage
Frame:WaitForChild("Name").Text = PlayerText
AnimateText(Dialogue)
end)