I find this too,
How I can fix this script?
For this game-
My game is not loading Data
How I can fix this script?
How fix this Script?
local clientChatModules = script.Parent.Parent
local ChatSettings = require(clientChatModules:WaitForChild(“ChatSettings”))
local ChatConstants = require(clientChatModules:WaitForChild(“ChatConstants”))
local util = require(script.Parent:WaitForChild(“Util”))
CreateWelcomeMessageLabel = function(messageData, channelName)
local message = messageData.Message
if not messageData.ExtraData then
local extraData = {}
end
if not extraData.Font then
local useFont = ChatSettings.DefaultFont
end
if not extraData.FontSize then
local useTextSize = ChatSettings.ChatWindowTextSize
end
if not extraData.ChatColor then
local useChatColor = ChatSettings.DefaultMessageColor
end
local useChannelColor = extraData.ChannelColor or useChatColor
local BaseFrame, BaseMessage = util:CreateBaseMessage(message, useFont, useTextSize, useChatColor)
local ChannelButton = nil
if channelName ~= messageData.OriginalChannel then
local formatChannelName = string.format("{%s}", messageData.OriginalChannel)
ChannelButton = util:AddChannelButtonToBaseMessage(BaseMessage, useChannelColor, formatChannelName, messageData.OriginalChannel)
local numNeededSpaces = util:GetNumberOfSpaces(formatChannelName, useFont, useTextSize) + 1
BaseMessage.Text = string.rep(" ", numNeededSpaces) … message
end
do
local GetHeightFunction = function(xSize)
return util:GetMessageHeight(BaseMessage, BaseFrame, xSize)
end
local FadeParmaters = {}
FadeParmaters[BaseMessage] = {
TextTransparency = {FadedIn = 0, FadedOut = 1}
,
TextStrokeTransparency = {FadedIn = 0.75, FadedOut = 1}
}
if ChannelButton then
FadeParmaters[ChannelButton] = {
TextTransparency = {FadedIn = 0, FadedOut = 1}
,
TextStrokeTransparency = {FadedIn = 0.75, FadedOut = 1}
}
end
local FadeInFunction, FadeOutFunction, UpdateAnimFunction = util:CreateFadeFunctions(FadeParmaters)
return {[util.KEY_BASE_FRAME] = BaseFrame, [util.KEY_BASE_MESSAGE] = BaseMessage, [util.KEY_UPDATE_TEXT_FUNC] = nil, [util.KEY_GET_HEIGHT] = GetHeightFunction, [util.KEY_FADE_IN] = FadeInFunction, [util.KEY_FADE_OUT] = FadeOutFunction, [util.KEY_UPDATE_ANIMATION] = UpdateAnimFunction}
end
end
return {[util.KEY_MESSAGE_TYPE] = ChatConstants.MessageTypeWelcome, [util.KEY_CREATOR_FUNCTION] = CreateWelcomeMessageLabel}