Explorer: Model inside of workspace Part named head inside of model Humanoid in model Script inside of head:
local mps = game:GetService("MarketplaceService")
local ID = "I don't wanna share this model, but yes, i put a valid ID WITHOUT the speech marks."
function onHit(hit)
if (hit.Parent:FindFirstChild("Humanoid") ~= nil) then
if not mps:PlayerOwnsAsset(player,ID) then
mps:PromptPurchase(player,ID)
end
end
I want it to prompt the purchase for the model once the part has been touched, however it doesn't seem to be working. Any help? I wasn't sure whether to use onHit or onTouch, but I tried both and they didn't work.
Thanks!

2 comments
Yes the ~= nil is not necessary neither is the lowercase "f" It's FindFirstChild, not findFirstChild
My mistake, force of habit.