Can you save items that don't originate in StarterPack?

Thanks for looking at the post!

So I was making a sword for my game and I wanted the sword to have a prompt to pick it up and I put the sword into startergear but is it possible to make it so when I next join the game I still have the sword?

Heres the script and a screenshot of the tool placement:(This is the handler script)

local tool = script.Parent.Parent.Parent

local prompt = script.Parent

prompt.Triggered:Connect(function(player)
local char = workspace:WaitForChild(player.Name)
local human = char:WaitForChild("Humanoid")

prompt.Enabled = false	
local tool2 = tool:Clone()
tool2.Parent = game.StarterPack
local tool3 = tool:Clone()
tool3.Parent = player.StarterGear
human:EquipTool(tool)

end)

Screenshot207x182

Any help is appreciated

Datastores, if returned true give them the sword

if you don’t know datastores I just suggest watching some tutorials

hopefully this helps

2 Likes

Oh thanks I know data stores I just didn’t know they worked with tools.

Well you can only save values like a number or a bool but you can set that up to give them the right tool

1 Like