e = true function touched(hit) if not e then return end e = false local h = hit.Parent:FindFirstChild("Humanoid") if h ~= nil then local wood = game.Workspace:FindFirstChild("Wood") if wood ~= nil then wood.Value = wood.Value + 1 end end wait(10) e = true end function chat(msg,speaker) msg = msg:lower() if msg == "check/wood" then local wood = game.Workspace:FindFirstChild("Wood") if wood ~= nil then local m = Instance.new("Message") m.Parent = speaker m.Text = "You have "..wood.Value.." wood!" wait(3) m:Remove() end end end function entered(player) player.Chatted:connect(function(msg) chat(msg,player) end) end game.Players.PlayerAdded:connect(entered) script.Parent.Touched:connect(touched)