i want to display a textmessage in the Intialising text bit when a player says a command.
script I have currently:
local Icon = require(game:GetService("ReplicatedStorage").Icon)
local icon = Icon.new()
icon:setLabel("Initializing Text...")
icon:align("Center")
game.ReplicatedStorage.DefaultChatSystemChatEvents.OnMessageReceived.OnServerEvent:Connect(function(player, message)
if message:sub(1, 5) == "!text" then
newText = message:sub(7)
icon:setLabel(newText)
end
end)
while true do
wait(1)
end