Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Insert a tool into the StarterPack with a script? (Explained more in the description.)

Asked by 10 years ago

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.

0
I think you mean into the Player's 'Backpack', not StarterPack, I'd probly add 'if game.Lighting:FindFirstChild("SWORDNAMEHERE")and player:FindFirstChild("Backpack") then game.Lighting.SWORDNAMEHERE:Clone().Parent=player.Backpack', lastly add an end for that statement. I hope this helped, if not I am sorry. TheeDeathCaster 2368 — 10y

Answer this question