Hi.
I have a variable with a string value, storing the player’s name
local x = plr.Name
I want to select the player’s backpack with the name.
For example, game.Players.x.Backpack
but of course it returns that x is not a valid member of “Players” because it assumes x as the string itself, and not as its value.
Please help.
Sincerely,
-coolguyweir
1 Like
Ever tried game.Players[x].Backpack? Please do more research before posting a question on devforum. Its very simple
msix29
(msix29)
3
game.Players[x].Backpack
Or
game.Players:FindFirstChild(x).Backpack
game.Players[x].backpack
I think
Tqrtled
(Tqrtled)
5
it was just a question lol, he just needed help
I did research and it didn’t return results.
Believe me I’m not dumb enough to just randomly ask simple questions.
Could you give us the script that contain your function?
Believe me, I know how bad the DevForum’s search is.
Thank you for understanding and being on my side loll
I would, but someone solved the issue already! Thanks for your help anyways!