Attempt to index nil with 'Value'

I am currently making a 1v1 Combat system. This error keeps on appearing, any help would be great!
Also this is a ModuleScript in ServerScriptService.

local winner = game.Players:FindFirstChild(game.ServerStorage.GameValues:WaitForChild("Competitors"):FindFirstAncestorOfClass("StringValue").Value)
return winner

FindFirstAncestorOfClass

Function of:

Instance

Description:

Returns the first ancestor of the Instance whose Instance.ClassName is equal to the given className.

This function works upwards, meaning it starts at the Instance ’s immediate Instance.Parent and works up towards the DataModel . If no matching ancestor is found, it returns nil.

try using FindFirstChildOfClass(“StringValue”)
as GameValues i would guess is a folder which isnt a string value
edit:
in this scenario it would start at gamevalues then serverstorage then end at game (datamodel) and as none of these are string values that will return nil

This means that :FindFirstAncestorOfClass("StringValue") keeps returning nil. Check if it actually exists.

I thought that wasn’t a real function, very stupid of me.