alright so on line 4 it tells me that Itemis nil but if i change it to Item.Name in the params it says arg 1 is missing and i have no idea how to fix it other than changing to .Name and getting the arg mising error
Script:
game.ReplicatedStorage.Purchase.OnServerEvent:Connect(function(Player,Product)
local string = "You Purchased "..Product.."!"
local Crates = game.ServerStorage:FindFirstChild(Player.Name.."'s Crates")
local Item= Crates:FindFirstChild(Product)
Item.Value = Item.Value + 1
game.ReplicatedStorage.ExploitsWillAbuseThis:FireClient(Player,string)
end)

1 comment
oh god