Basically, I have some friends who have difficulties in typing. I want to make an automatic system for them that makes a chat bubble above their head which reads off of a pre-made script, giving the illusion that they’re actually saying the script. No part of the script should violate the Roblox TOS. Is this making this system allowed? (The script is a speech for a training center)
Here’s the scripts:
Server Script
local plr = script:FindFirstAncestorWhichIsA("Player")
local scriptmessagesinorder = {"These are the messages","That the player will say."}
if plr ~= nil then
print("Player is not nil.")
script.Parent.MouseButton1Click:Connect(function()
print("Firing")
plr.Character:WaitForChild("AutomaticScript").begin:FireAllClients(scriptmessagesinorder)
print("Fired")
end)
else
print("Player is nil!")
end
Localscript:
local inoperation = false
script.begin.OnClientEvent:Connect(function(msgtable)
if inoperation == false then
inoperation = true
print("Recieved")
print(msgtable)
local chat = game:GetService("TextChatService")
local plr = game.Players.LocalPlayer
for i,v in pairs(msgtable) do
local amount = string.len(v)/5
chat:DisplayBubble(script.Parent,v)
task.wait(amount)
end
inoperation = false
end
end)