i wanna do something like this
https://gyazo.com/37a5554c935e4bd7d8ac14b281421e8d
whatever the player chats, a billboard gui (i assume) appears and slowly types out the text, this is visible on all clients btw. Can anyone help me?
2 Likes
Use Player.Chatted
to detect when the player has chatted.
When its been detected, clone a billboard UI to be upon his character’s head,
And you can use string.sub
to make the Typewriter
effect.
1 Like
game.Players.PlayerAdded:Connect(function(Player)
Player.Chatted:Connect(function(Message)
local NameTag = script.NameTag:Clone()
if Player.Character.Head:FindFirstChild("NameTag") then
for k = 1,#Message,1 do
Player.Character.Head:FindFirstChild("NameTag").Namer.Text = string.sub(Message,1,k)
task.wait(0.05)
end
else
NameTag.Parent = Player.Character.Head
for k = 1,#Message,1 do
NameTag.Namer.Text = string.sub(Message,1,k)
task.wait(0.05)
end
end
end)
end)
3 Likes
You just made me realize little no remote is needed because i can just clone in server side
1 Like
Result :
robloxapp-20220421-1541509.wmv (216.3 KB)
2 Likes