local Players = game:GetService("Players")
local playerName = script.Parent.Parent.Player.Value
print(playerName) --If nil, make sure the value actually exists.
local player = Players:FindFirstChild(playerName)
Check if the objectvalue is in fact the player then, because it should be working.
You can test that by printing the objectvalue.Name and see if it prints the playername.
That means the objectvalue is nil and you didn’t set it up as the player correctly.
@Fusionet Your code works the same way OverFearful’s code works. FindFirstChild() requires a string, using an object would not work, please see Instance:FindFirstChild().
Did you change the objectvalue through a localscript? If so then trying to find it through a serverscript wouldn’t work, since it doesn’t see what the client does.
if thats the case there is no reason to use the Player service again to get the player because the objectValue is already the Player Instance(Not the name)