local clickdetect = script.Parent:WaitForChild("ClickDetector")
local HungerVal = game.Players.LocalPlayer:WaitForChild("HungerVal")
clickdetect.MouseClick:Connect(function()
print("test")
HungerVal.Value = HungerVal.Value + 70
script.Parent.Parent:Destroy()
if HungerVal.Value >100 then
HungerVal.Value = 100
end
end)
help i dont know whats wrong

3 comments
why are you attempting to index the __local__player while this is a serverscript
cause i dont know how to use click detectors ;D
read the wiki then