I want the player clicks (add) to go up to 3 but don't know how. The first script is at... Workspace>Script.
game:GetService("Players").PlayerAdded:connect(function(p)
if game:GetService("MarketPlaceService"):PlayerOwnsAsset(182358984, p) then
local add = 3
end)
The second script is at... StarterGui>ScreenGui>TextButton>LocalScript. This second script works fine so don't do anything to it I just need the first script to make the number per click go up ONLY FOR THAT PERSON THAT BOUGHT IT.
local number = 0
local add = 1
script.Parent.MouseButton1Click:connect(function()
number = number + add
script.Parent.Parent.TextBox.Text = "".. number
end)

2 comments
There is an error on line 4 on Studio.
Try now, forgot an end, sorry.