So basically I made a Developer product when you buy it, it would edit a value in a module script. I've made a function inside a script that changes the value in a module script. Here's the function.
function VIPBenefits(Player)
for i,v in pairs(Player:WaitForChild("Backpack"):GetChildren()) do
if v:IsA("Tool") then
require(v:WaitForChild("Configuration")).Spaces = "Infinite"
end
end
Player:WaitForChild("Backpack").ChildAdded:Connect(function(Tool)
require(Tool:WaitForChild("Configuration")).Spaces = "Infinite"
end)
end
It doesn't give me any errors at all but it still didn't change the value in a module script and yes the function runs when the player buys the dev product. I already tested it out by buying the product in studio so I wont waste any robux just for testing if it worked

1 comment
Thanks! This somehow made it work!