I tried what my friend said about how I can add the Model ID number in the script to make it as a tool. What I want it to do is make the NPC give you tools, but from the model you create. Can you please fix it, or at give me something that is similar that can actually works.
function clicked(player, dialogChoice)
print("Talked")
print(player)
print(dialogChoice)
if dialogChoice.Name == "Ticket" then
print("Player gives Ticket")
g = game:GetService("InsertService"):LoadAsset(213984396) --Model ID number
g.Parent = player.Backpack
g:MakeJoints() -- Capitalize just incase.
g:MoveTo(player.Character:WaitForChild("Head").Position)
else
print(dialogChoice)
end
end
script.Parent.DialogChoiceSelected:connect(clicked)

3 comments
It doesn't really make sense to use the InsertService for this. Why can't you just include the tool in the place, e.g., in ReplicatedStorage?
I just found this, Plus I don't script much since I am not good at it. So what do I do to put it in the ReplicatedStorage
The tool that this script would insert.