First
You will want to create a script in the workspace. This script will create an IntValue In the player that will state if they own a sword
1 | local parent = script.Parent |
2 | local player = game.Players.LocalPlayer |
3 | local sword = Instance.new( 'IntValue' , player) |
5 | game.Players.PlayerAdded:connect( function () |
6 | sword.Name = "SwordOwned" |
Second
You will want the game to save
Here is the roblox wiki article
http://wiki.roblox.com/index.php?title=Saving_Player_Data
Lastly
In the article, where it talks about loading the data put that in the First Script under sword.Name
Hope This Helped