Answered by
5 years ago Edited 5 years ago
(I may be wrong I'm new to scripting)
You would need a value to assign a person a tool and after you have that value you can just datastore, for example:
02 | game.Players.PlayerAddded:Connect( function (plr) |
03 | local stats = Instance.new( "Folder" , plr) |
06 | local knife = Instance.new( "StringValue" , stats) |
12 | game.Players.PlayerAdded:Connect( function (plr) |
13 | if player.Stats.Tool.Value = = "BoxKnife" then |
14 | local boxknife = game.ServerStorage.Tools.BoxKnife |
15 | boxknife.Parent = game.StarterPack |
19 | script.Parent.MouseButton 1 Click:Connect( function (plr) |
20 | script.Parent.Text = "BOUGHT" |
21 | plr.Stats.Knife.Value = "BoxKnife" |
Something Like This (I thought of that in half a minute)