RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Make a SellPad that sells Food"
-- script for sell pad local part = script.Parent local function sellFood(otherPart) local player = game.Players:FindFirstChild(otherPart.Parent.Name) if player then local playerFood = player.leaderstats.Food.Value if playerFood > 0 then player.leaderstats.Food.Value = 0 player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + (playerFood * 10) -- adjust the value as per the selling price of food end end end part.Touched:Connect(sellFood)