local test = script.Parent
test.ClickDetector.MouseClick:Connect(function(hit)
local player = hit.Player
local testPart = player.Backpack:FindFirstChild("testPart")
if testpart then
print("TestCompleted")
end
end)
I know that the error here is
local player = hit.player
The players backpack is in game.players but not workspace
I dont know how to change this to make it so it goes to game.Players with keeping the username.