I need help trying to figure out what exactly is wrong with this code. I am pretty new to roblox scripting and this is my first time trying scripting helpers. Does anyone know how I can fix this exactly?
local function VictoryMessage(Plr)
for _,Plr in pairs(game.Players:GetPlayers()) do
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = Plr.PlayerGui
local textlabel = Instance.new("TextLabel")
textlabel.Parent = screenGui
textlabel.Position = UDim2.new(0.25,0,0.25,0)
textlabel.Size = UDim2.new(0.3,0,0.3,0)
textlabel.BackgroundColor3 = Color3.new(55,55,55)
textlabel.Text = Plr .."Has Won"
wait(5)
textlabel:Destroy()
end
end
everytime I use it, I get
":32:59.189 - Workspace.racing light.Script:36: attempt to concatenate local 'Plr' (a userdata value)"
also sorry about this but idk how to display the code in a more readable manner

10 comments
br0000 use a code block pl0x
sorry about that now I fixed it,
So do you need help anymore?
If you don't put the [Solved] next to your text in title
oh I just mean't I fixed the question. still need help
I am still getting that last error even though I chanced it it Plr=game.Players.LocalPlayer
Okay lemme see
You didn't post the whole script.
It says error at 36th line and you pasted only 14 lines, btw is tihis in Workspace or StarterGui?
oh this was workspace