I have a StringValue which gives has the players name stored in it, and I'm trying to get the player's name from Players using the value in the String.

local PlayerName = script.Parent.Sensor:WaitForChild("Name").Value
local Player = game.Players:FindFirstChild(PlayerName)

4 comments

1

Simply switch line two out with this: local Player = game.Players:FindFirstChild(PlayerName)

0

Ah yah, stupid mistake of mine.

0

So does it work now?

0

Yes