Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.ReplicatedStorage.ShopBuy.OnServerEvent:Connect(function(player,page)
- local tool = game.ReplicatedStorage:WaitForChild("Tools")
- local shop = game.Workspace.Shop
- local clone = tool:FindFirstChild(shop:FindFirstChild("Part"..page).ItemName.Value):Clone()
- local clone2 = tool:FindFirstChild(shop:FindFirstChild("Part"..page).ItemName.Value):Clone()
- clone.Parent = player.Backpack
- clone2.Parent = player.StarterGear -- So that the player won't lose the tool even if they died.
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement