Subtitle System

I made a subtitle script but I can’t get the correct feel for it so please if someone can improve it then it will be appreciated

local subtitle = script.Parent.SubtitleTemplate.Subtitle:Clone(script.Parent)

game.ReplicatedStorage.Game.Events.Subtitle_Sender.OnClientEvent:Connect(function(Character,Text,CharacterColor,TextColor)
	subtitle.Parent = script.Parent
	subtitle.Visible = true
	subtitle.Character.Text = Character
	subtitle.Text.Text = Text
	subtitle.Character.TextColor3 = CharacterColor
	subtitle.Text.TextColor3 = TextColor
	wait(2)
	while true do
		subtitle.Position = subtitle.Position - UDim2.new(0, 0, 0, 50)
		wait(2)
	end
end)
1 Like

Hmmmm… :thinking:

Hey there pal! Can you tell me what this code Is supposed to do In higher detail? Is It in a GUI, a SurfaceGUI or a BillboardGUI? I will also need a video showcasing what this script does.

Here you go!
robloxapp-20230123-1245289.wmv (958.6 KB)

also i will show the entrie startergui so you can see the things
image
edit: i meant the subtitles thing (sorry i dont know why im that rushed)

What will happen to this code? Video record, because my computer is damaged

Here

1 Like

It means that if player says in the chat, gui appears

no erm it was a test command form adonis to show how the GUI works