This is one of the scripts
part=script.Parent
function collect(part1)
part:Destroy()
print("bob")
part1.Item.Coke.Value+1
end
part.ClickDetector.MouseClick:connect(collect)
Here is another.
game.Players.PlayerAdded:connect(function(player)
local Item= Instance.new("Model")
Item.Name = "Item"
Item.Parent=player
wait(1)
local Coke=Instance.new("IntValue")
Coke.Name="Coke"
Coke.Parent=player.Item
Coke.Value=0
end)
So basically what the first script wants is when you click the part it destroys itself and also adds a value to the player What the second one does is add a value into the player and this is the value that the first scripts adds onto. So the problem is it wont add. The addition sign in the first script has a red line under it but thats all i know.

1 comment
Try putting "part:Destroy()" last in the function.