Help is much appreciated ;) ~~ NOTE: The script worked fine before I tried to filter the string. The string needed to be filtered IS the name of the value. I have no idea what this error means.
script.Parent.MouseButton1Down:connect(function(player)
local stringval = Instance.new('StringValue',game.Workspace.ChatStorage)
local colorval = Instance.new('Color3Value',stringval)
colorval.Name = "Color"
local filteredstringval = game.Chat:FilterStringForBroadcast(stringval.Name, player)
if script.Parent.Parent.ChatInput.Text ~= "" or script.Parent.Parent.ChatInput.Text ~= " " or script.Parent.Parent.ChatInput.Text ~= " " or script.Parent.Parent.ChatInput.Text ~= " " or script.Parent.Parent.ChatInput.Text ~= " " then
if script.Parent.Parent.Parent.Parent.Name == game.Workspace.ChatStorage.Owner.Value or script.Parent.Parent.Parent.Parent.Name == "Player1" then
filteredstringval.Name = '[OWNER] '..script.Parent.Parent.Parent.Parent.Name..': '..script.Parent.Parent.ChatInput.Text
colorval.Value = Color3.fromRGB(239, 184, 56)
script.Disabled = true
wait(5)
script.Disabled = false
elseif script.Parent.Parent.Parent.Parent.Name == "JackedCodStarter" or script.Parent.Parent.Parent.Parent.Name == "Player2" then
filteredstringval.Name = '[TESTER] '..script.Parent.Parent.Parent.Parent.Name..': '..script.Parent.Parent.ChatInput.Text
colorval.Value = Color3.fromRGB(200, 0, 0)
script.Disabled = true
wait(5)
script.Disabled = false
else
filteredstringval.Name = script.Parent.Parent.Parent.Parent.Name..': '..script.Parent.Parent.ChatInput.Text
colorval.Value = Color3.fromRGB(255, 255, 255)
script.Disabled = true
wait(5)
script.Disabled = false
end
end
end)
ERROR: 21:42:56.295 - Unable to cast value to Object 21:42:56.296 - Stack Begin 21:42:56.296 - Script 'Players.Player1.PlayerGui.Chat.Send.Script', Line 7 21:42:56.296 - Stack End

2 comments
The error means Owner doesn't have a Value
o: