How to make Sell Items in roblox studio

Аватар автора
Игровые Моменты HD
Please Leave a like and Subscribe ---------------------------------- Script 1 local prox = script.Parent prox.Triggered:Connect(function(player) for i, tools in pairs(prox.Tools:GetChildren()) do if player.Character:FindFirstChild(tools.Name) then print(tools.Name) player.leaderstats.Cash.Value += tools.Price.Value --Change the cash to your currency name player.Character:FindFirstChild(tools.Name):Destroy() end end end) -------------------------------- Script 2 game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new('Folder') leaderstats.Name ='leaderstats' leaderstats.Parent = player local cash = Instance.new('IntValue') cash.Name = &--Rename the Cash to your Currency cash.Value = 10 cash.Parent = leaderstats end)

0/0


0/0

0/0

0/0