There is a Workspace.Part.Script:5: attempt to index local 'player' (a nil value) poping up in the output - can anyone explain it so i can understand - goku
local part = script.Parent
part.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player:IsInGroup(2793019) then
print("eeeeeeeeeeeeeeeee")
end
end)

1 comment
GetPlayerFromCharacter will return nil if it cannot get the player from the character model.