I wanted the player to a door to get it. I don't need a script that already does it, but I want it manually.
-- Just a note for people who don't know, this "isn't the whole script"
local player = Players:GetPlayerFromCharacter(hit.Parent)
local human = player:FindFirstChild("Humanoid")
if MarketplaceService:PlayerOwnsAsset(player, GearId) and player.StarterGear:FindFirstChild("TurkeyLeg")~= nil then
InsertService:LoadAsset(GearId):Clone().Parent = player.StarterGear
print("Player Has")
else
human.Health = 0
All variables are defined, but I need to figure why it won't give the player the gear if the player doesn't have it?
The human.Health = 0 is just a placeholder, since It'll be replaced with something else later.

3 comments
Humanoid is not a member of player but the player.Character.
It's 'game:GetService("InsertService")'. You need an end at the bottom of the script.
I just said it's a part of the script, rip