I'm making a game, and in the game you have to collect food and things, how do I remove a part when collected since Mouse.Target is Read Only? And I tried using GetFullName().
elseif Target:findFirstChild("Food") then
if not FoodDebounce then
FoodDebounce = true
if Food.Value < Food.Max.Value then
Food.Value = Food.Value + 5
end
if Food.Value > Food.Max.Value then
Food.Value = Food.Max.Value
end
local Part = Target:GetFullName()
Part:Remove()
wait(2)
FoodDebounce = false
end

1 comment
Ok... Really... Why keep downvoting...