Attempt to concatenate Color3 with string? [SOLVED]
Asked by
3 years ago Edited 3 years ago
I want to make it so when a player touches a specific part, a chat message pops up, using a LocalScript in StarterPlayerScripts, I had a remote event fire all clients to that local script from a server script when that specific part is touched, here's the LocalScript:
01 | local StarterGui = game:GetService( "StarterGui" ) |
02 | local ReplicatedStorage = game:GetService( "ReplicatedStorage" ) |
03 | local plr = game:GetService( "Players" ).LocalPlayer |
05 | local popupEv = ReplicatedStorage:WaitForChild( "Popup" ) |
07 | popupEv.OnClientEvent:Connect( function (color, difficulty, playerName, player) |
09 | if plr.OtherStats.PopupEnabled.Value = = 2 or plr.OtherStats.PopupEnabled.Value = = 4 then |
12 | elseif plr.OtherStats.PopupEnabled.Value = = 1 or plr.OtherStats.PopupEnabled.Value = = 3 then |
17 | "ChatMakeSystemMessage" , { |
18 | Text = "[SERVER] " ..playerName.. " has beaten the difficulty: " ..difficulty.. ", GG" , |
20 | TextStrokeColor 3 = Color 3. fromRGB( 0 , 0 , 0 ), |
21 | TextStrokeTransparency = 0 , |
22 | Font = Enum.Font.Arcade |
but there is an annoying error popping up everytime I touch that part which says:
Players.ZombieApocalypz3.PlayerScripts.PopupMessages:16: attempt to concatenate Color3 with string
the error is on line 16