I had looked into using dialog to give items to players. Here is the basic script, for the health:
workspace.Dialog.DialogChoiceSelected:connect(function(player,choice)
if choice.Name == "Pass" then
player.Character.Humanoid.Health = 100
elseif choice.Name == "SmallSword" then
player.Character.Humanoid.Health = 100
end
end)
What I would like to know is what I would replace with the player.Character.Humanoid.Health = 100
, to insert it into the StarterPack, I am sure I will be able to fit the sword in there somehow.
EDIT: I now realize that I meant Backpack instead of StarterPack.