local plr = game.Players.LocalPlayer
local AnimalsValue = plr.AnimalsFoundValue.Value
--gets the local player and IntValue
script.Parent.ClickDetector.MouseClick:Connect(function()
AnimalsValue.Value = AnimalsValue.Value +1
--adds to the IntValue
script.Parent:Destroy()
--Destroys the item so the player can no longer click
end)
COMMUNITY QUESTION
why when i click it doesnt get destroyed nor add to the IntValue??
1 answer
line 2 gets the .Value, and line 5 also uses .Value
youre saying AnimalsValue.Value.Value
thats alotta value...
i would remove the .Value from line 2
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
it didnt work :(
well whats the error
no error in the output just the same problems in the question.