local Players = game:GetService("Players")
local function onPartTouch(identifier)
local partParent = identifier.Parent
local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
local player = Players:GetPlayerFromCharacter(partParent)
local getplayerz = game.Players:GetChildren("Player")
if humanoid and player.Name == "SamZeKat" then
getplayerz.PlayerGui.yes.Enabled = true
end
end
script.Parent.Touched:Connect(onPartTouch)
Coming with the error: Attempted to index with nil yes

1 comment
It worked! TYSM