Why is this saying "Player1 is not a valid member of StringValue?"
I have a script that sends a request once a string value called "DuelRequest" is added to a folder.
01 | script.Parent.Requests.ChildAdded:connect( function (request) |
02 | if request:IsA( "StringValue" ) and request.Name = = "DuelRequest" then |
04 | for _,v in pairs (request:GetChildren()) do |
14 | request_frame.DuelInformation.Text = |
15 | ( "You have been challenged by " ..duel.Player 1. Value .. " to a duel. This will be played until you or your opponent die " .. tostring (duel.MaxDeaths.Value) .. " times." ) |
I keep getting the following output:
5 | Player 1 is not a valid member of StringValue. |
So it clearly is a valid member of StringValue since I ran a bit of code just before it to check... yet this script for some reason tells me it is not and then therefore fails to send a request.