Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I Mad mining game and the sell plot dont work this is the script?

Asked by 5 years ago

local plr = game.Players.LocalPlayer local x = require(script.Parent.InventoryService) local Prices = { ["Stone"] = 5 }

game.ReplicatedStorage.Events.removeitem.OnClientEvent:connect(function(item) local q = x.calculateItems(item) x.removeItem(item,q) local leaderstats = plr.leaderstats leaderstats.Money.Value = leaderstats.Money.Value + (q*Prices[item]) end)~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~

0
You should be selling the item on the server side. User#5423 17 — 5y

Answer this question