So , my question is that i want to find a value who are in the player folder Like : "Game.Players.LocalPlayers.TheValue" But i want to get this value with a touched part . Find The player value when the player hit a part
local PlayersService = game:GetService("Players")
local function onTouch(hit)
if hit.Parent:FindFirstChild('Humanoid') then
local namee = hit.Parent.Name
print(namee)
local lol = game.Players.namee
print(lol)
end
end
script.Parent.Touched:connect(onTouch)
I tried something but i didn't work so if u know help me :c Thx !
