Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

?How do I detect my StringValue in Players Player?

Asked by 1 year ago

I have a StringValue called Cat in a Player under Players. Issue I am having is that after I get to Players it won't come up Player if this makes sense nor the value. So my question is more so how to get the value under Players in Player code I am trying.

local CatVal = game.Players.Player.Cat

1 answer

Log in to vote
1
Answered by
pwx 1581 Moderation Voter
1 year ago
local CatValue = game.Players.Player:FindFirstChild('Cat')

if CatValue then
    -- do stuff
end
0
Didn't work 666_brithday 103 — 1y
Ad

Answer this question